John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.4svn. |
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 | # |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
| 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32 | # PATH needs CR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 226 | case $as_dir in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 227 | /*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 240 | # Be Bourne compatible |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 250 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 260 | # Be Bourne compatible |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 270 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
| 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
| 463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
| 470 | ECHO_C= ECHO_N= ECHO_T= |
| 471 | case `echo -n x` in |
| 472 | -n*) |
| 473 | case `echo 'x\c'` in |
| 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 475 | *) ECHO_C='\c';; |
| 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
| 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
| 493 | mkdir conf$$.dir |
| 494 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
| 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
| 513 | as_mkdir_p=: |
| 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 541 | |
| 542 | # Check that we are running under the correct shell. |
| 543 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 544 | |
| 545 | case X$ECHO in |
| 546 | X*--fallback-echo) |
| 547 | # Remove one level of quotation (which was required for Make). |
| 548 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 549 | ;; |
| 550 | esac |
| 551 | |
| 552 | echo=${ECHO-echo} |
| 553 | if test "X$1" = X--no-reexec; then |
| 554 | # Discard the --no-reexec flag, and continue. |
| 555 | shift |
| 556 | elif test "X$1" = X--fallback-echo; then |
| 557 | # Avoid inline document here, it may be left over |
| 558 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 559 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | # Yippee, $echo works! |
| 561 | : |
| 562 | else |
| 563 | # Restart under the correct shell. |
| 564 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 565 | fi |
| 566 | |
| 567 | if test "X$1" = X--fallback-echo; then |
| 568 | # used as fallback echo |
| 569 | shift |
| 570 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 571 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 572 | EOF |
| 573 | exit 0 |
| 574 | fi |
| 575 | |
| 576 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 577 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | |
| 580 | if test -z "$ECHO"; then |
| 581 | if test "X${echo_test_string+set}" != Xset; then |
| 582 | # find a string as large as possible, as long as the shell can cope with it |
| 583 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 584 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 585 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 586 | echo_test_string=`eval $cmd` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 587 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 588 | then |
| 589 | break |
| 590 | fi |
| 591 | done |
| 592 | fi |
| 593 | |
| 594 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 595 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 596 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 597 | : |
| 598 | else |
| 599 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 600 | # backslashes. This makes it impossible to quote backslashes using |
| 601 | # echo "$something" | sed 's/\\/\\\\/g' |
| 602 | # |
| 603 | # So, first we look for a working echo in the user's PATH. |
| 604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 605 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 606 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 607 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 608 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 609 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | echo="$dir/echo" |
| 613 | break |
| 614 | fi |
| 615 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 616 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 617 | |
| 618 | if test "X$echo" = Xecho; then |
| 619 | # We didn't find a better echo, so look for alternatives. |
| 620 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 621 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 623 | # This shell has a builtin print -r that does the trick. |
| 624 | echo='print -r' |
| 625 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 626 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 627 | # If we have ksh, try running configure again with it. |
| 628 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 629 | export ORIGINAL_CONFIG_SHELL |
| 630 | CONFIG_SHELL=/bin/ksh |
| 631 | export CONFIG_SHELL |
| 632 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 633 | else |
| 634 | # Try using printf. |
| 635 | echo='printf %s\n' |
| 636 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 637 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 638 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 639 | # Cool, printf works |
| 640 | : |
| 641 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 642 | test "X$echo_testing_string" = 'X\t' && |
| 643 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 644 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 645 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 646 | export CONFIG_SHELL |
| 647 | SHELL="$CONFIG_SHELL" |
| 648 | export SHELL |
| 649 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 650 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = 'X\t' && |
| 652 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 655 | else |
| 656 | # maybe with a smaller string... |
| 657 | prev=: |
| 658 | |
| 659 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 660 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 661 | then |
| 662 | break |
| 663 | fi |
| 664 | prev="$cmd" |
| 665 | done |
| 666 | |
| 667 | if test "$prev" != 'sed 50q "$0"'; then |
| 668 | echo_test_string=`eval $prev` |
| 669 | export echo_test_string |
| 670 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 671 | else |
| 672 | # Oops. We lost completely, so just stick with echo. |
| 673 | echo=echo |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | fi |
| 679 | fi |
| 680 | |
| 681 | # Copy echo and quote the copy suitably for passing to libtool from |
| 682 | # the Makefile, instead of quoting the original, which is used later. |
| 683 | ECHO=$echo |
| 684 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 685 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 686 | fi |
| 687 | |
| 688 | |
| 689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 690 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 691 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 692 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 693 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 695 | exec 7<&0 </dev/null 6>&1 |
| 696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 697 | # Name of the host. |
| 698 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 699 | # so uname gets run too. |
| 700 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 702 | # |
| 703 | # Initializations. |
| 704 | # |
| 705 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 706 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 707 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 708 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 709 | cross_compiling=no |
| 710 | subdirs= |
| 711 | MFLAGS= |
| 712 | MAKEFLAGS= |
| 713 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 715 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 716 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 717 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.4svn' |
| 719 | PACKAGE_STRING='llvm 2.4svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 721 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 722 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 723 | # Factoring default headers for most tests. |
| 724 | ac_includes_default="\ |
| 725 | #include <stdio.h> |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 726 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 727 | # include <sys/types.h> |
| 728 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 729 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 730 | # include <sys/stat.h> |
| 731 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 732 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 733 | # include <stdlib.h> |
| 734 | # include <stddef.h> |
| 735 | #else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 736 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 737 | # include <stdlib.h> |
| 738 | # endif |
| 739 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 740 | #if HAVE_STRING_H |
| 741 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 742 | # include <memory.h> |
| 743 | # endif |
| 744 | # include <string.h> |
| 745 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 746 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 747 | # include <strings.h> |
| 748 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 749 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 750 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 751 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 752 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 753 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 754 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 755 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 756 | # include <unistd.h> |
| 757 | #endif" |
| 758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 759 | ac_subst_vars='SHELL |
| 760 | PATH_SEPARATOR |
| 761 | PACKAGE_NAME |
| 762 | PACKAGE_TARNAME |
| 763 | PACKAGE_VERSION |
| 764 | PACKAGE_STRING |
| 765 | PACKAGE_BUGREPORT |
| 766 | exec_prefix |
| 767 | prefix |
| 768 | program_transform_name |
| 769 | bindir |
| 770 | sbindir |
| 771 | libexecdir |
| 772 | datarootdir |
| 773 | datadir |
| 774 | sysconfdir |
| 775 | sharedstatedir |
| 776 | localstatedir |
| 777 | includedir |
| 778 | oldincludedir |
| 779 | docdir |
| 780 | infodir |
| 781 | htmldir |
| 782 | dvidir |
| 783 | pdfdir |
| 784 | psdir |
| 785 | libdir |
| 786 | localedir |
| 787 | mandir |
| 788 | DEFS |
| 789 | ECHO_C |
| 790 | ECHO_N |
| 791 | ECHO_T |
| 792 | LIBS |
| 793 | build_alias |
| 794 | host_alias |
| 795 | target_alias |
| 796 | LLVM_COPYRIGHT |
| 797 | subdirs |
| 798 | build |
| 799 | build_cpu |
| 800 | build_vendor |
| 801 | build_os |
| 802 | host |
| 803 | host_cpu |
| 804 | host_vendor |
| 805 | host_os |
| 806 | target |
| 807 | target_cpu |
| 808 | target_vendor |
| 809 | target_os |
| 810 | OS |
| 811 | LINKALL |
| 812 | NOLINKALL |
| 813 | LLVM_ON_UNIX |
| 814 | LLVM_ON_WIN32 |
| 815 | ARCH |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 816 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | CC |
| 818 | CFLAGS |
| 819 | LDFLAGS |
| 820 | CPPFLAGS |
| 821 | ac_ct_CC |
| 822 | EXEEXT |
| 823 | OBJEXT |
| 824 | CPP |
| 825 | GREP |
| 826 | EGREP |
| 827 | LLVM_CROSS_COMPILING |
| 828 | BUILD_CC |
| 829 | BUILD_EXEEXT |
| 830 | CVSBUILD |
| 831 | ENABLE_OPTIMIZED |
| 832 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 833 | ENABLE_EXPENSIVE_CHECKS |
| 834 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 835 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | JIT |
| 837 | TARGET_HAS_JIT |
| 838 | ENABLE_DOXYGEN |
| 839 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 840 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 842 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 843 | EXTRA_OPTIONS |
| 844 | CXX |
| 845 | CXXFLAGS |
| 846 | ac_ct_CXX |
| 847 | LEX |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 848 | LEXLIB |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 849 | LEX_OUTPUT_ROOT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | FLEX |
| 851 | YACC |
| 852 | YFLAGS |
| 853 | BISON |
| 854 | NM |
| 855 | ifGNUmake |
| 856 | LN_S |
| 857 | CMP |
| 858 | CP |
| 859 | DATE |
| 860 | FIND |
| 861 | MKDIR |
| 862 | MV |
| 863 | RANLIB |
| 864 | RM |
| 865 | SED |
| 866 | TAR |
| 867 | BINPWD |
| 868 | GRAPHVIZ |
| 869 | DOT |
| 870 | GV |
| 871 | DOTTY |
| 872 | PERL |
| 873 | HAVE_PERL |
| 874 | INSTALL_PROGRAM |
| 875 | INSTALL_SCRIPT |
| 876 | INSTALL_DATA |
| 877 | BZIP2 |
| 878 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | GROFF |
| 880 | GZIP |
| 881 | POD2HTML |
| 882 | POD2MAN |
| 883 | RUNTEST |
| 884 | TCLSH |
| 885 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 886 | OCAMLC |
| 887 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 888 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 889 | OCAMLDOC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 890 | INSTALL_LTDL_TRUE |
| 891 | INSTALL_LTDL_FALSE |
| 892 | CONVENIENCE_LTDL_TRUE |
| 893 | CONVENIENCE_LTDL_FALSE |
| 894 | LIBADD_DL |
| 895 | ECHO |
| 896 | AR |
| 897 | STRIP |
| 898 | CXXCPP |
| 899 | F77 |
| 900 | FFLAGS |
| 901 | ac_ct_F77 |
| 902 | LIBTOOL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 903 | LLVMGCC |
| 904 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 905 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 906 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 907 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 908 | ALLOCA |
| 909 | MMAP_FILE |
| 910 | LLVMCC1 |
| 911 | LLVMCC1PLUS |
| 912 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 913 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | LLVMGCC_VERSION |
| 915 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 916 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 917 | SHLIBEXT |
| 918 | LLVM_PREFIX |
| 919 | LLVM_BINDIR |
| 920 | LLVM_LIBDIR |
| 921 | LLVM_DATADIR |
| 922 | LLVM_DOCSDIR |
| 923 | LLVM_ETCDIR |
| 924 | LLVM_INCLUDEDIR |
| 925 | LLVM_INFODIR |
| 926 | LLVM_MANDIR |
| 927 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 928 | BINDINGS_TO_BUILD |
| 929 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 930 | OCAML_LIBDIR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 931 | LIBOBJS |
| 932 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 933 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 934 | ac_precious_vars='build_alias |
| 935 | host_alias |
| 936 | target_alias |
| 937 | CC |
| 938 | CFLAGS |
| 939 | LDFLAGS |
| 940 | CPPFLAGS |
| 941 | CPP |
| 942 | CXX |
| 943 | CXXFLAGS |
| 944 | CCC |
| 945 | YACC |
| 946 | YFLAGS |
| 947 | CXXCPP |
| 948 | F77 |
| 949 | FFLAGS' |
| 950 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 951 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 952 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 953 | projects/llvm-test |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 954 | projects/llvm-reopt |
| 955 | projects/llvm-gcc |
| 956 | projects/llvm-java |
| 957 | projects/llvm-tv |
| 958 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 959 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 960 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 961 | |
| 962 | # Initialize some variables set by options. |
| 963 | ac_init_help= |
| 964 | ac_init_version=false |
| 965 | # The variables have the same names as the options, with |
| 966 | # dashes changed to underlines. |
| 967 | cache_file=/dev/null |
| 968 | exec_prefix=NONE |
| 969 | no_create= |
| 970 | no_recursion= |
| 971 | prefix=NONE |
| 972 | program_prefix=NONE |
| 973 | program_suffix=NONE |
| 974 | program_transform_name=s,x,x, |
| 975 | silent= |
| 976 | site= |
| 977 | srcdir= |
| 978 | verbose= |
| 979 | x_includes=NONE |
| 980 | x_libraries=NONE |
| 981 | |
| 982 | # Installation directory options. |
| 983 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 984 | # and all the variables that are supposed to be based on exec_prefix |
| 985 | # by default will actually change. |
| 986 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 987 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 988 | bindir='${exec_prefix}/bin' |
| 989 | sbindir='${exec_prefix}/sbin' |
| 990 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 991 | datarootdir='${prefix}/share' |
| 992 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 993 | sysconfdir='${prefix}/etc' |
| 994 | sharedstatedir='${prefix}/com' |
| 995 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 | includedir='${prefix}/include' |
| 997 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 998 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 999 | infodir='${datarootdir}/info' |
| 1000 | htmldir='${docdir}' |
| 1001 | dvidir='${docdir}' |
| 1002 | pdfdir='${docdir}' |
| 1003 | psdir='${docdir}' |
| 1004 | libdir='${exec_prefix}/lib' |
| 1005 | localedir='${datarootdir}/locale' |
| 1006 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | |
| 1008 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | for ac_option |
| 1011 | do |
| 1012 | # If the previous option needs an argument, assign it. |
| 1013 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1014 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1015 | ac_prev= |
| 1016 | continue |
| 1017 | fi |
| 1018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1019 | case $ac_option in |
| 1020 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1021 | *) ac_optarg=yes ;; |
| 1022 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1023 | |
| 1024 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1026 | case $ac_dashdash$ac_option in |
| 1027 | --) |
| 1028 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1029 | |
| 1030 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1031 | ac_prev=bindir ;; |
| 1032 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1033 | bindir=$ac_optarg ;; |
| 1034 | |
| 1035 | -build | --build | --buil | --bui | --bu) |
| 1036 | ac_prev=build_alias ;; |
| 1037 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1038 | build_alias=$ac_optarg ;; |
| 1039 | |
| 1040 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1041 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1042 | ac_prev=cache_file ;; |
| 1043 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1044 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1045 | cache_file=$ac_optarg ;; |
| 1046 | |
| 1047 | --config-cache | -C) |
| 1048 | cache_file=config.cache ;; |
| 1049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1050 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1051 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1052 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | datadir=$ac_optarg ;; |
| 1054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1055 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1056 | | --dataroo | --dataro | --datar) |
| 1057 | ac_prev=datarootdir ;; |
| 1058 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1059 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1060 | datarootdir=$ac_optarg ;; |
| 1061 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1062 | -disable-* | --disable-*) |
| 1063 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1064 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1065 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1066 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1067 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1068 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1069 | eval enable_$ac_feature=no ;; |
| 1070 | |
| 1071 | -docdir | --docdir | --docdi | --doc | --do) |
| 1072 | ac_prev=docdir ;; |
| 1073 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1074 | docdir=$ac_optarg ;; |
| 1075 | |
| 1076 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1077 | ac_prev=dvidir ;; |
| 1078 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1079 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1080 | |
| 1081 | -enable-* | --enable-*) |
| 1082 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1083 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1084 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1085 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1086 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1087 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1088 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1089 | |
| 1090 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1091 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1092 | | --exec | --exe | --ex) |
| 1093 | ac_prev=exec_prefix ;; |
| 1094 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1095 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1096 | | --exec=* | --exe=* | --ex=*) |
| 1097 | exec_prefix=$ac_optarg ;; |
| 1098 | |
| 1099 | -gas | --gas | --ga | --g) |
| 1100 | # Obsolete; use --with-gas. |
| 1101 | with_gas=yes ;; |
| 1102 | |
| 1103 | -help | --help | --hel | --he | -h) |
| 1104 | ac_init_help=long ;; |
| 1105 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1106 | ac_init_help=recursive ;; |
| 1107 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1108 | ac_init_help=short ;; |
| 1109 | |
| 1110 | -host | --host | --hos | --ho) |
| 1111 | ac_prev=host_alias ;; |
| 1112 | -host=* | --host=* | --hos=* | --ho=*) |
| 1113 | host_alias=$ac_optarg ;; |
| 1114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1115 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1116 | ac_prev=htmldir ;; |
| 1117 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1118 | | --ht=*) |
| 1119 | htmldir=$ac_optarg ;; |
| 1120 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1121 | -includedir | --includedir | --includedi | --included | --include \ |
| 1122 | | --includ | --inclu | --incl | --inc) |
| 1123 | ac_prev=includedir ;; |
| 1124 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1125 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1126 | includedir=$ac_optarg ;; |
| 1127 | |
| 1128 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1129 | ac_prev=infodir ;; |
| 1130 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1131 | infodir=$ac_optarg ;; |
| 1132 | |
| 1133 | -libdir | --libdir | --libdi | --libd) |
| 1134 | ac_prev=libdir ;; |
| 1135 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1136 | libdir=$ac_optarg ;; |
| 1137 | |
| 1138 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1139 | | --libexe | --libex | --libe) |
| 1140 | ac_prev=libexecdir ;; |
| 1141 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1142 | | --libexe=* | --libex=* | --libe=*) |
| 1143 | libexecdir=$ac_optarg ;; |
| 1144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1145 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1146 | ac_prev=localedir ;; |
| 1147 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1148 | localedir=$ac_optarg ;; |
| 1149 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1151 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1152 | ac_prev=localstatedir ;; |
| 1153 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1154 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1155 | localstatedir=$ac_optarg ;; |
| 1156 | |
| 1157 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1158 | ac_prev=mandir ;; |
| 1159 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1160 | mandir=$ac_optarg ;; |
| 1161 | |
| 1162 | -nfp | --nfp | --nf) |
| 1163 | # Obsolete; use --without-fp. |
| 1164 | with_fp=no ;; |
| 1165 | |
| 1166 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1167 | | --no-cr | --no-c | -n) |
| 1168 | no_create=yes ;; |
| 1169 | |
| 1170 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1171 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1172 | no_recursion=yes ;; |
| 1173 | |
| 1174 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1175 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1176 | | --oldin | --oldi | --old | --ol | --o) |
| 1177 | ac_prev=oldincludedir ;; |
| 1178 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1179 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1180 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1181 | oldincludedir=$ac_optarg ;; |
| 1182 | |
| 1183 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1184 | ac_prev=prefix ;; |
| 1185 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1186 | prefix=$ac_optarg ;; |
| 1187 | |
| 1188 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1189 | | --program-pre | --program-pr | --program-p) |
| 1190 | ac_prev=program_prefix ;; |
| 1191 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1192 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1193 | program_prefix=$ac_optarg ;; |
| 1194 | |
| 1195 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1196 | | --program-suf | --program-su | --program-s) |
| 1197 | ac_prev=program_suffix ;; |
| 1198 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1199 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1200 | program_suffix=$ac_optarg ;; |
| 1201 | |
| 1202 | -program-transform-name | --program-transform-name \ |
| 1203 | | --program-transform-nam | --program-transform-na \ |
| 1204 | | --program-transform-n | --program-transform- \ |
| 1205 | | --program-transform | --program-transfor \ |
| 1206 | | --program-transfo | --program-transf \ |
| 1207 | | --program-trans | --program-tran \ |
| 1208 | | --progr-tra | --program-tr | --program-t) |
| 1209 | ac_prev=program_transform_name ;; |
| 1210 | -program-transform-name=* | --program-transform-name=* \ |
| 1211 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1212 | | --program-transform-n=* | --program-transform-=* \ |
| 1213 | | --program-transform=* | --program-transfor=* \ |
| 1214 | | --program-transfo=* | --program-transf=* \ |
| 1215 | | --program-trans=* | --program-tran=* \ |
| 1216 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1217 | program_transform_name=$ac_optarg ;; |
| 1218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1219 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1220 | ac_prev=pdfdir ;; |
| 1221 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1222 | pdfdir=$ac_optarg ;; |
| 1223 | |
| 1224 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1225 | ac_prev=psdir ;; |
| 1226 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1227 | psdir=$ac_optarg ;; |
| 1228 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1229 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1230 | | -silent | --silent | --silen | --sile | --sil) |
| 1231 | silent=yes ;; |
| 1232 | |
| 1233 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1234 | ac_prev=sbindir ;; |
| 1235 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1236 | | --sbi=* | --sb=*) |
| 1237 | sbindir=$ac_optarg ;; |
| 1238 | |
| 1239 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1240 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1241 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1242 | | --sha | --sh) |
| 1243 | ac_prev=sharedstatedir ;; |
| 1244 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1245 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1246 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1247 | | --sha=* | --sh=*) |
| 1248 | sharedstatedir=$ac_optarg ;; |
| 1249 | |
| 1250 | -site | --site | --sit) |
| 1251 | ac_prev=site ;; |
| 1252 | -site=* | --site=* | --sit=*) |
| 1253 | site=$ac_optarg ;; |
| 1254 | |
| 1255 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1256 | ac_prev=srcdir ;; |
| 1257 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1258 | srcdir=$ac_optarg ;; |
| 1259 | |
| 1260 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1261 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1262 | ac_prev=sysconfdir ;; |
| 1263 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1264 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1265 | sysconfdir=$ac_optarg ;; |
| 1266 | |
| 1267 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1268 | ac_prev=target_alias ;; |
| 1269 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1270 | target_alias=$ac_optarg ;; |
| 1271 | |
| 1272 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1273 | verbose=yes ;; |
| 1274 | |
| 1275 | -version | --version | --versio | --versi | --vers | -V) |
| 1276 | ac_init_version=: ;; |
| 1277 | |
| 1278 | -with-* | --with-*) |
| 1279 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1280 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1281 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1283 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1284 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1285 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1286 | |
| 1287 | -without-* | --without-*) |
| 1288 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1289 | # Reject names that are not valid shell variable names. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1290 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1291 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1292 | { (exit 1); exit 1; }; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1293 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1294 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1295 | |
| 1296 | --x) |
| 1297 | # Obsolete; use --with-x. |
| 1298 | with_x=yes ;; |
| 1299 | |
| 1300 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1301 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1302 | ac_prev=x_includes ;; |
| 1303 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1304 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1305 | x_includes=$ac_optarg ;; |
| 1306 | |
| 1307 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1308 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1309 | ac_prev=x_libraries ;; |
| 1310 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1311 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1312 | x_libraries=$ac_optarg ;; |
| 1313 | |
| 1314 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1315 | Try \`$0 --help' for more information." >&2 |
| 1316 | { (exit 1); exit 1; }; } |
| 1317 | ;; |
| 1318 | |
| 1319 | *=*) |
| 1320 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1321 | # Reject names that are not valid shell variable names. |
| 1322 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1323 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1324 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1325 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1326 | export $ac_envvar ;; |
| 1327 | |
| 1328 | *) |
| 1329 | # FIXME: should be removed in autoconf 3.0. |
| 1330 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1331 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1332 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1333 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1334 | ;; |
| 1335 | |
| 1336 | esac |
| 1337 | done |
| 1338 | |
| 1339 | if test -n "$ac_prev"; then |
| 1340 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1341 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1342 | { (exit 1); exit 1; }; } |
| 1343 | fi |
| 1344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1345 | # Be sure to have absolute directory names. |
| 1346 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1347 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1348 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1349 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1350 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1351 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1352 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1353 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1354 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1355 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1356 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1357 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1358 | done |
| 1359 | |
| 1360 | # There might be people who depend on the old broken behavior: `$host' |
| 1361 | # used to hold the argument of --host etc. |
| 1362 | # FIXME: To remove some day. |
| 1363 | build=$build_alias |
| 1364 | host=$host_alias |
| 1365 | target=$target_alias |
| 1366 | |
| 1367 | # FIXME: To remove some day. |
| 1368 | if test "x$host_alias" != x; then |
| 1369 | if test "x$build_alias" = x; then |
| 1370 | cross_compiling=maybe |
| 1371 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1372 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1373 | elif test "x$build_alias" != "x$host_alias"; then |
| 1374 | cross_compiling=yes |
| 1375 | fi |
| 1376 | fi |
| 1377 | |
| 1378 | ac_tool_prefix= |
| 1379 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1380 | |
| 1381 | test "$silent" = yes && exec 6>/dev/null |
| 1382 | |
| 1383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1384 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1385 | ac_ls_di=`ls -di .` && |
| 1386 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1387 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1388 | { (exit 1); exit 1; }; } |
| 1389 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1390 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1391 | { (exit 1); exit 1; }; } |
| 1392 | |
| 1393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1394 | # Find the source files, if location was not specified. |
| 1395 | if test -z "$srcdir"; then |
| 1396 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1397 | # Try the directory containing this script, then the parent directory. |
| 1398 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1399 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1400 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1401 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1402 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1403 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1405 | s//\1/ |
| 1406 | q |
| 1407 | } |
| 1408 | /^X\(\/\/\)[^/].*/{ |
| 1409 | s//\1/ |
| 1410 | q |
| 1411 | } |
| 1412 | /^X\(\/\/\)$/{ |
| 1413 | s//\1/ |
| 1414 | q |
| 1415 | } |
| 1416 | /^X\(\/\).*/{ |
| 1417 | s//\1/ |
| 1418 | q |
| 1419 | } |
| 1420 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1421 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1423 | srcdir=.. |
| 1424 | fi |
| 1425 | else |
| 1426 | ac_srcdir_defaulted=no |
| 1427 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1428 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1429 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1430 | { 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] | 1431 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1432 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1433 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1434 | ac_abs_confdir=`( |
| 1435 | 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] | 1436 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1437 | pwd)` |
| 1438 | # When building in place, set srcdir=. |
| 1439 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1440 | srcdir=. |
| 1441 | fi |
| 1442 | # Remove unnecessary trailing slashes from srcdir. |
| 1443 | # Double slashes in file names in object file debugging info |
| 1444 | # mess up M-x gdb in Emacs. |
| 1445 | case $srcdir in |
| 1446 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1447 | esac |
| 1448 | for ac_var in $ac_precious_vars; do |
| 1449 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1450 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1451 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1452 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1453 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1454 | |
| 1455 | # |
| 1456 | # Report the --help message. |
| 1457 | # |
| 1458 | if test "$ac_init_help" = "long"; then |
| 1459 | # Omit some internal or obsolete options to make the list less imposing. |
| 1460 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1461 | cat <<_ACEOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1462 | \`configure' configures llvm 2.4svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | |
| 1464 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1465 | |
| 1466 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1467 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1468 | |
| 1469 | Defaults for the options are specified in brackets. |
| 1470 | |
| 1471 | Configuration: |
| 1472 | -h, --help display this help and exit |
| 1473 | --help=short display options specific to this package |
| 1474 | --help=recursive display the short help of all the included packages |
| 1475 | -V, --version display version information and exit |
| 1476 | -q, --quiet, --silent do not print \`checking...' messages |
| 1477 | --cache-file=FILE cache test results in FILE [disabled] |
| 1478 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1479 | -n, --no-create do not create output files |
| 1480 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1481 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | Installation directories: |
| 1483 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1484 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1485 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1486 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1487 | |
| 1488 | By default, \`make install' will install all the files in |
| 1489 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1490 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1491 | for instance \`--prefix=\$HOME'. |
| 1492 | |
| 1493 | For better control, use the options below. |
| 1494 | |
| 1495 | Fine tuning of the installation directories: |
| 1496 | --bindir=DIR user executables [EPREFIX/bin] |
| 1497 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1498 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1500 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1501 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1502 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1503 | --includedir=DIR C header files [PREFIX/include] |
| 1504 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1506 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1507 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1508 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1509 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1510 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1511 | --htmldir=DIR html documentation [DOCDIR] |
| 1512 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1513 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1514 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1515 | _ACEOF |
| 1516 | |
| 1517 | cat <<\_ACEOF |
| 1518 | |
| 1519 | System types: |
| 1520 | --build=BUILD configure for building on BUILD [guessed] |
| 1521 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1522 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1523 | _ACEOF |
| 1524 | fi |
| 1525 | |
| 1526 | if test -n "$ac_init_help"; then |
| 1527 | case $ac_init_help in |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1528 | short | recursive ) echo "Configuration of llvm 2.4svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | esac |
| 1530 | cat <<\_ACEOF |
| 1531 | |
| 1532 | Optional Features: |
| 1533 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1534 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1535 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1536 | --enable-assertions |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1537 | --enable-expensive-checks |
| 1538 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1539 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1540 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1541 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1542 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1543 | --enable-pic Build LLVM with Position Independent Code (default |
| 1544 | is NO) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1545 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1546 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1547 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1548 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1549 | --enable-bindings Build specific language bindings: |
| 1550 | all,auto,none,{binding-name} (default=auto) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1551 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1552 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1553 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1554 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1555 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1556 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1557 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1558 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1560 | |
| 1561 | Optional Packages: |
| 1562 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1563 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1564 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1565 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1566 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1567 | searches PATH) |
| 1568 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1569 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1570 | --with-extra-options Specify addtional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1571 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1572 | is stdlib) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1573 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1574 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1575 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1576 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1578 | --with-udis86=<path> Use udis86 external x86 disassembler library |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | |
| 1580 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1581 | CC C compiler command |
| 1582 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1583 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1584 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1585 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1586 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1587 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1588 | CXX C++ compiler command |
| 1589 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1590 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1591 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1592 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1593 | This script will default YFLAGS to the empty string to avoid a |
| 1594 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1595 | CXXCPP C++ preprocessor |
| 1596 | F77 Fortran 77 compiler command |
| 1597 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | |
| 1599 | Use these variables to override the choices made by `configure' or to help |
| 1600 | it to find libraries and programs with nonstandard names/locations. |
| 1601 | |
| 1602 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1603 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1604 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | fi |
| 1606 | |
| 1607 | if test "$ac_init_help" = "recursive"; then |
| 1608 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1609 | 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] | 1610 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1611 | ac_builddir=. |
| 1612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1613 | case "$ac_dir" in |
| 1614 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1615 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1616 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1617 | # A ".." for each directory in $ac_dir_suffix. |
| 1618 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1619 | case $ac_top_builddir_sub in |
| 1620 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1621 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1622 | esac ;; |
| 1623 | esac |
| 1624 | ac_abs_top_builddir=$ac_pwd |
| 1625 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1626 | # for backward compatibility: |
| 1627 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1628 | |
| 1629 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1630 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1631 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1632 | ac_top_srcdir=$ac_top_builddir_sub |
| 1633 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1634 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1636 | ac_top_srcdir=$srcdir |
| 1637 | ac_abs_top_srcdir=$srcdir ;; |
| 1638 | *) # Relative name. |
| 1639 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1640 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1641 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1642 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1643 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1645 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1646 | # Check for guested configure. |
| 1647 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1648 | echo && |
| 1649 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1650 | elif test -f "$ac_srcdir/configure"; then |
| 1651 | echo && |
| 1652 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1653 | else |
| 1654 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1655 | fi || ac_status=$? |
| 1656 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1657 | done |
| 1658 | fi |
| 1659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1660 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1661 | if $ac_init_version; then |
| 1662 | cat <<\_ACEOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1663 | llvm configure 2.4svn |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1664 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1665 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1666 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1667 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1668 | This configure script is free software; the Free Software Foundation |
| 1669 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1670 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1671 | Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1672 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1674 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1675 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1676 | This file contains any messages produced by compilers while |
| 1677 | running configure, to aid debugging if configure makes a mistake. |
| 1678 | |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 1679 | It was created by llvm $as_me 2.4svn, which was |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1680 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1681 | |
| 1682 | $ $0 $@ |
| 1683 | |
| 1684 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1686 | { |
| 1687 | cat <<_ASUNAME |
| 1688 | ## --------- ## |
| 1689 | ## Platform. ## |
| 1690 | ## --------- ## |
| 1691 | |
| 1692 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1693 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1694 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1695 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1696 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1697 | |
| 1698 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1699 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1700 | |
| 1701 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1702 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1703 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1704 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1706 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1707 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1708 | |
| 1709 | _ASUNAME |
| 1710 | |
| 1711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1712 | for as_dir in $PATH |
| 1713 | do |
| 1714 | IFS=$as_save_IFS |
| 1715 | test -z "$as_dir" && as_dir=. |
| 1716 | echo "PATH: $as_dir" |
| 1717 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1718 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1719 | |
| 1720 | } >&5 |
| 1721 | |
| 1722 | cat >&5 <<_ACEOF |
| 1723 | |
| 1724 | |
| 1725 | ## ----------- ## |
| 1726 | ## Core tests. ## |
| 1727 | ## ----------- ## |
| 1728 | |
| 1729 | _ACEOF |
| 1730 | |
| 1731 | |
| 1732 | # Keep a trace of the command line. |
| 1733 | # 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] | 1734 | # 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] | 1735 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1736 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1737 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1738 | ac_configure_args0= |
| 1739 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1740 | ac_must_keep_next=false |
| 1741 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1743 | for ac_arg |
| 1744 | do |
| 1745 | case $ac_arg in |
| 1746 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1747 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1748 | | -silent | --silent | --silen | --sile | --sil) |
| 1749 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1750 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1751 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1752 | esac |
| 1753 | case $ac_pass in |
| 1754 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1755 | 2) |
| 1756 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1757 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1758 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1759 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1760 | case $ac_arg in |
| 1761 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1762 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1763 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1764 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1765 | case "$ac_configure_args0 " in |
| 1766 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1767 | esac |
| 1768 | ;; |
| 1769 | -* ) ac_must_keep_next=true ;; |
| 1770 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1772 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1773 | ;; |
| 1774 | esac |
| 1775 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1776 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1777 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1778 | $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] | 1779 | |
| 1780 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1781 | # config.log. We remove comments because anyway the quotes in there |
| 1782 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1783 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1784 | # 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] | 1785 | trap 'exit_status=$? |
| 1786 | # Save into config.log some information that might help in debugging. |
| 1787 | { |
| 1788 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | cat <<\_ASBOX |
| 1791 | ## ---------------- ## |
| 1792 | ## Cache variables. ## |
| 1793 | ## ---------------- ## |
| 1794 | _ASBOX |
| 1795 | echo |
| 1796 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1797 | ( |
| 1798 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1799 | eval ac_val=\$$ac_var |
| 1800 | case $ac_val in #( |
| 1801 | *${as_nl}*) |
| 1802 | case $ac_var in #( |
| 1803 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1804 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1805 | esac |
| 1806 | case $ac_var in #( |
| 1807 | _ | IFS | as_nl) ;; #( |
| 1808 | *) $as_unset $ac_var ;; |
| 1809 | esac ;; |
| 1810 | esac |
| 1811 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1812 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1813 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1814 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1815 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1816 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1817 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1818 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1819 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1820 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1821 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1822 | esac | |
| 1823 | sort |
| 1824 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1825 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1826 | |
| 1827 | cat <<\_ASBOX |
| 1828 | ## ----------------- ## |
| 1829 | ## Output variables. ## |
| 1830 | ## ----------------- ## |
| 1831 | _ASBOX |
| 1832 | echo |
| 1833 | for ac_var in $ac_subst_vars |
| 1834 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1835 | eval ac_val=\$$ac_var |
| 1836 | case $ac_val in |
| 1837 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1838 | esac |
| 1839 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1840 | done | sort |
| 1841 | echo |
| 1842 | |
| 1843 | if test -n "$ac_subst_files"; then |
| 1844 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1845 | ## ------------------- ## |
| 1846 | ## File substitutions. ## |
| 1847 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1848 | _ASBOX |
| 1849 | echo |
| 1850 | for ac_var in $ac_subst_files |
| 1851 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1852 | eval ac_val=\$$ac_var |
| 1853 | case $ac_val in |
| 1854 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1855 | esac |
| 1856 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1857 | done | sort |
| 1858 | echo |
| 1859 | fi |
| 1860 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1861 | if test -s confdefs.h; then |
| 1862 | cat <<\_ASBOX |
| 1863 | ## ----------- ## |
| 1864 | ## confdefs.h. ## |
| 1865 | ## ----------- ## |
| 1866 | _ASBOX |
| 1867 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1868 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1869 | echo |
| 1870 | fi |
| 1871 | test "$ac_signal" != 0 && |
| 1872 | echo "$as_me: caught signal $ac_signal" |
| 1873 | echo "$as_me: exit $exit_status" |
| 1874 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1875 | rm -f core *.core core.conftest.* && |
| 1876 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1877 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1878 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1879 | for ac_signal in 1 2 13 15; do |
| 1880 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1881 | done |
| 1882 | ac_signal=0 |
| 1883 | |
| 1884 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1885 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1886 | |
| 1887 | # Predefined preprocessor variables. |
| 1888 | |
| 1889 | cat >>confdefs.h <<_ACEOF |
| 1890 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1891 | _ACEOF |
| 1892 | |
| 1893 | |
| 1894 | cat >>confdefs.h <<_ACEOF |
| 1895 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1896 | _ACEOF |
| 1897 | |
| 1898 | |
| 1899 | cat >>confdefs.h <<_ACEOF |
| 1900 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1901 | _ACEOF |
| 1902 | |
| 1903 | |
| 1904 | cat >>confdefs.h <<_ACEOF |
| 1905 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1906 | _ACEOF |
| 1907 | |
| 1908 | |
| 1909 | cat >>confdefs.h <<_ACEOF |
| 1910 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1911 | _ACEOF |
| 1912 | |
| 1913 | |
| 1914 | # Let the site file select an alternate cache file if it wants to. |
| 1915 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1916 | if test -n "$CONFIG_SITE"; then |
| 1917 | set x "$CONFIG_SITE" |
| 1918 | elif test "x$prefix" != xNONE; then |
| 1919 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1920 | else |
| 1921 | set x "$ac_default_prefix/share/config.site" \ |
| 1922 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1923 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1924 | shift |
| 1925 | for ac_site_file |
| 1926 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1927 | if test -r "$ac_site_file"; then |
| 1928 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1929 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1930 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1931 | . "$ac_site_file" |
| 1932 | fi |
| 1933 | done |
| 1934 | |
| 1935 | if test -r "$cache_file"; then |
| 1936 | # Some versions of bash will fail to source /dev/null (special |
| 1937 | # files actually), so we avoid doing that. |
| 1938 | if test -f "$cache_file"; then |
| 1939 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1940 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1941 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1942 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1943 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | esac |
| 1945 | fi |
| 1946 | else |
| 1947 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1948 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1949 | >$cache_file |
| 1950 | fi |
| 1951 | |
| 1952 | # Check that the precious variables saved in the cache have kept the same |
| 1953 | # value. |
| 1954 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1955 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1956 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1957 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1958 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1959 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1960 | case $ac_old_set,$ac_new_set in |
| 1961 | set,) |
| 1962 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1963 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1964 | ac_cache_corrupted=: ;; |
| 1965 | ,set) |
| 1966 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1967 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1968 | ac_cache_corrupted=: ;; |
| 1969 | ,);; |
| 1970 | *) |
| 1971 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1972 | { 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] | 1973 | 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] | 1974 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1975 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1976 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1977 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1978 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1979 | fi;; |
| 1980 | esac |
| 1981 | # Pass precious variables to config.status. |
| 1982 | if test "$ac_new_set" = set; then |
| 1983 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1984 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1985 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1986 | esac |
| 1987 | case " $ac_configure_args " in |
| 1988 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1989 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1990 | esac |
| 1991 | fi |
| 1992 | done |
| 1993 | if $ac_cache_corrupted; then |
| 1994 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1995 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1996 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1997 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1998 | { (exit 1); exit 1; }; } |
| 1999 | fi |
| 2000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | ac_ext=c |
| 2026 | ac_cpp='$CPP $CPPFLAGS' |
| 2027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2030 | |
| 2031 | |
| 2032 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2033 | LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2043 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | ac_aux_dir=$ac_dir |
| 2045 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2046 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2047 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | ac_aux_dir=$ac_dir |
| 2049 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2050 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2051 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2052 | ac_aux_dir=$ac_dir |
| 2053 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2054 | break |
| 2055 | fi |
| 2056 | done |
| 2057 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2058 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2059 | 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] | 2060 | { (exit 1); exit 1; }; } |
| 2061 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | |
| 2063 | # These three variables are undocumented and unsupported, |
| 2064 | # and are intended to be withdrawn in a future Autoconf release. |
| 2065 | # They can cause serious problems if a builder's source tree is in a directory |
| 2066 | # whose full name contains unusual characters. |
| 2067 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2068 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2069 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2070 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2071 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2072 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2073 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2074 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2075 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2076 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2077 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2078 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2079 | fi |
| 2080 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2081 | for i in `ls ${srcdir}/projects` |
| 2082 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2083 | if test -d ${srcdir}/projects/${i} ; then |
| 2084 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2085 | CVS) ;; |
| 2086 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2087 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2088 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2089 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2090 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2091 | ;; |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2092 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2093 | ;; |
| 2094 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2095 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2096 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2097 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2098 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2099 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2100 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2101 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2102 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2103 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2104 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2105 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2106 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2107 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2108 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2109 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2110 | 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] | 2111 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2112 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2113 | fi |
| 2114 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2115 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | |
| 2117 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2119 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2120 | 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] | 2121 | { (exit 1); exit 1; }; } |
| 2122 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2124 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2125 | if test "${ac_cv_build+set}" = set; then |
| 2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2127 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2128 | ac_build_alias=$build_alias |
| 2129 | test "x$ac_build_alias" = x && |
| 2130 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2131 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2132 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2133 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2134 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2135 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2136 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2137 | 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] | 2138 | { (exit 1); exit 1; }; } |
| 2139 | |
| 2140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2141 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2142 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2143 | case $ac_cv_build in |
| 2144 | *-*-*) ;; |
| 2145 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2146 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2147 | { (exit 1); exit 1; }; };; |
| 2148 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2149 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2150 | ac_save_IFS=$IFS; IFS='-' |
| 2151 | set x $ac_cv_build |
| 2152 | shift |
| 2153 | build_cpu=$1 |
| 2154 | build_vendor=$2 |
| 2155 | shift; shift |
| 2156 | # Remember, the first character of IFS is used to create $*, |
| 2157 | # except with old shells: |
| 2158 | build_os=$* |
| 2159 | IFS=$ac_save_IFS |
| 2160 | 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] | 2161 | |
| 2162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2163 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2164 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2165 | if test "${ac_cv_host+set}" = set; then |
| 2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2167 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | if test "x$host_alias" = x; then |
| 2169 | ac_cv_host=$ac_cv_build |
| 2170 | else |
| 2171 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2172 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2173 | 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] | 2174 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2175 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2176 | |
| 2177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2179 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2180 | case $ac_cv_host in |
| 2181 | *-*-*) ;; |
| 2182 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2183 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2184 | { (exit 1); exit 1; }; };; |
| 2185 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2186 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2187 | ac_save_IFS=$IFS; IFS='-' |
| 2188 | set x $ac_cv_host |
| 2189 | shift |
| 2190 | host_cpu=$1 |
| 2191 | host_vendor=$2 |
| 2192 | shift; shift |
| 2193 | # Remember, the first character of IFS is used to create $*, |
| 2194 | # except with old shells: |
| 2195 | host_os=$* |
| 2196 | IFS=$ac_save_IFS |
| 2197 | 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] | 2198 | |
| 2199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2200 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2201 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | if test "${ac_cv_target+set}" = set; then |
| 2203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2204 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2205 | if test "x$target_alias" = x; then |
| 2206 | ac_cv_target=$ac_cv_host |
| 2207 | else |
| 2208 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2209 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2210 | 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] | 2211 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2212 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | |
| 2214 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2216 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2217 | case $ac_cv_target in |
| 2218 | *-*-*) ;; |
| 2219 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2220 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2221 | { (exit 1); exit 1; }; };; |
| 2222 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | ac_save_IFS=$IFS; IFS='-' |
| 2225 | set x $ac_cv_target |
| 2226 | shift |
| 2227 | target_cpu=$1 |
| 2228 | target_vendor=$2 |
| 2229 | shift; shift |
| 2230 | # Remember, the first character of IFS is used to create $*, |
| 2231 | # except with old shells: |
| 2232 | target_os=$* |
| 2233 | IFS=$ac_save_IFS |
| 2234 | 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] | 2235 | |
| 2236 | |
| 2237 | # The aliases save the names the user supplied, while $host etc. |
| 2238 | # will get canonicalized. |
| 2239 | test -n "$target_alias" && |
| 2240 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2241 | NONENONEs,x,x, && |
| 2242 | program_prefix=${target_alias}- |
| 2243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2245 | 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] | 2246 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2248 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2249 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2250 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2251 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2252 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2253 | llvm_cv_os_type="AIX" |
| 2254 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2255 | *-*-irix*) |
| 2256 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2257 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2258 | llvm_cv_os_type="IRIX" |
| 2259 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2260 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2261 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2262 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2263 | llvm_cv_os_type="Cygwin" |
| 2264 | llvm_cv_platform_type="Unix" ;; |
| 2265 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2266 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2267 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2268 | llvm_cv_os_type="Darwin" |
| 2269 | llvm_cv_platform_type="Unix" ;; |
| 2270 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2271 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2272 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2273 | llvm_cv_os_type="FreeBSD" |
| 2274 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2275 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2276 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2277 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2278 | llvm_cv_os_type="OpenBSD" |
| 2279 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2280 | *-*-netbsd*) |
| 2281 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2282 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2283 | llvm_cv_os_type="NetBSD" |
| 2284 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2285 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2286 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2287 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2288 | llvm_cv_os_type="HP-UX" |
| 2289 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2290 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2291 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2292 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2293 | llvm_cv_os_type="Interix" |
| 2294 | llvm_cv_platform_type="Unix" ;; |
| 2295 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2296 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2297 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2298 | llvm_cv_os_type="Linux" |
| 2299 | llvm_cv_platform_type="Unix" ;; |
| 2300 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2301 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2302 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2303 | llvm_cv_os_type="SunOS" |
| 2304 | llvm_cv_platform_type="Unix" ;; |
| 2305 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2306 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2307 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 | llvm_cv_os_type="Win32" |
| 2309 | llvm_cv_platform_type="Win32" ;; |
| 2310 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2311 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2312 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2313 | llvm_cv_os_type="MingW" |
| 2314 | llvm_cv_platform_type="Win32" ;; |
| 2315 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2316 | llvm_cv_link_all_option="" |
| 2317 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2318 | llvm_cv_os_type="Unknown" |
| 2319 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2320 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2322 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2323 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2324 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2325 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2326 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2327 | 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] | 2328 | { (exit 1); exit 1; }; } |
| 2329 | fi |
| 2330 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2332 | |
| 2333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2334 | LINKALL=$llvm_cv_link_all_option |
| 2335 | |
| 2336 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2337 | |
| 2338 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2339 | case $llvm_cv_platform_type in |
| 2340 | Unix) |
| 2341 | |
| 2342 | cat >>confdefs.h <<\_ACEOF |
| 2343 | #define LLVM_ON_UNIX 1 |
| 2344 | _ACEOF |
| 2345 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2346 | LLVM_ON_UNIX=1 |
| 2347 | |
| 2348 | LLVM_ON_WIN32=0 |
| 2349 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2350 | ;; |
| 2351 | Win32) |
| 2352 | |
| 2353 | cat >>confdefs.h <<\_ACEOF |
| 2354 | #define LLVM_ON_WIN32 1 |
| 2355 | _ACEOF |
| 2356 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2357 | LLVM_ON_UNIX=0 |
| 2358 | |
| 2359 | LLVM_ON_WIN32=1 |
| 2360 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2361 | ;; |
| 2362 | esac |
| 2363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2364 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2365 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2366 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2368 | else |
| 2369 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2370 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2371 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2372 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2373 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2374 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2375 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2376 | arm-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2377 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame^] | 2378 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2379 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2380 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2381 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2382 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2383 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2384 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2385 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2386 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2387 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2388 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2389 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2390 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2391 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2392 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2393 | ac_ext=c |
| 2394 | ac_cpp='$CPP $CPPFLAGS' |
| 2395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2398 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2399 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2400 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2401 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2405 | else |
| 2406 | if test -n "$CC"; then |
| 2407 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2408 | else |
| 2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2410 | for as_dir in $PATH |
| 2411 | do |
| 2412 | IFS=$as_save_IFS |
| 2413 | test -z "$as_dir" && as_dir=. |
| 2414 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2416 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2418 | break 2 |
| 2419 | fi |
| 2420 | done |
| 2421 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2422 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | |
| 2424 | fi |
| 2425 | fi |
| 2426 | CC=$ac_cv_prog_CC |
| 2427 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2428 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2429 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2430 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2432 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2433 | fi |
| 2434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2435 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | if test -z "$ac_cv_prog_CC"; then |
| 2438 | ac_ct_CC=$CC |
| 2439 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2440 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2441 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2443 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2445 | else |
| 2446 | if test -n "$ac_ct_CC"; then |
| 2447 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2448 | else |
| 2449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2450 | for as_dir in $PATH |
| 2451 | do |
| 2452 | IFS=$as_save_IFS |
| 2453 | test -z "$as_dir" && as_dir=. |
| 2454 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | ac_cv_prog_ac_ct_CC="gcc" |
| 2457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2458 | break 2 |
| 2459 | fi |
| 2460 | done |
| 2461 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2462 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2463 | |
| 2464 | fi |
| 2465 | fi |
| 2466 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2467 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2469 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2471 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2472 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2473 | fi |
| 2474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2475 | if test "x$ac_ct_CC" = x; then |
| 2476 | CC="" |
| 2477 | else |
| 2478 | case $cross_compiling:$ac_tool_warned in |
| 2479 | yes:) |
| 2480 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2481 | whose name does not start with the host triplet. If you think this |
| 2482 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2483 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2484 | whose name does not start with the host triplet. If you think this |
| 2485 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2486 | ac_tool_warned=yes ;; |
| 2487 | esac |
| 2488 | CC=$ac_ct_CC |
| 2489 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2490 | else |
| 2491 | CC="$ac_cv_prog_CC" |
| 2492 | fi |
| 2493 | |
| 2494 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2495 | if test -n "$ac_tool_prefix"; then |
| 2496 | # 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] | 2497 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2498 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | if test -n "$CC"; then |
| 2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2505 | else |
| 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2507 | for as_dir in $PATH |
| 2508 | do |
| 2509 | IFS=$as_save_IFS |
| 2510 | test -z "$as_dir" && as_dir=. |
| 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2513 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2515 | break 2 |
| 2516 | fi |
| 2517 | done |
| 2518 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2519 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2520 | |
| 2521 | fi |
| 2522 | fi |
| 2523 | CC=$ac_cv_prog_CC |
| 2524 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2525 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2526 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2527 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2529 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2532 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2533 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | fi |
| 2535 | if test -z "$CC"; then |
| 2536 | # Extract the first word of "cc", so it can be a program name with args. |
| 2537 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2538 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2540 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2542 | else |
| 2543 | if test -n "$CC"; then |
| 2544 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2545 | else |
| 2546 | ac_prog_rejected=no |
| 2547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2548 | for as_dir in $PATH |
| 2549 | do |
| 2550 | IFS=$as_save_IFS |
| 2551 | test -z "$as_dir" && as_dir=. |
| 2552 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2554 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2555 | ac_prog_rejected=yes |
| 2556 | continue |
| 2557 | fi |
| 2558 | ac_cv_prog_CC="cc" |
| 2559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2560 | break 2 |
| 2561 | fi |
| 2562 | done |
| 2563 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2564 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2565 | |
| 2566 | if test $ac_prog_rejected = yes; then |
| 2567 | # We found a bogon in the path, so make sure we never use it. |
| 2568 | set dummy $ac_cv_prog_CC |
| 2569 | shift |
| 2570 | if test $# != 0; then |
| 2571 | # We chose a different compiler from the bogus one. |
| 2572 | # However, it has the same basename, so the bogon will be chosen |
| 2573 | # first if we set CC to just the basename; use the full file name. |
| 2574 | shift |
| 2575 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2576 | fi |
| 2577 | fi |
| 2578 | fi |
| 2579 | fi |
| 2580 | CC=$ac_cv_prog_CC |
| 2581 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2582 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2583 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2584 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2586 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2587 | fi |
| 2588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2589 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | if test -z "$CC"; then |
| 2592 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2593 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2594 | do |
| 2595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2599 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2601 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2602 | if test -n "$CC"; then |
| 2603 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2604 | else |
| 2605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2606 | for as_dir in $PATH |
| 2607 | do |
| 2608 | IFS=$as_save_IFS |
| 2609 | test -z "$as_dir" && as_dir=. |
| 2610 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2612 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2614 | break 2 |
| 2615 | fi |
| 2616 | done |
| 2617 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2618 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | |
| 2620 | fi |
| 2621 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2622 | CC=$ac_cv_prog_CC |
| 2623 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2624 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2625 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2628 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | fi |
| 2630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2631 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2632 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | done |
| 2634 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2635 | if test -z "$CC"; then |
| 2636 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2637 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 | do |
| 2639 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2640 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2641 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2643 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2645 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2646 | if test -n "$ac_ct_CC"; then |
| 2647 | 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] | 2648 | else |
| 2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2650 | for as_dir in $PATH |
| 2651 | do |
| 2652 | IFS=$as_save_IFS |
| 2653 | test -z "$as_dir" && as_dir=. |
| 2654 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2656 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2658 | break 2 |
| 2659 | fi |
| 2660 | done |
| 2661 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2662 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | |
| 2664 | fi |
| 2665 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2666 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2667 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2669 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2672 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | fi |
| 2674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2675 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2676 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2679 | if test "x$ac_ct_CC" = x; then |
| 2680 | CC="" |
| 2681 | else |
| 2682 | case $cross_compiling:$ac_tool_warned in |
| 2683 | yes:) |
| 2684 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2685 | whose name does not start with the host triplet. If you think this |
| 2686 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2687 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2688 | whose name does not start with the host triplet. If you think this |
| 2689 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2690 | ac_tool_warned=yes ;; |
| 2691 | esac |
| 2692 | CC=$ac_ct_CC |
| 2693 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2694 | fi |
| 2695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2696 | fi |
| 2697 | |
| 2698 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2699 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2700 | See \`config.log' for more details." >&5 |
| 2701 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2702 | See \`config.log' for more details." >&2;} |
| 2703 | { (exit 1); exit 1; }; } |
| 2704 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2706 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2707 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2708 | { (ac_try="$ac_compiler --version >&5" |
| 2709 | case "(($ac_try" in |
| 2710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2711 | *) ac_try_echo=$ac_try;; |
| 2712 | esac |
| 2713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2714 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | ac_status=$? |
| 2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2717 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2718 | { (ac_try="$ac_compiler -v >&5" |
| 2719 | case "(($ac_try" in |
| 2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2721 | *) ac_try_echo=$ac_try;; |
| 2722 | esac |
| 2723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2724 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2728 | { (ac_try="$ac_compiler -V >&5" |
| 2729 | case "(($ac_try" in |
| 2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2731 | *) ac_try_echo=$ac_try;; |
| 2732 | esac |
| 2733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2734 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2735 | ac_status=$? |
| 2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2737 | (exit $ac_status); } |
| 2738 | |
| 2739 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2740 | /* confdefs.h. */ |
| 2741 | _ACEOF |
| 2742 | cat confdefs.h >>conftest.$ac_ext |
| 2743 | cat >>conftest.$ac_ext <<_ACEOF |
| 2744 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2746 | int |
| 2747 | main () |
| 2748 | { |
| 2749 | |
| 2750 | ; |
| 2751 | return 0; |
| 2752 | } |
| 2753 | _ACEOF |
| 2754 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2755 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2756 | # Try to create an executable without -o first, disregard a.out. |
| 2757 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2758 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2759 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2760 | 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] | 2761 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 | # |
| 2763 | # List of possible output files, starting from the most likely. |
| 2764 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2765 | # only as a last resort. b.out is created by i960 compilers. |
| 2766 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2767 | # |
| 2768 | # The IRIX 6 linker writes into existing files which may not be |
| 2769 | # executable, retaining their permissions. Remove them first so a |
| 2770 | # subsequent execution test works. |
| 2771 | ac_rmfiles= |
| 2772 | for ac_file in $ac_files |
| 2773 | do |
| 2774 | case $ac_file in |
| 2775 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2776 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2777 | esac |
| 2778 | done |
| 2779 | rm -f $ac_rmfiles |
| 2780 | |
| 2781 | if { (ac_try="$ac_link_default" |
| 2782 | case "(($ac_try" in |
| 2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2784 | *) ac_try_echo=$ac_try;; |
| 2785 | esac |
| 2786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2787 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2788 | ac_status=$? |
| 2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2790 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2791 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2792 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2793 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2794 | # so that the user can short-circuit this test for compilers unknown to |
| 2795 | # Autoconf. |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2796 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2797 | do |
| 2798 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2799 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2800 | *.$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] | 2801 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2802 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2803 | # We found the default executable, but exeext='' is most |
| 2804 | # certainly right. |
| 2805 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2806 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2807 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2808 | then :; else |
| 2809 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2810 | fi |
| 2811 | # We set ac_cv_exeext here because the later test for it is not |
| 2812 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2813 | # argument, so we may need to know it at that point already. |
| 2814 | # Even if this section looks crufty: it has the advantage of |
| 2815 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2816 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2817 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2818 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2819 | esac |
| 2820 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2821 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2822 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2823 | else |
| 2824 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2826 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2827 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2828 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2829 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2830 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2831 | { (exit 77); exit 77; }; } |
| 2832 | fi |
| 2833 | |
| 2834 | ac_exeext=$ac_cv_exeext |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2835 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2836 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2838 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2839 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2840 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2841 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2842 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2843 | # If not cross compiling, check that we can run a simple program. |
| 2844 | if test "$cross_compiling" != yes; then |
| 2845 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2846 | { (case "(($ac_try" in |
| 2847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2848 | *) ac_try_echo=$ac_try;; |
| 2849 | esac |
| 2850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2851 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2852 | ac_status=$? |
| 2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2854 | (exit $ac_status); }; }; then |
| 2855 | cross_compiling=no |
| 2856 | else |
| 2857 | if test "$cross_compiling" = maybe; then |
| 2858 | cross_compiling=yes |
| 2859 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2860 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2861 | If you meant to cross compile, use \`--host'. |
| 2862 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2863 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2864 | If you meant to cross compile, use \`--host'. |
| 2865 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2866 | { (exit 1); exit 1; }; } |
| 2867 | fi |
| 2868 | fi |
| 2869 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2870 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2871 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2873 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2874 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2875 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2877 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2878 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2879 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2880 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2882 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2883 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2884 | if { (ac_try="$ac_link" |
| 2885 | case "(($ac_try" in |
| 2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2887 | *) ac_try_echo=$ac_try;; |
| 2888 | esac |
| 2889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2890 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2891 | ac_status=$? |
| 2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2893 | (exit $ac_status); }; then |
| 2894 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2895 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2896 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2897 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2898 | for ac_file in conftest.exe conftest conftest.*; do |
| 2899 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2900 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2901 | *.$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] | 2902 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2903 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2904 | * ) break;; |
| 2905 | esac |
| 2906 | done |
| 2907 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2908 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2909 | See \`config.log' for more details." >&5 |
| 2910 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2911 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2912 | { (exit 1); exit 1; }; } |
| 2913 | fi |
| 2914 | |
| 2915 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2916 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2917 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2918 | |
| 2919 | rm -f conftest.$ac_ext |
| 2920 | EXEEXT=$ac_cv_exeext |
| 2921 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2922 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2923 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2924 | if test "${ac_cv_objext+set}" = set; then |
| 2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2926 | else |
| 2927 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2928 | /* confdefs.h. */ |
| 2929 | _ACEOF |
| 2930 | cat confdefs.h >>conftest.$ac_ext |
| 2931 | cat >>conftest.$ac_ext <<_ACEOF |
| 2932 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2933 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2934 | int |
| 2935 | main () |
| 2936 | { |
| 2937 | |
| 2938 | ; |
| 2939 | return 0; |
| 2940 | } |
| 2941 | _ACEOF |
| 2942 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2943 | if { (ac_try="$ac_compile" |
| 2944 | case "(($ac_try" in |
| 2945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2946 | *) ac_try_echo=$ac_try;; |
| 2947 | esac |
| 2948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2949 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | ac_status=$? |
| 2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2952 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2953 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2954 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2955 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2956 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2957 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2958 | break;; |
| 2959 | esac |
| 2960 | done |
| 2961 | else |
| 2962 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2964 | |
| 2965 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2966 | See \`config.log' for more details." >&5 |
| 2967 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2968 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | { (exit 1); exit 1; }; } |
| 2970 | fi |
| 2971 | |
| 2972 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2973 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2974 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2975 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2976 | OBJEXT=$ac_cv_objext |
| 2977 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2978 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2979 | 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] | 2980 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2982 | else |
| 2983 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2984 | /* confdefs.h. */ |
| 2985 | _ACEOF |
| 2986 | cat confdefs.h >>conftest.$ac_ext |
| 2987 | cat >>conftest.$ac_ext <<_ACEOF |
| 2988 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2990 | int |
| 2991 | main () |
| 2992 | { |
| 2993 | #ifndef __GNUC__ |
| 2994 | choke me |
| 2995 | #endif |
| 2996 | |
| 2997 | ; |
| 2998 | return 0; |
| 2999 | } |
| 3000 | _ACEOF |
| 3001 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3002 | if { (ac_try="$ac_compile" |
| 3003 | case "(($ac_try" in |
| 3004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3005 | *) ac_try_echo=$ac_try;; |
| 3006 | esac |
| 3007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3008 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3009 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3011 | rm -f conftest.er1 |
| 3012 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3014 | (exit $ac_status); } && |
| 3015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3016 | { (case "(($ac_try" in |
| 3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3018 | *) ac_try_echo=$ac_try;; |
| 3019 | esac |
| 3020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3021 | (eval "$ac_try") 2>&5 |
| 3022 | ac_status=$? |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3024 | (exit $ac_status); }; } && |
| 3025 | { ac_try='test -s conftest.$ac_objext' |
| 3026 | { (case "(($ac_try" in |
| 3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3028 | *) ac_try_echo=$ac_try;; |
| 3029 | esac |
| 3030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3031 | (eval "$ac_try") 2>&5 |
| 3032 | ac_status=$? |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3035 | ac_compiler_gnu=yes |
| 3036 | else |
| 3037 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3040 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3042 | |
| 3043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3044 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3045 | |
| 3046 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3047 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3048 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3049 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3050 | ac_test_CFLAGS=${CFLAGS+set} |
| 3051 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3052 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3053 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3054 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3056 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3057 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3058 | ac_c_werror_flag=yes |
| 3059 | ac_cv_prog_cc_g=no |
| 3060 | CFLAGS="-g" |
| 3061 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3062 | /* confdefs.h. */ |
| 3063 | _ACEOF |
| 3064 | cat confdefs.h >>conftest.$ac_ext |
| 3065 | cat >>conftest.$ac_ext <<_ACEOF |
| 3066 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3067 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3068 | int |
| 3069 | main () |
| 3070 | { |
| 3071 | |
| 3072 | ; |
| 3073 | return 0; |
| 3074 | } |
| 3075 | _ACEOF |
| 3076 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3077 | if { (ac_try="$ac_compile" |
| 3078 | case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
| 3082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3083 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3084 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3086 | rm -f conftest.er1 |
| 3087 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3089 | (exit $ac_status); } && |
| 3090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3091 | { (case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3096 | (eval "$ac_try") 2>&5 |
| 3097 | ac_status=$? |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3099 | (exit $ac_status); }; } && |
| 3100 | { ac_try='test -s conftest.$ac_objext' |
| 3101 | { (case "(($ac_try" in |
| 3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3103 | *) ac_try_echo=$ac_try;; |
| 3104 | esac |
| 3105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3106 | (eval "$ac_try") 2>&5 |
| 3107 | ac_status=$? |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3110 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3111 | else |
| 3112 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3115 | CFLAGS="" |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
| 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
| 3122 | |
| 3123 | int |
| 3124 | main () |
| 3125 | { |
| 3126 | |
| 3127 | ; |
| 3128 | return 0; |
| 3129 | } |
| 3130 | _ACEOF |
| 3131 | rm -f conftest.$ac_objext |
| 3132 | if { (ac_try="$ac_compile" |
| 3133 | case "(($ac_try" in |
| 3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3135 | *) ac_try_echo=$ac_try;; |
| 3136 | esac |
| 3137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3138 | (eval "$ac_compile") 2>conftest.er1 |
| 3139 | ac_status=$? |
| 3140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3141 | rm -f conftest.er1 |
| 3142 | cat conftest.err >&5 |
| 3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3144 | (exit $ac_status); } && |
| 3145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3146 | { (case "(($ac_try" in |
| 3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3148 | *) ac_try_echo=$ac_try;; |
| 3149 | esac |
| 3150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3151 | (eval "$ac_try") 2>&5 |
| 3152 | ac_status=$? |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3154 | (exit $ac_status); }; } && |
| 3155 | { ac_try='test -s conftest.$ac_objext' |
| 3156 | { (case "(($ac_try" in |
| 3157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3158 | *) ac_try_echo=$ac_try;; |
| 3159 | esac |
| 3160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3161 | (eval "$ac_try") 2>&5 |
| 3162 | ac_status=$? |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3165 | : |
| 3166 | else |
| 3167 | echo "$as_me: failed program was:" >&5 |
| 3168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3169 | |
| 3170 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3171 | CFLAGS="-g" |
| 3172 | cat >conftest.$ac_ext <<_ACEOF |
| 3173 | /* confdefs.h. */ |
| 3174 | _ACEOF |
| 3175 | cat confdefs.h >>conftest.$ac_ext |
| 3176 | cat >>conftest.$ac_ext <<_ACEOF |
| 3177 | /* end confdefs.h. */ |
| 3178 | |
| 3179 | int |
| 3180 | main () |
| 3181 | { |
| 3182 | |
| 3183 | ; |
| 3184 | return 0; |
| 3185 | } |
| 3186 | _ACEOF |
| 3187 | rm -f conftest.$ac_objext |
| 3188 | if { (ac_try="$ac_compile" |
| 3189 | case "(($ac_try" in |
| 3190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3191 | *) ac_try_echo=$ac_try;; |
| 3192 | esac |
| 3193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3194 | (eval "$ac_compile") 2>conftest.er1 |
| 3195 | ac_status=$? |
| 3196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3197 | rm -f conftest.er1 |
| 3198 | cat conftest.err >&5 |
| 3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3200 | (exit $ac_status); } && |
| 3201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3202 | { (case "(($ac_try" in |
| 3203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3204 | *) ac_try_echo=$ac_try;; |
| 3205 | esac |
| 3206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3207 | (eval "$ac_try") 2>&5 |
| 3208 | ac_status=$? |
| 3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3210 | (exit $ac_status); }; } && |
| 3211 | { ac_try='test -s conftest.$ac_objext' |
| 3212 | { (case "(($ac_try" in |
| 3213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3214 | *) ac_try_echo=$ac_try;; |
| 3215 | esac |
| 3216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3217 | (eval "$ac_try") 2>&5 |
| 3218 | ac_status=$? |
| 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3220 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3221 | ac_cv_prog_cc_g=yes |
| 3222 | else |
| 3223 | echo "$as_me: failed program was:" >&5 |
| 3224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3225 | |
| 3226 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3228 | |
| 3229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3230 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3231 | |
| 3232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3233 | fi |
| 3234 | |
| 3235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3236 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3237 | fi |
| 3238 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3239 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3240 | if test "$ac_test_CFLAGS" = set; then |
| 3241 | CFLAGS=$ac_save_CFLAGS |
| 3242 | elif test $ac_cv_prog_cc_g = yes; then |
| 3243 | if test "$GCC" = yes; then |
| 3244 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3245 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3246 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3247 | fi |
| 3248 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3249 | if test "$GCC" = yes; then |
| 3250 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3251 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3252 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3253 | fi |
| 3254 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3255 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3256 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3257 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3259 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3260 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3261 | ac_save_CC=$CC |
| 3262 | cat >conftest.$ac_ext <<_ACEOF |
| 3263 | /* confdefs.h. */ |
| 3264 | _ACEOF |
| 3265 | cat confdefs.h >>conftest.$ac_ext |
| 3266 | cat >>conftest.$ac_ext <<_ACEOF |
| 3267 | /* end confdefs.h. */ |
| 3268 | #include <stdarg.h> |
| 3269 | #include <stdio.h> |
| 3270 | #include <sys/types.h> |
| 3271 | #include <sys/stat.h> |
| 3272 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3273 | struct buf { int x; }; |
| 3274 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3275 | static char *e (p, i) |
| 3276 | char **p; |
| 3277 | int i; |
| 3278 | { |
| 3279 | return p[i]; |
| 3280 | } |
| 3281 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3282 | { |
| 3283 | char *s; |
| 3284 | va_list v; |
| 3285 | va_start (v,p); |
| 3286 | s = g (p, va_arg (v,int)); |
| 3287 | va_end (v); |
| 3288 | return s; |
| 3289 | } |
| 3290 | |
| 3291 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3292 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3293 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3294 | 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] | 3295 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3296 | 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] | 3297 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3298 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3299 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3300 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3301 | inside strings and character constants. */ |
| 3302 | #define FOO(x) 'x' |
| 3303 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3304 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3305 | int test (int i, double x); |
| 3306 | struct s1 {int (*f) (int a);}; |
| 3307 | struct s2 {int (*f) (double a);}; |
| 3308 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3309 | int argc; |
| 3310 | char **argv; |
| 3311 | int |
| 3312 | main () |
| 3313 | { |
| 3314 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3315 | ; |
| 3316 | return 0; |
| 3317 | } |
| 3318 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3319 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3320 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3321 | do |
| 3322 | CC="$ac_save_CC $ac_arg" |
| 3323 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3324 | if { (ac_try="$ac_compile" |
| 3325 | case "(($ac_try" in |
| 3326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3327 | *) ac_try_echo=$ac_try;; |
| 3328 | esac |
| 3329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3330 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3331 | ac_status=$? |
| 3332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3333 | rm -f conftest.er1 |
| 3334 | cat conftest.err >&5 |
| 3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3336 | (exit $ac_status); } && |
| 3337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3338 | { (case "(($ac_try" in |
| 3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3340 | *) ac_try_echo=$ac_try;; |
| 3341 | esac |
| 3342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3343 | (eval "$ac_try") 2>&5 |
| 3344 | ac_status=$? |
| 3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3346 | (exit $ac_status); }; } && |
| 3347 | { ac_try='test -s conftest.$ac_objext' |
| 3348 | { (case "(($ac_try" in |
| 3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3350 | *) ac_try_echo=$ac_try;; |
| 3351 | esac |
| 3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3353 | (eval "$ac_try") 2>&5 |
| 3354 | ac_status=$? |
| 3355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3356 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3357 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3358 | else |
| 3359 | echo "$as_me: failed program was:" >&5 |
| 3360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3362 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3363 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3364 | |
| 3365 | rm -f core conftest.err conftest.$ac_objext |
| 3366 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3367 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3368 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3369 | CC=$ac_save_CC |
| 3370 | |
| 3371 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3372 | # AC_CACHE_VAL |
| 3373 | case "x$ac_cv_prog_cc_c89" in |
| 3374 | x) |
| 3375 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3376 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3377 | xno) |
| 3378 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3379 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3380 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3381 | CC="$CC $ac_cv_prog_cc_c89" |
| 3382 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3383 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3384 | esac |
| 3385 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3386 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3387 | ac_ext=c |
| 3388 | ac_cpp='$CPP $CPPFLAGS' |
| 3389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3392 | |
| 3393 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3394 | ac_ext=c |
| 3395 | ac_cpp='$CPP $CPPFLAGS' |
| 3396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3399 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3400 | 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] | 3401 | # On Suns, sometimes $CPP names a directory. |
| 3402 | if test -n "$CPP" && test -d "$CPP"; then |
| 3403 | CPP= |
| 3404 | fi |
| 3405 | if test -z "$CPP"; then |
| 3406 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3408 | else |
| 3409 | # Double quotes because CPP needs to be expanded |
| 3410 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3411 | do |
| 3412 | ac_preproc_ok=false |
| 3413 | for ac_c_preproc_warn_flag in '' yes |
| 3414 | do |
| 3415 | # Use a header file that comes with gcc, so configuring glibc |
| 3416 | # with a fresh cross-compiler works. |
| 3417 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3418 | # <limits.h> exists even on freestanding compilers. |
| 3419 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3420 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3421 | cat >conftest.$ac_ext <<_ACEOF |
| 3422 | /* confdefs.h. */ |
| 3423 | _ACEOF |
| 3424 | cat confdefs.h >>conftest.$ac_ext |
| 3425 | cat >>conftest.$ac_ext <<_ACEOF |
| 3426 | /* end confdefs.h. */ |
| 3427 | #ifdef __STDC__ |
| 3428 | # include <limits.h> |
| 3429 | #else |
| 3430 | # include <assert.h> |
| 3431 | #endif |
| 3432 | Syntax error |
| 3433 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3434 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3435 | case "(($ac_try" in |
| 3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3437 | *) ac_try_echo=$ac_try;; |
| 3438 | esac |
| 3439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3440 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3441 | ac_status=$? |
| 3442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3443 | rm -f conftest.er1 |
| 3444 | cat conftest.err >&5 |
| 3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3446 | (exit $ac_status); } >/dev/null; then |
| 3447 | if test -s conftest.err; then |
| 3448 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3449 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3450 | else |
| 3451 | ac_cpp_err= |
| 3452 | fi |
| 3453 | else |
| 3454 | ac_cpp_err=yes |
| 3455 | fi |
| 3456 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3457 | : |
| 3458 | else |
| 3459 | echo "$as_me: failed program was:" >&5 |
| 3460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3461 | |
| 3462 | # Broken: fails on valid input. |
| 3463 | continue |
| 3464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3465 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3466 | rm -f conftest.err conftest.$ac_ext |
| 3467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3468 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3469 | # can be detected and how. |
| 3470 | cat >conftest.$ac_ext <<_ACEOF |
| 3471 | /* confdefs.h. */ |
| 3472 | _ACEOF |
| 3473 | cat confdefs.h >>conftest.$ac_ext |
| 3474 | cat >>conftest.$ac_ext <<_ACEOF |
| 3475 | /* end confdefs.h. */ |
| 3476 | #include <ac_nonexistent.h> |
| 3477 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3478 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3479 | case "(($ac_try" in |
| 3480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3481 | *) ac_try_echo=$ac_try;; |
| 3482 | esac |
| 3483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3484 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3485 | ac_status=$? |
| 3486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3487 | rm -f conftest.er1 |
| 3488 | cat conftest.err >&5 |
| 3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3490 | (exit $ac_status); } >/dev/null; then |
| 3491 | if test -s conftest.err; then |
| 3492 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3494 | else |
| 3495 | ac_cpp_err= |
| 3496 | fi |
| 3497 | else |
| 3498 | ac_cpp_err=yes |
| 3499 | fi |
| 3500 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3501 | # Broken: success on invalid input. |
| 3502 | continue |
| 3503 | else |
| 3504 | echo "$as_me: failed program was:" >&5 |
| 3505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3506 | |
| 3507 | # Passes both tests. |
| 3508 | ac_preproc_ok=: |
| 3509 | break |
| 3510 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3511 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3512 | rm -f conftest.err conftest.$ac_ext |
| 3513 | |
| 3514 | done |
| 3515 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3516 | rm -f conftest.err conftest.$ac_ext |
| 3517 | if $ac_preproc_ok; then |
| 3518 | break |
| 3519 | fi |
| 3520 | |
| 3521 | done |
| 3522 | ac_cv_prog_CPP=$CPP |
| 3523 | |
| 3524 | fi |
| 3525 | CPP=$ac_cv_prog_CPP |
| 3526 | else |
| 3527 | ac_cv_prog_CPP=$CPP |
| 3528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3529 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3530 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3531 | ac_preproc_ok=false |
| 3532 | for ac_c_preproc_warn_flag in '' yes |
| 3533 | do |
| 3534 | # Use a header file that comes with gcc, so configuring glibc |
| 3535 | # with a fresh cross-compiler works. |
| 3536 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3537 | # <limits.h> exists even on freestanding compilers. |
| 3538 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3539 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3540 | cat >conftest.$ac_ext <<_ACEOF |
| 3541 | /* confdefs.h. */ |
| 3542 | _ACEOF |
| 3543 | cat confdefs.h >>conftest.$ac_ext |
| 3544 | cat >>conftest.$ac_ext <<_ACEOF |
| 3545 | /* end confdefs.h. */ |
| 3546 | #ifdef __STDC__ |
| 3547 | # include <limits.h> |
| 3548 | #else |
| 3549 | # include <assert.h> |
| 3550 | #endif |
| 3551 | Syntax error |
| 3552 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3553 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3554 | case "(($ac_try" in |
| 3555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3556 | *) ac_try_echo=$ac_try;; |
| 3557 | esac |
| 3558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3559 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3560 | ac_status=$? |
| 3561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3562 | rm -f conftest.er1 |
| 3563 | cat conftest.err >&5 |
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3565 | (exit $ac_status); } >/dev/null; then |
| 3566 | if test -s conftest.err; then |
| 3567 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3568 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3569 | else |
| 3570 | ac_cpp_err= |
| 3571 | fi |
| 3572 | else |
| 3573 | ac_cpp_err=yes |
| 3574 | fi |
| 3575 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3576 | : |
| 3577 | else |
| 3578 | echo "$as_me: failed program was:" >&5 |
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
| 3581 | # Broken: fails on valid input. |
| 3582 | continue |
| 3583 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3584 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3585 | rm -f conftest.err conftest.$ac_ext |
| 3586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3587 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3588 | # can be detected and how. |
| 3589 | cat >conftest.$ac_ext <<_ACEOF |
| 3590 | /* confdefs.h. */ |
| 3591 | _ACEOF |
| 3592 | cat confdefs.h >>conftest.$ac_ext |
| 3593 | cat >>conftest.$ac_ext <<_ACEOF |
| 3594 | /* end confdefs.h. */ |
| 3595 | #include <ac_nonexistent.h> |
| 3596 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3597 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3598 | case "(($ac_try" in |
| 3599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3600 | *) ac_try_echo=$ac_try;; |
| 3601 | esac |
| 3602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3603 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3604 | ac_status=$? |
| 3605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3606 | rm -f conftest.er1 |
| 3607 | cat conftest.err >&5 |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3609 | (exit $ac_status); } >/dev/null; then |
| 3610 | if test -s conftest.err; then |
| 3611 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3612 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3613 | else |
| 3614 | ac_cpp_err= |
| 3615 | fi |
| 3616 | else |
| 3617 | ac_cpp_err=yes |
| 3618 | fi |
| 3619 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3620 | # Broken: success on invalid input. |
| 3621 | continue |
| 3622 | else |
| 3623 | echo "$as_me: failed program was:" >&5 |
| 3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3625 | |
| 3626 | # Passes both tests. |
| 3627 | ac_preproc_ok=: |
| 3628 | break |
| 3629 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3630 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3631 | rm -f conftest.err conftest.$ac_ext |
| 3632 | |
| 3633 | done |
| 3634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3635 | rm -f conftest.err conftest.$ac_ext |
| 3636 | if $ac_preproc_ok; then |
| 3637 | : |
| 3638 | else |
| 3639 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3640 | See \`config.log' for more details." >&5 |
| 3641 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3642 | See \`config.log' for more details." >&2;} |
| 3643 | { (exit 1); exit 1; }; } |
| 3644 | fi |
| 3645 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3646 | ac_ext=c |
| 3647 | ac_cpp='$CPP $CPPFLAGS' |
| 3648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3651 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3652 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3653 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3654 | 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] | 3655 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3657 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3658 | # Extract the first word of "grep ggrep" to use in msg output |
| 3659 | if test -z "$GREP"; then |
| 3660 | set dummy grep ggrep; ac_prog_name=$2 |
| 3661 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3663 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3664 | ac_path_GREP_found=false |
| 3665 | # 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] | 3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3667 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3668 | do |
| 3669 | IFS=$as_save_IFS |
| 3670 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3671 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3672 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3673 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3674 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3675 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3676 | # Check for GNU $ac_path_GREP |
| 3677 | case `"$ac_path_GREP" --version 2>&1` in |
| 3678 | *GNU*) |
| 3679 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3680 | *) |
| 3681 | ac_count=0 |
| 3682 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3683 | while : |
| 3684 | do |
| 3685 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3686 | mv "conftest.tmp" "conftest.in" |
| 3687 | cp "conftest.in" "conftest.nl" |
| 3688 | echo 'GREP' >> "conftest.nl" |
| 3689 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3690 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3691 | ac_count=`expr $ac_count + 1` |
| 3692 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3693 | # Best one so far, save it but keep looking for a better one |
| 3694 | ac_cv_path_GREP="$ac_path_GREP" |
| 3695 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3696 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3697 | # 10*(2^10) chars as input seems more than enough |
| 3698 | test $ac_count -gt 10 && break |
| 3699 | done |
| 3700 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3701 | esac |
| 3702 | |
| 3703 | |
| 3704 | $ac_path_GREP_found && break 3 |
| 3705 | done |
| 3706 | done |
| 3707 | |
| 3708 | done |
| 3709 | IFS=$as_save_IFS |
| 3710 | |
| 3711 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3712 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3713 | |
| 3714 | GREP="$ac_cv_path_GREP" |
| 3715 | if test -z "$GREP"; then |
| 3716 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3717 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3718 | { (exit 1); exit 1; }; } |
| 3719 | fi |
| 3720 | |
| 3721 | else |
| 3722 | ac_cv_path_GREP=$GREP |
| 3723 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3724 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3726 | fi |
| 3727 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3728 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3729 | GREP="$ac_cv_path_GREP" |
| 3730 | |
| 3731 | |
| 3732 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3733 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3734 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3736 | else |
| 3737 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3738 | then ac_cv_path_EGREP="$GREP -E" |
| 3739 | else |
| 3740 | # Extract the first word of "egrep" to use in msg output |
| 3741 | if test -z "$EGREP"; then |
| 3742 | set dummy egrep; ac_prog_name=$2 |
| 3743 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3745 | else |
| 3746 | ac_path_EGREP_found=false |
| 3747 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3749 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3750 | do |
| 3751 | IFS=$as_save_IFS |
| 3752 | test -z "$as_dir" && as_dir=. |
| 3753 | for ac_prog in egrep; do |
| 3754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3755 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3756 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3757 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3758 | # Check for GNU $ac_path_EGREP |
| 3759 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3760 | *GNU*) |
| 3761 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3762 | *) |
| 3763 | ac_count=0 |
| 3764 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3765 | while : |
| 3766 | do |
| 3767 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3768 | mv "conftest.tmp" "conftest.in" |
| 3769 | cp "conftest.in" "conftest.nl" |
| 3770 | echo 'EGREP' >> "conftest.nl" |
| 3771 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3772 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3773 | ac_count=`expr $ac_count + 1` |
| 3774 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3775 | # Best one so far, save it but keep looking for a better one |
| 3776 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3777 | ac_path_EGREP_max=$ac_count |
| 3778 | fi |
| 3779 | # 10*(2^10) chars as input seems more than enough |
| 3780 | test $ac_count -gt 10 && break |
| 3781 | done |
| 3782 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3783 | esac |
| 3784 | |
| 3785 | |
| 3786 | $ac_path_EGREP_found && break 3 |
| 3787 | done |
| 3788 | done |
| 3789 | |
| 3790 | done |
| 3791 | IFS=$as_save_IFS |
| 3792 | |
| 3793 | |
| 3794 | fi |
| 3795 | |
| 3796 | EGREP="$ac_cv_path_EGREP" |
| 3797 | if test -z "$EGREP"; then |
| 3798 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3799 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3800 | { (exit 1); exit 1; }; } |
| 3801 | fi |
| 3802 | |
| 3803 | else |
| 3804 | ac_cv_path_EGREP=$EGREP |
| 3805 | fi |
| 3806 | |
| 3807 | |
| 3808 | fi |
| 3809 | fi |
| 3810 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3811 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3812 | EGREP="$ac_cv_path_EGREP" |
| 3813 | |
| 3814 | |
| 3815 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3816 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3817 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3819 | else |
| 3820 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3821 | /* confdefs.h. */ |
| 3822 | _ACEOF |
| 3823 | cat confdefs.h >>conftest.$ac_ext |
| 3824 | cat >>conftest.$ac_ext <<_ACEOF |
| 3825 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3826 | #include <stdlib.h> |
| 3827 | #include <stdarg.h> |
| 3828 | #include <string.h> |
| 3829 | #include <float.h> |
| 3830 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3831 | int |
| 3832 | main () |
| 3833 | { |
| 3834 | |
| 3835 | ; |
| 3836 | return 0; |
| 3837 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3838 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3839 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | if { (ac_try="$ac_compile" |
| 3841 | case "(($ac_try" in |
| 3842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3843 | *) ac_try_echo=$ac_try;; |
| 3844 | esac |
| 3845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3846 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3847 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3849 | rm -f conftest.er1 |
| 3850 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 3852 | (exit $ac_status); } && |
| 3853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3854 | { (case "(($ac_try" in |
| 3855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3856 | *) ac_try_echo=$ac_try;; |
| 3857 | esac |
| 3858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3859 | (eval "$ac_try") 2>&5 |
| 3860 | ac_status=$? |
| 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3862 | (exit $ac_status); }; } && |
| 3863 | { ac_try='test -s conftest.$ac_objext' |
| 3864 | { (case "(($ac_try" in |
| 3865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3866 | *) ac_try_echo=$ac_try;; |
| 3867 | esac |
| 3868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3869 | (eval "$ac_try") 2>&5 |
| 3870 | ac_status=$? |
| 3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3872 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3873 | ac_cv_header_stdc=yes |
| 3874 | else |
| 3875 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3878 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3880 | |
| 3881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3882 | |
| 3883 | if test $ac_cv_header_stdc = yes; then |
| 3884 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3885 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3886 | /* confdefs.h. */ |
| 3887 | _ACEOF |
| 3888 | cat confdefs.h >>conftest.$ac_ext |
| 3889 | cat >>conftest.$ac_ext <<_ACEOF |
| 3890 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3891 | #include <string.h> |
| 3892 | |
| 3893 | _ACEOF |
| 3894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3895 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3896 | : |
| 3897 | else |
| 3898 | ac_cv_header_stdc=no |
| 3899 | fi |
| 3900 | rm -f conftest* |
| 3901 | |
| 3902 | fi |
| 3903 | |
| 3904 | if test $ac_cv_header_stdc = yes; then |
| 3905 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3906 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3907 | /* confdefs.h. */ |
| 3908 | _ACEOF |
| 3909 | cat confdefs.h >>conftest.$ac_ext |
| 3910 | cat >>conftest.$ac_ext <<_ACEOF |
| 3911 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3912 | #include <stdlib.h> |
| 3913 | |
| 3914 | _ACEOF |
| 3915 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3916 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 | : |
| 3918 | else |
| 3919 | ac_cv_header_stdc=no |
| 3920 | fi |
| 3921 | rm -f conftest* |
| 3922 | |
| 3923 | fi |
| 3924 | |
| 3925 | if test $ac_cv_header_stdc = yes; then |
| 3926 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3927 | if test "$cross_compiling" = yes; then |
| 3928 | : |
| 3929 | else |
| 3930 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3931 | /* confdefs.h. */ |
| 3932 | _ACEOF |
| 3933 | cat confdefs.h >>conftest.$ac_ext |
| 3934 | cat >>conftest.$ac_ext <<_ACEOF |
| 3935 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3936 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3937 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3938 | #if ((' ' & 0x0FF) == 0x020) |
| 3939 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3940 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3941 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3942 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3943 | (('a' <= (c) && (c) <= 'i') \ |
| 3944 | || ('j' <= (c) && (c) <= 'r') \ |
| 3945 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3946 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3947 | #endif |
| 3948 | |
| 3949 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3950 | int |
| 3951 | main () |
| 3952 | { |
| 3953 | int i; |
| 3954 | for (i = 0; i < 256; i++) |
| 3955 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3956 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3957 | return 2; |
| 3958 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3959 | } |
| 3960 | _ACEOF |
| 3961 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3962 | if { (ac_try="$ac_link" |
| 3963 | case "(($ac_try" in |
| 3964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3965 | *) ac_try_echo=$ac_try;; |
| 3966 | esac |
| 3967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3968 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3969 | ac_status=$? |
| 3970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3972 | { (case "(($ac_try" in |
| 3973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3974 | *) ac_try_echo=$ac_try;; |
| 3975 | esac |
| 3976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3977 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3978 | ac_status=$? |
| 3979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3980 | (exit $ac_status); }; }; then |
| 3981 | : |
| 3982 | else |
| 3983 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3984 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3986 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3987 | ( exit $ac_status ) |
| 3988 | ac_cv_header_stdc=no |
| 3989 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3990 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3991 | fi |
| 3992 | |
| 3993 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3994 | fi |
| 3995 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3996 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3997 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3998 | if test $ac_cv_header_stdc = yes; then |
| 3999 | |
| 4000 | cat >>confdefs.h <<\_ACEOF |
| 4001 | #define STDC_HEADERS 1 |
| 4002 | _ACEOF |
| 4003 | |
| 4004 | fi |
| 4005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4006 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | |
| 4013 | |
| 4014 | |
| 4015 | |
| 4016 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4017 | inttypes.h stdint.h unistd.h |
| 4018 | do |
| 4019 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4020 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4022 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4024 | else |
| 4025 | cat >conftest.$ac_ext <<_ACEOF |
| 4026 | /* confdefs.h. */ |
| 4027 | _ACEOF |
| 4028 | cat confdefs.h >>conftest.$ac_ext |
| 4029 | cat >>conftest.$ac_ext <<_ACEOF |
| 4030 | /* end confdefs.h. */ |
| 4031 | $ac_includes_default |
| 4032 | |
| 4033 | #include <$ac_header> |
| 4034 | _ACEOF |
| 4035 | rm -f conftest.$ac_objext |
| 4036 | if { (ac_try="$ac_compile" |
| 4037 | case "(($ac_try" in |
| 4038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4039 | *) ac_try_echo=$ac_try;; |
| 4040 | esac |
| 4041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4042 | (eval "$ac_compile") 2>conftest.er1 |
| 4043 | ac_status=$? |
| 4044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4045 | rm -f conftest.er1 |
| 4046 | cat conftest.err >&5 |
| 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4048 | (exit $ac_status); } && |
| 4049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4050 | { (case "(($ac_try" in |
| 4051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4052 | *) ac_try_echo=$ac_try;; |
| 4053 | esac |
| 4054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4055 | (eval "$ac_try") 2>&5 |
| 4056 | ac_status=$? |
| 4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4058 | (exit $ac_status); }; } && |
| 4059 | { ac_try='test -s conftest.$ac_objext' |
| 4060 | { (case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4065 | (eval "$ac_try") 2>&5 |
| 4066 | ac_status=$? |
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4068 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4069 | eval "$as_ac_Header=yes" |
| 4070 | else |
| 4071 | echo "$as_me: failed program was:" >&5 |
| 4072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4073 | |
| 4074 | eval "$as_ac_Header=no" |
| 4075 | fi |
| 4076 | |
| 4077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4078 | fi |
| 4079 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4080 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4081 | echo "${ECHO_T}$ac_res" >&6; } |
| 4082 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4083 | cat >>confdefs.h <<_ACEOF |
| 4084 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4085 | _ACEOF |
| 4086 | |
| 4087 | fi |
| 4088 | |
| 4089 | done |
| 4090 | |
| 4091 | |
| 4092 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4093 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4094 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4096 | else |
| 4097 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4098 | cat >conftest.$ac_ext <<_ACEOF |
| 4099 | /* confdefs.h. */ |
| 4100 | _ACEOF |
| 4101 | cat confdefs.h >>conftest.$ac_ext |
| 4102 | cat >>conftest.$ac_ext <<_ACEOF |
| 4103 | /* end confdefs.h. */ |
| 4104 | #include <sys/types.h> |
| 4105 | #include <sys/param.h> |
| 4106 | |
| 4107 | int |
| 4108 | main () |
| 4109 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4110 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4111 | bogus endian macros |
| 4112 | #endif |
| 4113 | |
| 4114 | ; |
| 4115 | return 0; |
| 4116 | } |
| 4117 | _ACEOF |
| 4118 | rm -f conftest.$ac_objext |
| 4119 | if { (ac_try="$ac_compile" |
| 4120 | case "(($ac_try" in |
| 4121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4122 | *) ac_try_echo=$ac_try;; |
| 4123 | esac |
| 4124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4125 | (eval "$ac_compile") 2>conftest.er1 |
| 4126 | ac_status=$? |
| 4127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4128 | rm -f conftest.er1 |
| 4129 | cat conftest.err >&5 |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4131 | (exit $ac_status); } && |
| 4132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4133 | { (case "(($ac_try" in |
| 4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4135 | *) ac_try_echo=$ac_try;; |
| 4136 | esac |
| 4137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4138 | (eval "$ac_try") 2>&5 |
| 4139 | ac_status=$? |
| 4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4141 | (exit $ac_status); }; } && |
| 4142 | { ac_try='test -s conftest.$ac_objext' |
| 4143 | { (case "(($ac_try" in |
| 4144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4145 | *) ac_try_echo=$ac_try;; |
| 4146 | esac |
| 4147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4148 | (eval "$ac_try") 2>&5 |
| 4149 | ac_status=$? |
| 4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4151 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4152 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4153 | cat >conftest.$ac_ext <<_ACEOF |
| 4154 | /* confdefs.h. */ |
| 4155 | _ACEOF |
| 4156 | cat confdefs.h >>conftest.$ac_ext |
| 4157 | cat >>conftest.$ac_ext <<_ACEOF |
| 4158 | /* end confdefs.h. */ |
| 4159 | #include <sys/types.h> |
| 4160 | #include <sys/param.h> |
| 4161 | |
| 4162 | int |
| 4163 | main () |
| 4164 | { |
| 4165 | #if BYTE_ORDER != BIG_ENDIAN |
| 4166 | not big endian |
| 4167 | #endif |
| 4168 | |
| 4169 | ; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
| 4173 | rm -f conftest.$ac_objext |
| 4174 | if { (ac_try="$ac_compile" |
| 4175 | case "(($ac_try" in |
| 4176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4177 | *) ac_try_echo=$ac_try;; |
| 4178 | esac |
| 4179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4180 | (eval "$ac_compile") 2>conftest.er1 |
| 4181 | ac_status=$? |
| 4182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4183 | rm -f conftest.er1 |
| 4184 | cat conftest.err >&5 |
| 4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4186 | (exit $ac_status); } && |
| 4187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4188 | { (case "(($ac_try" in |
| 4189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4190 | *) ac_try_echo=$ac_try;; |
| 4191 | esac |
| 4192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4193 | (eval "$ac_try") 2>&5 |
| 4194 | ac_status=$? |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | (exit $ac_status); }; } && |
| 4197 | { ac_try='test -s conftest.$ac_objext' |
| 4198 | { (case "(($ac_try" in |
| 4199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4200 | *) ac_try_echo=$ac_try;; |
| 4201 | esac |
| 4202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4203 | (eval "$ac_try") 2>&5 |
| 4204 | ac_status=$? |
| 4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4206 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4207 | ac_cv_c_bigendian=yes |
| 4208 | else |
| 4209 | echo "$as_me: failed program was:" >&5 |
| 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4211 | |
| 4212 | ac_cv_c_bigendian=no |
| 4213 | fi |
| 4214 | |
| 4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4216 | else |
| 4217 | echo "$as_me: failed program was:" >&5 |
| 4218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4219 | |
| 4220 | # It does not; compile a test program. |
| 4221 | if test "$cross_compiling" = yes; then |
| 4222 | # try to guess the endianness by grepping values into an object file |
| 4223 | ac_cv_c_bigendian=unknown |
| 4224 | cat >conftest.$ac_ext <<_ACEOF |
| 4225 | /* confdefs.h. */ |
| 4226 | _ACEOF |
| 4227 | cat confdefs.h >>conftest.$ac_ext |
| 4228 | cat >>conftest.$ac_ext <<_ACEOF |
| 4229 | /* end confdefs.h. */ |
| 4230 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4231 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4232 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4233 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4234 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4235 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4236 | int |
| 4237 | main () |
| 4238 | { |
| 4239 | _ascii (); _ebcdic (); |
| 4240 | ; |
| 4241 | return 0; |
| 4242 | } |
| 4243 | _ACEOF |
| 4244 | rm -f conftest.$ac_objext |
| 4245 | if { (ac_try="$ac_compile" |
| 4246 | case "(($ac_try" in |
| 4247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4248 | *) ac_try_echo=$ac_try;; |
| 4249 | esac |
| 4250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4251 | (eval "$ac_compile") 2>conftest.er1 |
| 4252 | ac_status=$? |
| 4253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4254 | rm -f conftest.er1 |
| 4255 | cat conftest.err >&5 |
| 4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4257 | (exit $ac_status); } && |
| 4258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4259 | { (case "(($ac_try" in |
| 4260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4261 | *) ac_try_echo=$ac_try;; |
| 4262 | esac |
| 4263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4264 | (eval "$ac_try") 2>&5 |
| 4265 | ac_status=$? |
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4267 | (exit $ac_status); }; } && |
| 4268 | { ac_try='test -s conftest.$ac_objext' |
| 4269 | { (case "(($ac_try" in |
| 4270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4271 | *) ac_try_echo=$ac_try;; |
| 4272 | esac |
| 4273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4274 | (eval "$ac_try") 2>&5 |
| 4275 | ac_status=$? |
| 4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4277 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4278 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4279 | ac_cv_c_bigendian=yes |
| 4280 | fi |
| 4281 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4282 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4283 | ac_cv_c_bigendian=no |
| 4284 | else |
| 4285 | # finding both strings is unlikely to happen, but who knows? |
| 4286 | ac_cv_c_bigendian=unknown |
| 4287 | fi |
| 4288 | fi |
| 4289 | else |
| 4290 | echo "$as_me: failed program was:" >&5 |
| 4291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4292 | |
| 4293 | |
| 4294 | fi |
| 4295 | |
| 4296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4297 | else |
| 4298 | cat >conftest.$ac_ext <<_ACEOF |
| 4299 | /* confdefs.h. */ |
| 4300 | _ACEOF |
| 4301 | cat confdefs.h >>conftest.$ac_ext |
| 4302 | cat >>conftest.$ac_ext <<_ACEOF |
| 4303 | /* end confdefs.h. */ |
| 4304 | $ac_includes_default |
| 4305 | int |
| 4306 | main () |
| 4307 | { |
| 4308 | |
| 4309 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4310 | union |
| 4311 | { |
| 4312 | long int l; |
| 4313 | char c[sizeof (long int)]; |
| 4314 | } u; |
| 4315 | u.l = 1; |
| 4316 | return u.c[sizeof (long int) - 1] == 1; |
| 4317 | |
| 4318 | ; |
| 4319 | return 0; |
| 4320 | } |
| 4321 | _ACEOF |
| 4322 | rm -f conftest$ac_exeext |
| 4323 | if { (ac_try="$ac_link" |
| 4324 | case "(($ac_try" in |
| 4325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4326 | *) ac_try_echo=$ac_try;; |
| 4327 | esac |
| 4328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4329 | (eval "$ac_link") 2>&5 |
| 4330 | ac_status=$? |
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4333 | { (case "(($ac_try" in |
| 4334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4335 | *) ac_try_echo=$ac_try;; |
| 4336 | esac |
| 4337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4338 | (eval "$ac_try") 2>&5 |
| 4339 | ac_status=$? |
| 4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4341 | (exit $ac_status); }; }; then |
| 4342 | ac_cv_c_bigendian=no |
| 4343 | else |
| 4344 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4345 | echo "$as_me: failed program was:" >&5 |
| 4346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4347 | |
| 4348 | ( exit $ac_status ) |
| 4349 | ac_cv_c_bigendian=yes |
| 4350 | fi |
| 4351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4352 | fi |
| 4353 | |
| 4354 | |
| 4355 | fi |
| 4356 | |
| 4357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4358 | fi |
| 4359 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4360 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4361 | case $ac_cv_c_bigendian in |
| 4362 | yes) |
| 4363 | ENDIAN=big |
| 4364 | ;; |
| 4365 | no) |
| 4366 | ENDIAN=little |
| 4367 | ;; |
| 4368 | *) |
| 4369 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4370 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4371 | echo "$as_me: error: unknown endianness |
| 4372 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4373 | { (exit 1); exit 1; }; } ;; |
| 4374 | esac |
| 4375 | |
| 4376 | |
| 4377 | if test "$cross_compiling" = yes; then |
| 4378 | LLVM_CROSS_COMPILING=1 |
| 4379 | |
| 4380 | |
| 4381 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4382 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4383 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4385 | else |
| 4386 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4387 | ac_cv_build_exeext=.exe |
| 4388 | else |
| 4389 | ac_build_prefix=${build_alias}- |
| 4390 | |
| 4391 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4392 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4393 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4395 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4397 | else |
| 4398 | if test -n "$BUILD_CC"; then |
| 4399 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4400 | else |
| 4401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4402 | for as_dir in $PATH |
| 4403 | do |
| 4404 | IFS=$as_save_IFS |
| 4405 | test -z "$as_dir" && as_dir=. |
| 4406 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4408 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4410 | break 2 |
| 4411 | fi |
| 4412 | done |
| 4413 | done |
| 4414 | IFS=$as_save_IFS |
| 4415 | |
| 4416 | fi |
| 4417 | fi |
| 4418 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4419 | if test -n "$BUILD_CC"; then |
| 4420 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4421 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4422 | else |
| 4423 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4424 | echo "${ECHO_T}no" >&6; } |
| 4425 | fi |
| 4426 | |
| 4427 | |
| 4428 | if test -z "$BUILD_CC"; then |
| 4429 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4430 | set dummy gcc; ac_word=$2 |
| 4431 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4433 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4435 | else |
| 4436 | if test -n "$BUILD_CC"; then |
| 4437 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4438 | else |
| 4439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4440 | for as_dir in $PATH |
| 4441 | do |
| 4442 | IFS=$as_save_IFS |
| 4443 | test -z "$as_dir" && as_dir=. |
| 4444 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4446 | ac_cv_prog_BUILD_CC="gcc" |
| 4447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4448 | break 2 |
| 4449 | fi |
| 4450 | done |
| 4451 | done |
| 4452 | IFS=$as_save_IFS |
| 4453 | |
| 4454 | fi |
| 4455 | fi |
| 4456 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4457 | if test -n "$BUILD_CC"; then |
| 4458 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4459 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4460 | else |
| 4461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4462 | echo "${ECHO_T}no" >&6; } |
| 4463 | fi |
| 4464 | |
| 4465 | |
| 4466 | if test -z "$BUILD_CC"; then |
| 4467 | # Extract the first word of "cc", so it can be a program name with args. |
| 4468 | set dummy cc; ac_word=$2 |
| 4469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4471 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4473 | else |
| 4474 | if test -n "$BUILD_CC"; then |
| 4475 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4476 | else |
| 4477 | ac_prog_rejected=no |
| 4478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4479 | for as_dir in $PATH |
| 4480 | do |
| 4481 | IFS=$as_save_IFS |
| 4482 | test -z "$as_dir" && as_dir=. |
| 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4485 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4486 | ac_prog_rejected=yes |
| 4487 | continue |
| 4488 | fi |
| 4489 | ac_cv_prog_BUILD_CC="cc" |
| 4490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4491 | break 2 |
| 4492 | fi |
| 4493 | done |
| 4494 | done |
| 4495 | IFS=$as_save_IFS |
| 4496 | |
| 4497 | if test $ac_prog_rejected = yes; then |
| 4498 | # We found a bogon in the path, so make sure we never use it. |
| 4499 | set dummy $ac_cv_prog_BUILD_CC |
| 4500 | shift |
| 4501 | if test $# != 0; then |
| 4502 | # We chose a different compiler from the bogus one. |
| 4503 | # However, it has the same basename, so the bogon will be chosen |
| 4504 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4505 | shift |
| 4506 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4507 | fi |
| 4508 | fi |
| 4509 | fi |
| 4510 | fi |
| 4511 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4512 | if test -n "$BUILD_CC"; then |
| 4513 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4514 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4515 | else |
| 4516 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4517 | echo "${ECHO_T}no" >&6; } |
| 4518 | fi |
| 4519 | |
| 4520 | |
| 4521 | fi |
| 4522 | fi |
| 4523 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4524 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4525 | { (exit 1); exit 1; }; } |
| 4526 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4527 | rm -f conftest* |
| 4528 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4529 | ac_cv_build_exeext= |
| 4530 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4531 | (eval $ac_build_link) 2>&5 |
| 4532 | ac_status=$? |
| 4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4534 | (exit $ac_status); }; then |
| 4535 | for file in conftest.*; do |
| 4536 | case $file in |
| 4537 | *.c | *.o | *.obj) ;; |
| 4538 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4539 | esac |
| 4540 | done |
| 4541 | else |
| 4542 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4543 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4544 | { (exit 1); exit 1; }; } |
| 4545 | fi |
| 4546 | rm -f conftest* |
| 4547 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4548 | fi |
| 4549 | fi |
| 4550 | |
| 4551 | BUILD_EXEEXT="" |
| 4552 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4553 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4554 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4555 | ac_build_exeext=$BUILD_EXEEXT |
| 4556 | |
| 4557 | else |
| 4558 | LLVM_CROSS_COMPILING=0 |
| 4559 | |
| 4560 | fi |
| 4561 | |
Reid Spencer | 0b1e466 | 2007-04-02 15:41:39 +0000 | [diff] [blame] | 4562 | 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] | 4563 | cvsbuild="yes" |
| 4564 | optimize="no" |
| 4565 | CVSBUILD=CVSBUILD=1 |
| 4566 | |
| 4567 | else |
| 4568 | cvsbuild="no" |
| 4569 | optimize="yes" |
| 4570 | fi |
| 4571 | |
| 4572 | |
| 4573 | # Check whether --enable-optimized was given. |
| 4574 | if test "${enable_optimized+set}" = set; then |
| 4575 | enableval=$enable_optimized; |
| 4576 | else |
| 4577 | enableval=$optimize |
| 4578 | fi |
| 4579 | |
| 4580 | if test ${enableval} = "no" ; then |
| 4581 | ENABLE_OPTIMIZED= |
| 4582 | |
| 4583 | else |
| 4584 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4585 | |
| 4586 | fi |
| 4587 | |
| 4588 | # Check whether --enable-assertions was given. |
| 4589 | if test "${enable_assertions+set}" = set; then |
| 4590 | enableval=$enable_assertions; |
| 4591 | else |
| 4592 | enableval="yes" |
| 4593 | fi |
| 4594 | |
| 4595 | if test ${enableval} = "yes" ; then |
| 4596 | DISABLE_ASSERTIONS= |
| 4597 | |
| 4598 | else |
| 4599 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4600 | |
| 4601 | fi |
| 4602 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4603 | # Check whether --enable-expensive-checks was given. |
| 4604 | if test "${enable_expensive_checks+set}" = set; then |
| 4605 | enableval=$enable_expensive_checks; |
| 4606 | else |
| 4607 | enableval="no" |
| 4608 | fi |
| 4609 | |
| 4610 | if test ${enableval} = "yes" ; then |
| 4611 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4612 | |
| 4613 | EXPENSIVE_CHECKS=yes |
| 4614 | |
| 4615 | else |
| 4616 | ENABLE_EXPENSIVE_CHECKS= |
| 4617 | |
| 4618 | EXPENSIVE_CHECKS=no |
| 4619 | |
| 4620 | fi |
| 4621 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4622 | # Check whether --enable-debug-runtime was given. |
| 4623 | if test "${enable_debug_runtime+set}" = set; then |
| 4624 | enableval=$enable_debug_runtime; |
| 4625 | else |
| 4626 | enableval=no |
| 4627 | fi |
| 4628 | |
| 4629 | if test ${enableval} = "no" ; then |
| 4630 | DEBUG_RUNTIME= |
| 4631 | |
| 4632 | else |
| 4633 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4634 | |
| 4635 | fi |
| 4636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4637 | # Check whether --enable-jit was given. |
| 4638 | if test "${enable_jit+set}" = set; then |
| 4639 | enableval=$enable_jit; |
| 4640 | else |
| 4641 | enableval=default |
| 4642 | fi |
| 4643 | |
| 4644 | if test ${enableval} = "no" |
| 4645 | then |
| 4646 | JIT= |
| 4647 | |
| 4648 | else |
| 4649 | case "$llvm_cv_target_arch" in |
| 4650 | x86) TARGET_HAS_JIT=1 |
| 4651 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4652 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4653 | ;; |
| 4654 | PowerPC) TARGET_HAS_JIT=1 |
| 4655 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4656 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4657 | ;; |
| 4658 | Alpha) TARGET_HAS_JIT=1 |
| 4659 | ;; |
| 4660 | IA64) TARGET_HAS_JIT=0 |
| 4661 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4662 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4663 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4664 | Mips) TARGET_HAS_JIT=0 |
| 4665 | ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame^] | 4666 | PIC16) TARGET_HAS_JIT=0 |
| 4667 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4668 | *) TARGET_HAS_JIT=0 |
| 4669 | ;; |
| 4670 | esac |
| 4671 | fi |
| 4672 | |
| 4673 | # Check whether --enable-doxygen was given. |
| 4674 | if test "${enable_doxygen+set}" = set; then |
| 4675 | enableval=$enable_doxygen; |
| 4676 | else |
| 4677 | enableval=default |
| 4678 | fi |
| 4679 | |
| 4680 | case "$enableval" in |
| 4681 | yes) ENABLE_DOXYGEN=1 |
| 4682 | ;; |
| 4683 | no) ENABLE_DOXYGEN=0 |
| 4684 | ;; |
| 4685 | default) ENABLE_DOXYGEN=0 |
| 4686 | ;; |
| 4687 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4688 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4689 | { (exit 1); exit 1; }; } ;; |
| 4690 | esac |
| 4691 | |
| 4692 | # Check whether --enable-threads was given. |
| 4693 | if test "${enable_threads+set}" = set; then |
| 4694 | enableval=$enable_threads; |
| 4695 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4696 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4697 | fi |
| 4698 | |
| 4699 | case "$enableval" in |
| 4700 | yes) ENABLE_THREADS=1 |
| 4701 | ;; |
| 4702 | no) ENABLE_THREADS=0 |
| 4703 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4704 | default) ENABLE_THREADS=1 |
| 4705 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4706 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4707 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4708 | { (exit 1); exit 1; }; } ;; |
| 4709 | esac |
| 4710 | |
| 4711 | cat >>confdefs.h <<_ACEOF |
| 4712 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4713 | _ACEOF |
| 4714 | |
| 4715 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4716 | # Check whether --enable-pic was given. |
| 4717 | if test "${enable_pic+set}" = set; then |
| 4718 | enableval=$enable_pic; |
| 4719 | else |
| 4720 | enableval=default |
| 4721 | fi |
| 4722 | |
| 4723 | case "$enableval" in |
| 4724 | yes) ENABLE_PIC=1 |
| 4725 | ;; |
| 4726 | no) ENABLE_PIC=0 |
| 4727 | ;; |
| 4728 | default) ENABLE_PIC=0 |
| 4729 | ;; |
| 4730 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4731 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4732 | { (exit 1); exit 1; }; } ;; |
| 4733 | esac |
| 4734 | |
| 4735 | cat >>confdefs.h <<_ACEOF |
| 4736 | #define ENABLE_PIC $ENABLE_PIC |
| 4737 | _ACEOF |
| 4738 | |
| 4739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4740 | TARGETS_TO_BUILD="" |
| 4741 | # Check whether --enable-targets was given. |
| 4742 | if test "${enable_targets+set}" = set; then |
| 4743 | enableval=$enable_targets; |
| 4744 | else |
| 4745 | enableval=all |
| 4746 | fi |
| 4747 | |
| 4748 | case "$enableval" in |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame^] | 4749 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL CppBackend PIC16" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4750 | host-only) |
| 4751 | case "$llvm_cv_target_arch" in |
| 4752 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4753 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4754 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4755 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4756 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4757 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4758 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4759 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame^] | 4760 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4761 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4762 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4763 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4764 | { (exit 1); exit 1; }; } ;; |
| 4765 | esac |
| 4766 | ;; |
| 4767 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4768 | case "$a_target" in |
| 4769 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4770 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4771 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4772 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4773 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4774 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4775 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4776 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame^] | 4777 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4778 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4779 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4780 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 4781 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4782 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4783 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4784 | { (exit 1); exit 1; }; } ;; |
| 4785 | esac |
| 4786 | done |
| 4787 | ;; |
| 4788 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4789 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4790 | |
| 4791 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4792 | # Check whether --enable-cbe-printf-a was given. |
| 4793 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4794 | enableval=$enable_cbe_printf_a; |
| 4795 | else |
| 4796 | enableval=default |
| 4797 | fi |
| 4798 | |
| 4799 | case "$enableval" in |
| 4800 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4801 | ;; |
| 4802 | no) ENABLE_CBE_PRINTF_A=0 |
| 4803 | ;; |
| 4804 | default) ENABLE_CBE_PRINTF_A=1 |
| 4805 | ;; |
| 4806 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4807 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4808 | { (exit 1); exit 1; }; } ;; |
| 4809 | esac |
| 4810 | |
| 4811 | cat >>confdefs.h <<_ACEOF |
| 4812 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4813 | _ACEOF |
| 4814 | |
| 4815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4816 | |
| 4817 | # Check whether --with-llvmgccdir was given. |
| 4818 | if test "${with_llvmgccdir+set}" = set; then |
| 4819 | withval=$with_llvmgccdir; |
| 4820 | else |
| 4821 | withval=default |
| 4822 | fi |
| 4823 | |
| 4824 | case "$withval" in |
| 4825 | default) WITH_LLVMGCCDIR=default ;; |
| 4826 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4827 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4828 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4829 | { (exit 1); exit 1; }; } ;; |
| 4830 | esac |
| 4831 | |
| 4832 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4833 | # Check whether --with-llvmgcc was given. |
| 4834 | if test "${with_llvmgcc+set}" = set; then |
| 4835 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4836 | WITH_LLVMGCCDIR="" |
| 4837 | fi |
| 4838 | |
| 4839 | |
| 4840 | |
| 4841 | # Check whether --with-llvmgxx was given. |
| 4842 | if test "${with_llvmgxx+set}" = set; then |
| 4843 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4844 | WITH_LLVMGCCDIR="" |
| 4845 | fi |
| 4846 | |
| 4847 | |
| 4848 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 4849 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 4850 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 4851 | { (exit 1); exit 1; }; }; |
| 4852 | fi |
| 4853 | |
| 4854 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 4855 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 4856 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 4857 | { (exit 1); exit 1; }; }; |
| 4858 | fi |
| 4859 | |
| 4860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4861 | # Check whether --with-extra-options was given. |
| 4862 | if test "${with_extra_options+set}" = set; then |
| 4863 | withval=$with_extra_options; |
| 4864 | else |
| 4865 | withval=default |
| 4866 | fi |
| 4867 | |
| 4868 | case "$withval" in |
| 4869 | default) EXTRA_OPTIONS= ;; |
| 4870 | *) EXTRA_OPTIONS=$withval ;; |
| 4871 | esac |
| 4872 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4873 | |
| 4874 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4875 | # Check whether --enable-bindings was given. |
| 4876 | if test "${enable_bindings+set}" = set; then |
| 4877 | enableval=$enable_bindings; |
| 4878 | else |
| 4879 | enableval=default |
| 4880 | fi |
| 4881 | |
| 4882 | BINDINGS_TO_BUILD="" |
| 4883 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 4884 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4885 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 4886 | none | no) BINDINGS_TO_BUILD="" ;; |
| 4887 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4888 | case "$a_binding" in |
| 4889 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 4890 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 4891 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 4892 | { (exit 1); exit 1; }; } ;; |
| 4893 | esac |
| 4894 | done |
| 4895 | ;; |
| 4896 | esac |
| 4897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4898 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 4899 | # Check whether --with-ocaml-libdir was given. |
| 4900 | if test "${with_ocaml_libdir+set}" = set; then |
| 4901 | withval=$with_ocaml_libdir; |
| 4902 | else |
| 4903 | withval=auto |
| 4904 | fi |
| 4905 | |
| 4906 | case "$withval" in |
| 4907 | auto) with_ocaml_libdir="$withval" ;; |
| 4908 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 4909 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 4910 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 4911 | { (exit 1); exit 1; }; } ;; |
| 4912 | esac |
| 4913 | |
| 4914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4915 | ac_ext=c |
| 4916 | ac_cpp='$CPP $CPPFLAGS' |
| 4917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4920 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4921 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4922 | # On Suns, sometimes $CPP names a directory. |
| 4923 | if test -n "$CPP" && test -d "$CPP"; then |
| 4924 | CPP= |
| 4925 | fi |
| 4926 | if test -z "$CPP"; then |
| 4927 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4929 | else |
| 4930 | # Double quotes because CPP needs to be expanded |
| 4931 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4932 | do |
| 4933 | ac_preproc_ok=false |
| 4934 | for ac_c_preproc_warn_flag in '' yes |
| 4935 | do |
| 4936 | # Use a header file that comes with gcc, so configuring glibc |
| 4937 | # with a fresh cross-compiler works. |
| 4938 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4939 | # <limits.h> exists even on freestanding compilers. |
| 4940 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4941 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4942 | cat >conftest.$ac_ext <<_ACEOF |
| 4943 | /* confdefs.h. */ |
| 4944 | _ACEOF |
| 4945 | cat confdefs.h >>conftest.$ac_ext |
| 4946 | cat >>conftest.$ac_ext <<_ACEOF |
| 4947 | /* end confdefs.h. */ |
| 4948 | #ifdef __STDC__ |
| 4949 | # include <limits.h> |
| 4950 | #else |
| 4951 | # include <assert.h> |
| 4952 | #endif |
| 4953 | Syntax error |
| 4954 | _ACEOF |
| 4955 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4956 | case "(($ac_try" in |
| 4957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4958 | *) ac_try_echo=$ac_try;; |
| 4959 | esac |
| 4960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4961 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4962 | ac_status=$? |
| 4963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4964 | rm -f conftest.er1 |
| 4965 | cat conftest.err >&5 |
| 4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 4967 | (exit $ac_status); } >/dev/null; then |
| 4968 | if test -s conftest.err; then |
| 4969 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4971 | else |
| 4972 | ac_cpp_err= |
| 4973 | fi |
| 4974 | else |
| 4975 | ac_cpp_err=yes |
| 4976 | fi |
| 4977 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4978 | : |
| 4979 | else |
| 4980 | echo "$as_me: failed program was:" >&5 |
| 4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4982 | |
| 4983 | # Broken: fails on valid input. |
| 4984 | continue |
| 4985 | fi |
| 4986 | |
| 4987 | rm -f conftest.err conftest.$ac_ext |
| 4988 | |
| 4989 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4990 | # can be detected and how. |
| 4991 | cat >conftest.$ac_ext <<_ACEOF |
| 4992 | /* confdefs.h. */ |
| 4993 | _ACEOF |
| 4994 | cat confdefs.h >>conftest.$ac_ext |
| 4995 | cat >>conftest.$ac_ext <<_ACEOF |
| 4996 | /* end confdefs.h. */ |
| 4997 | #include <ac_nonexistent.h> |
| 4998 | _ACEOF |
| 4999 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5000 | case "(($ac_try" in |
| 5001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5002 | *) ac_try_echo=$ac_try;; |
| 5003 | esac |
| 5004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5006 | ac_status=$? |
| 5007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5008 | rm -f conftest.er1 |
| 5009 | cat conftest.err >&5 |
| 5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5011 | (exit $ac_status); } >/dev/null; then |
| 5012 | if test -s conftest.err; then |
| 5013 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5015 | else |
| 5016 | ac_cpp_err= |
| 5017 | fi |
| 5018 | else |
| 5019 | ac_cpp_err=yes |
| 5020 | fi |
| 5021 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5022 | # Broken: success on invalid input. |
| 5023 | continue |
| 5024 | else |
| 5025 | echo "$as_me: failed program was:" >&5 |
| 5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5027 | |
| 5028 | # Passes both tests. |
| 5029 | ac_preproc_ok=: |
| 5030 | break |
| 5031 | fi |
| 5032 | |
| 5033 | rm -f conftest.err conftest.$ac_ext |
| 5034 | |
| 5035 | done |
| 5036 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5037 | rm -f conftest.err conftest.$ac_ext |
| 5038 | if $ac_preproc_ok; then |
| 5039 | break |
| 5040 | fi |
| 5041 | |
| 5042 | done |
| 5043 | ac_cv_prog_CPP=$CPP |
| 5044 | |
| 5045 | fi |
| 5046 | CPP=$ac_cv_prog_CPP |
| 5047 | else |
| 5048 | ac_cv_prog_CPP=$CPP |
| 5049 | fi |
| 5050 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5051 | echo "${ECHO_T}$CPP" >&6; } |
| 5052 | ac_preproc_ok=false |
| 5053 | for ac_c_preproc_warn_flag in '' yes |
| 5054 | do |
| 5055 | # Use a header file that comes with gcc, so configuring glibc |
| 5056 | # with a fresh cross-compiler works. |
| 5057 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5058 | # <limits.h> exists even on freestanding compilers. |
| 5059 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5060 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5061 | cat >conftest.$ac_ext <<_ACEOF |
| 5062 | /* confdefs.h. */ |
| 5063 | _ACEOF |
| 5064 | cat confdefs.h >>conftest.$ac_ext |
| 5065 | cat >>conftest.$ac_ext <<_ACEOF |
| 5066 | /* end confdefs.h. */ |
| 5067 | #ifdef __STDC__ |
| 5068 | # include <limits.h> |
| 5069 | #else |
| 5070 | # include <assert.h> |
| 5071 | #endif |
| 5072 | Syntax error |
| 5073 | _ACEOF |
| 5074 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5075 | case "(($ac_try" in |
| 5076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5077 | *) ac_try_echo=$ac_try;; |
| 5078 | esac |
| 5079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5080 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5081 | ac_status=$? |
| 5082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5083 | rm -f conftest.er1 |
| 5084 | cat conftest.err >&5 |
| 5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5086 | (exit $ac_status); } >/dev/null; then |
| 5087 | if test -s conftest.err; then |
| 5088 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5089 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5090 | else |
| 5091 | ac_cpp_err= |
| 5092 | fi |
| 5093 | else |
| 5094 | ac_cpp_err=yes |
| 5095 | fi |
| 5096 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5097 | : |
| 5098 | else |
| 5099 | echo "$as_me: failed program was:" >&5 |
| 5100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5101 | |
| 5102 | # Broken: fails on valid input. |
| 5103 | continue |
| 5104 | fi |
| 5105 | |
| 5106 | rm -f conftest.err conftest.$ac_ext |
| 5107 | |
| 5108 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5109 | # can be detected and how. |
| 5110 | cat >conftest.$ac_ext <<_ACEOF |
| 5111 | /* confdefs.h. */ |
| 5112 | _ACEOF |
| 5113 | cat confdefs.h >>conftest.$ac_ext |
| 5114 | cat >>conftest.$ac_ext <<_ACEOF |
| 5115 | /* end confdefs.h. */ |
| 5116 | #include <ac_nonexistent.h> |
| 5117 | _ACEOF |
| 5118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5119 | case "(($ac_try" in |
| 5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5121 | *) ac_try_echo=$ac_try;; |
| 5122 | esac |
| 5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5124 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5125 | ac_status=$? |
| 5126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5127 | rm -f conftest.er1 |
| 5128 | cat conftest.err >&5 |
| 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5130 | (exit $ac_status); } >/dev/null; then |
| 5131 | if test -s conftest.err; then |
| 5132 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5133 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5134 | else |
| 5135 | ac_cpp_err= |
| 5136 | fi |
| 5137 | else |
| 5138 | ac_cpp_err=yes |
| 5139 | fi |
| 5140 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5141 | # Broken: success on invalid input. |
| 5142 | continue |
| 5143 | else |
| 5144 | echo "$as_me: failed program was:" >&5 |
| 5145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5146 | |
| 5147 | # Passes both tests. |
| 5148 | ac_preproc_ok=: |
| 5149 | break |
| 5150 | fi |
| 5151 | |
| 5152 | rm -f conftest.err conftest.$ac_ext |
| 5153 | |
| 5154 | done |
| 5155 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5156 | rm -f conftest.err conftest.$ac_ext |
| 5157 | if $ac_preproc_ok; then |
| 5158 | : |
| 5159 | else |
| 5160 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5161 | See \`config.log' for more details." >&5 |
| 5162 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5163 | See \`config.log' for more details." >&2;} |
| 5164 | { (exit 1); exit 1; }; } |
| 5165 | fi |
| 5166 | |
| 5167 | ac_ext=c |
| 5168 | ac_cpp='$CPP $CPPFLAGS' |
| 5169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5172 | |
| 5173 | ac_ext=c |
| 5174 | ac_cpp='$CPP $CPPFLAGS' |
| 5175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5178 | if test -n "$ac_tool_prefix"; then |
| 5179 | for ac_prog in gcc |
| 5180 | do |
| 5181 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5182 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5183 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5185 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5187 | else |
| 5188 | if test -n "$CC"; then |
| 5189 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5190 | else |
| 5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5192 | for as_dir in $PATH |
| 5193 | do |
| 5194 | IFS=$as_save_IFS |
| 5195 | test -z "$as_dir" && as_dir=. |
| 5196 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5198 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5200 | break 2 |
| 5201 | fi |
| 5202 | done |
| 5203 | done |
| 5204 | IFS=$as_save_IFS |
| 5205 | |
| 5206 | fi |
| 5207 | fi |
| 5208 | CC=$ac_cv_prog_CC |
| 5209 | if test -n "$CC"; then |
| 5210 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5211 | echo "${ECHO_T}$CC" >&6; } |
| 5212 | else |
| 5213 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5214 | echo "${ECHO_T}no" >&6; } |
| 5215 | fi |
| 5216 | |
| 5217 | |
| 5218 | test -n "$CC" && break |
| 5219 | done |
| 5220 | fi |
| 5221 | if test -z "$CC"; then |
| 5222 | ac_ct_CC=$CC |
| 5223 | for ac_prog in gcc |
| 5224 | do |
| 5225 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5226 | set dummy $ac_prog; ac_word=$2 |
| 5227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5229 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5231 | else |
| 5232 | if test -n "$ac_ct_CC"; then |
| 5233 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5234 | else |
| 5235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5236 | for as_dir in $PATH |
| 5237 | do |
| 5238 | IFS=$as_save_IFS |
| 5239 | test -z "$as_dir" && as_dir=. |
| 5240 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5242 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5244 | break 2 |
| 5245 | fi |
| 5246 | done |
| 5247 | done |
| 5248 | IFS=$as_save_IFS |
| 5249 | |
| 5250 | fi |
| 5251 | fi |
| 5252 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5253 | if test -n "$ac_ct_CC"; then |
| 5254 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5255 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5256 | else |
| 5257 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5258 | echo "${ECHO_T}no" >&6; } |
| 5259 | fi |
| 5260 | |
| 5261 | |
| 5262 | test -n "$ac_ct_CC" && break |
| 5263 | done |
| 5264 | |
| 5265 | if test "x$ac_ct_CC" = x; then |
| 5266 | CC="" |
| 5267 | else |
| 5268 | case $cross_compiling:$ac_tool_warned in |
| 5269 | yes:) |
| 5270 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5271 | whose name does not start with the host triplet. If you think this |
| 5272 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5273 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5274 | whose name does not start with the host triplet. If you think this |
| 5275 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5276 | ac_tool_warned=yes ;; |
| 5277 | esac |
| 5278 | CC=$ac_ct_CC |
| 5279 | fi |
| 5280 | fi |
| 5281 | |
| 5282 | |
| 5283 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5284 | See \`config.log' for more details." >&5 |
| 5285 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5286 | See \`config.log' for more details." >&2;} |
| 5287 | { (exit 1); exit 1; }; } |
| 5288 | |
| 5289 | # Provide some information about the compiler. |
| 5290 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5291 | ac_compiler=`set X $ac_compile; echo $2` |
| 5292 | { (ac_try="$ac_compiler --version >&5" |
| 5293 | case "(($ac_try" in |
| 5294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5295 | *) ac_try_echo=$ac_try;; |
| 5296 | esac |
| 5297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5298 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5299 | ac_status=$? |
| 5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5301 | (exit $ac_status); } |
| 5302 | { (ac_try="$ac_compiler -v >&5" |
| 5303 | case "(($ac_try" in |
| 5304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5305 | *) ac_try_echo=$ac_try;; |
| 5306 | esac |
| 5307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5308 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5309 | ac_status=$? |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5311 | (exit $ac_status); } |
| 5312 | { (ac_try="$ac_compiler -V >&5" |
| 5313 | case "(($ac_try" in |
| 5314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5315 | *) ac_try_echo=$ac_try;; |
| 5316 | esac |
| 5317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5318 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5319 | ac_status=$? |
| 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5321 | (exit $ac_status); } |
| 5322 | |
| 5323 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5324 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5325 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5327 | else |
| 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 | |
| 5335 | int |
| 5336 | main () |
| 5337 | { |
| 5338 | #ifndef __GNUC__ |
| 5339 | choke me |
| 5340 | #endif |
| 5341 | |
| 5342 | ; |
| 5343 | return 0; |
| 5344 | } |
| 5345 | _ACEOF |
| 5346 | rm -f conftest.$ac_objext |
| 5347 | if { (ac_try="$ac_compile" |
| 5348 | case "(($ac_try" in |
| 5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5350 | *) ac_try_echo=$ac_try;; |
| 5351 | esac |
| 5352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5353 | (eval "$ac_compile") 2>conftest.er1 |
| 5354 | ac_status=$? |
| 5355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5356 | rm -f conftest.er1 |
| 5357 | cat conftest.err >&5 |
| 5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5359 | (exit $ac_status); } && |
| 5360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5361 | { (case "(($ac_try" in |
| 5362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5363 | *) ac_try_echo=$ac_try;; |
| 5364 | esac |
| 5365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5366 | (eval "$ac_try") 2>&5 |
| 5367 | ac_status=$? |
| 5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5369 | (exit $ac_status); }; } && |
| 5370 | { ac_try='test -s conftest.$ac_objext' |
| 5371 | { (case "(($ac_try" in |
| 5372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5373 | *) ac_try_echo=$ac_try;; |
| 5374 | esac |
| 5375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5376 | (eval "$ac_try") 2>&5 |
| 5377 | ac_status=$? |
| 5378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5379 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5380 | ac_compiler_gnu=yes |
| 5381 | else |
| 5382 | echo "$as_me: failed program was:" >&5 |
| 5383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5384 | |
| 5385 | ac_compiler_gnu=no |
| 5386 | fi |
| 5387 | |
| 5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5389 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5390 | |
| 5391 | fi |
| 5392 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5393 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5394 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5395 | ac_test_CFLAGS=${CFLAGS+set} |
| 5396 | ac_save_CFLAGS=$CFLAGS |
| 5397 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5398 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5399 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5401 | else |
| 5402 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5403 | ac_c_werror_flag=yes |
| 5404 | ac_cv_prog_cc_g=no |
| 5405 | CFLAGS="-g" |
| 5406 | cat >conftest.$ac_ext <<_ACEOF |
| 5407 | /* confdefs.h. */ |
| 5408 | _ACEOF |
| 5409 | cat confdefs.h >>conftest.$ac_ext |
| 5410 | cat >>conftest.$ac_ext <<_ACEOF |
| 5411 | /* end confdefs.h. */ |
| 5412 | |
| 5413 | int |
| 5414 | main () |
| 5415 | { |
| 5416 | |
| 5417 | ; |
| 5418 | return 0; |
| 5419 | } |
| 5420 | _ACEOF |
| 5421 | rm -f conftest.$ac_objext |
| 5422 | if { (ac_try="$ac_compile" |
| 5423 | case "(($ac_try" in |
| 5424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5425 | *) ac_try_echo=$ac_try;; |
| 5426 | esac |
| 5427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5428 | (eval "$ac_compile") 2>conftest.er1 |
| 5429 | ac_status=$? |
| 5430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5431 | rm -f conftest.er1 |
| 5432 | cat conftest.err >&5 |
| 5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5434 | (exit $ac_status); } && |
| 5435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5436 | { (case "(($ac_try" in |
| 5437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5438 | *) ac_try_echo=$ac_try;; |
| 5439 | esac |
| 5440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5441 | (eval "$ac_try") 2>&5 |
| 5442 | ac_status=$? |
| 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5444 | (exit $ac_status); }; } && |
| 5445 | { ac_try='test -s conftest.$ac_objext' |
| 5446 | { (case "(($ac_try" in |
| 5447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5448 | *) ac_try_echo=$ac_try;; |
| 5449 | esac |
| 5450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5451 | (eval "$ac_try") 2>&5 |
| 5452 | ac_status=$? |
| 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5454 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | ac_cv_prog_cc_g=yes |
| 5456 | else |
| 5457 | echo "$as_me: failed program was:" >&5 |
| 5458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5459 | |
| 5460 | CFLAGS="" |
| 5461 | cat >conftest.$ac_ext <<_ACEOF |
| 5462 | /* confdefs.h. */ |
| 5463 | _ACEOF |
| 5464 | cat confdefs.h >>conftest.$ac_ext |
| 5465 | cat >>conftest.$ac_ext <<_ACEOF |
| 5466 | /* end confdefs.h. */ |
| 5467 | |
| 5468 | int |
| 5469 | main () |
| 5470 | { |
| 5471 | |
| 5472 | ; |
| 5473 | return 0; |
| 5474 | } |
| 5475 | _ACEOF |
| 5476 | rm -f conftest.$ac_objext |
| 5477 | if { (ac_try="$ac_compile" |
| 5478 | case "(($ac_try" in |
| 5479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5480 | *) ac_try_echo=$ac_try;; |
| 5481 | esac |
| 5482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5483 | (eval "$ac_compile") 2>conftest.er1 |
| 5484 | ac_status=$? |
| 5485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5486 | rm -f conftest.er1 |
| 5487 | cat conftest.err >&5 |
| 5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5489 | (exit $ac_status); } && |
| 5490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5491 | { (case "(($ac_try" in |
| 5492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5493 | *) ac_try_echo=$ac_try;; |
| 5494 | esac |
| 5495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5496 | (eval "$ac_try") 2>&5 |
| 5497 | ac_status=$? |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5499 | (exit $ac_status); }; } && |
| 5500 | { ac_try='test -s conftest.$ac_objext' |
| 5501 | { (case "(($ac_try" in |
| 5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5503 | *) ac_try_echo=$ac_try;; |
| 5504 | esac |
| 5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5506 | (eval "$ac_try") 2>&5 |
| 5507 | ac_status=$? |
| 5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5509 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5510 | : |
| 5511 | else |
| 5512 | echo "$as_me: failed program was:" >&5 |
| 5513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5514 | |
| 5515 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5516 | CFLAGS="-g" |
| 5517 | cat >conftest.$ac_ext <<_ACEOF |
| 5518 | /* confdefs.h. */ |
| 5519 | _ACEOF |
| 5520 | cat confdefs.h >>conftest.$ac_ext |
| 5521 | cat >>conftest.$ac_ext <<_ACEOF |
| 5522 | /* end confdefs.h. */ |
| 5523 | |
| 5524 | int |
| 5525 | main () |
| 5526 | { |
| 5527 | |
| 5528 | ; |
| 5529 | return 0; |
| 5530 | } |
| 5531 | _ACEOF |
| 5532 | rm -f conftest.$ac_objext |
| 5533 | if { (ac_try="$ac_compile" |
| 5534 | case "(($ac_try" in |
| 5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5536 | *) ac_try_echo=$ac_try;; |
| 5537 | esac |
| 5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5539 | (eval "$ac_compile") 2>conftest.er1 |
| 5540 | ac_status=$? |
| 5541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5542 | rm -f conftest.er1 |
| 5543 | cat conftest.err >&5 |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5545 | (exit $ac_status); } && |
| 5546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5547 | { (case "(($ac_try" in |
| 5548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5549 | *) ac_try_echo=$ac_try;; |
| 5550 | esac |
| 5551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5552 | (eval "$ac_try") 2>&5 |
| 5553 | ac_status=$? |
| 5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5555 | (exit $ac_status); }; } && |
| 5556 | { ac_try='test -s conftest.$ac_objext' |
| 5557 | { (case "(($ac_try" in |
| 5558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5559 | *) ac_try_echo=$ac_try;; |
| 5560 | esac |
| 5561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5562 | (eval "$ac_try") 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5566 | ac_cv_prog_cc_g=yes |
| 5567 | else |
| 5568 | echo "$as_me: failed program was:" >&5 |
| 5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5570 | |
| 5571 | |
| 5572 | fi |
| 5573 | |
| 5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5575 | fi |
| 5576 | |
| 5577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5578 | fi |
| 5579 | |
| 5580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5581 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5582 | fi |
| 5583 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5584 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5585 | if test "$ac_test_CFLAGS" = set; then |
| 5586 | CFLAGS=$ac_save_CFLAGS |
| 5587 | elif test $ac_cv_prog_cc_g = yes; then |
| 5588 | if test "$GCC" = yes; then |
| 5589 | CFLAGS="-g -O2" |
| 5590 | else |
| 5591 | CFLAGS="-g" |
| 5592 | fi |
| 5593 | else |
| 5594 | if test "$GCC" = yes; then |
| 5595 | CFLAGS="-O2" |
| 5596 | else |
| 5597 | CFLAGS= |
| 5598 | fi |
| 5599 | fi |
| 5600 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5601 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5602 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5604 | else |
| 5605 | ac_cv_prog_cc_c89=no |
| 5606 | ac_save_CC=$CC |
| 5607 | cat >conftest.$ac_ext <<_ACEOF |
| 5608 | /* confdefs.h. */ |
| 5609 | _ACEOF |
| 5610 | cat confdefs.h >>conftest.$ac_ext |
| 5611 | cat >>conftest.$ac_ext <<_ACEOF |
| 5612 | /* end confdefs.h. */ |
| 5613 | #include <stdarg.h> |
| 5614 | #include <stdio.h> |
| 5615 | #include <sys/types.h> |
| 5616 | #include <sys/stat.h> |
| 5617 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5618 | struct buf { int x; }; |
| 5619 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5620 | static char *e (p, i) |
| 5621 | char **p; |
| 5622 | int i; |
| 5623 | { |
| 5624 | return p[i]; |
| 5625 | } |
| 5626 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5627 | { |
| 5628 | char *s; |
| 5629 | va_list v; |
| 5630 | va_start (v,p); |
| 5631 | s = g (p, va_arg (v,int)); |
| 5632 | va_end (v); |
| 5633 | return s; |
| 5634 | } |
| 5635 | |
| 5636 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5637 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5638 | These don't provoke an error unfortunately, instead are silently treated |
| 5639 | as 'x'. The following induces an error, until -std is added to get |
| 5640 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5641 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5642 | that's true only with -std. */ |
| 5643 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5644 | |
| 5645 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5646 | inside strings and character constants. */ |
| 5647 | #define FOO(x) 'x' |
| 5648 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5649 | |
| 5650 | int test (int i, double x); |
| 5651 | struct s1 {int (*f) (int a);}; |
| 5652 | struct s2 {int (*f) (double a);}; |
| 5653 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5654 | int argc; |
| 5655 | char **argv; |
| 5656 | int |
| 5657 | main () |
| 5658 | { |
| 5659 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5660 | ; |
| 5661 | return 0; |
| 5662 | } |
| 5663 | _ACEOF |
| 5664 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5665 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5666 | do |
| 5667 | CC="$ac_save_CC $ac_arg" |
| 5668 | rm -f conftest.$ac_objext |
| 5669 | if { (ac_try="$ac_compile" |
| 5670 | case "(($ac_try" in |
| 5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5672 | *) ac_try_echo=$ac_try;; |
| 5673 | esac |
| 5674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5675 | (eval "$ac_compile") 2>conftest.er1 |
| 5676 | ac_status=$? |
| 5677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5678 | rm -f conftest.er1 |
| 5679 | cat conftest.err >&5 |
| 5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5681 | (exit $ac_status); } && |
| 5682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5683 | { (case "(($ac_try" in |
| 5684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5685 | *) ac_try_echo=$ac_try;; |
| 5686 | esac |
| 5687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5688 | (eval "$ac_try") 2>&5 |
| 5689 | ac_status=$? |
| 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5691 | (exit $ac_status); }; } && |
| 5692 | { ac_try='test -s conftest.$ac_objext' |
| 5693 | { (case "(($ac_try" in |
| 5694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5695 | *) ac_try_echo=$ac_try;; |
| 5696 | esac |
| 5697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5698 | (eval "$ac_try") 2>&5 |
| 5699 | ac_status=$? |
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5701 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5702 | ac_cv_prog_cc_c89=$ac_arg |
| 5703 | else |
| 5704 | echo "$as_me: failed program was:" >&5 |
| 5705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5706 | |
| 5707 | |
| 5708 | fi |
| 5709 | |
| 5710 | rm -f core conftest.err conftest.$ac_objext |
| 5711 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5712 | done |
| 5713 | rm -f conftest.$ac_ext |
| 5714 | CC=$ac_save_CC |
| 5715 | |
| 5716 | fi |
| 5717 | # AC_CACHE_VAL |
| 5718 | case "x$ac_cv_prog_cc_c89" in |
| 5719 | x) |
| 5720 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5721 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5722 | xno) |
| 5723 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5724 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5725 | *) |
| 5726 | CC="$CC $ac_cv_prog_cc_c89" |
| 5727 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5728 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5729 | esac |
| 5730 | |
| 5731 | |
| 5732 | ac_ext=c |
| 5733 | ac_cpp='$CPP $CPPFLAGS' |
| 5734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5737 | |
| 5738 | ac_ext=cpp |
| 5739 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5740 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5741 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5742 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5743 | if test -z "$CXX"; then |
| 5744 | if test -n "$CCC"; then |
| 5745 | CXX=$CCC |
| 5746 | else |
| 5747 | if test -n "$ac_tool_prefix"; then |
| 5748 | for ac_prog in g++ |
| 5749 | do |
| 5750 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5751 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5752 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5754 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5756 | else |
| 5757 | if test -n "$CXX"; then |
| 5758 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5759 | else |
| 5760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5761 | for as_dir in $PATH |
| 5762 | do |
| 5763 | IFS=$as_save_IFS |
| 5764 | test -z "$as_dir" && as_dir=. |
| 5765 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5767 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5769 | break 2 |
| 5770 | fi |
| 5771 | done |
| 5772 | done |
| 5773 | IFS=$as_save_IFS |
| 5774 | |
| 5775 | fi |
| 5776 | fi |
| 5777 | CXX=$ac_cv_prog_CXX |
| 5778 | if test -n "$CXX"; then |
| 5779 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5780 | echo "${ECHO_T}$CXX" >&6; } |
| 5781 | else |
| 5782 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5783 | echo "${ECHO_T}no" >&6; } |
| 5784 | fi |
| 5785 | |
| 5786 | |
| 5787 | test -n "$CXX" && break |
| 5788 | done |
| 5789 | fi |
| 5790 | if test -z "$CXX"; then |
| 5791 | ac_ct_CXX=$CXX |
| 5792 | for ac_prog in g++ |
| 5793 | do |
| 5794 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5795 | set dummy $ac_prog; ac_word=$2 |
| 5796 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5798 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5800 | else |
| 5801 | if test -n "$ac_ct_CXX"; then |
| 5802 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5803 | else |
| 5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5805 | for as_dir in $PATH |
| 5806 | do |
| 5807 | IFS=$as_save_IFS |
| 5808 | test -z "$as_dir" && as_dir=. |
| 5809 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5811 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5813 | break 2 |
| 5814 | fi |
| 5815 | done |
| 5816 | done |
| 5817 | IFS=$as_save_IFS |
| 5818 | |
| 5819 | fi |
| 5820 | fi |
| 5821 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5822 | if test -n "$ac_ct_CXX"; then |
| 5823 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5824 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5825 | else |
| 5826 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5827 | echo "${ECHO_T}no" >&6; } |
| 5828 | fi |
| 5829 | |
| 5830 | |
| 5831 | test -n "$ac_ct_CXX" && break |
| 5832 | done |
| 5833 | |
| 5834 | if test "x$ac_ct_CXX" = x; then |
| 5835 | CXX="g++" |
| 5836 | else |
| 5837 | case $cross_compiling:$ac_tool_warned in |
| 5838 | yes:) |
| 5839 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5840 | whose name does not start with the host triplet. If you think this |
| 5841 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5842 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5843 | whose name does not start with the host triplet. If you think this |
| 5844 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5845 | ac_tool_warned=yes ;; |
| 5846 | esac |
| 5847 | CXX=$ac_ct_CXX |
| 5848 | fi |
| 5849 | fi |
| 5850 | |
| 5851 | fi |
| 5852 | fi |
| 5853 | # Provide some information about the compiler. |
| 5854 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5855 | ac_compiler=`set X $ac_compile; echo $2` |
| 5856 | { (ac_try="$ac_compiler --version >&5" |
| 5857 | case "(($ac_try" in |
| 5858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5859 | *) ac_try_echo=$ac_try;; |
| 5860 | esac |
| 5861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5862 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5863 | ac_status=$? |
| 5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5865 | (exit $ac_status); } |
| 5866 | { (ac_try="$ac_compiler -v >&5" |
| 5867 | case "(($ac_try" in |
| 5868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5869 | *) ac_try_echo=$ac_try;; |
| 5870 | esac |
| 5871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5872 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5873 | ac_status=$? |
| 5874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5875 | (exit $ac_status); } |
| 5876 | { (ac_try="$ac_compiler -V >&5" |
| 5877 | case "(($ac_try" in |
| 5878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5879 | *) ac_try_echo=$ac_try;; |
| 5880 | esac |
| 5881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5882 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); } |
| 5886 | |
| 5887 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5888 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5889 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5891 | else |
| 5892 | cat >conftest.$ac_ext <<_ACEOF |
| 5893 | /* confdefs.h. */ |
| 5894 | _ACEOF |
| 5895 | cat confdefs.h >>conftest.$ac_ext |
| 5896 | cat >>conftest.$ac_ext <<_ACEOF |
| 5897 | /* end confdefs.h. */ |
| 5898 | |
| 5899 | int |
| 5900 | main () |
| 5901 | { |
| 5902 | #ifndef __GNUC__ |
| 5903 | choke me |
| 5904 | #endif |
| 5905 | |
| 5906 | ; |
| 5907 | return 0; |
| 5908 | } |
| 5909 | _ACEOF |
| 5910 | rm -f conftest.$ac_objext |
| 5911 | if { (ac_try="$ac_compile" |
| 5912 | case "(($ac_try" in |
| 5913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5914 | *) ac_try_echo=$ac_try;; |
| 5915 | esac |
| 5916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5917 | (eval "$ac_compile") 2>conftest.er1 |
| 5918 | ac_status=$? |
| 5919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5920 | rm -f conftest.er1 |
| 5921 | cat conftest.err >&5 |
| 5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5923 | (exit $ac_status); } && |
| 5924 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5925 | { (case "(($ac_try" in |
| 5926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5927 | *) ac_try_echo=$ac_try;; |
| 5928 | esac |
| 5929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5930 | (eval "$ac_try") 2>&5 |
| 5931 | ac_status=$? |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); }; } && |
| 5934 | { ac_try='test -s conftest.$ac_objext' |
| 5935 | { (case "(($ac_try" in |
| 5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5937 | *) ac_try_echo=$ac_try;; |
| 5938 | esac |
| 5939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5940 | (eval "$ac_try") 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5944 | ac_compiler_gnu=yes |
| 5945 | else |
| 5946 | echo "$as_me: failed program was:" >&5 |
| 5947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5948 | |
| 5949 | ac_compiler_gnu=no |
| 5950 | fi |
| 5951 | |
| 5952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5953 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5954 | |
| 5955 | fi |
| 5956 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5957 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5958 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5959 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5960 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5961 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5962 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5963 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5965 | else |
| 5966 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5967 | ac_cxx_werror_flag=yes |
| 5968 | ac_cv_prog_cxx_g=no |
| 5969 | CXXFLAGS="-g" |
| 5970 | cat >conftest.$ac_ext <<_ACEOF |
| 5971 | /* confdefs.h. */ |
| 5972 | _ACEOF |
| 5973 | cat confdefs.h >>conftest.$ac_ext |
| 5974 | cat >>conftest.$ac_ext <<_ACEOF |
| 5975 | /* end confdefs.h. */ |
| 5976 | |
| 5977 | int |
| 5978 | main () |
| 5979 | { |
| 5980 | |
| 5981 | ; |
| 5982 | return 0; |
| 5983 | } |
| 5984 | _ACEOF |
| 5985 | rm -f conftest.$ac_objext |
| 5986 | if { (ac_try="$ac_compile" |
| 5987 | case "(($ac_try" in |
| 5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5989 | *) ac_try_echo=$ac_try;; |
| 5990 | esac |
| 5991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5992 | (eval "$ac_compile") 2>conftest.er1 |
| 5993 | ac_status=$? |
| 5994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5995 | rm -f conftest.er1 |
| 5996 | cat conftest.err >&5 |
| 5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 5998 | (exit $ac_status); } && |
| 5999 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6000 | { (case "(($ac_try" in |
| 6001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6002 | *) ac_try_echo=$ac_try;; |
| 6003 | esac |
| 6004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6005 | (eval "$ac_try") 2>&5 |
| 6006 | ac_status=$? |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6008 | (exit $ac_status); }; } && |
| 6009 | { ac_try='test -s conftest.$ac_objext' |
| 6010 | { (case "(($ac_try" in |
| 6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6012 | *) ac_try_echo=$ac_try;; |
| 6013 | esac |
| 6014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6015 | (eval "$ac_try") 2>&5 |
| 6016 | ac_status=$? |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6019 | ac_cv_prog_cxx_g=yes |
| 6020 | else |
| 6021 | echo "$as_me: failed program was:" >&5 |
| 6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6023 | |
| 6024 | CXXFLAGS="" |
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
| 6026 | /* confdefs.h. */ |
| 6027 | _ACEOF |
| 6028 | cat confdefs.h >>conftest.$ac_ext |
| 6029 | cat >>conftest.$ac_ext <<_ACEOF |
| 6030 | /* end confdefs.h. */ |
| 6031 | |
| 6032 | int |
| 6033 | main () |
| 6034 | { |
| 6035 | |
| 6036 | ; |
| 6037 | return 0; |
| 6038 | } |
| 6039 | _ACEOF |
| 6040 | rm -f conftest.$ac_objext |
| 6041 | if { (ac_try="$ac_compile" |
| 6042 | case "(($ac_try" in |
| 6043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6044 | *) ac_try_echo=$ac_try;; |
| 6045 | esac |
| 6046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6047 | (eval "$ac_compile") 2>conftest.er1 |
| 6048 | ac_status=$? |
| 6049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6050 | rm -f conftest.er1 |
| 6051 | cat conftest.err >&5 |
| 6052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6053 | (exit $ac_status); } && |
| 6054 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6055 | { (case "(($ac_try" in |
| 6056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6057 | *) ac_try_echo=$ac_try;; |
| 6058 | esac |
| 6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6060 | (eval "$ac_try") 2>&5 |
| 6061 | ac_status=$? |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6063 | (exit $ac_status); }; } && |
| 6064 | { ac_try='test -s conftest.$ac_objext' |
| 6065 | { (case "(($ac_try" in |
| 6066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6067 | *) ac_try_echo=$ac_try;; |
| 6068 | esac |
| 6069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6070 | (eval "$ac_try") 2>&5 |
| 6071 | ac_status=$? |
| 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6073 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6074 | : |
| 6075 | else |
| 6076 | echo "$as_me: failed program was:" >&5 |
| 6077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6078 | |
| 6079 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6080 | CXXFLAGS="-g" |
| 6081 | cat >conftest.$ac_ext <<_ACEOF |
| 6082 | /* confdefs.h. */ |
| 6083 | _ACEOF |
| 6084 | cat confdefs.h >>conftest.$ac_ext |
| 6085 | cat >>conftest.$ac_ext <<_ACEOF |
| 6086 | /* end confdefs.h. */ |
| 6087 | |
| 6088 | int |
| 6089 | main () |
| 6090 | { |
| 6091 | |
| 6092 | ; |
| 6093 | return 0; |
| 6094 | } |
| 6095 | _ACEOF |
| 6096 | rm -f conftest.$ac_objext |
| 6097 | if { (ac_try="$ac_compile" |
| 6098 | case "(($ac_try" in |
| 6099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6100 | *) ac_try_echo=$ac_try;; |
| 6101 | esac |
| 6102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6103 | (eval "$ac_compile") 2>conftest.er1 |
| 6104 | ac_status=$? |
| 6105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6106 | rm -f conftest.er1 |
| 6107 | cat conftest.err >&5 |
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6109 | (exit $ac_status); } && |
| 6110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6111 | { (case "(($ac_try" in |
| 6112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6113 | *) ac_try_echo=$ac_try;; |
| 6114 | esac |
| 6115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6116 | (eval "$ac_try") 2>&5 |
| 6117 | ac_status=$? |
| 6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6119 | (exit $ac_status); }; } && |
| 6120 | { ac_try='test -s conftest.$ac_objext' |
| 6121 | { (case "(($ac_try" in |
| 6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6123 | *) ac_try_echo=$ac_try;; |
| 6124 | esac |
| 6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6126 | (eval "$ac_try") 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6130 | ac_cv_prog_cxx_g=yes |
| 6131 | else |
| 6132 | echo "$as_me: failed program was:" >&5 |
| 6133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6134 | |
| 6135 | |
| 6136 | fi |
| 6137 | |
| 6138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6139 | fi |
| 6140 | |
| 6141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6142 | fi |
| 6143 | |
| 6144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6145 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6146 | fi |
| 6147 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6148 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6149 | if test "$ac_test_CXXFLAGS" = set; then |
| 6150 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6151 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6152 | if test "$GXX" = yes; then |
| 6153 | CXXFLAGS="-g -O2" |
| 6154 | else |
| 6155 | CXXFLAGS="-g" |
| 6156 | fi |
| 6157 | else |
| 6158 | if test "$GXX" = yes; then |
| 6159 | CXXFLAGS="-O2" |
| 6160 | else |
| 6161 | CXXFLAGS= |
| 6162 | fi |
| 6163 | fi |
| 6164 | ac_ext=c |
| 6165 | ac_cpp='$CPP $CPPFLAGS' |
| 6166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6169 | |
| 6170 | { echo "$as_me:$LINENO: checking " >&5 |
| 6171 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6172 | if test "${ac_cv_has_flex+set}" = set; then |
| 6173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6174 | else |
| 6175 | for ac_prog in flex lex |
| 6176 | do |
| 6177 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6178 | set dummy $ac_prog; ac_word=$2 |
| 6179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6181 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 6182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6183 | else |
| 6184 | if test -n "$LEX"; then |
| 6185 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 6186 | else |
| 6187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6188 | for as_dir in $PATH |
| 6189 | do |
| 6190 | IFS=$as_save_IFS |
| 6191 | test -z "$as_dir" && as_dir=. |
| 6192 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6194 | ac_cv_prog_LEX="$ac_prog" |
| 6195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6196 | break 2 |
| 6197 | fi |
| 6198 | done |
| 6199 | done |
| 6200 | IFS=$as_save_IFS |
| 6201 | |
| 6202 | fi |
| 6203 | fi |
| 6204 | LEX=$ac_cv_prog_LEX |
| 6205 | if test -n "$LEX"; then |
| 6206 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6207 | echo "${ECHO_T}$LEX" >&6; } |
| 6208 | else |
| 6209 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6210 | echo "${ECHO_T}no" >&6; } |
| 6211 | fi |
| 6212 | |
| 6213 | |
| 6214 | test -n "$LEX" && break |
| 6215 | done |
| 6216 | test -n "$LEX" || LEX=":" |
| 6217 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6218 | if test -z "$LEXLIB" |
| 6219 | then |
| 6220 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6221 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6222 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6224 | else |
| 6225 | ac_check_lib_save_LIBS=$LIBS |
| 6226 | LIBS="-lfl $LIBS" |
| 6227 | cat >conftest.$ac_ext <<_ACEOF |
| 6228 | /* confdefs.h. */ |
| 6229 | _ACEOF |
| 6230 | cat confdefs.h >>conftest.$ac_ext |
| 6231 | cat >>conftest.$ac_ext <<_ACEOF |
| 6232 | /* end confdefs.h. */ |
| 6233 | |
| 6234 | /* Override any GCC internal prototype to avoid an error. |
| 6235 | Use char because int might match the return type of a GCC |
| 6236 | builtin and then its argument prototype would still apply. */ |
| 6237 | #ifdef __cplusplus |
| 6238 | extern "C" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6239 | #endif |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6240 | char yywrap (); |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6241 | int |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6242 | main () |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6243 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6244 | return yywrap (); |
| 6245 | ; |
| 6246 | return 0; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6247 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6248 | _ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6249 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6250 | if { (ac_try="$ac_link" |
| 6251 | case "(($ac_try" in |
| 6252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6253 | *) ac_try_echo=$ac_try;; |
| 6254 | esac |
| 6255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6256 | (eval "$ac_link") 2>conftest.er1 |
| 6257 | ac_status=$? |
| 6258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6259 | rm -f conftest.er1 |
| 6260 | cat conftest.err >&5 |
| 6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6262 | (exit $ac_status); } && |
| 6263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6264 | { (case "(($ac_try" in |
| 6265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6266 | *) ac_try_echo=$ac_try;; |
| 6267 | esac |
| 6268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6269 | (eval "$ac_try") 2>&5 |
| 6270 | ac_status=$? |
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6272 | (exit $ac_status); }; } && |
| 6273 | { ac_try='test -s conftest$ac_exeext' |
| 6274 | { (case "(($ac_try" in |
| 6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6276 | *) ac_try_echo=$ac_try;; |
| 6277 | esac |
| 6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6279 | (eval "$ac_try") 2>&5 |
| 6280 | ac_status=$? |
| 6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6282 | (exit $ac_status); }; }; then |
| 6283 | ac_cv_lib_fl_yywrap=yes |
| 6284 | else |
| 6285 | echo "$as_me: failed program was:" >&5 |
| 6286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6287 | |
| 6288 | ac_cv_lib_fl_yywrap=no |
| 6289 | fi |
| 6290 | |
| 6291 | rm -f core conftest.err conftest.$ac_objext \ |
| 6292 | conftest$ac_exeext conftest.$ac_ext |
| 6293 | LIBS=$ac_check_lib_save_LIBS |
| 6294 | fi |
| 6295 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6296 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6297 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6298 | LEXLIB="-lfl" |
| 6299 | else |
| 6300 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6301 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6302 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6304 | else |
| 6305 | ac_check_lib_save_LIBS=$LIBS |
| 6306 | LIBS="-ll $LIBS" |
| 6307 | cat >conftest.$ac_ext <<_ACEOF |
| 6308 | /* confdefs.h. */ |
| 6309 | _ACEOF |
| 6310 | cat confdefs.h >>conftest.$ac_ext |
| 6311 | cat >>conftest.$ac_ext <<_ACEOF |
| 6312 | /* end confdefs.h. */ |
| 6313 | |
| 6314 | /* Override any GCC internal prototype to avoid an error. |
| 6315 | Use char because int might match the return type of a GCC |
| 6316 | builtin and then its argument prototype would still apply. */ |
| 6317 | #ifdef __cplusplus |
| 6318 | extern "C" |
| 6319 | #endif |
| 6320 | char yywrap (); |
| 6321 | int |
| 6322 | main () |
| 6323 | { |
| 6324 | return yywrap (); |
| 6325 | ; |
| 6326 | return 0; |
| 6327 | } |
| 6328 | _ACEOF |
| 6329 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6330 | if { (ac_try="$ac_link" |
| 6331 | case "(($ac_try" in |
| 6332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6333 | *) ac_try_echo=$ac_try;; |
| 6334 | esac |
| 6335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6336 | (eval "$ac_link") 2>conftest.er1 |
| 6337 | ac_status=$? |
| 6338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6339 | rm -f conftest.er1 |
| 6340 | cat conftest.err >&5 |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6342 | (exit $ac_status); } && |
| 6343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6344 | { (case "(($ac_try" in |
| 6345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6346 | *) ac_try_echo=$ac_try;; |
| 6347 | esac |
| 6348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6349 | (eval "$ac_try") 2>&5 |
| 6350 | ac_status=$? |
| 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6352 | (exit $ac_status); }; } && |
| 6353 | { ac_try='test -s conftest$ac_exeext' |
| 6354 | { (case "(($ac_try" in |
| 6355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6356 | *) ac_try_echo=$ac_try;; |
| 6357 | esac |
| 6358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6359 | (eval "$ac_try") 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); }; }; then |
| 6363 | ac_cv_lib_l_yywrap=yes |
| 6364 | else |
| 6365 | echo "$as_me: failed program was:" >&5 |
| 6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6367 | |
| 6368 | ac_cv_lib_l_yywrap=no |
| 6369 | fi |
| 6370 | |
| 6371 | rm -f core conftest.err conftest.$ac_objext \ |
| 6372 | conftest$ac_exeext conftest.$ac_ext |
| 6373 | LIBS=$ac_check_lib_save_LIBS |
| 6374 | fi |
| 6375 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6376 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6377 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6378 | LEXLIB="-ll" |
| 6379 | fi |
| 6380 | |
| 6381 | fi |
| 6382 | |
| 6383 | fi |
| 6384 | |
| 6385 | if test "x$LEX" != "x:"; then |
| 6386 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6387 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6388 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6390 | else |
| 6391 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6392 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6393 | cat >conftest.l <<_ACEOF |
| 6394 | %% |
| 6395 | %% |
| 6396 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6397 | { (ac_try="$LEX conftest.l" |
| 6398 | case "(($ac_try" in |
| 6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6400 | *) ac_try_echo=$ac_try;; |
| 6401 | esac |
| 6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6403 | (eval "$LEX conftest.l") 2>&5 |
| 6404 | ac_status=$? |
| 6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6406 | (exit $ac_status); } |
| 6407 | if test -f lex.yy.c; then |
| 6408 | ac_cv_prog_lex_root=lex.yy |
| 6409 | elif test -f lexyy.c; then |
| 6410 | ac_cv_prog_lex_root=lexyy |
| 6411 | else |
| 6412 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6413 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6414 | { (exit 1); exit 1; }; } |
| 6415 | fi |
| 6416 | fi |
| 6417 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6418 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6419 | rm -f conftest.l |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6420 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6421 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6422 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6423 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6424 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6426 | else |
| 6427 | # POSIX says lex can declare yytext either as a pointer or an array; the |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6428 | # default is implementation-dependent. Figure out which it is, since |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6429 | # not all implementations provide the %pointer and %array declarations. |
| 6430 | ac_cv_prog_lex_yytext_pointer=no |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6431 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6432 | ac_save_LIBS=$LIBS |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6433 | LIBS="$LIBS $LEXLIB" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6434 | cat >conftest.$ac_ext <<_ACEOF |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6435 | `cat $LEX_OUTPUT_ROOT.c` |
| 6436 | _ACEOF |
| 6437 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6438 | if { (ac_try="$ac_link" |
| 6439 | case "(($ac_try" in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6441 | *) ac_try_echo=$ac_try;; |
| 6442 | esac |
| 6443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6444 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | ac_status=$? |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6447 | rm -f conftest.er1 |
| 6448 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6450 | (exit $ac_status); } && |
| 6451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6452 | { (case "(($ac_try" in |
| 6453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6454 | *) ac_try_echo=$ac_try;; |
| 6455 | esac |
| 6456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6457 | (eval "$ac_try") 2>&5 |
| 6458 | ac_status=$? |
| 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6460 | (exit $ac_status); }; } && |
| 6461 | { ac_try='test -s conftest$ac_exeext' |
| 6462 | { (case "(($ac_try" in |
| 6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6464 | *) ac_try_echo=$ac_try;; |
| 6465 | esac |
| 6466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6467 | (eval "$ac_try") 2>&5 |
| 6468 | ac_status=$? |
| 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6470 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6471 | ac_cv_prog_lex_yytext_pointer=yes |
| 6472 | else |
| 6473 | echo "$as_me: failed program was:" >&5 |
| 6474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6475 | |
| 6476 | |
| 6477 | fi |
| 6478 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6479 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6480 | conftest$ac_exeext conftest.$ac_ext |
| 6481 | LIBS=$ac_save_LIBS |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6482 | rm -f "${LEX_OUTPUT_ROOT}.c" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6483 | |
| 6484 | fi |
| 6485 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6486 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6487 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6488 | |
| 6489 | cat >>confdefs.h <<\_ACEOF |
| 6490 | #define YYTEXT_POINTER 1 |
| 6491 | _ACEOF |
| 6492 | |
| 6493 | fi |
| 6494 | |
| 6495 | fi |
| 6496 | |
| 6497 | fi |
| 6498 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6499 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6500 | if test "$LEX" != "flex"; then |
| 6501 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6502 | echo "$as_me: error: flex not found but required" >&2;} |
| 6503 | { (exit 1); exit 1; }; } |
| 6504 | else |
| 6505 | FLEX=flex |
| 6506 | |
| 6507 | fi |
| 6508 | |
| 6509 | { echo "$as_me:$LINENO: checking " >&5 |
| 6510 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6511 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6513 | else |
| 6514 | for ac_prog in 'bison -y' byacc |
| 6515 | do |
| 6516 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6517 | set dummy $ac_prog; ac_word=$2 |
| 6518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6520 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6522 | else |
| 6523 | if test -n "$YACC"; then |
| 6524 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6525 | else |
| 6526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6527 | for as_dir in $PATH |
| 6528 | do |
| 6529 | IFS=$as_save_IFS |
| 6530 | test -z "$as_dir" && as_dir=. |
| 6531 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6533 | ac_cv_prog_YACC="$ac_prog" |
| 6534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6535 | break 2 |
| 6536 | fi |
| 6537 | done |
| 6538 | done |
| 6539 | IFS=$as_save_IFS |
| 6540 | |
| 6541 | fi |
| 6542 | fi |
| 6543 | YACC=$ac_cv_prog_YACC |
| 6544 | if test -n "$YACC"; then |
| 6545 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6546 | echo "${ECHO_T}$YACC" >&6; } |
| 6547 | else |
| 6548 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6549 | echo "${ECHO_T}no" >&6; } |
| 6550 | fi |
| 6551 | |
| 6552 | |
| 6553 | test -n "$YACC" && break |
| 6554 | done |
| 6555 | test -n "$YACC" || YACC="yacc" |
| 6556 | |
| 6557 | fi |
| 6558 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6559 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6560 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6561 | |
| 6562 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6563 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6564 | else |
| 6565 | BISON=bison |
| 6566 | |
| 6567 | fi |
| 6568 | |
| 6569 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6570 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6571 | if test "${lt_cv_path_NM+set}" = set; then |
| 6572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6573 | else |
| 6574 | if test -n "$NM"; then |
| 6575 | # Let the user override the test. |
| 6576 | lt_cv_path_NM="$NM" |
| 6577 | else |
| 6578 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6579 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6580 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6581 | fi |
| 6582 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6583 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6584 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6585 | IFS="$lt_save_ifs" |
| 6586 | test -z "$ac_dir" && ac_dir=. |
| 6587 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6588 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6589 | # Check to see if the nm accepts a BSD-compat flag. |
| 6590 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6591 | # nm: unknown option "B" ignored |
| 6592 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6593 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6594 | */dev/null* | *'Invalid file or object type'*) |
| 6595 | lt_cv_path_NM="$tmp_nm -B" |
| 6596 | break |
| 6597 | ;; |
| 6598 | *) |
| 6599 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6600 | */dev/null*) |
| 6601 | lt_cv_path_NM="$tmp_nm -p" |
| 6602 | break |
| 6603 | ;; |
| 6604 | *) |
| 6605 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6606 | continue # so that we can try to find one that supports BSD flags |
| 6607 | ;; |
| 6608 | esac |
| 6609 | ;; |
| 6610 | esac |
| 6611 | fi |
| 6612 | done |
| 6613 | IFS="$lt_save_ifs" |
| 6614 | done |
| 6615 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6616 | fi |
| 6617 | fi |
| 6618 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6619 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6620 | NM="$lt_cv_path_NM" |
| 6621 | |
| 6622 | |
| 6623 | |
| 6624 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6625 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6626 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6628 | else |
| 6629 | llvm_cv_gnu_make_command='' |
| 6630 | for a in "$MAKE" make gmake gnumake ; do |
| 6631 | if test -z "$a" ; then continue ; fi ; |
| 6632 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6633 | then |
| 6634 | llvm_cv_gnu_make_command=$a ; |
| 6635 | break; |
| 6636 | fi |
| 6637 | done |
| 6638 | fi |
| 6639 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6640 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6641 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6642 | ifGNUmake='' ; |
| 6643 | else |
| 6644 | ifGNUmake='#' ; |
| 6645 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6646 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6647 | fi |
| 6648 | |
| 6649 | |
| 6650 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6651 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6652 | LN_S=$as_ln_s |
| 6653 | if test "$LN_S" = "ln -s"; then |
| 6654 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6655 | echo "${ECHO_T}yes" >&6; } |
| 6656 | else |
| 6657 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6658 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6659 | fi |
| 6660 | |
| 6661 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6662 | set dummy cmp; ac_word=$2 |
| 6663 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6665 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6667 | else |
| 6668 | case $CMP in |
| 6669 | [\\/]* | ?:[\\/]*) |
| 6670 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6671 | ;; |
| 6672 | *) |
| 6673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6674 | for as_dir in $PATH |
| 6675 | do |
| 6676 | IFS=$as_save_IFS |
| 6677 | test -z "$as_dir" && as_dir=. |
| 6678 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6680 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6682 | break 2 |
| 6683 | fi |
| 6684 | done |
| 6685 | done |
| 6686 | IFS=$as_save_IFS |
| 6687 | |
| 6688 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6689 | ;; |
| 6690 | esac |
| 6691 | fi |
| 6692 | CMP=$ac_cv_path_CMP |
| 6693 | if test -n "$CMP"; then |
| 6694 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6695 | echo "${ECHO_T}$CMP" >&6; } |
| 6696 | else |
| 6697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6698 | echo "${ECHO_T}no" >&6; } |
| 6699 | fi |
| 6700 | |
| 6701 | |
| 6702 | # Extract the first word of "cp", so it can be a program name with args. |
| 6703 | set dummy cp; ac_word=$2 |
| 6704 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6706 | if test "${ac_cv_path_CP+set}" = set; then |
| 6707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6708 | else |
| 6709 | case $CP in |
| 6710 | [\\/]* | ?:[\\/]*) |
| 6711 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6712 | ;; |
| 6713 | *) |
| 6714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6715 | for as_dir in $PATH |
| 6716 | do |
| 6717 | IFS=$as_save_IFS |
| 6718 | test -z "$as_dir" && as_dir=. |
| 6719 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6721 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6723 | break 2 |
| 6724 | fi |
| 6725 | done |
| 6726 | done |
| 6727 | IFS=$as_save_IFS |
| 6728 | |
| 6729 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6730 | ;; |
| 6731 | esac |
| 6732 | fi |
| 6733 | CP=$ac_cv_path_CP |
| 6734 | if test -n "$CP"; then |
| 6735 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6736 | echo "${ECHO_T}$CP" >&6; } |
| 6737 | else |
| 6738 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6739 | echo "${ECHO_T}no" >&6; } |
| 6740 | fi |
| 6741 | |
| 6742 | |
| 6743 | # Extract the first word of "date", so it can be a program name with args. |
| 6744 | set dummy date; ac_word=$2 |
| 6745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6747 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6749 | else |
| 6750 | case $DATE in |
| 6751 | [\\/]* | ?:[\\/]*) |
| 6752 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6753 | ;; |
| 6754 | *) |
| 6755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6756 | for as_dir in $PATH |
| 6757 | do |
| 6758 | IFS=$as_save_IFS |
| 6759 | test -z "$as_dir" && as_dir=. |
| 6760 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6762 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6764 | break 2 |
| 6765 | fi |
| 6766 | done |
| 6767 | done |
| 6768 | IFS=$as_save_IFS |
| 6769 | |
| 6770 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6771 | ;; |
| 6772 | esac |
| 6773 | fi |
| 6774 | DATE=$ac_cv_path_DATE |
| 6775 | if test -n "$DATE"; then |
| 6776 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6777 | echo "${ECHO_T}$DATE" >&6; } |
| 6778 | else |
| 6779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6780 | echo "${ECHO_T}no" >&6; } |
| 6781 | fi |
| 6782 | |
| 6783 | |
| 6784 | # Extract the first word of "find", so it can be a program name with args. |
| 6785 | set dummy find; 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_FIND+set}" = set; then |
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6790 | else |
| 6791 | case $FIND in |
| 6792 | [\\/]* | ?:[\\/]*) |
| 6793 | ac_cv_path_FIND="$FIND" # 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 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6803 | ac_cv_path_FIND="$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_FIND" && ac_cv_path_FIND="find" |
| 6812 | ;; |
| 6813 | esac |
| 6814 | fi |
| 6815 | FIND=$ac_cv_path_FIND |
| 6816 | if test -n "$FIND"; then |
| 6817 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6818 | echo "${ECHO_T}$FIND" >&6; } |
| 6819 | else |
| 6820 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6821 | echo "${ECHO_T}no" >&6; } |
| 6822 | fi |
| 6823 | |
| 6824 | |
| 6825 | # Extract the first word of "grep", so it can be a program name with args. |
| 6826 | set dummy grep; ac_word=$2 |
| 6827 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6829 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6831 | else |
| 6832 | case $GREP in |
| 6833 | [\\/]* | ?:[\\/]*) |
| 6834 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6835 | ;; |
| 6836 | *) |
| 6837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6838 | for as_dir in $PATH |
| 6839 | do |
| 6840 | IFS=$as_save_IFS |
| 6841 | test -z "$as_dir" && as_dir=. |
| 6842 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6844 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6846 | break 2 |
| 6847 | fi |
| 6848 | done |
| 6849 | done |
| 6850 | IFS=$as_save_IFS |
| 6851 | |
| 6852 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6853 | ;; |
| 6854 | esac |
| 6855 | fi |
| 6856 | GREP=$ac_cv_path_GREP |
| 6857 | if test -n "$GREP"; then |
| 6858 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6859 | echo "${ECHO_T}$GREP" >&6; } |
| 6860 | else |
| 6861 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6862 | echo "${ECHO_T}no" >&6; } |
| 6863 | fi |
| 6864 | |
| 6865 | |
| 6866 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6867 | set dummy mkdir; ac_word=$2 |
| 6868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6870 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6872 | else |
| 6873 | case $MKDIR in |
| 6874 | [\\/]* | ?:[\\/]*) |
| 6875 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6876 | ;; |
| 6877 | *) |
| 6878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6879 | for as_dir in $PATH |
| 6880 | do |
| 6881 | IFS=$as_save_IFS |
| 6882 | test -z "$as_dir" && as_dir=. |
| 6883 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6885 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6887 | break 2 |
| 6888 | fi |
| 6889 | done |
| 6890 | done |
| 6891 | IFS=$as_save_IFS |
| 6892 | |
| 6893 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6894 | ;; |
| 6895 | esac |
| 6896 | fi |
| 6897 | MKDIR=$ac_cv_path_MKDIR |
| 6898 | if test -n "$MKDIR"; then |
| 6899 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6900 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6901 | else |
| 6902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6903 | echo "${ECHO_T}no" >&6; } |
| 6904 | fi |
| 6905 | |
| 6906 | |
| 6907 | # Extract the first word of "mv", so it can be a program name with args. |
| 6908 | set dummy mv; ac_word=$2 |
| 6909 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6911 | if test "${ac_cv_path_MV+set}" = set; then |
| 6912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6913 | else |
| 6914 | case $MV in |
| 6915 | [\\/]* | ?:[\\/]*) |
| 6916 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6917 | ;; |
| 6918 | *) |
| 6919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6920 | for as_dir in $PATH |
| 6921 | do |
| 6922 | IFS=$as_save_IFS |
| 6923 | test -z "$as_dir" && as_dir=. |
| 6924 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6926 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6928 | break 2 |
| 6929 | fi |
| 6930 | done |
| 6931 | done |
| 6932 | IFS=$as_save_IFS |
| 6933 | |
| 6934 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6935 | ;; |
| 6936 | esac |
| 6937 | fi |
| 6938 | MV=$ac_cv_path_MV |
| 6939 | if test -n "$MV"; then |
| 6940 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6941 | echo "${ECHO_T}$MV" >&6; } |
| 6942 | else |
| 6943 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6944 | echo "${ECHO_T}no" >&6; } |
| 6945 | fi |
| 6946 | |
| 6947 | |
| 6948 | if test -n "$ac_tool_prefix"; then |
| 6949 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6950 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6953 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6955 | else |
| 6956 | if test -n "$RANLIB"; then |
| 6957 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6958 | else |
| 6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6960 | for as_dir in $PATH |
| 6961 | do |
| 6962 | IFS=$as_save_IFS |
| 6963 | test -z "$as_dir" && as_dir=. |
| 6964 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6966 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6968 | break 2 |
| 6969 | fi |
| 6970 | done |
| 6971 | done |
| 6972 | IFS=$as_save_IFS |
| 6973 | |
| 6974 | fi |
| 6975 | fi |
| 6976 | RANLIB=$ac_cv_prog_RANLIB |
| 6977 | if test -n "$RANLIB"; then |
| 6978 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6979 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6980 | else |
| 6981 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6982 | echo "${ECHO_T}no" >&6; } |
| 6983 | fi |
| 6984 | |
| 6985 | |
| 6986 | fi |
| 6987 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6988 | ac_ct_RANLIB=$RANLIB |
| 6989 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6990 | set dummy ranlib; ac_word=$2 |
| 6991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6993 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6995 | else |
| 6996 | if test -n "$ac_ct_RANLIB"; then |
| 6997 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6998 | else |
| 6999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7000 | for as_dir in $PATH |
| 7001 | do |
| 7002 | IFS=$as_save_IFS |
| 7003 | test -z "$as_dir" && as_dir=. |
| 7004 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7006 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7008 | break 2 |
| 7009 | fi |
| 7010 | done |
| 7011 | done |
| 7012 | IFS=$as_save_IFS |
| 7013 | |
| 7014 | fi |
| 7015 | fi |
| 7016 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7017 | if test -n "$ac_ct_RANLIB"; then |
| 7018 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7019 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 7020 | else |
| 7021 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7022 | echo "${ECHO_T}no" >&6; } |
| 7023 | fi |
| 7024 | |
| 7025 | if test "x$ac_ct_RANLIB" = x; then |
| 7026 | RANLIB=":" |
| 7027 | else |
| 7028 | case $cross_compiling:$ac_tool_warned in |
| 7029 | yes:) |
| 7030 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7031 | whose name does not start with the host triplet. If you think this |
| 7032 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7033 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7034 | whose name does not start with the host triplet. If you think this |
| 7035 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7036 | ac_tool_warned=yes ;; |
| 7037 | esac |
| 7038 | RANLIB=$ac_ct_RANLIB |
| 7039 | fi |
| 7040 | else |
| 7041 | RANLIB="$ac_cv_prog_RANLIB" |
| 7042 | fi |
| 7043 | |
| 7044 | # Extract the first word of "rm", so it can be a program name with args. |
| 7045 | set dummy rm; ac_word=$2 |
| 7046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7048 | if test "${ac_cv_path_RM+set}" = set; then |
| 7049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7050 | else |
| 7051 | case $RM in |
| 7052 | [\\/]* | ?:[\\/]*) |
| 7053 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7054 | ;; |
| 7055 | *) |
| 7056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7057 | for as_dir in $PATH |
| 7058 | do |
| 7059 | IFS=$as_save_IFS |
| 7060 | test -z "$as_dir" && as_dir=. |
| 7061 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7063 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7065 | break 2 |
| 7066 | fi |
| 7067 | done |
| 7068 | done |
| 7069 | IFS=$as_save_IFS |
| 7070 | |
| 7071 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7072 | ;; |
| 7073 | esac |
| 7074 | fi |
| 7075 | RM=$ac_cv_path_RM |
| 7076 | if test -n "$RM"; then |
| 7077 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7078 | echo "${ECHO_T}$RM" >&6; } |
| 7079 | else |
| 7080 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7081 | echo "${ECHO_T}no" >&6; } |
| 7082 | fi |
| 7083 | |
| 7084 | |
| 7085 | # Extract the first word of "sed", so it can be a program name with args. |
| 7086 | set dummy sed; ac_word=$2 |
| 7087 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7089 | if test "${ac_cv_path_SED+set}" = set; then |
| 7090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7091 | else |
| 7092 | case $SED in |
| 7093 | [\\/]* | ?:[\\/]*) |
| 7094 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7095 | ;; |
| 7096 | *) |
| 7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7098 | for as_dir in $PATH |
| 7099 | do |
| 7100 | IFS=$as_save_IFS |
| 7101 | test -z "$as_dir" && as_dir=. |
| 7102 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7104 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7106 | break 2 |
| 7107 | fi |
| 7108 | done |
| 7109 | done |
| 7110 | IFS=$as_save_IFS |
| 7111 | |
| 7112 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7113 | ;; |
| 7114 | esac |
| 7115 | fi |
| 7116 | SED=$ac_cv_path_SED |
| 7117 | if test -n "$SED"; then |
| 7118 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7119 | echo "${ECHO_T}$SED" >&6; } |
| 7120 | else |
| 7121 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7122 | echo "${ECHO_T}no" >&6; } |
| 7123 | fi |
| 7124 | |
| 7125 | |
| 7126 | # Extract the first word of "tar", so it can be a program name with args. |
| 7127 | set dummy tar; ac_word=$2 |
| 7128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7130 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7132 | else |
| 7133 | case $TAR in |
| 7134 | [\\/]* | ?:[\\/]*) |
| 7135 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7136 | ;; |
| 7137 | *) |
| 7138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7139 | for as_dir in $PATH |
| 7140 | do |
| 7141 | IFS=$as_save_IFS |
| 7142 | test -z "$as_dir" && as_dir=. |
| 7143 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7145 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7147 | break 2 |
| 7148 | fi |
| 7149 | done |
| 7150 | done |
| 7151 | IFS=$as_save_IFS |
| 7152 | |
| 7153 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7154 | ;; |
| 7155 | esac |
| 7156 | fi |
| 7157 | TAR=$ac_cv_path_TAR |
| 7158 | if test -n "$TAR"; then |
| 7159 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7160 | echo "${ECHO_T}$TAR" >&6; } |
| 7161 | else |
| 7162 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7163 | echo "${ECHO_T}no" >&6; } |
| 7164 | fi |
| 7165 | |
| 7166 | |
| 7167 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7168 | set dummy pwd; ac_word=$2 |
| 7169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7171 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7173 | else |
| 7174 | case $BINPWD in |
| 7175 | [\\/]* | ?:[\\/]*) |
| 7176 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7177 | ;; |
| 7178 | *) |
| 7179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7180 | for as_dir in $PATH |
| 7181 | do |
| 7182 | IFS=$as_save_IFS |
| 7183 | test -z "$as_dir" && as_dir=. |
| 7184 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7186 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7188 | break 2 |
| 7189 | fi |
| 7190 | done |
| 7191 | done |
| 7192 | IFS=$as_save_IFS |
| 7193 | |
| 7194 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7195 | ;; |
| 7196 | esac |
| 7197 | fi |
| 7198 | BINPWD=$ac_cv_path_BINPWD |
| 7199 | if test -n "$BINPWD"; then |
| 7200 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7201 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7202 | else |
| 7203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7204 | echo "${ECHO_T}no" >&6; } |
| 7205 | fi |
| 7206 | |
| 7207 | |
| 7208 | |
| 7209 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7210 | set dummy Graphviz; ac_word=$2 |
| 7211 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7213 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7215 | else |
| 7216 | case $GRAPHVIZ in |
| 7217 | [\\/]* | ?:[\\/]*) |
| 7218 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7219 | ;; |
| 7220 | *) |
| 7221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7222 | for as_dir in $PATH |
| 7223 | do |
| 7224 | IFS=$as_save_IFS |
| 7225 | test -z "$as_dir" && as_dir=. |
| 7226 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7228 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7230 | break 2 |
| 7231 | fi |
| 7232 | done |
| 7233 | done |
| 7234 | IFS=$as_save_IFS |
| 7235 | |
| 7236 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7237 | ;; |
| 7238 | esac |
| 7239 | fi |
| 7240 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7241 | if test -n "$GRAPHVIZ"; then |
| 7242 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7243 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7244 | else |
| 7245 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7246 | echo "${ECHO_T}no" >&6; } |
| 7247 | fi |
| 7248 | |
| 7249 | |
| 7250 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7251 | |
| 7252 | cat >>confdefs.h <<\_ACEOF |
| 7253 | #define HAVE_GRAPHVIZ 1 |
| 7254 | _ACEOF |
| 7255 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7256 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7257 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7258 | fi |
| 7259 | |
| 7260 | cat >>confdefs.h <<_ACEOF |
| 7261 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7262 | _ACEOF |
| 7263 | |
| 7264 | fi |
| 7265 | # Extract the first word of "dot", so it can be a program name with args. |
| 7266 | set dummy dot; ac_word=$2 |
| 7267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7269 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7271 | else |
| 7272 | case $DOT in |
| 7273 | [\\/]* | ?:[\\/]*) |
| 7274 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7275 | ;; |
| 7276 | *) |
| 7277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7278 | for as_dir in $PATH |
| 7279 | do |
| 7280 | IFS=$as_save_IFS |
| 7281 | test -z "$as_dir" && as_dir=. |
| 7282 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7284 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7286 | break 2 |
| 7287 | fi |
| 7288 | done |
| 7289 | done |
| 7290 | IFS=$as_save_IFS |
| 7291 | |
| 7292 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7293 | ;; |
| 7294 | esac |
| 7295 | fi |
| 7296 | DOT=$ac_cv_path_DOT |
| 7297 | if test -n "$DOT"; then |
| 7298 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7299 | echo "${ECHO_T}$DOT" >&6; } |
| 7300 | else |
| 7301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7302 | echo "${ECHO_T}no" >&6; } |
| 7303 | fi |
| 7304 | |
| 7305 | |
| 7306 | if test "$DOT" != "echo dot" ; then |
| 7307 | |
| 7308 | cat >>confdefs.h <<\_ACEOF |
| 7309 | #define HAVE_DOT 1 |
| 7310 | _ACEOF |
| 7311 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7312 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7313 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7314 | fi |
| 7315 | |
| 7316 | cat >>confdefs.h <<_ACEOF |
| 7317 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7318 | _ACEOF |
| 7319 | |
| 7320 | fi |
| 7321 | for ac_prog in gv gsview32 |
| 7322 | do |
| 7323 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7324 | set dummy $ac_prog; ac_word=$2 |
| 7325 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7327 | if test "${ac_cv_path_GV+set}" = set; then |
| 7328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7329 | else |
| 7330 | case $GV in |
| 7331 | [\\/]* | ?:[\\/]*) |
| 7332 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7333 | ;; |
| 7334 | *) |
| 7335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7336 | for as_dir in $PATH |
| 7337 | do |
| 7338 | IFS=$as_save_IFS |
| 7339 | test -z "$as_dir" && as_dir=. |
| 7340 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7342 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7344 | break 2 |
| 7345 | fi |
| 7346 | done |
| 7347 | done |
| 7348 | IFS=$as_save_IFS |
| 7349 | |
| 7350 | ;; |
| 7351 | esac |
| 7352 | fi |
| 7353 | GV=$ac_cv_path_GV |
| 7354 | if test -n "$GV"; then |
| 7355 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7356 | echo "${ECHO_T}$GV" >&6; } |
| 7357 | else |
| 7358 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7359 | echo "${ECHO_T}no" >&6; } |
| 7360 | fi |
| 7361 | |
| 7362 | |
| 7363 | test -n "$GV" && break |
| 7364 | done |
| 7365 | test -n "$GV" || GV="echo gv" |
| 7366 | |
| 7367 | if test "$GV" != "echo gv" ; then |
| 7368 | |
| 7369 | cat >>confdefs.h <<\_ACEOF |
| 7370 | #define HAVE_GV 1 |
| 7371 | _ACEOF |
| 7372 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7373 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7374 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7375 | fi |
| 7376 | |
| 7377 | cat >>confdefs.h <<_ACEOF |
| 7378 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7379 | _ACEOF |
| 7380 | |
| 7381 | fi |
| 7382 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7383 | set dummy dotty; ac_word=$2 |
| 7384 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7386 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7388 | else |
| 7389 | case $DOTTY in |
| 7390 | [\\/]* | ?:[\\/]*) |
| 7391 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7392 | ;; |
| 7393 | *) |
| 7394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7395 | for as_dir in $PATH |
| 7396 | do |
| 7397 | IFS=$as_save_IFS |
| 7398 | test -z "$as_dir" && as_dir=. |
| 7399 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7401 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7403 | break 2 |
| 7404 | fi |
| 7405 | done |
| 7406 | done |
| 7407 | IFS=$as_save_IFS |
| 7408 | |
| 7409 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7410 | ;; |
| 7411 | esac |
| 7412 | fi |
| 7413 | DOTTY=$ac_cv_path_DOTTY |
| 7414 | if test -n "$DOTTY"; then |
| 7415 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7416 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7417 | else |
| 7418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7419 | echo "${ECHO_T}no" >&6; } |
| 7420 | fi |
| 7421 | |
| 7422 | |
| 7423 | if test "$DOTTY" != "echo dotty" ; then |
| 7424 | |
| 7425 | cat >>confdefs.h <<\_ACEOF |
| 7426 | #define HAVE_DOTTY 1 |
| 7427 | _ACEOF |
| 7428 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7429 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7430 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7431 | fi |
| 7432 | |
| 7433 | cat >>confdefs.h <<_ACEOF |
| 7434 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7435 | _ACEOF |
| 7436 | |
| 7437 | fi |
| 7438 | |
| 7439 | |
| 7440 | # Extract the first word of "perl", so it can be a program name with args. |
| 7441 | set dummy perl; ac_word=$2 |
| 7442 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7444 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7446 | else |
| 7447 | case $PERL in |
| 7448 | [\\/]* | ?:[\\/]*) |
| 7449 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7450 | ;; |
| 7451 | *) |
| 7452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7453 | for as_dir in $PATH |
| 7454 | do |
| 7455 | IFS=$as_save_IFS |
| 7456 | test -z "$as_dir" && as_dir=. |
| 7457 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7459 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7461 | break 2 |
| 7462 | fi |
| 7463 | done |
| 7464 | done |
| 7465 | IFS=$as_save_IFS |
| 7466 | |
| 7467 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7468 | ;; |
| 7469 | esac |
| 7470 | fi |
| 7471 | PERL=$ac_cv_path_PERL |
| 7472 | if test -n "$PERL"; then |
| 7473 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7474 | echo "${ECHO_T}$PERL" >&6; } |
| 7475 | else |
| 7476 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7477 | echo "${ECHO_T}no" >&6; } |
| 7478 | fi |
| 7479 | |
| 7480 | |
| 7481 | if test "$PERL" != "none"; then |
| 7482 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7483 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7484 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7485 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7486 | echo "${ECHO_T}yes" >&6; } |
| 7487 | else |
| 7488 | PERL=none |
| 7489 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7490 | echo "${ECHO_T}not found" >&6; } |
| 7491 | fi |
| 7492 | fi |
| 7493 | |
| 7494 | |
| 7495 | if test x"$PERL" = xnone; then |
| 7496 | HAVE_PERL=0 |
| 7497 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7498 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7499 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7500 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7501 | else |
| 7502 | HAVE_PERL=1 |
| 7503 | |
| 7504 | fi |
| 7505 | |
| 7506 | # Find a good install program. We prefer a C program (faster), |
| 7507 | # so one script is as good as another. But avoid the broken or |
| 7508 | # incompatible versions: |
| 7509 | # SysV /etc/install, /usr/sbin/install |
| 7510 | # SunOS /usr/etc/install |
| 7511 | # IRIX /sbin/install |
| 7512 | # AIX /bin/install |
| 7513 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7514 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7515 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7516 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7517 | # OS/2's system install, which has a completely different semantic |
| 7518 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7519 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7520 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7521 | if test -z "$INSTALL"; then |
| 7522 | if test "${ac_cv_path_install+set}" = set; then |
| 7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7524 | else |
| 7525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7526 | for as_dir in $PATH |
| 7527 | do |
| 7528 | IFS=$as_save_IFS |
| 7529 | test -z "$as_dir" && as_dir=. |
| 7530 | # Account for people who put trailing slashes in PATH elements. |
| 7531 | case $as_dir/ in |
| 7532 | ./ | .// | /cC/* | \ |
| 7533 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7534 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7535 | /usr/ucb/* ) ;; |
| 7536 | *) |
| 7537 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7538 | # Don't use installbsd from OSF since it installs stuff as root |
| 7539 | # by default. |
| 7540 | for ac_prog in ginstall scoinst install; do |
| 7541 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7542 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7543 | if test $ac_prog = install && |
| 7544 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7545 | # AIX install. It has an incompatible calling convention. |
| 7546 | : |
| 7547 | elif test $ac_prog = install && |
| 7548 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7549 | # program-specific install script used by HP pwplus--don't use. |
| 7550 | : |
| 7551 | else |
| 7552 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7553 | break 3 |
| 7554 | fi |
| 7555 | fi |
| 7556 | done |
| 7557 | done |
| 7558 | ;; |
| 7559 | esac |
| 7560 | done |
| 7561 | IFS=$as_save_IFS |
| 7562 | |
| 7563 | |
| 7564 | fi |
| 7565 | if test "${ac_cv_path_install+set}" = set; then |
| 7566 | INSTALL=$ac_cv_path_install |
| 7567 | else |
| 7568 | # As a last resort, use the slow shell script. Don't cache a |
| 7569 | # value for INSTALL within a source directory, because that will |
| 7570 | # break other packages using the cache if that directory is |
| 7571 | # removed, or if the value is a relative name. |
| 7572 | INSTALL=$ac_install_sh |
| 7573 | fi |
| 7574 | fi |
| 7575 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7576 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7577 | |
| 7578 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7579 | # It thinks the first close brace ends the variable substitution. |
| 7580 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7581 | |
| 7582 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7583 | |
| 7584 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7585 | |
| 7586 | |
| 7587 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7588 | set dummy bzip2; ac_word=$2 |
| 7589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7591 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7593 | else |
| 7594 | case $BZIP2 in |
| 7595 | [\\/]* | ?:[\\/]*) |
| 7596 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7597 | ;; |
| 7598 | *) |
| 7599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7600 | for as_dir in $PATH |
| 7601 | do |
| 7602 | IFS=$as_save_IFS |
| 7603 | test -z "$as_dir" && as_dir=. |
| 7604 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7606 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7608 | break 2 |
| 7609 | fi |
| 7610 | done |
| 7611 | done |
| 7612 | IFS=$as_save_IFS |
| 7613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7614 | ;; |
| 7615 | esac |
| 7616 | fi |
| 7617 | BZIP2=$ac_cv_path_BZIP2 |
| 7618 | if test -n "$BZIP2"; then |
| 7619 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7620 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7621 | else |
| 7622 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7623 | echo "${ECHO_T}no" >&6; } |
| 7624 | fi |
| 7625 | |
| 7626 | |
| 7627 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7628 | set dummy doxygen; ac_word=$2 |
| 7629 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7631 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7633 | else |
| 7634 | case $DOXYGEN in |
| 7635 | [\\/]* | ?:[\\/]*) |
| 7636 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7637 | ;; |
| 7638 | *) |
| 7639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7640 | for as_dir in $PATH |
| 7641 | do |
| 7642 | IFS=$as_save_IFS |
| 7643 | test -z "$as_dir" && as_dir=. |
| 7644 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7646 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7648 | break 2 |
| 7649 | fi |
| 7650 | done |
| 7651 | done |
| 7652 | IFS=$as_save_IFS |
| 7653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7654 | ;; |
| 7655 | esac |
| 7656 | fi |
| 7657 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7658 | if test -n "$DOXYGEN"; then |
| 7659 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7660 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7661 | else |
| 7662 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7663 | echo "${ECHO_T}no" >&6; } |
| 7664 | fi |
| 7665 | |
| 7666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7667 | # Extract the first word of "groff", so it can be a program name with args. |
| 7668 | set dummy groff; ac_word=$2 |
| 7669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7671 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7673 | else |
| 7674 | case $GROFF in |
| 7675 | [\\/]* | ?:[\\/]*) |
| 7676 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7677 | ;; |
| 7678 | *) |
| 7679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7680 | for as_dir in $PATH |
| 7681 | do |
| 7682 | IFS=$as_save_IFS |
| 7683 | test -z "$as_dir" && as_dir=. |
| 7684 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7686 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7688 | break 2 |
| 7689 | fi |
| 7690 | done |
| 7691 | done |
| 7692 | IFS=$as_save_IFS |
| 7693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7694 | ;; |
| 7695 | esac |
| 7696 | fi |
| 7697 | GROFF=$ac_cv_path_GROFF |
| 7698 | if test -n "$GROFF"; then |
| 7699 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7700 | echo "${ECHO_T}$GROFF" >&6; } |
| 7701 | else |
| 7702 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7703 | echo "${ECHO_T}no" >&6; } |
| 7704 | fi |
| 7705 | |
| 7706 | |
| 7707 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7708 | set dummy gzip; ac_word=$2 |
| 7709 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7711 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7713 | else |
| 7714 | case $GZIP in |
| 7715 | [\\/]* | ?:[\\/]*) |
| 7716 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7717 | ;; |
| 7718 | *) |
| 7719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7720 | for as_dir in $PATH |
| 7721 | do |
| 7722 | IFS=$as_save_IFS |
| 7723 | test -z "$as_dir" && as_dir=. |
| 7724 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7726 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7728 | break 2 |
| 7729 | fi |
| 7730 | done |
| 7731 | done |
| 7732 | IFS=$as_save_IFS |
| 7733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7734 | ;; |
| 7735 | esac |
| 7736 | fi |
| 7737 | GZIP=$ac_cv_path_GZIP |
| 7738 | if test -n "$GZIP"; then |
| 7739 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7740 | echo "${ECHO_T}$GZIP" >&6; } |
| 7741 | else |
| 7742 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7743 | echo "${ECHO_T}no" >&6; } |
| 7744 | fi |
| 7745 | |
| 7746 | |
| 7747 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7748 | set dummy pod2html; ac_word=$2 |
| 7749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7751 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7753 | else |
| 7754 | case $POD2HTML in |
| 7755 | [\\/]* | ?:[\\/]*) |
| 7756 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7757 | ;; |
| 7758 | *) |
| 7759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7760 | for as_dir in $PATH |
| 7761 | do |
| 7762 | IFS=$as_save_IFS |
| 7763 | test -z "$as_dir" && as_dir=. |
| 7764 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7766 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7768 | break 2 |
| 7769 | fi |
| 7770 | done |
| 7771 | done |
| 7772 | IFS=$as_save_IFS |
| 7773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7774 | ;; |
| 7775 | esac |
| 7776 | fi |
| 7777 | POD2HTML=$ac_cv_path_POD2HTML |
| 7778 | if test -n "$POD2HTML"; then |
| 7779 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7780 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7781 | else |
| 7782 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7783 | echo "${ECHO_T}no" >&6; } |
| 7784 | fi |
| 7785 | |
| 7786 | |
| 7787 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7788 | set dummy pod2man; ac_word=$2 |
| 7789 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7791 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7793 | else |
| 7794 | case $POD2MAN in |
| 7795 | [\\/]* | ?:[\\/]*) |
| 7796 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7797 | ;; |
| 7798 | *) |
| 7799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7800 | for as_dir in $PATH |
| 7801 | do |
| 7802 | IFS=$as_save_IFS |
| 7803 | test -z "$as_dir" && as_dir=. |
| 7804 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7806 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7808 | break 2 |
| 7809 | fi |
| 7810 | done |
| 7811 | done |
| 7812 | IFS=$as_save_IFS |
| 7813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7814 | ;; |
| 7815 | esac |
| 7816 | fi |
| 7817 | POD2MAN=$ac_cv_path_POD2MAN |
| 7818 | if test -n "$POD2MAN"; then |
| 7819 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7820 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7821 | else |
| 7822 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7823 | echo "${ECHO_T}no" >&6; } |
| 7824 | fi |
| 7825 | |
| 7826 | |
| 7827 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7828 | set dummy runtest; ac_word=$2 |
| 7829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7831 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7833 | else |
| 7834 | case $RUNTEST in |
| 7835 | [\\/]* | ?:[\\/]*) |
| 7836 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7837 | ;; |
| 7838 | *) |
| 7839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7840 | for as_dir in $PATH |
| 7841 | do |
| 7842 | IFS=$as_save_IFS |
| 7843 | test -z "$as_dir" && as_dir=. |
| 7844 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7846 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7848 | break 2 |
| 7849 | fi |
| 7850 | done |
| 7851 | done |
| 7852 | IFS=$as_save_IFS |
| 7853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7854 | ;; |
| 7855 | esac |
| 7856 | fi |
| 7857 | RUNTEST=$ac_cv_path_RUNTEST |
| 7858 | if test -n "$RUNTEST"; then |
| 7859 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7860 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7861 | else |
| 7862 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7863 | echo "${ECHO_T}no" >&6; } |
| 7864 | fi |
| 7865 | |
| 7866 | |
| 7867 | |
| 7868 | no_itcl=true |
| 7869 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7870 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7871 | |
| 7872 | # Check whether --with-tclinclude was given. |
| 7873 | if test "${with_tclinclude+set}" = set; then |
| 7874 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7875 | else |
| 7876 | with_tclinclude='' |
| 7877 | fi |
| 7878 | |
| 7879 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7881 | else |
| 7882 | |
| 7883 | if test x"${with_tclinclude}" != x ; then |
| 7884 | if test -f ${with_tclinclude}/tclsh ; then |
| 7885 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7886 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7887 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7888 | else |
| 7889 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7890 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7891 | { (exit 1); exit 1; }; } |
| 7892 | fi |
| 7893 | fi |
| 7894 | |
| 7895 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7896 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7897 | echo "${ECHO_T}none" >&6; } |
| 7898 | 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 |
| 7899 | do |
| 7900 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7901 | set dummy $ac_prog; ac_word=$2 |
| 7902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7904 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7906 | else |
| 7907 | case $TCLSH in |
| 7908 | [\\/]* | ?:[\\/]*) |
| 7909 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7910 | ;; |
| 7911 | *) |
| 7912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7913 | for as_dir in $PATH |
| 7914 | do |
| 7915 | IFS=$as_save_IFS |
| 7916 | test -z "$as_dir" && as_dir=. |
| 7917 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7919 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7921 | break 2 |
| 7922 | fi |
| 7923 | done |
| 7924 | done |
| 7925 | IFS=$as_save_IFS |
| 7926 | |
| 7927 | ;; |
| 7928 | esac |
| 7929 | fi |
| 7930 | TCLSH=$ac_cv_path_TCLSH |
| 7931 | if test -n "$TCLSH"; then |
| 7932 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7933 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7934 | else |
| 7935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7936 | echo "${ECHO_T}no" >&6; } |
| 7937 | fi |
| 7938 | |
| 7939 | |
| 7940 | test -n "$TCLSH" && break |
| 7941 | done |
| 7942 | |
| 7943 | if test x"${TCLSH}" = x ; then |
| 7944 | ac_cv_path_tclsh=''; |
| 7945 | else |
| 7946 | ac_cv_path_tclsh="${TCLSH}"; |
| 7947 | fi |
| 7948 | else |
| 7949 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7950 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7951 | TCLSH="${ac_cv_path_tclsh}" |
| 7952 | |
| 7953 | fi |
| 7954 | |
| 7955 | fi |
| 7956 | |
| 7957 | # Extract the first word of "zip", so it can be a program name with args. |
| 7958 | set dummy zip; ac_word=$2 |
| 7959 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7961 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7963 | else |
| 7964 | case $ZIP in |
| 7965 | [\\/]* | ?:[\\/]*) |
| 7966 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7967 | ;; |
| 7968 | *) |
| 7969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7970 | for as_dir in $PATH |
| 7971 | do |
| 7972 | IFS=$as_save_IFS |
| 7973 | test -z "$as_dir" && as_dir=. |
| 7974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 7975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7976 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7978 | break 2 |
| 7979 | fi |
| 7980 | done |
| 7981 | done |
| 7982 | IFS=$as_save_IFS |
| 7983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7984 | ;; |
| 7985 | esac |
| 7986 | fi |
| 7987 | ZIP=$ac_cv_path_ZIP |
| 7988 | if test -n "$ZIP"; then |
| 7989 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7990 | echo "${ECHO_T}$ZIP" >&6; } |
| 7991 | else |
| 7992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7993 | echo "${ECHO_T}no" >&6; } |
| 7994 | fi |
| 7995 | |
| 7996 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7997 | for ac_prog in ocamlc.opt ocamlc |
| 7998 | do |
| 7999 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8000 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8003 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8005 | else |
| 8006 | case $OCAMLC in |
| 8007 | [\\/]* | ?:[\\/]*) |
| 8008 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8009 | ;; |
| 8010 | *) |
| 8011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8012 | for as_dir in $PATH |
| 8013 | do |
| 8014 | IFS=$as_save_IFS |
| 8015 | test -z "$as_dir" && as_dir=. |
| 8016 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8018 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8020 | break 2 |
| 8021 | fi |
| 8022 | done |
| 8023 | done |
| 8024 | IFS=$as_save_IFS |
| 8025 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8026 | ;; |
| 8027 | esac |
| 8028 | fi |
| 8029 | OCAMLC=$ac_cv_path_OCAMLC |
| 8030 | if test -n "$OCAMLC"; then |
| 8031 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8032 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8033 | else |
| 8034 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8035 | echo "${ECHO_T}no" >&6; } |
| 8036 | fi |
| 8037 | |
| 8038 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8039 | test -n "$OCAMLC" && break |
| 8040 | done |
| 8041 | |
| 8042 | for ac_prog in ocamlopt.opt ocamlopt |
| 8043 | do |
| 8044 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8045 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8048 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8050 | else |
| 8051 | case $OCAMLOPT in |
| 8052 | [\\/]* | ?:[\\/]*) |
| 8053 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8054 | ;; |
| 8055 | *) |
| 8056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8057 | for as_dir in $PATH |
| 8058 | do |
| 8059 | IFS=$as_save_IFS |
| 8060 | test -z "$as_dir" && as_dir=. |
| 8061 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8063 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8065 | break 2 |
| 8066 | fi |
| 8067 | done |
| 8068 | done |
| 8069 | IFS=$as_save_IFS |
| 8070 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8071 | ;; |
| 8072 | esac |
| 8073 | fi |
| 8074 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8075 | if test -n "$OCAMLOPT"; then |
| 8076 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8077 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8078 | else |
| 8079 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8080 | echo "${ECHO_T}no" >&6; } |
| 8081 | fi |
| 8082 | |
| 8083 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8084 | test -n "$OCAMLOPT" && break |
| 8085 | done |
| 8086 | |
| 8087 | for ac_prog in ocamldep.opt ocamldep |
| 8088 | do |
| 8089 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8090 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8091 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8093 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8095 | else |
| 8096 | case $OCAMLDEP in |
| 8097 | [\\/]* | ?:[\\/]*) |
| 8098 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8099 | ;; |
| 8100 | *) |
| 8101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8102 | for as_dir in $PATH |
| 8103 | do |
| 8104 | IFS=$as_save_IFS |
| 8105 | test -z "$as_dir" && as_dir=. |
| 8106 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8108 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8110 | break 2 |
| 8111 | fi |
| 8112 | done |
| 8113 | done |
| 8114 | IFS=$as_save_IFS |
| 8115 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8116 | ;; |
| 8117 | esac |
| 8118 | fi |
| 8119 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8120 | if test -n "$OCAMLDEP"; then |
| 8121 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8122 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8123 | else |
| 8124 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8125 | echo "${ECHO_T}no" >&6; } |
| 8126 | fi |
| 8127 | |
| 8128 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8129 | test -n "$OCAMLDEP" && break |
| 8130 | done |
| 8131 | |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8132 | for ac_prog in ocamldoc.opt ocamldoc |
| 8133 | do |
| 8134 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8135 | set dummy $ac_prog; ac_word=$2 |
| 8136 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8138 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8140 | else |
| 8141 | case $OCAMLDOC in |
| 8142 | [\\/]* | ?:[\\/]*) |
| 8143 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8144 | ;; |
| 8145 | *) |
| 8146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8147 | for as_dir in $PATH |
| 8148 | do |
| 8149 | IFS=$as_save_IFS |
| 8150 | test -z "$as_dir" && as_dir=. |
| 8151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8153 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8155 | break 2 |
| 8156 | fi |
| 8157 | done |
| 8158 | done |
| 8159 | IFS=$as_save_IFS |
| 8160 | |
| 8161 | ;; |
| 8162 | esac |
| 8163 | fi |
| 8164 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8165 | if test -n "$OCAMLDOC"; then |
| 8166 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8167 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8168 | else |
| 8169 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8170 | echo "${ECHO_T}no" >&6; } |
| 8171 | fi |
| 8172 | |
| 8173 | |
| 8174 | test -n "$OCAMLDOC" && break |
| 8175 | done |
| 8176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8177 | |
| 8178 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8179 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8180 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8182 | else |
| 8183 | ac_ext=c |
| 8184 | ac_cpp='$CPP $CPPFLAGS' |
| 8185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8188 | |
| 8189 | oldcflags="$CFLAGS" |
| 8190 | CFLAGS="$CFLAGS -Wl,-R." |
| 8191 | cat >conftest.$ac_ext <<_ACEOF |
| 8192 | /* confdefs.h. */ |
| 8193 | _ACEOF |
| 8194 | cat confdefs.h >>conftest.$ac_ext |
| 8195 | cat >>conftest.$ac_ext <<_ACEOF |
| 8196 | /* end confdefs.h. */ |
| 8197 | |
| 8198 | int |
| 8199 | main () |
| 8200 | { |
| 8201 | int main() { return 0; } |
| 8202 | ; |
| 8203 | return 0; |
| 8204 | } |
| 8205 | _ACEOF |
| 8206 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8207 | if { (ac_try="$ac_link" |
| 8208 | case "(($ac_try" in |
| 8209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8210 | *) ac_try_echo=$ac_try;; |
| 8211 | esac |
| 8212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8213 | (eval "$ac_link") 2>conftest.er1 |
| 8214 | ac_status=$? |
| 8215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8216 | rm -f conftest.er1 |
| 8217 | cat conftest.err >&5 |
| 8218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8219 | (exit $ac_status); } && |
| 8220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8221 | { (case "(($ac_try" in |
| 8222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8223 | *) ac_try_echo=$ac_try;; |
| 8224 | esac |
| 8225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8226 | (eval "$ac_try") 2>&5 |
| 8227 | ac_status=$? |
| 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8229 | (exit $ac_status); }; } && |
| 8230 | { ac_try='test -s conftest$ac_exeext' |
| 8231 | { (case "(($ac_try" in |
| 8232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8233 | *) ac_try_echo=$ac_try;; |
| 8234 | esac |
| 8235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8236 | (eval "$ac_try") 2>&5 |
| 8237 | ac_status=$? |
| 8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8239 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8240 | llvm_cv_link_use_r=yes |
| 8241 | else |
| 8242 | echo "$as_me: failed program was:" >&5 |
| 8243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8244 | |
| 8245 | llvm_cv_link_use_r=no |
| 8246 | fi |
| 8247 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8248 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8249 | conftest$ac_exeext conftest.$ac_ext |
| 8250 | CFLAGS="$oldcflags" |
| 8251 | ac_ext=c |
| 8252 | ac_cpp='$CPP $CPPFLAGS' |
| 8253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8256 | |
| 8257 | |
| 8258 | fi |
| 8259 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8260 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8261 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8262 | |
| 8263 | cat >>confdefs.h <<\_ACEOF |
| 8264 | #define HAVE_LINK_R 1 |
| 8265 | _ACEOF |
| 8266 | |
| 8267 | fi |
| 8268 | |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8273 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8274 | if test "${ac_cv_c_const+set}" = set; then |
| 8275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8276 | else |
| 8277 | cat >conftest.$ac_ext <<_ACEOF |
| 8278 | /* confdefs.h. */ |
| 8279 | _ACEOF |
| 8280 | cat confdefs.h >>conftest.$ac_ext |
| 8281 | cat >>conftest.$ac_ext <<_ACEOF |
| 8282 | /* end confdefs.h. */ |
| 8283 | |
| 8284 | int |
| 8285 | main () |
| 8286 | { |
| 8287 | /* FIXME: Include the comments suggested by Paul. */ |
| 8288 | #ifndef __cplusplus |
| 8289 | /* Ultrix mips cc rejects this. */ |
| 8290 | typedef int charset[2]; |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8291 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8292 | /* SunOS 4.1.1 cc rejects this. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8293 | char const *const *ccp; |
| 8294 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8295 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8296 | struct point {int x, y;}; |
| 8297 | static struct point const zero = {0,0}; |
| 8298 | /* AIX XL C 1.02.0.0 rejects this. |
| 8299 | It does not let you subtract one const X* pointer from another in |
| 8300 | an arm of an if-expression whose if-part is not a constant |
| 8301 | expression */ |
| 8302 | const char *g = "string"; |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8303 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8304 | /* HPUX 7.0 cc rejects these. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8305 | ++ccp; |
| 8306 | p = (char**) ccp; |
| 8307 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8308 | { /* SCO 3.2v4 cc rejects this. */ |
| 8309 | char *t; |
| 8310 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8311 | |
| 8312 | *t++ = 0; |
| 8313 | if (s) return 0; |
| 8314 | } |
| 8315 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8316 | int x[] = {25, 17}; |
| 8317 | const int *foo = &x[0]; |
| 8318 | ++foo; |
| 8319 | } |
| 8320 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8321 | typedef const int *iptr; |
| 8322 | iptr p = 0; |
| 8323 | ++p; |
| 8324 | } |
| 8325 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8326 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8327 | struct s { int j; const int *ap[3]; }; |
| 8328 | struct s *b; b->j = 5; |
| 8329 | } |
| 8330 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8331 | const int foo = 10; |
| 8332 | if (!foo) return 0; |
| 8333 | } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8334 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | #endif |
| 8336 | |
| 8337 | ; |
| 8338 | return 0; |
| 8339 | } |
| 8340 | _ACEOF |
| 8341 | rm -f conftest.$ac_objext |
| 8342 | if { (ac_try="$ac_compile" |
| 8343 | case "(($ac_try" in |
| 8344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8345 | *) ac_try_echo=$ac_try;; |
| 8346 | esac |
| 8347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8348 | (eval "$ac_compile") 2>conftest.er1 |
| 8349 | ac_status=$? |
| 8350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8351 | rm -f conftest.er1 |
| 8352 | cat conftest.err >&5 |
| 8353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8354 | (exit $ac_status); } && |
| 8355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8356 | { (case "(($ac_try" in |
| 8357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8358 | *) ac_try_echo=$ac_try;; |
| 8359 | esac |
| 8360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8361 | (eval "$ac_try") 2>&5 |
| 8362 | ac_status=$? |
| 8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8364 | (exit $ac_status); }; } && |
| 8365 | { ac_try='test -s conftest.$ac_objext' |
| 8366 | { (case "(($ac_try" in |
| 8367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8368 | *) ac_try_echo=$ac_try;; |
| 8369 | esac |
| 8370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8371 | (eval "$ac_try") 2>&5 |
| 8372 | ac_status=$? |
| 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8374 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8375 | ac_cv_c_const=yes |
| 8376 | else |
| 8377 | echo "$as_me: failed program was:" >&5 |
| 8378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8379 | |
| 8380 | ac_cv_c_const=no |
| 8381 | fi |
| 8382 | |
| 8383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8384 | fi |
| 8385 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8386 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8387 | if test $ac_cv_c_const = no; then |
| 8388 | |
| 8389 | cat >>confdefs.h <<\_ACEOF |
| 8390 | #define const |
| 8391 | _ACEOF |
| 8392 | |
| 8393 | fi |
| 8394 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | ac_header_dirent=no |
| 8401 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8402 | 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] | 8403 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8404 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8405 | 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] | 8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8407 | else |
| 8408 | cat >conftest.$ac_ext <<_ACEOF |
| 8409 | /* confdefs.h. */ |
| 8410 | _ACEOF |
| 8411 | cat confdefs.h >>conftest.$ac_ext |
| 8412 | cat >>conftest.$ac_ext <<_ACEOF |
| 8413 | /* end confdefs.h. */ |
| 8414 | #include <sys/types.h> |
| 8415 | #include <$ac_hdr> |
| 8416 | |
| 8417 | int |
| 8418 | main () |
| 8419 | { |
| 8420 | if ((DIR *) 0) |
| 8421 | return 0; |
| 8422 | ; |
| 8423 | return 0; |
| 8424 | } |
| 8425 | _ACEOF |
| 8426 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8427 | if { (ac_try="$ac_compile" |
| 8428 | case "(($ac_try" in |
| 8429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8430 | *) ac_try_echo=$ac_try;; |
| 8431 | esac |
| 8432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8433 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8434 | ac_status=$? |
| 8435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8436 | rm -f conftest.er1 |
| 8437 | cat conftest.err >&5 |
| 8438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8439 | (exit $ac_status); } && |
| 8440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8441 | { (case "(($ac_try" in |
| 8442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8443 | *) ac_try_echo=$ac_try;; |
| 8444 | esac |
| 8445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8446 | (eval "$ac_try") 2>&5 |
| 8447 | ac_status=$? |
| 8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8449 | (exit $ac_status); }; } && |
| 8450 | { ac_try='test -s conftest.$ac_objext' |
| 8451 | { (case "(($ac_try" in |
| 8452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8453 | *) ac_try_echo=$ac_try;; |
| 8454 | esac |
| 8455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8456 | (eval "$ac_try") 2>&5 |
| 8457 | ac_status=$? |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8460 | eval "$as_ac_Header=yes" |
| 8461 | else |
| 8462 | echo "$as_me: failed program was:" >&5 |
| 8463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8464 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8465 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8466 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8467 | |
| 8468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8469 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8470 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8472 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8473 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8474 | cat >>confdefs.h <<_ACEOF |
| 8475 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8476 | _ACEOF |
| 8477 | |
| 8478 | ac_header_dirent=$ac_hdr; break |
| 8479 | fi |
| 8480 | |
| 8481 | done |
| 8482 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8483 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8484 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8485 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8486 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8488 | else |
| 8489 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8490 | cat >conftest.$ac_ext <<_ACEOF |
| 8491 | /* confdefs.h. */ |
| 8492 | _ACEOF |
| 8493 | cat confdefs.h >>conftest.$ac_ext |
| 8494 | cat >>conftest.$ac_ext <<_ACEOF |
| 8495 | /* end confdefs.h. */ |
| 8496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8497 | /* Override any GCC internal prototype to avoid an error. |
| 8498 | Use char because int might match the return type of a GCC |
| 8499 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8500 | #ifdef __cplusplus |
| 8501 | extern "C" |
| 8502 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8503 | char opendir (); |
| 8504 | int |
| 8505 | main () |
| 8506 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8507 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8508 | ; |
| 8509 | return 0; |
| 8510 | } |
| 8511 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8512 | for ac_lib in '' dir; do |
| 8513 | if test -z "$ac_lib"; then |
| 8514 | ac_res="none required" |
| 8515 | else |
| 8516 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8518 | fi |
| 8519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8520 | if { (ac_try="$ac_link" |
| 8521 | case "(($ac_try" in |
| 8522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8523 | *) ac_try_echo=$ac_try;; |
| 8524 | esac |
| 8525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8526 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8527 | ac_status=$? |
| 8528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8529 | rm -f conftest.er1 |
| 8530 | cat conftest.err >&5 |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8532 | (exit $ac_status); } && |
| 8533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8534 | { (case "(($ac_try" in |
| 8535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8536 | *) ac_try_echo=$ac_try;; |
| 8537 | esac |
| 8538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8539 | (eval "$ac_try") 2>&5 |
| 8540 | ac_status=$? |
| 8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8542 | (exit $ac_status); }; } && |
| 8543 | { ac_try='test -s conftest$ac_exeext' |
| 8544 | { (case "(($ac_try" in |
| 8545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8546 | *) ac_try_echo=$ac_try;; |
| 8547 | esac |
| 8548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8549 | (eval "$ac_try") 2>&5 |
| 8550 | ac_status=$? |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8553 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8554 | else |
| 8555 | echo "$as_me: failed program was:" >&5 |
| 8556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8557 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8558 | |
| 8559 | fi |
| 8560 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8561 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8562 | conftest$ac_exeext |
| 8563 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8564 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8565 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8566 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8567 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8568 | : |
| 8569 | else |
| 8570 | ac_cv_search_opendir=no |
| 8571 | fi |
| 8572 | rm conftest.$ac_ext |
| 8573 | LIBS=$ac_func_search_save_LIBS |
| 8574 | fi |
| 8575 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8576 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8577 | ac_res=$ac_cv_search_opendir |
| 8578 | if test "$ac_res" != no; then |
| 8579 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8581 | fi |
| 8582 | |
| 8583 | else |
| 8584 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8585 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8586 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8588 | else |
| 8589 | ac_func_search_save_LIBS=$LIBS |
| 8590 | cat >conftest.$ac_ext <<_ACEOF |
| 8591 | /* confdefs.h. */ |
| 8592 | _ACEOF |
| 8593 | cat confdefs.h >>conftest.$ac_ext |
| 8594 | cat >>conftest.$ac_ext <<_ACEOF |
| 8595 | /* end confdefs.h. */ |
| 8596 | |
| 8597 | /* Override any GCC internal prototype to avoid an error. |
| 8598 | Use char because int might match the return type of a GCC |
| 8599 | builtin and then its argument prototype would still apply. */ |
| 8600 | #ifdef __cplusplus |
| 8601 | extern "C" |
| 8602 | #endif |
| 8603 | char opendir (); |
| 8604 | int |
| 8605 | main () |
| 8606 | { |
| 8607 | return opendir (); |
| 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
| 8612 | for ac_lib in '' x; do |
| 8613 | if test -z "$ac_lib"; then |
| 8614 | ac_res="none required" |
| 8615 | else |
| 8616 | ac_res=-l$ac_lib |
| 8617 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8618 | fi |
| 8619 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8620 | if { (ac_try="$ac_link" |
| 8621 | case "(($ac_try" in |
| 8622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8623 | *) ac_try_echo=$ac_try;; |
| 8624 | esac |
| 8625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8626 | (eval "$ac_link") 2>conftest.er1 |
| 8627 | ac_status=$? |
| 8628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8629 | rm -f conftest.er1 |
| 8630 | cat conftest.err >&5 |
| 8631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8632 | (exit $ac_status); } && |
| 8633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8634 | { (case "(($ac_try" in |
| 8635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8636 | *) ac_try_echo=$ac_try;; |
| 8637 | esac |
| 8638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8639 | (eval "$ac_try") 2>&5 |
| 8640 | ac_status=$? |
| 8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8642 | (exit $ac_status); }; } && |
| 8643 | { ac_try='test -s conftest$ac_exeext' |
| 8644 | { (case "(($ac_try" in |
| 8645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8646 | *) ac_try_echo=$ac_try;; |
| 8647 | esac |
| 8648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8649 | (eval "$ac_try") 2>&5 |
| 8650 | ac_status=$? |
| 8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8652 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8653 | ac_cv_search_opendir=$ac_res |
| 8654 | else |
| 8655 | echo "$as_me: failed program was:" >&5 |
| 8656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8657 | |
| 8658 | |
| 8659 | fi |
| 8660 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8661 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8662 | conftest$ac_exeext |
| 8663 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8664 | break |
| 8665 | fi |
| 8666 | done |
| 8667 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8668 | : |
| 8669 | else |
| 8670 | ac_cv_search_opendir=no |
| 8671 | fi |
| 8672 | rm conftest.$ac_ext |
| 8673 | LIBS=$ac_func_search_save_LIBS |
| 8674 | fi |
| 8675 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8676 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8677 | ac_res=$ac_cv_search_opendir |
| 8678 | if test "$ac_res" != no; then |
| 8679 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8680 | |
| 8681 | fi |
| 8682 | |
| 8683 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8684 | |
| 8685 | |
| 8686 | for ac_header in dlfcn.h |
| 8687 | do |
| 8688 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8690 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8692 | 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] | 8693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8694 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8695 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8697 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8698 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8699 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8700 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8701 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8702 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8703 | /* confdefs.h. */ |
| 8704 | _ACEOF |
| 8705 | cat confdefs.h >>conftest.$ac_ext |
| 8706 | cat >>conftest.$ac_ext <<_ACEOF |
| 8707 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8708 | $ac_includes_default |
| 8709 | #include <$ac_header> |
| 8710 | _ACEOF |
| 8711 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8712 | if { (ac_try="$ac_compile" |
| 8713 | case "(($ac_try" in |
| 8714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8715 | *) ac_try_echo=$ac_try;; |
| 8716 | esac |
| 8717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8718 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8719 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8721 | rm -f conftest.er1 |
| 8722 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8724 | (exit $ac_status); } && |
| 8725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8726 | { (case "(($ac_try" in |
| 8727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8728 | *) ac_try_echo=$ac_try;; |
| 8729 | esac |
| 8730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8731 | (eval "$ac_try") 2>&5 |
| 8732 | ac_status=$? |
| 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8734 | (exit $ac_status); }; } && |
| 8735 | { ac_try='test -s conftest.$ac_objext' |
| 8736 | { (case "(($ac_try" in |
| 8737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8738 | *) ac_try_echo=$ac_try;; |
| 8739 | esac |
| 8740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8741 | (eval "$ac_try") 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8745 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8746 | else |
| 8747 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8750 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8752 | |
| 8753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8754 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8755 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8756 | |
| 8757 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8758 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8759 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8760 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8761 | /* confdefs.h. */ |
| 8762 | _ACEOF |
| 8763 | cat confdefs.h >>conftest.$ac_ext |
| 8764 | cat >>conftest.$ac_ext <<_ACEOF |
| 8765 | /* end confdefs.h. */ |
| 8766 | #include <$ac_header> |
| 8767 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8768 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8769 | case "(($ac_try" in |
| 8770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8771 | *) ac_try_echo=$ac_try;; |
| 8772 | esac |
| 8773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8774 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8775 | ac_status=$? |
| 8776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8777 | rm -f conftest.er1 |
| 8778 | cat conftest.err >&5 |
| 8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 8780 | (exit $ac_status); } >/dev/null; then |
| 8781 | if test -s conftest.err; then |
| 8782 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8784 | else |
| 8785 | ac_cpp_err= |
| 8786 | fi |
| 8787 | else |
| 8788 | ac_cpp_err=yes |
| 8789 | fi |
| 8790 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8791 | ac_header_preproc=yes |
| 8792 | else |
| 8793 | echo "$as_me: failed program was:" >&5 |
| 8794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8795 | |
| 8796 | ac_header_preproc=no |
| 8797 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8798 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8799 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8800 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8801 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8802 | |
| 8803 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8804 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8805 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8806 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8807 | 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] | 8808 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8809 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8810 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8811 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8812 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8813 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8814 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8815 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8816 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8817 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8818 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8819 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8820 | 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] | 8821 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8822 | 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] | 8823 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8824 | 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] | 8825 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8826 | ## ----------------------------------- ## |
| 8827 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8828 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8829 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8830 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8831 | ;; |
| 8832 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8833 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8835 | 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] | 8836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8837 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8838 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8839 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8840 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8841 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8842 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8843 | |
| 8844 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8846 | cat >>confdefs.h <<_ACEOF |
| 8847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8848 | _ACEOF |
| 8849 | |
| 8850 | fi |
| 8851 | |
| 8852 | done |
| 8853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8854 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8855 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8856 | enableval=$enable_ltdl_install; |
| 8857 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8858 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8859 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8860 | |
| 8861 | |
| 8862 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8863 | INSTALL_LTDL_TRUE= |
| 8864 | INSTALL_LTDL_FALSE='#' |
| 8865 | else |
| 8866 | INSTALL_LTDL_TRUE='#' |
| 8867 | INSTALL_LTDL_FALSE= |
| 8868 | fi |
| 8869 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8870 | |
| 8871 | |
| 8872 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8873 | CONVENIENCE_LTDL_TRUE= |
| 8874 | CONVENIENCE_LTDL_FALSE='#' |
| 8875 | else |
| 8876 | CONVENIENCE_LTDL_TRUE='#' |
| 8877 | CONVENIENCE_LTDL_FALSE= |
| 8878 | fi |
| 8879 | |
| 8880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8881 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8882 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8883 | library_names_spec= |
| 8884 | libname_spec='lib$name' |
| 8885 | soname_spec= |
| 8886 | shrext_cmds=".so" |
| 8887 | postinstall_cmds= |
| 8888 | postuninstall_cmds= |
| 8889 | finish_cmds= |
| 8890 | finish_eval= |
| 8891 | shlibpath_var= |
| 8892 | shlibpath_overrides_runpath=unknown |
| 8893 | version_type=none |
| 8894 | dynamic_linker="$host_os ld.so" |
| 8895 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8896 | if test "$GCC" = yes; then |
| 8897 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8898 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8899 | # if the path contains ";" then we assume it to be the separator |
| 8900 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8901 | # assumed that no part of a normal pathname contains ";" but that should |
| 8902 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8903 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8904 | else |
| 8905 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8906 | fi |
| 8907 | else |
| 8908 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8909 | fi |
| 8910 | need_lib_prefix=unknown |
| 8911 | hardcode_into_libs=no |
| 8912 | |
| 8913 | # when you set need_version to no, make sure it does not cause -set_version |
| 8914 | # flags to be left without arguments |
| 8915 | need_version=unknown |
| 8916 | |
| 8917 | case $host_os in |
| 8918 | aix3*) |
| 8919 | version_type=linux |
| 8920 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8921 | shlibpath_var=LIBPATH |
| 8922 | |
| 8923 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8925 | ;; |
| 8926 | |
| 8927 | aix4* | aix5*) |
| 8928 | version_type=linux |
| 8929 | need_lib_prefix=no |
| 8930 | need_version=no |
| 8931 | hardcode_into_libs=yes |
| 8932 | if test "$host_cpu" = ia64; then |
| 8933 | # AIX 5 supports IA64 |
| 8934 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8935 | shlibpath_var=LD_LIBRARY_PATH |
| 8936 | else |
| 8937 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8938 | # for dependence libraries. The import file would start with |
| 8939 | # the line `#! .'. This would cause the generated library to |
| 8940 | # depend on `.', always an invalid library. This was fixed in |
| 8941 | # development snapshots of GCC prior to 3.0. |
| 8942 | case $host_os in |
| 8943 | aix4 | aix4.[01] | aix4.[01].*) |
| 8944 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8945 | echo ' yes ' |
| 8946 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8947 | : |
| 8948 | else |
| 8949 | can_build_shared=no |
| 8950 | fi |
| 8951 | ;; |
| 8952 | esac |
| 8953 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8954 | # soname into executable. Probably we can add versioning support to |
| 8955 | # collect2, so additional links can be useful in future. |
| 8956 | if test "$aix_use_runtimelinking" = yes; then |
| 8957 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8958 | # instead of lib<name>.a to let people know that these are not |
| 8959 | # typical AIX shared libraries. |
| 8960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8961 | else |
| 8962 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8963 | # and later when we are not doing run time linking. |
| 8964 | library_names_spec='${libname}${release}.a $libname.a' |
| 8965 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8966 | fi |
| 8967 | shlibpath_var=LIBPATH |
| 8968 | fi |
| 8969 | ;; |
| 8970 | |
| 8971 | amigaos*) |
| 8972 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8973 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8974 | 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' |
| 8975 | ;; |
| 8976 | |
| 8977 | beos*) |
| 8978 | library_names_spec='${libname}${shared_ext}' |
| 8979 | dynamic_linker="$host_os ld.so" |
| 8980 | shlibpath_var=LIBRARY_PATH |
| 8981 | ;; |
| 8982 | |
| 8983 | bsdi[45]*) |
| 8984 | version_type=linux |
| 8985 | need_version=no |
| 8986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8987 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8988 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8989 | shlibpath_var=LD_LIBRARY_PATH |
| 8990 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8991 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8992 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8993 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8994 | # libtool to hard-code these into programs |
| 8995 | ;; |
| 8996 | |
| 8997 | cygwin* | mingw* | pw32*) |
| 8998 | version_type=windows |
| 8999 | shrext_cmds=".dll" |
| 9000 | need_version=no |
| 9001 | need_lib_prefix=no |
| 9002 | |
| 9003 | case $GCC,$host_os in |
| 9004 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9005 | library_names_spec='$libname.dll.a' |
| 9006 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9007 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9008 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9009 | dldir=$destdir/`dirname \$dlpath`~ |
| 9010 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9011 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9012 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9013 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9014 | dlpath=$dir/\$dldll~ |
| 9015 | $rm \$dlpath' |
| 9016 | shlibpath_overrides_runpath=yes |
| 9017 | |
| 9018 | case $host_os in |
| 9019 | cygwin*) |
| 9020 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9021 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9022 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9023 | ;; |
| 9024 | mingw*) |
| 9025 | # MinGW DLLs use traditional 'lib' prefix |
| 9026 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9027 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9028 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9029 | # It is most probably a Windows format PATH printed by |
| 9030 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9031 | # path with ; separators, and with drive letters. We can handle the |
| 9032 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9033 | # especially as we might pass files found there to a mingw objdump, |
| 9034 | # which wouldn't understand a cygwinified path. Ahh. |
| 9035 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9036 | else |
| 9037 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9038 | fi |
| 9039 | ;; |
| 9040 | pw32*) |
| 9041 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9042 | 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] | 9043 | ;; |
| 9044 | esac |
| 9045 | ;; |
| 9046 | |
| 9047 | *) |
| 9048 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9049 | ;; |
| 9050 | esac |
| 9051 | dynamic_linker='Win32 ld.exe' |
| 9052 | # FIXME: first we should search . and the directory the executable is in |
| 9053 | shlibpath_var=PATH |
| 9054 | ;; |
| 9055 | |
| 9056 | darwin* | rhapsody*) |
| 9057 | dynamic_linker="$host_os dyld" |
| 9058 | version_type=darwin |
| 9059 | need_lib_prefix=no |
| 9060 | need_version=no |
| 9061 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9062 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9063 | shlibpath_overrides_runpath=yes |
| 9064 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9065 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9066 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9067 | if test "$GCC" = yes; then |
| 9068 | 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"` |
| 9069 | else |
| 9070 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9071 | fi |
| 9072 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9073 | ;; |
| 9074 | |
| 9075 | dgux*) |
| 9076 | version_type=linux |
| 9077 | need_lib_prefix=no |
| 9078 | need_version=no |
| 9079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9080 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9081 | shlibpath_var=LD_LIBRARY_PATH |
| 9082 | ;; |
| 9083 | |
| 9084 | freebsd1*) |
| 9085 | dynamic_linker=no |
| 9086 | ;; |
| 9087 | |
| 9088 | kfreebsd*-gnu) |
| 9089 | version_type=linux |
| 9090 | need_lib_prefix=no |
| 9091 | need_version=no |
| 9092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9093 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9094 | shlibpath_var=LD_LIBRARY_PATH |
| 9095 | shlibpath_overrides_runpath=no |
| 9096 | hardcode_into_libs=yes |
| 9097 | dynamic_linker='GNU ld.so' |
| 9098 | ;; |
| 9099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9100 | freebsd* | dragonfly*) |
| 9101 | # DragonFly does not have aout. When/if they implement a new |
| 9102 | # versioning mechanism, adjust this. |
| 9103 | if test -x /usr/bin/objformat; then |
| 9104 | objformat=`/usr/bin/objformat` |
| 9105 | else |
| 9106 | case $host_os in |
| 9107 | freebsd[123]*) objformat=aout ;; |
| 9108 | *) objformat=elf ;; |
| 9109 | esac |
| 9110 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9111 | version_type=freebsd-$objformat |
| 9112 | case $version_type in |
| 9113 | freebsd-elf*) |
| 9114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9115 | need_version=no |
| 9116 | need_lib_prefix=no |
| 9117 | ;; |
| 9118 | freebsd-*) |
| 9119 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9120 | need_version=yes |
| 9121 | ;; |
| 9122 | esac |
| 9123 | shlibpath_var=LD_LIBRARY_PATH |
| 9124 | case $host_os in |
| 9125 | freebsd2*) |
| 9126 | shlibpath_overrides_runpath=yes |
| 9127 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9128 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9129 | shlibpath_overrides_runpath=yes |
| 9130 | hardcode_into_libs=yes |
| 9131 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9132 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9133 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9134 | shlibpath_overrides_runpath=no |
| 9135 | hardcode_into_libs=yes |
| 9136 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9137 | freebsd*) # from 4.6 on |
| 9138 | shlibpath_overrides_runpath=yes |
| 9139 | hardcode_into_libs=yes |
| 9140 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9141 | esac |
| 9142 | ;; |
| 9143 | |
| 9144 | gnu*) |
| 9145 | version_type=linux |
| 9146 | need_lib_prefix=no |
| 9147 | need_version=no |
| 9148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9149 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9150 | shlibpath_var=LD_LIBRARY_PATH |
| 9151 | hardcode_into_libs=yes |
| 9152 | ;; |
| 9153 | |
| 9154 | hpux9* | hpux10* | hpux11*) |
| 9155 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9156 | # link against other versions. |
| 9157 | version_type=sunos |
| 9158 | need_lib_prefix=no |
| 9159 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9160 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9161 | ia64*) |
| 9162 | shrext_cmds='.so' |
| 9163 | hardcode_into_libs=yes |
| 9164 | dynamic_linker="$host_os dld.so" |
| 9165 | shlibpath_var=LD_LIBRARY_PATH |
| 9166 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9169 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9170 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9171 | else |
| 9172 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9173 | fi |
| 9174 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9175 | ;; |
| 9176 | hppa*64*) |
| 9177 | shrext_cmds='.sl' |
| 9178 | hardcode_into_libs=yes |
| 9179 | dynamic_linker="$host_os dld.sl" |
| 9180 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9181 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9183 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9184 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9185 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9186 | ;; |
| 9187 | *) |
| 9188 | shrext_cmds='.sl' |
| 9189 | dynamic_linker="$host_os dld.sl" |
| 9190 | shlibpath_var=SHLIB_PATH |
| 9191 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9194 | ;; |
| 9195 | esac |
| 9196 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9197 | postinstall_cmds='chmod 555 $lib' |
| 9198 | ;; |
| 9199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9200 | interix3*) |
| 9201 | version_type=linux |
| 9202 | need_lib_prefix=no |
| 9203 | need_version=no |
| 9204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9205 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9206 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9207 | shlibpath_var=LD_LIBRARY_PATH |
| 9208 | shlibpath_overrides_runpath=no |
| 9209 | hardcode_into_libs=yes |
| 9210 | ;; |
| 9211 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9212 | irix5* | irix6* | nonstopux*) |
| 9213 | case $host_os in |
| 9214 | nonstopux*) version_type=nonstopux ;; |
| 9215 | *) |
| 9216 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9217 | version_type=linux |
| 9218 | else |
| 9219 | version_type=irix |
| 9220 | fi ;; |
| 9221 | esac |
| 9222 | need_lib_prefix=no |
| 9223 | need_version=no |
| 9224 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9226 | case $host_os in |
| 9227 | irix5* | nonstopux*) |
| 9228 | libsuff= shlibsuff= |
| 9229 | ;; |
| 9230 | *) |
| 9231 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9232 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9233 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9234 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9235 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9236 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9237 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9238 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9239 | esac |
| 9240 | ;; |
| 9241 | esac |
| 9242 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9243 | shlibpath_overrides_runpath=no |
| 9244 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9245 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9246 | hardcode_into_libs=yes |
| 9247 | ;; |
| 9248 | |
| 9249 | # No shared lib support for Linux oldld, aout, or coff. |
| 9250 | linux*oldld* | linux*aout* | linux*coff*) |
| 9251 | dynamic_linker=no |
| 9252 | ;; |
| 9253 | |
| 9254 | # This must be Linux ELF. |
| 9255 | linux*) |
| 9256 | version_type=linux |
| 9257 | need_lib_prefix=no |
| 9258 | need_version=no |
| 9259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9261 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9262 | shlibpath_var=LD_LIBRARY_PATH |
| 9263 | shlibpath_overrides_runpath=no |
| 9264 | # This implies no fast_install, which is unacceptable. |
| 9265 | # Some rework will be needed to allow for fast_install |
| 9266 | # before this can be enabled. |
| 9267 | hardcode_into_libs=yes |
| 9268 | |
| 9269 | # Append ld.so.conf contents to the search path |
| 9270 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9271 | 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] | 9272 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9273 | fi |
| 9274 | |
| 9275 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9276 | # powerpc, because MkLinux only supported shared libraries with the |
| 9277 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9278 | # most powerpc-linux boxes support dynamic linking these days and |
| 9279 | # people can always --disable-shared, the test was removed, and we |
| 9280 | # assume the GNU/Linux dynamic linker is in use. |
| 9281 | dynamic_linker='GNU/Linux ld.so' |
| 9282 | ;; |
| 9283 | |
| 9284 | knetbsd*-gnu) |
| 9285 | version_type=linux |
| 9286 | need_lib_prefix=no |
| 9287 | need_version=no |
| 9288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9289 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9290 | shlibpath_var=LD_LIBRARY_PATH |
| 9291 | shlibpath_overrides_runpath=no |
| 9292 | hardcode_into_libs=yes |
| 9293 | dynamic_linker='GNU ld.so' |
| 9294 | ;; |
| 9295 | |
| 9296 | netbsd*) |
| 9297 | version_type=sunos |
| 9298 | need_lib_prefix=no |
| 9299 | need_version=no |
| 9300 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9302 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9303 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9304 | else |
| 9305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9306 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9307 | dynamic_linker='NetBSD ld.elf_so' |
| 9308 | fi |
| 9309 | shlibpath_var=LD_LIBRARY_PATH |
| 9310 | shlibpath_overrides_runpath=yes |
| 9311 | hardcode_into_libs=yes |
| 9312 | ;; |
| 9313 | |
| 9314 | newsos6) |
| 9315 | version_type=linux |
| 9316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9317 | shlibpath_var=LD_LIBRARY_PATH |
| 9318 | shlibpath_overrides_runpath=yes |
| 9319 | ;; |
| 9320 | |
| 9321 | nto-qnx*) |
| 9322 | version_type=linux |
| 9323 | need_lib_prefix=no |
| 9324 | need_version=no |
| 9325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9327 | shlibpath_var=LD_LIBRARY_PATH |
| 9328 | shlibpath_overrides_runpath=yes |
| 9329 | ;; |
| 9330 | |
| 9331 | openbsd*) |
| 9332 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9333 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9334 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9335 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9336 | case $host_os in |
| 9337 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9338 | *) need_version=no ;; |
| 9339 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9341 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9342 | shlibpath_var=LD_LIBRARY_PATH |
| 9343 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9344 | case $host_os in |
| 9345 | openbsd2.[89] | openbsd2.[89].*) |
| 9346 | shlibpath_overrides_runpath=no |
| 9347 | ;; |
| 9348 | *) |
| 9349 | shlibpath_overrides_runpath=yes |
| 9350 | ;; |
| 9351 | esac |
| 9352 | else |
| 9353 | shlibpath_overrides_runpath=yes |
| 9354 | fi |
| 9355 | ;; |
| 9356 | |
| 9357 | os2*) |
| 9358 | libname_spec='$name' |
| 9359 | shrext_cmds=".dll" |
| 9360 | need_lib_prefix=no |
| 9361 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9362 | dynamic_linker='OS/2 ld.exe' |
| 9363 | shlibpath_var=LIBPATH |
| 9364 | ;; |
| 9365 | |
| 9366 | osf3* | osf4* | osf5*) |
| 9367 | version_type=osf |
| 9368 | need_lib_prefix=no |
| 9369 | need_version=no |
| 9370 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9371 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9372 | shlibpath_var=LD_LIBRARY_PATH |
| 9373 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9374 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9375 | ;; |
| 9376 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9377 | solaris*) |
| 9378 | version_type=linux |
| 9379 | need_lib_prefix=no |
| 9380 | need_version=no |
| 9381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9383 | shlibpath_var=LD_LIBRARY_PATH |
| 9384 | shlibpath_overrides_runpath=yes |
| 9385 | hardcode_into_libs=yes |
| 9386 | # ldd complains unless libraries are executable |
| 9387 | postinstall_cmds='chmod +x $lib' |
| 9388 | ;; |
| 9389 | |
| 9390 | sunos4*) |
| 9391 | version_type=sunos |
| 9392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9393 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9394 | shlibpath_var=LD_LIBRARY_PATH |
| 9395 | shlibpath_overrides_runpath=yes |
| 9396 | if test "$with_gnu_ld" = yes; then |
| 9397 | need_lib_prefix=no |
| 9398 | fi |
| 9399 | need_version=yes |
| 9400 | ;; |
| 9401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9402 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9403 | version_type=linux |
| 9404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9405 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9406 | shlibpath_var=LD_LIBRARY_PATH |
| 9407 | case $host_vendor in |
| 9408 | sni) |
| 9409 | shlibpath_overrides_runpath=no |
| 9410 | need_lib_prefix=no |
| 9411 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9412 | runpath_var=LD_RUN_PATH |
| 9413 | ;; |
| 9414 | siemens) |
| 9415 | need_lib_prefix=no |
| 9416 | ;; |
| 9417 | motorola) |
| 9418 | need_lib_prefix=no |
| 9419 | need_version=no |
| 9420 | shlibpath_overrides_runpath=no |
| 9421 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9422 | ;; |
| 9423 | esac |
| 9424 | ;; |
| 9425 | |
| 9426 | sysv4*MP*) |
| 9427 | if test -d /usr/nec ;then |
| 9428 | version_type=linux |
| 9429 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9430 | soname_spec='$libname${shared_ext}.$major' |
| 9431 | shlibpath_var=LD_LIBRARY_PATH |
| 9432 | fi |
| 9433 | ;; |
| 9434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9435 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9436 | version_type=freebsd-elf |
| 9437 | need_lib_prefix=no |
| 9438 | need_version=no |
| 9439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9440 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9441 | shlibpath_var=LD_LIBRARY_PATH |
| 9442 | hardcode_into_libs=yes |
| 9443 | if test "$with_gnu_ld" = yes; then |
| 9444 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9445 | shlibpath_overrides_runpath=no |
| 9446 | else |
| 9447 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9448 | shlibpath_overrides_runpath=yes |
| 9449 | case $host_os in |
| 9450 | sco3.2v5*) |
| 9451 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9452 | ;; |
| 9453 | esac |
| 9454 | fi |
| 9455 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9456 | ;; |
| 9457 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9458 | uts4*) |
| 9459 | version_type=linux |
| 9460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9462 | shlibpath_var=LD_LIBRARY_PATH |
| 9463 | ;; |
| 9464 | |
| 9465 | *) |
| 9466 | dynamic_linker=no |
| 9467 | ;; |
| 9468 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9469 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9470 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9471 | test "$dynamic_linker" = no && can_build_shared=no |
| 9472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9473 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9474 | if test "$GCC" = yes; then |
| 9475 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9476 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9478 | |
| 9479 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9480 | 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] | 9481 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9483 | else |
| 9484 | |
| 9485 | module=yes |
| 9486 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9487 | |
| 9488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9489 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9490 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9491 | if test -n "$libltdl_cv_shlibext"; then |
| 9492 | |
| 9493 | cat >>confdefs.h <<_ACEOF |
| 9494 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9495 | _ACEOF |
| 9496 | |
| 9497 | fi |
| 9498 | |
| 9499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9500 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9501 | 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] | 9502 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9504 | else |
| 9505 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9507 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9508 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9509 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9510 | |
| 9511 | cat >>confdefs.h <<_ACEOF |
| 9512 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9513 | _ACEOF |
| 9514 | |
| 9515 | fi |
| 9516 | |
| 9517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9518 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9519 | 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] | 9520 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9522 | else |
| 9523 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9524 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9525 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9526 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9527 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9528 | sys_search_path= |
| 9529 | for dir in $libltdl_cv_sys_search_path; do |
| 9530 | if test -z "$sys_search_path"; then |
| 9531 | sys_search_path="$dir" |
| 9532 | else |
| 9533 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9534 | fi |
| 9535 | done |
| 9536 | |
| 9537 | cat >>confdefs.h <<_ACEOF |
| 9538 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9539 | _ACEOF |
| 9540 | |
| 9541 | fi |
| 9542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9543 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9544 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9545 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9547 | else |
| 9548 | libltdl_cv_objdir="$objdir" |
| 9549 | if test -n "$objdir"; then |
| 9550 | : |
| 9551 | else |
| 9552 | rm -f .libs 2>/dev/null |
| 9553 | mkdir .libs 2>/dev/null |
| 9554 | if test -d .libs; then |
| 9555 | libltdl_cv_objdir=.libs |
| 9556 | else |
| 9557 | # MS-DOS does not allow filenames that begin with a dot. |
| 9558 | libltdl_cv_objdir=_libs |
| 9559 | fi |
| 9560 | rmdir .libs 2>/dev/null |
| 9561 | fi |
| 9562 | |
| 9563 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9564 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9565 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9566 | |
| 9567 | cat >>confdefs.h <<_ACEOF |
| 9568 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9569 | _ACEOF |
| 9570 | |
| 9571 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9572 | |
| 9573 | |
| 9574 | |
| 9575 | |
| 9576 | # 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] | 9577 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9578 | 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] | 9579 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9581 | else |
| 9582 | |
| 9583 | # These are sane defaults that work on at least a few old systems. |
| 9584 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9585 | |
| 9586 | # Character class describing NM global symbol codes. |
| 9587 | symcode='[BCDEGRST]' |
| 9588 | |
| 9589 | # Regexp to match symbols that can be accessed directly from C. |
| 9590 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9591 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9592 | # Transform an extracted symbol line into a proper C declaration |
| 9593 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9594 | |
| 9595 | # Transform an extracted symbol line into symbol name and symbol address |
| 9596 | 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'" |
| 9597 | |
| 9598 | # Define system-specific variables. |
| 9599 | case $host_os in |
| 9600 | aix*) |
| 9601 | symcode='[BCDT]' |
| 9602 | ;; |
| 9603 | cygwin* | mingw* | pw32*) |
| 9604 | symcode='[ABCDGISTW]' |
| 9605 | ;; |
| 9606 | hpux*) # Its linker distinguishes data from code symbols |
| 9607 | if test "$host_cpu" = ia64; then |
| 9608 | symcode='[ABCDEGRST]' |
| 9609 | fi |
| 9610 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9611 | 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'" |
| 9612 | ;; |
| 9613 | linux*) |
| 9614 | if test "$host_cpu" = ia64; then |
| 9615 | symcode='[ABCDGIRSTW]' |
| 9616 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9617 | 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'" |
| 9618 | fi |
| 9619 | ;; |
| 9620 | irix* | nonstopux*) |
| 9621 | symcode='[BCDEGRST]' |
| 9622 | ;; |
| 9623 | osf*) |
| 9624 | symcode='[BCDEGQRST]' |
| 9625 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9626 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9627 | symcode='[BDRT]' |
| 9628 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9629 | sco3.2v5*) |
| 9630 | symcode='[DT]' |
| 9631 | ;; |
| 9632 | sysv4.2uw2*) |
| 9633 | symcode='[DT]' |
| 9634 | ;; |
| 9635 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9636 | symcode='[ABDT]' |
| 9637 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9638 | sysv4) |
| 9639 | symcode='[DFNSTU]' |
| 9640 | ;; |
| 9641 | esac |
| 9642 | |
| 9643 | # Handle CRLF in mingw tool chain |
| 9644 | opt_cr= |
| 9645 | case $build_os in |
| 9646 | mingw*) |
| 9647 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9648 | ;; |
| 9649 | esac |
| 9650 | |
| 9651 | # If we're using GNU nm, then use its standard symbol codes. |
| 9652 | case `$NM -V 2>&1` in |
| 9653 | *GNU* | *'with BFD'*) |
| 9654 | symcode='[ABCDGIRSTW]' ;; |
| 9655 | esac |
| 9656 | |
| 9657 | # Try without a prefix undercore, then with it. |
| 9658 | for ac_symprfx in "" "_"; do |
| 9659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9660 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9661 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9662 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9663 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9664 | 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] | 9665 | |
| 9666 | # Check to see that the pipe works correctly. |
| 9667 | pipe_works=no |
| 9668 | |
| 9669 | rm -f conftest* |
| 9670 | cat > conftest.$ac_ext <<EOF |
| 9671 | #ifdef __cplusplus |
| 9672 | extern "C" { |
| 9673 | #endif |
| 9674 | char nm_test_var; |
| 9675 | void nm_test_func(){} |
| 9676 | #ifdef __cplusplus |
| 9677 | } |
| 9678 | #endif |
| 9679 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9680 | EOF |
| 9681 | |
| 9682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9683 | (eval $ac_compile) 2>&5 |
| 9684 | ac_status=$? |
| 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9686 | (exit $ac_status); }; then |
| 9687 | # Now try to grab the symbols. |
| 9688 | nlist=conftest.nm |
| 9689 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9690 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9691 | ac_status=$? |
| 9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9693 | (exit $ac_status); } && test -s "$nlist"; then |
| 9694 | # Try sorting and uniquifying the output. |
| 9695 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9696 | mv -f "$nlist"T "$nlist" |
| 9697 | else |
| 9698 | rm -f "$nlist"T |
| 9699 | fi |
| 9700 | |
| 9701 | # Make sure that we snagged all the symbols we need. |
| 9702 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9703 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9704 | cat <<EOF > conftest.$ac_ext |
| 9705 | #ifdef __cplusplus |
| 9706 | extern "C" { |
| 9707 | #endif |
| 9708 | |
| 9709 | EOF |
| 9710 | # Now generate the symbol file. |
| 9711 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9712 | |
| 9713 | cat <<EOF >> conftest.$ac_ext |
| 9714 | #if defined (__STDC__) && __STDC__ |
| 9715 | # define lt_ptr_t void * |
| 9716 | #else |
| 9717 | # define lt_ptr_t char * |
| 9718 | # define const |
| 9719 | #endif |
| 9720 | |
| 9721 | /* The mapping between symbol names and symbols. */ |
| 9722 | const struct { |
| 9723 | const char *name; |
| 9724 | lt_ptr_t address; |
| 9725 | } |
| 9726 | lt_preloaded_symbols[] = |
| 9727 | { |
| 9728 | EOF |
| 9729 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9730 | cat <<\EOF >> conftest.$ac_ext |
| 9731 | {0, (lt_ptr_t) 0} |
| 9732 | }; |
| 9733 | |
| 9734 | #ifdef __cplusplus |
| 9735 | } |
| 9736 | #endif |
| 9737 | EOF |
| 9738 | # Now try linking the two files. |
| 9739 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9740 | lt_save_LIBS="$LIBS" |
| 9741 | lt_save_CFLAGS="$CFLAGS" |
| 9742 | LIBS="conftstm.$ac_objext" |
| 9743 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9745 | (eval $ac_link) 2>&5 |
| 9746 | ac_status=$? |
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9748 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9749 | pipe_works=yes |
| 9750 | fi |
| 9751 | LIBS="$lt_save_LIBS" |
| 9752 | CFLAGS="$lt_save_CFLAGS" |
| 9753 | else |
| 9754 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9755 | fi |
| 9756 | else |
| 9757 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9758 | fi |
| 9759 | else |
| 9760 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9761 | fi |
| 9762 | else |
| 9763 | echo "$progname: failed program was:" >&5 |
| 9764 | cat conftest.$ac_ext >&5 |
| 9765 | fi |
| 9766 | rm -f conftest* conftst* |
| 9767 | |
| 9768 | # Do not use the global_symbol_pipe unless it works. |
| 9769 | if test "$pipe_works" = yes; then |
| 9770 | break |
| 9771 | else |
| 9772 | lt_cv_sys_global_symbol_pipe= |
| 9773 | fi |
| 9774 | done |
| 9775 | |
| 9776 | fi |
| 9777 | |
| 9778 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9779 | lt_cv_sys_global_symbol_to_cdecl= |
| 9780 | fi |
| 9781 | 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] | 9782 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9783 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9784 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9785 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9786 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9787 | fi |
| 9788 | |
| 9789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9790 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9791 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9792 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9794 | else |
| 9795 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9796 | libltdl_cv_preloaded_symbols=yes |
| 9797 | else |
| 9798 | libltdl_cv_preloaded_symbols=no |
| 9799 | fi |
| 9800 | |
| 9801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9802 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9803 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9804 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9805 | |
| 9806 | cat >>confdefs.h <<\_ACEOF |
| 9807 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9808 | _ACEOF |
| 9809 | |
| 9810 | fi |
| 9811 | |
| 9812 | LIBADD_DL= |
| 9813 | |
| 9814 | ac_ext=c |
| 9815 | ac_cpp='$CPP $CPPFLAGS' |
| 9816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9819 | |
| 9820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9821 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9822 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9823 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9825 | else |
| 9826 | cat >conftest.$ac_ext <<_ACEOF |
| 9827 | /* confdefs.h. */ |
| 9828 | _ACEOF |
| 9829 | cat confdefs.h >>conftest.$ac_ext |
| 9830 | cat >>conftest.$ac_ext <<_ACEOF |
| 9831 | /* end confdefs.h. */ |
| 9832 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9834 | #define shl_load innocuous_shl_load |
| 9835 | |
| 9836 | /* System header to define __stub macros and hopefully few prototypes, |
| 9837 | which can conflict with char shl_load (); below. |
| 9838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9839 | <limits.h> exists even on freestanding compilers. */ |
| 9840 | |
| 9841 | #ifdef __STDC__ |
| 9842 | # include <limits.h> |
| 9843 | #else |
| 9844 | # include <assert.h> |
| 9845 | #endif |
| 9846 | |
| 9847 | #undef shl_load |
| 9848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9849 | /* Override any GCC internal prototype to avoid an error. |
| 9850 | Use char because int might match the return type of a GCC |
| 9851 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9852 | #ifdef __cplusplus |
| 9853 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9854 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9855 | char shl_load (); |
| 9856 | /* The GNU C library defines this for functions which it implements |
| 9857 | to always fail with ENOSYS. Some functions are actually named |
| 9858 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9859 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9860 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9861 | #endif |
| 9862 | |
| 9863 | int |
| 9864 | main () |
| 9865 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9866 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9867 | ; |
| 9868 | return 0; |
| 9869 | } |
| 9870 | _ACEOF |
| 9871 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9872 | if { (ac_try="$ac_link" |
| 9873 | case "(($ac_try" in |
| 9874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9875 | *) ac_try_echo=$ac_try;; |
| 9876 | esac |
| 9877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9878 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9879 | ac_status=$? |
| 9880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9881 | rm -f conftest.er1 |
| 9882 | cat conftest.err >&5 |
| 9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9884 | (exit $ac_status); } && |
| 9885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9886 | { (case "(($ac_try" in |
| 9887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9888 | *) ac_try_echo=$ac_try;; |
| 9889 | esac |
| 9890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9891 | (eval "$ac_try") 2>&5 |
| 9892 | ac_status=$? |
| 9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9894 | (exit $ac_status); }; } && |
| 9895 | { ac_try='test -s conftest$ac_exeext' |
| 9896 | { (case "(($ac_try" in |
| 9897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9898 | *) ac_try_echo=$ac_try;; |
| 9899 | esac |
| 9900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9901 | (eval "$ac_try") 2>&5 |
| 9902 | ac_status=$? |
| 9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9904 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9905 | ac_cv_func_shl_load=yes |
| 9906 | else |
| 9907 | echo "$as_me: failed program was:" >&5 |
| 9908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9910 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9911 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9912 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9913 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9914 | conftest$ac_exeext conftest.$ac_ext |
| 9915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9916 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9917 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9918 | if test $ac_cv_func_shl_load = yes; then |
| 9919 | |
| 9920 | cat >>confdefs.h <<\_ACEOF |
| 9921 | #define HAVE_SHL_LOAD 1 |
| 9922 | _ACEOF |
| 9923 | |
| 9924 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9925 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9926 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9927 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9929 | else |
| 9930 | ac_check_lib_save_LIBS=$LIBS |
| 9931 | LIBS="-ldld $LIBS" |
| 9932 | cat >conftest.$ac_ext <<_ACEOF |
| 9933 | /* confdefs.h. */ |
| 9934 | _ACEOF |
| 9935 | cat confdefs.h >>conftest.$ac_ext |
| 9936 | cat >>conftest.$ac_ext <<_ACEOF |
| 9937 | /* end confdefs.h. */ |
| 9938 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9939 | /* Override any GCC internal prototype to avoid an error. |
| 9940 | Use char because int might match the return type of a GCC |
| 9941 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9942 | #ifdef __cplusplus |
| 9943 | extern "C" |
| 9944 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9945 | char shl_load (); |
| 9946 | int |
| 9947 | main () |
| 9948 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9949 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9950 | ; |
| 9951 | return 0; |
| 9952 | } |
| 9953 | _ACEOF |
| 9954 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9955 | if { (ac_try="$ac_link" |
| 9956 | case "(($ac_try" in |
| 9957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9958 | *) ac_try_echo=$ac_try;; |
| 9959 | esac |
| 9960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9961 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9962 | ac_status=$? |
| 9963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9964 | rm -f conftest.er1 |
| 9965 | cat conftest.err >&5 |
| 9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9967 | (exit $ac_status); } && |
| 9968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9969 | { (case "(($ac_try" in |
| 9970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9971 | *) ac_try_echo=$ac_try;; |
| 9972 | esac |
| 9973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9974 | (eval "$ac_try") 2>&5 |
| 9975 | ac_status=$? |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9977 | (exit $ac_status); }; } && |
| 9978 | { ac_try='test -s conftest$ac_exeext' |
| 9979 | { (case "(($ac_try" in |
| 9980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9981 | *) ac_try_echo=$ac_try;; |
| 9982 | esac |
| 9983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9984 | (eval "$ac_try") 2>&5 |
| 9985 | ac_status=$? |
| 9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9987 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9988 | ac_cv_lib_dld_shl_load=yes |
| 9989 | else |
| 9990 | echo "$as_me: failed program was:" >&5 |
| 9991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9993 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9994 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9995 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 9996 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9997 | conftest$ac_exeext conftest.$ac_ext |
| 9998 | LIBS=$ac_check_lib_save_LIBS |
| 9999 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10000 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10001 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10002 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10003 | |
| 10004 | cat >>confdefs.h <<\_ACEOF |
| 10005 | #define HAVE_SHL_LOAD 1 |
| 10006 | _ACEOF |
| 10007 | |
| 10008 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10009 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10010 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10011 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10012 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10014 | else |
| 10015 | ac_check_lib_save_LIBS=$LIBS |
| 10016 | LIBS="-ldl $LIBS" |
| 10017 | cat >conftest.$ac_ext <<_ACEOF |
| 10018 | /* confdefs.h. */ |
| 10019 | _ACEOF |
| 10020 | cat confdefs.h >>conftest.$ac_ext |
| 10021 | cat >>conftest.$ac_ext <<_ACEOF |
| 10022 | /* end confdefs.h. */ |
| 10023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10024 | /* Override any GCC internal prototype to avoid an error. |
| 10025 | Use char because int might match the return type of a GCC |
| 10026 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10027 | #ifdef __cplusplus |
| 10028 | extern "C" |
| 10029 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10030 | char dlopen (); |
| 10031 | int |
| 10032 | main () |
| 10033 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10034 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10035 | ; |
| 10036 | return 0; |
| 10037 | } |
| 10038 | _ACEOF |
| 10039 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10040 | if { (ac_try="$ac_link" |
| 10041 | case "(($ac_try" in |
| 10042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10043 | *) ac_try_echo=$ac_try;; |
| 10044 | esac |
| 10045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10046 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10047 | ac_status=$? |
| 10048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10049 | rm -f conftest.er1 |
| 10050 | cat conftest.err >&5 |
| 10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10052 | (exit $ac_status); } && |
| 10053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10054 | { (case "(($ac_try" in |
| 10055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10056 | *) ac_try_echo=$ac_try;; |
| 10057 | esac |
| 10058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10059 | (eval "$ac_try") 2>&5 |
| 10060 | ac_status=$? |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10062 | (exit $ac_status); }; } && |
| 10063 | { ac_try='test -s conftest$ac_exeext' |
| 10064 | { (case "(($ac_try" in |
| 10065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10066 | *) ac_try_echo=$ac_try;; |
| 10067 | esac |
| 10068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10069 | (eval "$ac_try") 2>&5 |
| 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10073 | ac_cv_lib_dl_dlopen=yes |
| 10074 | else |
| 10075 | echo "$as_me: failed program was:" >&5 |
| 10076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10078 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10080 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10081 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10082 | conftest$ac_exeext conftest.$ac_ext |
| 10083 | LIBS=$ac_check_lib_save_LIBS |
| 10084 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10085 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10086 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10087 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10088 | |
| 10089 | cat >>confdefs.h <<\_ACEOF |
| 10090 | #define HAVE_LIBDL 1 |
| 10091 | _ACEOF |
| 10092 | |
| 10093 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10094 | else |
| 10095 | cat >conftest.$ac_ext <<_ACEOF |
| 10096 | /* confdefs.h. */ |
| 10097 | _ACEOF |
| 10098 | cat confdefs.h >>conftest.$ac_ext |
| 10099 | cat >>conftest.$ac_ext <<_ACEOF |
| 10100 | /* end confdefs.h. */ |
| 10101 | #if HAVE_DLFCN_H |
| 10102 | # include <dlfcn.h> |
| 10103 | #endif |
| 10104 | |
| 10105 | int |
| 10106 | main () |
| 10107 | { |
| 10108 | dlopen(0, 0); |
| 10109 | ; |
| 10110 | return 0; |
| 10111 | } |
| 10112 | _ACEOF |
| 10113 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10114 | if { (ac_try="$ac_link" |
| 10115 | case "(($ac_try" in |
| 10116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10117 | *) ac_try_echo=$ac_try;; |
| 10118 | esac |
| 10119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10120 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10121 | ac_status=$? |
| 10122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10123 | rm -f conftest.er1 |
| 10124 | cat conftest.err >&5 |
| 10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10126 | (exit $ac_status); } && |
| 10127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10128 | { (case "(($ac_try" in |
| 10129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10130 | *) ac_try_echo=$ac_try;; |
| 10131 | esac |
| 10132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10133 | (eval "$ac_try") 2>&5 |
| 10134 | ac_status=$? |
| 10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10136 | (exit $ac_status); }; } && |
| 10137 | { ac_try='test -s conftest$ac_exeext' |
| 10138 | { (case "(($ac_try" in |
| 10139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10140 | *) ac_try_echo=$ac_try;; |
| 10141 | esac |
| 10142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10143 | (eval "$ac_try") 2>&5 |
| 10144 | ac_status=$? |
| 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10146 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10147 | |
| 10148 | cat >>confdefs.h <<\_ACEOF |
| 10149 | #define HAVE_LIBDL 1 |
| 10150 | _ACEOF |
| 10151 | libltdl_cv_func_dlopen="yes" |
| 10152 | else |
| 10153 | echo "$as_me: failed program was:" >&5 |
| 10154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10156 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10157 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10158 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10160 | else |
| 10161 | ac_check_lib_save_LIBS=$LIBS |
| 10162 | LIBS="-lsvld $LIBS" |
| 10163 | cat >conftest.$ac_ext <<_ACEOF |
| 10164 | /* confdefs.h. */ |
| 10165 | _ACEOF |
| 10166 | cat confdefs.h >>conftest.$ac_ext |
| 10167 | cat >>conftest.$ac_ext <<_ACEOF |
| 10168 | /* end confdefs.h. */ |
| 10169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10170 | /* Override any GCC internal prototype to avoid an error. |
| 10171 | Use char because int might match the return type of a GCC |
| 10172 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10173 | #ifdef __cplusplus |
| 10174 | extern "C" |
| 10175 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10176 | char dlopen (); |
| 10177 | int |
| 10178 | main () |
| 10179 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10180 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10181 | ; |
| 10182 | return 0; |
| 10183 | } |
| 10184 | _ACEOF |
| 10185 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10186 | if { (ac_try="$ac_link" |
| 10187 | case "(($ac_try" in |
| 10188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10189 | *) ac_try_echo=$ac_try;; |
| 10190 | esac |
| 10191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10192 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10193 | ac_status=$? |
| 10194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10195 | rm -f conftest.er1 |
| 10196 | cat conftest.err >&5 |
| 10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10198 | (exit $ac_status); } && |
| 10199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10200 | { (case "(($ac_try" in |
| 10201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10202 | *) ac_try_echo=$ac_try;; |
| 10203 | esac |
| 10204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10205 | (eval "$ac_try") 2>&5 |
| 10206 | ac_status=$? |
| 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10208 | (exit $ac_status); }; } && |
| 10209 | { ac_try='test -s conftest$ac_exeext' |
| 10210 | { (case "(($ac_try" in |
| 10211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10212 | *) ac_try_echo=$ac_try;; |
| 10213 | esac |
| 10214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10215 | (eval "$ac_try") 2>&5 |
| 10216 | ac_status=$? |
| 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10218 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10219 | ac_cv_lib_svld_dlopen=yes |
| 10220 | else |
| 10221 | echo "$as_me: failed program was:" >&5 |
| 10222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10224 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10225 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10226 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10227 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10228 | conftest$ac_exeext conftest.$ac_ext |
| 10229 | LIBS=$ac_check_lib_save_LIBS |
| 10230 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10231 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10232 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10233 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10234 | |
| 10235 | cat >>confdefs.h <<\_ACEOF |
| 10236 | #define HAVE_LIBDL 1 |
| 10237 | _ACEOF |
| 10238 | |
| 10239 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10240 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10241 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10242 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10245 | else |
| 10246 | ac_check_lib_save_LIBS=$LIBS |
| 10247 | LIBS="-ldld $LIBS" |
| 10248 | cat >conftest.$ac_ext <<_ACEOF |
| 10249 | /* confdefs.h. */ |
| 10250 | _ACEOF |
| 10251 | cat confdefs.h >>conftest.$ac_ext |
| 10252 | cat >>conftest.$ac_ext <<_ACEOF |
| 10253 | /* end confdefs.h. */ |
| 10254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10255 | /* Override any GCC internal prototype to avoid an error. |
| 10256 | Use char because int might match the return type of a GCC |
| 10257 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10258 | #ifdef __cplusplus |
| 10259 | extern "C" |
| 10260 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10261 | char dld_link (); |
| 10262 | int |
| 10263 | main () |
| 10264 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10265 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10266 | ; |
| 10267 | return 0; |
| 10268 | } |
| 10269 | _ACEOF |
| 10270 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10271 | if { (ac_try="$ac_link" |
| 10272 | case "(($ac_try" in |
| 10273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10274 | *) ac_try_echo=$ac_try;; |
| 10275 | esac |
| 10276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10277 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10278 | ac_status=$? |
| 10279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10280 | rm -f conftest.er1 |
| 10281 | cat conftest.err >&5 |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10283 | (exit $ac_status); } && |
| 10284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10285 | { (case "(($ac_try" in |
| 10286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10287 | *) ac_try_echo=$ac_try;; |
| 10288 | esac |
| 10289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10290 | (eval "$ac_try") 2>&5 |
| 10291 | ac_status=$? |
| 10292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10293 | (exit $ac_status); }; } && |
| 10294 | { ac_try='test -s conftest$ac_exeext' |
| 10295 | { (case "(($ac_try" in |
| 10296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10297 | *) ac_try_echo=$ac_try;; |
| 10298 | esac |
| 10299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10300 | (eval "$ac_try") 2>&5 |
| 10301 | ac_status=$? |
| 10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10303 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10304 | ac_cv_lib_dld_dld_link=yes |
| 10305 | else |
| 10306 | echo "$as_me: failed program was:" >&5 |
| 10307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10309 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10310 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10311 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10312 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10313 | conftest$ac_exeext conftest.$ac_ext |
| 10314 | LIBS=$ac_check_lib_save_LIBS |
| 10315 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10316 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10317 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10318 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10319 | |
| 10320 | cat >>confdefs.h <<\_ACEOF |
| 10321 | #define HAVE_DLD 1 |
| 10322 | _ACEOF |
| 10323 | |
| 10324 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10325 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10326 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10327 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10328 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10330 | else |
| 10331 | cat >conftest.$ac_ext <<_ACEOF |
| 10332 | /* confdefs.h. */ |
| 10333 | _ACEOF |
| 10334 | cat confdefs.h >>conftest.$ac_ext |
| 10335 | cat >>conftest.$ac_ext <<_ACEOF |
| 10336 | /* end confdefs.h. */ |
| 10337 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10339 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10340 | |
| 10341 | /* System header to define __stub macros and hopefully few prototypes, |
| 10342 | which can conflict with char _dyld_func_lookup (); below. |
| 10343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10344 | <limits.h> exists even on freestanding compilers. */ |
| 10345 | |
| 10346 | #ifdef __STDC__ |
| 10347 | # include <limits.h> |
| 10348 | #else |
| 10349 | # include <assert.h> |
| 10350 | #endif |
| 10351 | |
| 10352 | #undef _dyld_func_lookup |
| 10353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10354 | /* Override any GCC internal prototype to avoid an error. |
| 10355 | Use char because int might match the return type of a GCC |
| 10356 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10357 | #ifdef __cplusplus |
| 10358 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10360 | char _dyld_func_lookup (); |
| 10361 | /* The GNU C library defines this for functions which it implements |
| 10362 | to always fail with ENOSYS. Some functions are actually named |
| 10363 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10364 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10365 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10366 | #endif |
| 10367 | |
| 10368 | int |
| 10369 | main () |
| 10370 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10371 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10372 | ; |
| 10373 | return 0; |
| 10374 | } |
| 10375 | _ACEOF |
| 10376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10377 | if { (ac_try="$ac_link" |
| 10378 | case "(($ac_try" in |
| 10379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10380 | *) ac_try_echo=$ac_try;; |
| 10381 | esac |
| 10382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10383 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10384 | ac_status=$? |
| 10385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10386 | rm -f conftest.er1 |
| 10387 | cat conftest.err >&5 |
| 10388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10389 | (exit $ac_status); } && |
| 10390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10391 | { (case "(($ac_try" in |
| 10392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10393 | *) ac_try_echo=$ac_try;; |
| 10394 | esac |
| 10395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10396 | (eval "$ac_try") 2>&5 |
| 10397 | ac_status=$? |
| 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10399 | (exit $ac_status); }; } && |
| 10400 | { ac_try='test -s conftest$ac_exeext' |
| 10401 | { (case "(($ac_try" in |
| 10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10403 | *) ac_try_echo=$ac_try;; |
| 10404 | esac |
| 10405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10406 | (eval "$ac_try") 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10410 | ac_cv_func__dyld_func_lookup=yes |
| 10411 | else |
| 10412 | echo "$as_me: failed program was:" >&5 |
| 10413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10415 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10417 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10418 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | conftest$ac_exeext conftest.$ac_ext |
| 10420 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10421 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10422 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10423 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10424 | |
| 10425 | cat >>confdefs.h <<\_ACEOF |
| 10426 | #define HAVE_DYLD 1 |
| 10427 | _ACEOF |
| 10428 | |
| 10429 | fi |
| 10430 | |
| 10431 | |
| 10432 | fi |
| 10433 | |
| 10434 | |
| 10435 | fi |
| 10436 | |
| 10437 | |
| 10438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10439 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10440 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10441 | conftest$ac_exeext conftest.$ac_ext |
| 10442 | |
| 10443 | fi |
| 10444 | |
| 10445 | |
| 10446 | fi |
| 10447 | |
| 10448 | |
| 10449 | fi |
| 10450 | |
| 10451 | |
| 10452 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10453 | then |
| 10454 | lt_save_LIBS="$LIBS" |
| 10455 | LIBS="$LIBS $LIBADD_DL" |
| 10456 | |
| 10457 | for ac_func in dlerror |
| 10458 | do |
| 10459 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10460 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10461 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10462 | 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] | 10463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10464 | else |
| 10465 | cat >conftest.$ac_ext <<_ACEOF |
| 10466 | /* confdefs.h. */ |
| 10467 | _ACEOF |
| 10468 | cat confdefs.h >>conftest.$ac_ext |
| 10469 | cat >>conftest.$ac_ext <<_ACEOF |
| 10470 | /* end confdefs.h. */ |
| 10471 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10473 | #define $ac_func innocuous_$ac_func |
| 10474 | |
| 10475 | /* System header to define __stub macros and hopefully few prototypes, |
| 10476 | which can conflict with char $ac_func (); below. |
| 10477 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10478 | <limits.h> exists even on freestanding compilers. */ |
| 10479 | |
| 10480 | #ifdef __STDC__ |
| 10481 | # include <limits.h> |
| 10482 | #else |
| 10483 | # include <assert.h> |
| 10484 | #endif |
| 10485 | |
| 10486 | #undef $ac_func |
| 10487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10488 | /* Override any GCC internal prototype to avoid an error. |
| 10489 | Use char because int might match the return type of a GCC |
| 10490 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10491 | #ifdef __cplusplus |
| 10492 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10493 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10494 | char $ac_func (); |
| 10495 | /* The GNU C library defines this for functions which it implements |
| 10496 | to always fail with ENOSYS. Some functions are actually named |
| 10497 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10498 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10499 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10500 | #endif |
| 10501 | |
| 10502 | int |
| 10503 | main () |
| 10504 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10505 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10506 | ; |
| 10507 | return 0; |
| 10508 | } |
| 10509 | _ACEOF |
| 10510 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10511 | if { (ac_try="$ac_link" |
| 10512 | case "(($ac_try" in |
| 10513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10514 | *) ac_try_echo=$ac_try;; |
| 10515 | esac |
| 10516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10517 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10518 | ac_status=$? |
| 10519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10520 | rm -f conftest.er1 |
| 10521 | cat conftest.err >&5 |
| 10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10523 | (exit $ac_status); } && |
| 10524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10525 | { (case "(($ac_try" in |
| 10526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10527 | *) ac_try_echo=$ac_try;; |
| 10528 | esac |
| 10529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10530 | (eval "$ac_try") 2>&5 |
| 10531 | ac_status=$? |
| 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10533 | (exit $ac_status); }; } && |
| 10534 | { ac_try='test -s conftest$ac_exeext' |
| 10535 | { (case "(($ac_try" in |
| 10536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10537 | *) ac_try_echo=$ac_try;; |
| 10538 | esac |
| 10539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10540 | (eval "$ac_try") 2>&5 |
| 10541 | ac_status=$? |
| 10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10543 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10544 | eval "$as_ac_var=yes" |
| 10545 | else |
| 10546 | echo "$as_me: failed program was:" >&5 |
| 10547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10548 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10549 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10550 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10551 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10552 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10553 | conftest$ac_exeext conftest.$ac_ext |
| 10554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10555 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10556 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10557 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10558 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10559 | cat >>confdefs.h <<_ACEOF |
| 10560 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10561 | _ACEOF |
| 10562 | |
| 10563 | fi |
| 10564 | done |
| 10565 | |
| 10566 | LIBS="$lt_save_LIBS" |
| 10567 | fi |
| 10568 | ac_ext=c |
| 10569 | ac_cpp='$CPP $CPPFLAGS' |
| 10570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10573 | |
| 10574 | |
| 10575 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10576 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10577 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10578 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10580 | else |
| 10581 | ac_cv_sys_symbol_underscore=no |
| 10582 | cat > conftest.$ac_ext <<EOF |
| 10583 | void nm_test_func(){} |
| 10584 | int main(){nm_test_func;return 0;} |
| 10585 | EOF |
| 10586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10587 | (eval $ac_compile) 2>&5 |
| 10588 | ac_status=$? |
| 10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10590 | (exit $ac_status); }; then |
| 10591 | # Now try to grab the symbols. |
| 10592 | ac_nlist=conftest.nm |
| 10593 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10594 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10595 | ac_status=$? |
| 10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10597 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10598 | # See whether the symbols have a leading underscore. |
| 10599 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10600 | ac_cv_sys_symbol_underscore=yes |
| 10601 | else |
| 10602 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10603 | : |
| 10604 | else |
| 10605 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10606 | fi |
| 10607 | fi |
| 10608 | else |
| 10609 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10610 | fi |
| 10611 | else |
| 10612 | echo "configure: failed program was:" >&5 |
| 10613 | cat conftest.c >&5 |
| 10614 | fi |
| 10615 | rm -rf conftest* |
| 10616 | |
| 10617 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10618 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10619 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10620 | |
| 10621 | |
| 10622 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10623 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10624 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10625 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10626 | 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] | 10627 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10629 | else |
| 10630 | libltdl_cv_need_uscore=unknown |
| 10631 | save_LIBS="$LIBS" |
| 10632 | LIBS="$LIBS $LIBADD_DL" |
| 10633 | if test "$cross_compiling" = yes; then : |
| 10634 | libltdl_cv_need_uscore=cross |
| 10635 | else |
| 10636 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10637 | lt_status=$lt_dlunknown |
| 10638 | cat > conftest.$ac_ext <<EOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 10639 | #line 10634 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10640 | #include "confdefs.h" |
| 10641 | |
| 10642 | #if HAVE_DLFCN_H |
| 10643 | #include <dlfcn.h> |
| 10644 | #endif |
| 10645 | |
| 10646 | #include <stdio.h> |
| 10647 | |
| 10648 | #ifdef RTLD_GLOBAL |
| 10649 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10650 | #else |
| 10651 | # ifdef DL_GLOBAL |
| 10652 | # define LT_DLGLOBAL DL_GLOBAL |
| 10653 | # else |
| 10654 | # define LT_DLGLOBAL 0 |
| 10655 | # endif |
| 10656 | #endif |
| 10657 | |
| 10658 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10659 | find out it does not work in some platform. */ |
| 10660 | #ifndef LT_DLLAZY_OR_NOW |
| 10661 | # ifdef RTLD_LAZY |
| 10662 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10663 | # else |
| 10664 | # ifdef DL_LAZY |
| 10665 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10666 | # else |
| 10667 | # ifdef RTLD_NOW |
| 10668 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10669 | # else |
| 10670 | # ifdef DL_NOW |
| 10671 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10672 | # else |
| 10673 | # define LT_DLLAZY_OR_NOW 0 |
| 10674 | # endif |
| 10675 | # endif |
| 10676 | # endif |
| 10677 | # endif |
| 10678 | #endif |
| 10679 | |
| 10680 | #ifdef __cplusplus |
| 10681 | extern "C" void exit (int); |
| 10682 | #endif |
| 10683 | |
| 10684 | void fnord() { int i=42;} |
| 10685 | int main () |
| 10686 | { |
| 10687 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10688 | int status = $lt_dlunknown; |
| 10689 | |
| 10690 | if (self) |
| 10691 | { |
| 10692 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10693 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10694 | /* dlclose (self); */ |
| 10695 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10696 | else |
| 10697 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10698 | |
| 10699 | exit (status); |
| 10700 | } |
| 10701 | EOF |
| 10702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10703 | (eval $ac_link) 2>&5 |
| 10704 | ac_status=$? |
| 10705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10706 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10707 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | lt_status=$? |
| 10709 | case x$lt_status in |
| 10710 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10711 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10712 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10713 | esac |
| 10714 | else : |
| 10715 | # compilation failed |
| 10716 | |
| 10717 | fi |
| 10718 | fi |
| 10719 | rm -fr conftest* |
| 10720 | |
| 10721 | LIBS="$save_LIBS" |
| 10722 | |
| 10723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10724 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10725 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10726 | fi |
| 10727 | fi |
| 10728 | |
| 10729 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10730 | |
| 10731 | cat >>confdefs.h <<\_ACEOF |
| 10732 | #define NEED_USCORE 1 |
| 10733 | _ACEOF |
| 10734 | |
| 10735 | fi |
| 10736 | |
| 10737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10738 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10739 | 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] | 10740 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10742 | else |
| 10743 | # PORTME does your system automatically load deplibs for dlopen? |
| 10744 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10745 | # For now, we just catch OSes we know something about -- in the |
| 10746 | # future, we'll try test this programmatically. |
| 10747 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10748 | case "$host_os" in |
| 10749 | aix3*|aix4.1.*|aix4.2.*) |
| 10750 | # Unknown whether this is true for these versions of AIX, but |
| 10751 | # we want this `case' here to explicitly catch those versions. |
| 10752 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10753 | ;; |
| 10754 | aix[45]*) |
| 10755 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10756 | ;; |
| 10757 | darwin*) |
| 10758 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10759 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10760 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10761 | ;; |
| 10762 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10763 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10764 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10765 | ;; |
| 10766 | hpux10*|hpux11*) |
| 10767 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10768 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10769 | interix*) |
| 10770 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10771 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10772 | irix[12345]*|irix6.[01]*) |
| 10773 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10774 | # know how it worked for any of those versions. |
| 10775 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10776 | ;; |
| 10777 | irix*) |
| 10778 | # The case above catches anything before 6.2, and it's known that |
| 10779 | # at 6.2 and later dlopen does load deplibs. |
| 10780 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10781 | ;; |
| 10782 | netbsd*) |
| 10783 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10784 | ;; |
| 10785 | openbsd*) |
| 10786 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10787 | ;; |
| 10788 | osf[1234]*) |
| 10789 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10790 | # it did *not* use an RPATH in a shared library to find objects the |
| 10791 | # library depends on, so we explictly say `no'. |
| 10792 | libltdl_cv_sys_dlopen_deplibs=no |
| 10793 | ;; |
| 10794 | osf5.0|osf5.0a|osf5.1) |
| 10795 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10796 | # it even uses RPATH in a shared library to search for shared objects |
| 10797 | # that the library depends on, but there's no easy way to know if that |
| 10798 | # patch is installed. Since this is the case, all we can really |
| 10799 | # say is unknown -- it depends on the patch being installed. If |
| 10800 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10801 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10802 | ;; |
| 10803 | osf*) |
| 10804 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10805 | # the comments above for what we know about them. |
| 10806 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10807 | # is used to find them so we can finally say `yes'. |
| 10808 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10809 | ;; |
| 10810 | solaris*) |
| 10811 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10812 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10813 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10814 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10815 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10816 | esac |
| 10817 | |
| 10818 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10819 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10820 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10821 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10822 | |
| 10823 | cat >>confdefs.h <<\_ACEOF |
| 10824 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10825 | _ACEOF |
| 10826 | |
| 10827 | fi |
| 10828 | |
| 10829 | |
| 10830 | for ac_header in argz.h |
| 10831 | do |
| 10832 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10833 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10834 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10836 | 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] | 10837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10839 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10840 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10841 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10842 | else |
| 10843 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10844 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10845 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10846 | cat >conftest.$ac_ext <<_ACEOF |
| 10847 | /* confdefs.h. */ |
| 10848 | _ACEOF |
| 10849 | cat confdefs.h >>conftest.$ac_ext |
| 10850 | cat >>conftest.$ac_ext <<_ACEOF |
| 10851 | /* end confdefs.h. */ |
| 10852 | $ac_includes_default |
| 10853 | #include <$ac_header> |
| 10854 | _ACEOF |
| 10855 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10856 | if { (ac_try="$ac_compile" |
| 10857 | case "(($ac_try" in |
| 10858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10859 | *) ac_try_echo=$ac_try;; |
| 10860 | esac |
| 10861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10862 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10863 | ac_status=$? |
| 10864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10865 | rm -f conftest.er1 |
| 10866 | cat conftest.err >&5 |
| 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10868 | (exit $ac_status); } && |
| 10869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10870 | { (case "(($ac_try" in |
| 10871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10872 | *) ac_try_echo=$ac_try;; |
| 10873 | esac |
| 10874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10875 | (eval "$ac_try") 2>&5 |
| 10876 | ac_status=$? |
| 10877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10878 | (exit $ac_status); }; } && |
| 10879 | { ac_try='test -s conftest.$ac_objext' |
| 10880 | { (case "(($ac_try" in |
| 10881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10882 | *) ac_try_echo=$ac_try;; |
| 10883 | esac |
| 10884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10885 | (eval "$ac_try") 2>&5 |
| 10886 | ac_status=$? |
| 10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10888 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10889 | ac_header_compiler=yes |
| 10890 | else |
| 10891 | echo "$as_me: failed program was:" >&5 |
| 10892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10894 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10896 | |
| 10897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10898 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10899 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10900 | |
| 10901 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10902 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10903 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10904 | cat >conftest.$ac_ext <<_ACEOF |
| 10905 | /* confdefs.h. */ |
| 10906 | _ACEOF |
| 10907 | cat confdefs.h >>conftest.$ac_ext |
| 10908 | cat >>conftest.$ac_ext <<_ACEOF |
| 10909 | /* end confdefs.h. */ |
| 10910 | #include <$ac_header> |
| 10911 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10912 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10913 | case "(($ac_try" in |
| 10914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10915 | *) ac_try_echo=$ac_try;; |
| 10916 | esac |
| 10917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10918 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10919 | ac_status=$? |
| 10920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10921 | rm -f conftest.er1 |
| 10922 | cat conftest.err >&5 |
| 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 10924 | (exit $ac_status); } >/dev/null; then |
| 10925 | if test -s conftest.err; then |
| 10926 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10927 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10928 | else |
| 10929 | ac_cpp_err= |
| 10930 | fi |
| 10931 | else |
| 10932 | ac_cpp_err=yes |
| 10933 | fi |
| 10934 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10935 | ac_header_preproc=yes |
| 10936 | else |
| 10937 | echo "$as_me: failed program was:" >&5 |
| 10938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10939 | |
| 10940 | ac_header_preproc=no |
| 10941 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10942 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10943 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10944 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10945 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10946 | |
| 10947 | # So? What about this header? |
| 10948 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10949 | yes:no: ) |
| 10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10951 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10953 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10954 | ac_header_preproc=yes |
| 10955 | ;; |
| 10956 | no:yes:* ) |
| 10957 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10958 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10959 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10960 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10961 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10962 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10963 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10964 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10965 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10966 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10967 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10968 | 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] | 10969 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10970 | ## ----------------------------------- ## |
| 10971 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10972 | ## ----------------------------------- ## |
| 10973 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10974 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10975 | ;; |
| 10976 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10977 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10979 | 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] | 10980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10981 | else |
| 10982 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10983 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10984 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10986 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10987 | |
| 10988 | fi |
| 10989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10990 | cat >>confdefs.h <<_ACEOF |
| 10991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10992 | _ACEOF |
| 10993 | |
| 10994 | fi |
| 10995 | |
| 10996 | done |
| 10997 | |
| 10998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10999 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11000 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11001 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11003 | else |
| 11004 | cat >conftest.$ac_ext <<_ACEOF |
| 11005 | /* confdefs.h. */ |
| 11006 | _ACEOF |
| 11007 | cat confdefs.h >>conftest.$ac_ext |
| 11008 | cat >>conftest.$ac_ext <<_ACEOF |
| 11009 | /* end confdefs.h. */ |
| 11010 | #if HAVE_ARGZ_H |
| 11011 | # include <argz.h> |
| 11012 | #endif |
| 11013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11014 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11015 | int |
| 11016 | main () |
| 11017 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11018 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11019 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11020 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11021 | return 0; |
| 11022 | ; |
| 11023 | return 0; |
| 11024 | } |
| 11025 | _ACEOF |
| 11026 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11027 | if { (ac_try="$ac_compile" |
| 11028 | case "(($ac_try" in |
| 11029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11030 | *) ac_try_echo=$ac_try;; |
| 11031 | esac |
| 11032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11033 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11034 | ac_status=$? |
| 11035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11036 | rm -f conftest.er1 |
| 11037 | cat conftest.err >&5 |
| 11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11039 | (exit $ac_status); } && |
| 11040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11041 | { (case "(($ac_try" in |
| 11042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11043 | *) ac_try_echo=$ac_try;; |
| 11044 | esac |
| 11045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11046 | (eval "$ac_try") 2>&5 |
| 11047 | ac_status=$? |
| 11048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11049 | (exit $ac_status); }; } && |
| 11050 | { ac_try='test -s conftest.$ac_objext' |
| 11051 | { (case "(($ac_try" in |
| 11052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11053 | *) ac_try_echo=$ac_try;; |
| 11054 | esac |
| 11055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11056 | (eval "$ac_try") 2>&5 |
| 11057 | ac_status=$? |
| 11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11059 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11060 | ac_cv_type_error_t=yes |
| 11061 | else |
| 11062 | echo "$as_me: failed program was:" >&5 |
| 11063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11065 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11066 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11067 | |
| 11068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11069 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11070 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11071 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11072 | if test $ac_cv_type_error_t = yes; then |
| 11073 | |
| 11074 | cat >>confdefs.h <<_ACEOF |
| 11075 | #define HAVE_ERROR_T 1 |
| 11076 | _ACEOF |
| 11077 | |
| 11078 | |
| 11079 | else |
| 11080 | |
| 11081 | cat >>confdefs.h <<\_ACEOF |
| 11082 | #define error_t int |
| 11083 | _ACEOF |
| 11084 | |
| 11085 | fi |
| 11086 | |
| 11087 | |
| 11088 | |
| 11089 | |
| 11090 | |
| 11091 | |
| 11092 | |
| 11093 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11094 | do |
| 11095 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11096 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11097 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11098 | 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] | 11099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11100 | else |
| 11101 | cat >conftest.$ac_ext <<_ACEOF |
| 11102 | /* confdefs.h. */ |
| 11103 | _ACEOF |
| 11104 | cat confdefs.h >>conftest.$ac_ext |
| 11105 | cat >>conftest.$ac_ext <<_ACEOF |
| 11106 | /* end confdefs.h. */ |
| 11107 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11109 | #define $ac_func innocuous_$ac_func |
| 11110 | |
| 11111 | /* System header to define __stub macros and hopefully few prototypes, |
| 11112 | which can conflict with char $ac_func (); below. |
| 11113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11114 | <limits.h> exists even on freestanding compilers. */ |
| 11115 | |
| 11116 | #ifdef __STDC__ |
| 11117 | # include <limits.h> |
| 11118 | #else |
| 11119 | # include <assert.h> |
| 11120 | #endif |
| 11121 | |
| 11122 | #undef $ac_func |
| 11123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11124 | /* Override any GCC internal prototype to avoid an error. |
| 11125 | Use char because int might match the return type of a GCC |
| 11126 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11127 | #ifdef __cplusplus |
| 11128 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11129 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11130 | char $ac_func (); |
| 11131 | /* The GNU C library defines this for functions which it implements |
| 11132 | to always fail with ENOSYS. Some functions are actually named |
| 11133 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11134 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11135 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11136 | #endif |
| 11137 | |
| 11138 | int |
| 11139 | main () |
| 11140 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11141 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11142 | ; |
| 11143 | return 0; |
| 11144 | } |
| 11145 | _ACEOF |
| 11146 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11147 | if { (ac_try="$ac_link" |
| 11148 | case "(($ac_try" in |
| 11149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11150 | *) ac_try_echo=$ac_try;; |
| 11151 | esac |
| 11152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11153 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11154 | ac_status=$? |
| 11155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11156 | rm -f conftest.er1 |
| 11157 | cat conftest.err >&5 |
| 11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11159 | (exit $ac_status); } && |
| 11160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11161 | { (case "(($ac_try" in |
| 11162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11163 | *) ac_try_echo=$ac_try;; |
| 11164 | esac |
| 11165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11166 | (eval "$ac_try") 2>&5 |
| 11167 | ac_status=$? |
| 11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11169 | (exit $ac_status); }; } && |
| 11170 | { ac_try='test -s conftest$ac_exeext' |
| 11171 | { (case "(($ac_try" in |
| 11172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11173 | *) ac_try_echo=$ac_try;; |
| 11174 | esac |
| 11175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11176 | (eval "$ac_try") 2>&5 |
| 11177 | ac_status=$? |
| 11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11179 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11180 | eval "$as_ac_var=yes" |
| 11181 | else |
| 11182 | echo "$as_me: failed program was:" >&5 |
| 11183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11185 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11187 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11188 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11189 | conftest$ac_exeext conftest.$ac_ext |
| 11190 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11191 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11192 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11193 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11194 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11195 | cat >>confdefs.h <<_ACEOF |
| 11196 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11197 | _ACEOF |
| 11198 | |
| 11199 | fi |
| 11200 | done |
| 11201 | |
| 11202 | |
| 11203 | |
| 11204 | |
| 11205 | |
| 11206 | |
| 11207 | |
| 11208 | |
| 11209 | |
| 11210 | |
| 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
| 11229 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11230 | stdio.h unistd.h |
| 11231 | do |
| 11232 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11236 | 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] | 11237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11238 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11239 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11241 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11242 | else |
| 11243 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11244 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11245 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11246 | cat >conftest.$ac_ext <<_ACEOF |
| 11247 | /* confdefs.h. */ |
| 11248 | _ACEOF |
| 11249 | cat confdefs.h >>conftest.$ac_ext |
| 11250 | cat >>conftest.$ac_ext <<_ACEOF |
| 11251 | /* end confdefs.h. */ |
| 11252 | $ac_includes_default |
| 11253 | #include <$ac_header> |
| 11254 | _ACEOF |
| 11255 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11256 | if { (ac_try="$ac_compile" |
| 11257 | case "(($ac_try" in |
| 11258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11259 | *) ac_try_echo=$ac_try;; |
| 11260 | esac |
| 11261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11262 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11263 | ac_status=$? |
| 11264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11265 | rm -f conftest.er1 |
| 11266 | cat conftest.err >&5 |
| 11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11268 | (exit $ac_status); } && |
| 11269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11270 | { (case "(($ac_try" in |
| 11271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11272 | *) ac_try_echo=$ac_try;; |
| 11273 | esac |
| 11274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11275 | (eval "$ac_try") 2>&5 |
| 11276 | ac_status=$? |
| 11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11278 | (exit $ac_status); }; } && |
| 11279 | { ac_try='test -s conftest.$ac_objext' |
| 11280 | { (case "(($ac_try" in |
| 11281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11282 | *) ac_try_echo=$ac_try;; |
| 11283 | esac |
| 11284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11285 | (eval "$ac_try") 2>&5 |
| 11286 | ac_status=$? |
| 11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11288 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11289 | ac_header_compiler=yes |
| 11290 | else |
| 11291 | echo "$as_me: failed program was:" >&5 |
| 11292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11294 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11296 | |
| 11297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11298 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11299 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11300 | |
| 11301 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11302 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11303 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11304 | cat >conftest.$ac_ext <<_ACEOF |
| 11305 | /* confdefs.h. */ |
| 11306 | _ACEOF |
| 11307 | cat confdefs.h >>conftest.$ac_ext |
| 11308 | cat >>conftest.$ac_ext <<_ACEOF |
| 11309 | /* end confdefs.h. */ |
| 11310 | #include <$ac_header> |
| 11311 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11312 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11313 | case "(($ac_try" in |
| 11314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11315 | *) ac_try_echo=$ac_try;; |
| 11316 | esac |
| 11317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11319 | ac_status=$? |
| 11320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11321 | rm -f conftest.er1 |
| 11322 | cat conftest.err >&5 |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11324 | (exit $ac_status); } >/dev/null; then |
| 11325 | if test -s conftest.err; then |
| 11326 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11328 | else |
| 11329 | ac_cpp_err= |
| 11330 | fi |
| 11331 | else |
| 11332 | ac_cpp_err=yes |
| 11333 | fi |
| 11334 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11335 | ac_header_preproc=yes |
| 11336 | else |
| 11337 | echo "$as_me: failed program was:" >&5 |
| 11338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11339 | |
| 11340 | ac_header_preproc=no |
| 11341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11342 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11343 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11345 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11346 | |
| 11347 | # So? What about this header? |
| 11348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11349 | yes:no: ) |
| 11350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11354 | ac_header_preproc=yes |
| 11355 | ;; |
| 11356 | no:yes:* ) |
| 11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11368 | 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] | 11369 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11370 | ## ----------------------------------- ## |
| 11371 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11372 | ## ----------------------------------- ## |
| 11373 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11374 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11375 | ;; |
| 11376 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11377 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11379 | 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] | 11380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11381 | else |
| 11382 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11384 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11385 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11386 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11387 | |
| 11388 | fi |
| 11389 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11390 | cat >>confdefs.h <<_ACEOF |
| 11391 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11392 | _ACEOF |
| 11393 | |
| 11394 | fi |
| 11395 | |
| 11396 | done |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11403 | do |
| 11404 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11406 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11408 | 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] | 11409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11411 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11412 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11413 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11414 | else |
| 11415 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11416 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11417 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11418 | cat >conftest.$ac_ext <<_ACEOF |
| 11419 | /* confdefs.h. */ |
| 11420 | _ACEOF |
| 11421 | cat confdefs.h >>conftest.$ac_ext |
| 11422 | cat >>conftest.$ac_ext <<_ACEOF |
| 11423 | /* end confdefs.h. */ |
| 11424 | $ac_includes_default |
| 11425 | #include <$ac_header> |
| 11426 | _ACEOF |
| 11427 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11428 | if { (ac_try="$ac_compile" |
| 11429 | case "(($ac_try" in |
| 11430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11431 | *) ac_try_echo=$ac_try;; |
| 11432 | esac |
| 11433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11434 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11435 | ac_status=$? |
| 11436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11437 | rm -f conftest.er1 |
| 11438 | cat conftest.err >&5 |
| 11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11440 | (exit $ac_status); } && |
| 11441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11442 | { (case "(($ac_try" in |
| 11443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11444 | *) ac_try_echo=$ac_try;; |
| 11445 | esac |
| 11446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11447 | (eval "$ac_try") 2>&5 |
| 11448 | ac_status=$? |
| 11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11450 | (exit $ac_status); }; } && |
| 11451 | { ac_try='test -s conftest.$ac_objext' |
| 11452 | { (case "(($ac_try" in |
| 11453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11454 | *) ac_try_echo=$ac_try;; |
| 11455 | esac |
| 11456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11457 | (eval "$ac_try") 2>&5 |
| 11458 | ac_status=$? |
| 11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11460 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11461 | ac_header_compiler=yes |
| 11462 | else |
| 11463 | echo "$as_me: failed program was:" >&5 |
| 11464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11466 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11467 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11468 | |
| 11469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11470 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11471 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11472 | |
| 11473 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11474 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11475 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11476 | cat >conftest.$ac_ext <<_ACEOF |
| 11477 | /* confdefs.h. */ |
| 11478 | _ACEOF |
| 11479 | cat confdefs.h >>conftest.$ac_ext |
| 11480 | cat >>conftest.$ac_ext <<_ACEOF |
| 11481 | /* end confdefs.h. */ |
| 11482 | #include <$ac_header> |
| 11483 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11484 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11485 | case "(($ac_try" in |
| 11486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11487 | *) ac_try_echo=$ac_try;; |
| 11488 | esac |
| 11489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11491 | ac_status=$? |
| 11492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11493 | rm -f conftest.er1 |
| 11494 | cat conftest.err >&5 |
| 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11496 | (exit $ac_status); } >/dev/null; then |
| 11497 | if test -s conftest.err; then |
| 11498 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11500 | else |
| 11501 | ac_cpp_err= |
| 11502 | fi |
| 11503 | else |
| 11504 | ac_cpp_err=yes |
| 11505 | fi |
| 11506 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11507 | ac_header_preproc=yes |
| 11508 | else |
| 11509 | echo "$as_me: failed program was:" >&5 |
| 11510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11511 | |
| 11512 | ac_header_preproc=no |
| 11513 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11514 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11515 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11516 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11517 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11518 | |
| 11519 | # So? What about this header? |
| 11520 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11521 | yes:no: ) |
| 11522 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11523 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11525 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11526 | ac_header_preproc=yes |
| 11527 | ;; |
| 11528 | no:yes:* ) |
| 11529 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11530 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11531 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11532 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11533 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11534 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11535 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11536 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11537 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11538 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11539 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11540 | 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] | 11541 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11542 | ## ----------------------------------- ## |
| 11543 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11544 | ## ----------------------------------- ## |
| 11545 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11546 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11547 | ;; |
| 11548 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11551 | 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] | 11552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11553 | else |
| 11554 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11556 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11557 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11558 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11559 | |
| 11560 | fi |
| 11561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11562 | cat >>confdefs.h <<_ACEOF |
| 11563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11564 | _ACEOF |
| 11565 | |
| 11566 | fi |
| 11567 | |
| 11568 | done |
| 11569 | |
| 11570 | |
| 11571 | |
| 11572 | for ac_header in string.h strings.h |
| 11573 | do |
| 11574 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11575 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11576 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11578 | 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] | 11579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11580 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11581 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11583 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11584 | else |
| 11585 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11586 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11587 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11588 | cat >conftest.$ac_ext <<_ACEOF |
| 11589 | /* confdefs.h. */ |
| 11590 | _ACEOF |
| 11591 | cat confdefs.h >>conftest.$ac_ext |
| 11592 | cat >>conftest.$ac_ext <<_ACEOF |
| 11593 | /* end confdefs.h. */ |
| 11594 | $ac_includes_default |
| 11595 | #include <$ac_header> |
| 11596 | _ACEOF |
| 11597 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11598 | if { (ac_try="$ac_compile" |
| 11599 | case "(($ac_try" in |
| 11600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11601 | *) ac_try_echo=$ac_try;; |
| 11602 | esac |
| 11603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11604 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11605 | ac_status=$? |
| 11606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11607 | rm -f conftest.er1 |
| 11608 | cat conftest.err >&5 |
| 11609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11610 | (exit $ac_status); } && |
| 11611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11612 | { (case "(($ac_try" in |
| 11613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11614 | *) ac_try_echo=$ac_try;; |
| 11615 | esac |
| 11616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11617 | (eval "$ac_try") 2>&5 |
| 11618 | ac_status=$? |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); }; } && |
| 11621 | { ac_try='test -s conftest.$ac_objext' |
| 11622 | { (case "(($ac_try" in |
| 11623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11624 | *) ac_try_echo=$ac_try;; |
| 11625 | esac |
| 11626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11627 | (eval "$ac_try") 2>&5 |
| 11628 | ac_status=$? |
| 11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11630 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11631 | ac_header_compiler=yes |
| 11632 | else |
| 11633 | echo "$as_me: failed program was:" >&5 |
| 11634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11636 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11637 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11638 | |
| 11639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11640 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11641 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11642 | |
| 11643 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11644 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11645 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11646 | cat >conftest.$ac_ext <<_ACEOF |
| 11647 | /* confdefs.h. */ |
| 11648 | _ACEOF |
| 11649 | cat confdefs.h >>conftest.$ac_ext |
| 11650 | cat >>conftest.$ac_ext <<_ACEOF |
| 11651 | /* end confdefs.h. */ |
| 11652 | #include <$ac_header> |
| 11653 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11654 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11655 | case "(($ac_try" in |
| 11656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11657 | *) ac_try_echo=$ac_try;; |
| 11658 | esac |
| 11659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11661 | ac_status=$? |
| 11662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11663 | rm -f conftest.er1 |
| 11664 | cat conftest.err >&5 |
| 11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11666 | (exit $ac_status); } >/dev/null; then |
| 11667 | if test -s conftest.err; then |
| 11668 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11670 | else |
| 11671 | ac_cpp_err= |
| 11672 | fi |
| 11673 | else |
| 11674 | ac_cpp_err=yes |
| 11675 | fi |
| 11676 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11677 | ac_header_preproc=yes |
| 11678 | else |
| 11679 | echo "$as_me: failed program was:" >&5 |
| 11680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11681 | |
| 11682 | ac_header_preproc=no |
| 11683 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11684 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11685 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11686 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11687 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11688 | |
| 11689 | # So? What about this header? |
| 11690 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11691 | yes:no: ) |
| 11692 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11693 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11695 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11696 | ac_header_preproc=yes |
| 11697 | ;; |
| 11698 | no:yes:* ) |
| 11699 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11700 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11701 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11702 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11703 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11704 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11705 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11706 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11708 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11709 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11710 | 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] | 11711 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11712 | ## ----------------------------------- ## |
| 11713 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11714 | ## ----------------------------------- ## |
| 11715 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11716 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11717 | ;; |
| 11718 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11721 | 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] | 11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11723 | else |
| 11724 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11725 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11726 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11728 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11729 | |
| 11730 | fi |
| 11731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11732 | cat >>confdefs.h <<_ACEOF |
| 11733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11734 | _ACEOF |
| 11735 | break |
| 11736 | fi |
| 11737 | |
| 11738 | done |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | for ac_func in strchr index |
| 11744 | do |
| 11745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11746 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11748 | 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] | 11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11750 | else |
| 11751 | cat >conftest.$ac_ext <<_ACEOF |
| 11752 | /* confdefs.h. */ |
| 11753 | _ACEOF |
| 11754 | cat confdefs.h >>conftest.$ac_ext |
| 11755 | cat >>conftest.$ac_ext <<_ACEOF |
| 11756 | /* end confdefs.h. */ |
| 11757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11759 | #define $ac_func innocuous_$ac_func |
| 11760 | |
| 11761 | /* System header to define __stub macros and hopefully few prototypes, |
| 11762 | which can conflict with char $ac_func (); below. |
| 11763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11764 | <limits.h> exists even on freestanding compilers. */ |
| 11765 | |
| 11766 | #ifdef __STDC__ |
| 11767 | # include <limits.h> |
| 11768 | #else |
| 11769 | # include <assert.h> |
| 11770 | #endif |
| 11771 | |
| 11772 | #undef $ac_func |
| 11773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11774 | /* Override any GCC internal prototype to avoid an error. |
| 11775 | Use char because int might match the return type of a GCC |
| 11776 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11777 | #ifdef __cplusplus |
| 11778 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11779 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11780 | char $ac_func (); |
| 11781 | /* The GNU C library defines this for functions which it implements |
| 11782 | to always fail with ENOSYS. Some functions are actually named |
| 11783 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11784 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11785 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11786 | #endif |
| 11787 | |
| 11788 | int |
| 11789 | main () |
| 11790 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11791 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11792 | ; |
| 11793 | return 0; |
| 11794 | } |
| 11795 | _ACEOF |
| 11796 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11797 | if { (ac_try="$ac_link" |
| 11798 | case "(($ac_try" in |
| 11799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11800 | *) ac_try_echo=$ac_try;; |
| 11801 | esac |
| 11802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11803 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11804 | ac_status=$? |
| 11805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11806 | rm -f conftest.er1 |
| 11807 | cat conftest.err >&5 |
| 11808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11809 | (exit $ac_status); } && |
| 11810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11811 | { (case "(($ac_try" in |
| 11812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11813 | *) ac_try_echo=$ac_try;; |
| 11814 | esac |
| 11815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11816 | (eval "$ac_try") 2>&5 |
| 11817 | ac_status=$? |
| 11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11819 | (exit $ac_status); }; } && |
| 11820 | { ac_try='test -s conftest$ac_exeext' |
| 11821 | { (case "(($ac_try" in |
| 11822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11823 | *) ac_try_echo=$ac_try;; |
| 11824 | esac |
| 11825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11826 | (eval "$ac_try") 2>&5 |
| 11827 | ac_status=$? |
| 11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11829 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11830 | eval "$as_ac_var=yes" |
| 11831 | else |
| 11832 | echo "$as_me: failed program was:" >&5 |
| 11833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11835 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11836 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11837 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11838 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11839 | conftest$ac_exeext conftest.$ac_ext |
| 11840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11841 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11842 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11843 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11844 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11845 | cat >>confdefs.h <<_ACEOF |
| 11846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11847 | _ACEOF |
| 11848 | break |
| 11849 | fi |
| 11850 | done |
| 11851 | |
| 11852 | |
| 11853 | |
| 11854 | for ac_func in strrchr rindex |
| 11855 | do |
| 11856 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11857 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11858 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11859 | 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] | 11860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11861 | else |
| 11862 | cat >conftest.$ac_ext <<_ACEOF |
| 11863 | /* confdefs.h. */ |
| 11864 | _ACEOF |
| 11865 | cat confdefs.h >>conftest.$ac_ext |
| 11866 | cat >>conftest.$ac_ext <<_ACEOF |
| 11867 | /* end confdefs.h. */ |
| 11868 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11870 | #define $ac_func innocuous_$ac_func |
| 11871 | |
| 11872 | /* System header to define __stub macros and hopefully few prototypes, |
| 11873 | which can conflict with char $ac_func (); below. |
| 11874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11875 | <limits.h> exists even on freestanding compilers. */ |
| 11876 | |
| 11877 | #ifdef __STDC__ |
| 11878 | # include <limits.h> |
| 11879 | #else |
| 11880 | # include <assert.h> |
| 11881 | #endif |
| 11882 | |
| 11883 | #undef $ac_func |
| 11884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11885 | /* Override any GCC internal prototype to avoid an error. |
| 11886 | Use char because int might match the return type of a GCC |
| 11887 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11888 | #ifdef __cplusplus |
| 11889 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11890 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11891 | char $ac_func (); |
| 11892 | /* The GNU C library defines this for functions which it implements |
| 11893 | to always fail with ENOSYS. Some functions are actually named |
| 11894 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11895 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11896 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11897 | #endif |
| 11898 | |
| 11899 | int |
| 11900 | main () |
| 11901 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11902 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11903 | ; |
| 11904 | return 0; |
| 11905 | } |
| 11906 | _ACEOF |
| 11907 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11908 | if { (ac_try="$ac_link" |
| 11909 | case "(($ac_try" in |
| 11910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11911 | *) ac_try_echo=$ac_try;; |
| 11912 | esac |
| 11913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11914 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11915 | ac_status=$? |
| 11916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11917 | rm -f conftest.er1 |
| 11918 | cat conftest.err >&5 |
| 11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11920 | (exit $ac_status); } && |
| 11921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11922 | { (case "(($ac_try" in |
| 11923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11924 | *) ac_try_echo=$ac_try;; |
| 11925 | esac |
| 11926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11927 | (eval "$ac_try") 2>&5 |
| 11928 | ac_status=$? |
| 11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11930 | (exit $ac_status); }; } && |
| 11931 | { ac_try='test -s conftest$ac_exeext' |
| 11932 | { (case "(($ac_try" in |
| 11933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11934 | *) ac_try_echo=$ac_try;; |
| 11935 | esac |
| 11936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11937 | (eval "$ac_try") 2>&5 |
| 11938 | ac_status=$? |
| 11939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11940 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11941 | eval "$as_ac_var=yes" |
| 11942 | else |
| 11943 | echo "$as_me: failed program was:" >&5 |
| 11944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11946 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11947 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11948 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 11949 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11950 | conftest$ac_exeext conftest.$ac_ext |
| 11951 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11952 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11953 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11954 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11955 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11956 | cat >>confdefs.h <<_ACEOF |
| 11957 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11958 | _ACEOF |
| 11959 | break |
| 11960 | fi |
| 11961 | done |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | for ac_func in memcpy bcopy |
| 11966 | do |
| 11967 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11968 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11969 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11970 | 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] | 11971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11972 | else |
| 11973 | cat >conftest.$ac_ext <<_ACEOF |
| 11974 | /* confdefs.h. */ |
| 11975 | _ACEOF |
| 11976 | cat confdefs.h >>conftest.$ac_ext |
| 11977 | cat >>conftest.$ac_ext <<_ACEOF |
| 11978 | /* end confdefs.h. */ |
| 11979 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11981 | #define $ac_func innocuous_$ac_func |
| 11982 | |
| 11983 | /* System header to define __stub macros and hopefully few prototypes, |
| 11984 | which can conflict with char $ac_func (); below. |
| 11985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11986 | <limits.h> exists even on freestanding compilers. */ |
| 11987 | |
| 11988 | #ifdef __STDC__ |
| 11989 | # include <limits.h> |
| 11990 | #else |
| 11991 | # include <assert.h> |
| 11992 | #endif |
| 11993 | |
| 11994 | #undef $ac_func |
| 11995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11996 | /* Override any GCC internal prototype to avoid an error. |
| 11997 | Use char because int might match the return type of a GCC |
| 11998 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11999 | #ifdef __cplusplus |
| 12000 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12001 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12002 | char $ac_func (); |
| 12003 | /* The GNU C library defines this for functions which it implements |
| 12004 | to always fail with ENOSYS. Some functions are actually named |
| 12005 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12006 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12007 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12008 | #endif |
| 12009 | |
| 12010 | int |
| 12011 | main () |
| 12012 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12013 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12014 | ; |
| 12015 | return 0; |
| 12016 | } |
| 12017 | _ACEOF |
| 12018 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12019 | if { (ac_try="$ac_link" |
| 12020 | case "(($ac_try" in |
| 12021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12022 | *) ac_try_echo=$ac_try;; |
| 12023 | esac |
| 12024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12025 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12026 | ac_status=$? |
| 12027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12028 | rm -f conftest.er1 |
| 12029 | cat conftest.err >&5 |
| 12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12031 | (exit $ac_status); } && |
| 12032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12033 | { (case "(($ac_try" in |
| 12034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12035 | *) ac_try_echo=$ac_try;; |
| 12036 | esac |
| 12037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12038 | (eval "$ac_try") 2>&5 |
| 12039 | ac_status=$? |
| 12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12041 | (exit $ac_status); }; } && |
| 12042 | { ac_try='test -s conftest$ac_exeext' |
| 12043 | { (case "(($ac_try" in |
| 12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12045 | *) ac_try_echo=$ac_try;; |
| 12046 | esac |
| 12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12048 | (eval "$ac_try") 2>&5 |
| 12049 | ac_status=$? |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12052 | eval "$as_ac_var=yes" |
| 12053 | else |
| 12054 | echo "$as_me: failed program was:" >&5 |
| 12055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12057 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12059 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12060 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12061 | conftest$ac_exeext conftest.$ac_ext |
| 12062 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12063 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12065 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12066 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12067 | cat >>confdefs.h <<_ACEOF |
| 12068 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12069 | _ACEOF |
| 12070 | break |
| 12071 | fi |
| 12072 | done |
| 12073 | |
| 12074 | |
| 12075 | |
| 12076 | for ac_func in memmove strcmp |
| 12077 | do |
| 12078 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12079 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12081 | 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] | 12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12083 | else |
| 12084 | cat >conftest.$ac_ext <<_ACEOF |
| 12085 | /* confdefs.h. */ |
| 12086 | _ACEOF |
| 12087 | cat confdefs.h >>conftest.$ac_ext |
| 12088 | cat >>conftest.$ac_ext <<_ACEOF |
| 12089 | /* end confdefs.h. */ |
| 12090 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12092 | #define $ac_func innocuous_$ac_func |
| 12093 | |
| 12094 | /* System header to define __stub macros and hopefully few prototypes, |
| 12095 | which can conflict with char $ac_func (); below. |
| 12096 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12097 | <limits.h> exists even on freestanding compilers. */ |
| 12098 | |
| 12099 | #ifdef __STDC__ |
| 12100 | # include <limits.h> |
| 12101 | #else |
| 12102 | # include <assert.h> |
| 12103 | #endif |
| 12104 | |
| 12105 | #undef $ac_func |
| 12106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12107 | /* Override any GCC internal prototype to avoid an error. |
| 12108 | Use char because int might match the return type of a GCC |
| 12109 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12110 | #ifdef __cplusplus |
| 12111 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12112 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12113 | char $ac_func (); |
| 12114 | /* The GNU C library defines this for functions which it implements |
| 12115 | to always fail with ENOSYS. Some functions are actually named |
| 12116 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12117 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12118 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12119 | #endif |
| 12120 | |
| 12121 | int |
| 12122 | main () |
| 12123 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12124 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12125 | ; |
| 12126 | return 0; |
| 12127 | } |
| 12128 | _ACEOF |
| 12129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12130 | if { (ac_try="$ac_link" |
| 12131 | case "(($ac_try" in |
| 12132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12133 | *) ac_try_echo=$ac_try;; |
| 12134 | esac |
| 12135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12136 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12137 | ac_status=$? |
| 12138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12139 | rm -f conftest.er1 |
| 12140 | cat conftest.err >&5 |
| 12141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12142 | (exit $ac_status); } && |
| 12143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12144 | { (case "(($ac_try" in |
| 12145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12146 | *) ac_try_echo=$ac_try;; |
| 12147 | esac |
| 12148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12149 | (eval "$ac_try") 2>&5 |
| 12150 | ac_status=$? |
| 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12152 | (exit $ac_status); }; } && |
| 12153 | { ac_try='test -s conftest$ac_exeext' |
| 12154 | { (case "(($ac_try" in |
| 12155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12156 | *) ac_try_echo=$ac_try;; |
| 12157 | esac |
| 12158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12159 | (eval "$ac_try") 2>&5 |
| 12160 | ac_status=$? |
| 12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12162 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12163 | eval "$as_ac_var=yes" |
| 12164 | else |
| 12165 | echo "$as_me: failed program was:" >&5 |
| 12166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12168 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12169 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12170 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12171 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12172 | conftest$ac_exeext conftest.$ac_ext |
| 12173 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12174 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12175 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12176 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12177 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12178 | cat >>confdefs.h <<_ACEOF |
| 12179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12180 | _ACEOF |
| 12181 | |
| 12182 | fi |
| 12183 | done |
| 12184 | |
| 12185 | |
| 12186 | |
| 12187 | |
| 12188 | for ac_func in closedir opendir readdir |
| 12189 | do |
| 12190 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12191 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12192 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12193 | 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] | 12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12195 | else |
| 12196 | cat >conftest.$ac_ext <<_ACEOF |
| 12197 | /* confdefs.h. */ |
| 12198 | _ACEOF |
| 12199 | cat confdefs.h >>conftest.$ac_ext |
| 12200 | cat >>conftest.$ac_ext <<_ACEOF |
| 12201 | /* end confdefs.h. */ |
| 12202 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12204 | #define $ac_func innocuous_$ac_func |
| 12205 | |
| 12206 | /* System header to define __stub macros and hopefully few prototypes, |
| 12207 | which can conflict with char $ac_func (); below. |
| 12208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12209 | <limits.h> exists even on freestanding compilers. */ |
| 12210 | |
| 12211 | #ifdef __STDC__ |
| 12212 | # include <limits.h> |
| 12213 | #else |
| 12214 | # include <assert.h> |
| 12215 | #endif |
| 12216 | |
| 12217 | #undef $ac_func |
| 12218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12219 | /* Override any GCC internal prototype to avoid an error. |
| 12220 | Use char because int might match the return type of a GCC |
| 12221 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12222 | #ifdef __cplusplus |
| 12223 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12224 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12225 | char $ac_func (); |
| 12226 | /* The GNU C library defines this for functions which it implements |
| 12227 | to always fail with ENOSYS. Some functions are actually named |
| 12228 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12229 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12230 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12231 | #endif |
| 12232 | |
| 12233 | int |
| 12234 | main () |
| 12235 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12236 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12237 | ; |
| 12238 | return 0; |
| 12239 | } |
| 12240 | _ACEOF |
| 12241 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12242 | if { (ac_try="$ac_link" |
| 12243 | case "(($ac_try" in |
| 12244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12245 | *) ac_try_echo=$ac_try;; |
| 12246 | esac |
| 12247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12248 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12249 | ac_status=$? |
| 12250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12251 | rm -f conftest.er1 |
| 12252 | cat conftest.err >&5 |
| 12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12254 | (exit $ac_status); } && |
| 12255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12256 | { (case "(($ac_try" in |
| 12257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12258 | *) ac_try_echo=$ac_try;; |
| 12259 | esac |
| 12260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12261 | (eval "$ac_try") 2>&5 |
| 12262 | ac_status=$? |
| 12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12264 | (exit $ac_status); }; } && |
| 12265 | { ac_try='test -s conftest$ac_exeext' |
| 12266 | { (case "(($ac_try" in |
| 12267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12268 | *) ac_try_echo=$ac_try;; |
| 12269 | esac |
| 12270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12271 | (eval "$ac_try") 2>&5 |
| 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12275 | eval "$as_ac_var=yes" |
| 12276 | else |
| 12277 | echo "$as_me: failed program was:" >&5 |
| 12278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12280 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12282 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12283 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12284 | conftest$ac_exeext conftest.$ac_ext |
| 12285 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12286 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12287 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12288 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12289 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12290 | cat >>confdefs.h <<_ACEOF |
| 12291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12292 | _ACEOF |
| 12293 | |
| 12294 | fi |
| 12295 | done |
| 12296 | |
| 12297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12298 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12299 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12300 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12301 | case $enableval in |
| 12302 | yes) enable_shared=yes ;; |
| 12303 | no) enable_shared=no ;; |
| 12304 | *) |
| 12305 | enable_shared=no |
| 12306 | # Look at the argument we got. We use all the common list separators. |
| 12307 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12308 | for pkg in $enableval; do |
| 12309 | IFS="$lt_save_ifs" |
| 12310 | if test "X$pkg" = "X$p"; then |
| 12311 | enable_shared=yes |
| 12312 | fi |
| 12313 | done |
| 12314 | IFS="$lt_save_ifs" |
| 12315 | ;; |
| 12316 | esac |
| 12317 | else |
| 12318 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12319 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12321 | |
| 12322 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12323 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12324 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12325 | case $enableval in |
| 12326 | yes) enable_static=yes ;; |
| 12327 | no) enable_static=no ;; |
| 12328 | *) |
| 12329 | enable_static=no |
| 12330 | # Look at the argument we got. We use all the common list separators. |
| 12331 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12332 | for pkg in $enableval; do |
| 12333 | IFS="$lt_save_ifs" |
| 12334 | if test "X$pkg" = "X$p"; then |
| 12335 | enable_static=yes |
| 12336 | fi |
| 12337 | done |
| 12338 | IFS="$lt_save_ifs" |
| 12339 | ;; |
| 12340 | esac |
| 12341 | else |
| 12342 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12343 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12345 | |
| 12346 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12347 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12348 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12349 | case $enableval in |
| 12350 | yes) enable_fast_install=yes ;; |
| 12351 | no) enable_fast_install=no ;; |
| 12352 | *) |
| 12353 | enable_fast_install=no |
| 12354 | # Look at the argument we got. We use all the common list separators. |
| 12355 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12356 | for pkg in $enableval; do |
| 12357 | IFS="$lt_save_ifs" |
| 12358 | if test "X$pkg" = "X$p"; then |
| 12359 | enable_fast_install=yes |
| 12360 | fi |
| 12361 | done |
| 12362 | IFS="$lt_save_ifs" |
| 12363 | ;; |
| 12364 | esac |
| 12365 | else |
| 12366 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12367 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12369 | |
| 12370 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12371 | 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] | 12372 | if test "${lt_cv_path_SED+set}" = set; then |
| 12373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12374 | else |
| 12375 | # Loop through the user's path and test for sed and gsed. |
| 12376 | # Then use that list of sed's as ones to test for truncation. |
| 12377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12378 | for as_dir in $PATH |
| 12379 | do |
| 12380 | IFS=$as_save_IFS |
| 12381 | test -z "$as_dir" && as_dir=. |
| 12382 | for lt_ac_prog in sed gsed; do |
| 12383 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12384 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12385 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12386 | fi |
| 12387 | done |
| 12388 | done |
| 12389 | done |
| 12390 | lt_ac_max=0 |
| 12391 | lt_ac_count=0 |
| 12392 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12393 | # along with /bin/sed that truncates output. |
| 12394 | 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] | 12395 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12396 | cat /dev/null > conftest.in |
| 12397 | lt_ac_count=0 |
| 12398 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12399 | # Check for GNU sed and select it if it is found. |
| 12400 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12401 | lt_cv_path_SED=$lt_ac_sed |
| 12402 | break |
| 12403 | fi |
| 12404 | while true; do |
| 12405 | cat conftest.in conftest.in >conftest.tmp |
| 12406 | mv conftest.tmp conftest.in |
| 12407 | cp conftest.in conftest.nl |
| 12408 | echo >>conftest.nl |
| 12409 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12410 | cmp -s conftest.out conftest.nl || break |
| 12411 | # 10000 chars as input seems more than enough |
| 12412 | test $lt_ac_count -gt 10 && break |
| 12413 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12414 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12415 | lt_ac_max=$lt_ac_count |
| 12416 | lt_cv_path_SED=$lt_ac_sed |
| 12417 | fi |
| 12418 | done |
| 12419 | done |
| 12420 | |
| 12421 | fi |
| 12422 | |
| 12423 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12424 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12425 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12426 | |
| 12427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12428 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12429 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12430 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12431 | else |
| 12432 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12433 | fi |
| 12434 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12435 | ac_prog=ld |
| 12436 | if test "$GCC" = yes; then |
| 12437 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12438 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12439 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12440 | case $host in |
| 12441 | *-*-mingw*) |
| 12442 | # gcc leaves a trailing carriage return which upsets mingw |
| 12443 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12444 | *) |
| 12445 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12446 | esac |
| 12447 | case $ac_prog in |
| 12448 | # Accept absolute paths. |
| 12449 | [\\/]* | ?:[\\/]*) |
| 12450 | re_direlt='/[^/][^/]*/\.\./' |
| 12451 | # Canonicalize the pathname of ld |
| 12452 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12453 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12454 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12455 | done |
| 12456 | test -z "$LD" && LD="$ac_prog" |
| 12457 | ;; |
| 12458 | "") |
| 12459 | # If it fails, then pretend we aren't using GCC. |
| 12460 | ac_prog=ld |
| 12461 | ;; |
| 12462 | *) |
| 12463 | # If it is relative, then search for the first ld in PATH. |
| 12464 | with_gnu_ld=unknown |
| 12465 | ;; |
| 12466 | esac |
| 12467 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12468 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12469 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12470 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12471 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12472 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12473 | fi |
| 12474 | if test "${lt_cv_path_LD+set}" = set; then |
| 12475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12476 | else |
| 12477 | if test -z "$LD"; then |
| 12478 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12479 | for ac_dir in $PATH; do |
| 12480 | IFS="$lt_save_ifs" |
| 12481 | test -z "$ac_dir" && ac_dir=. |
| 12482 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12483 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12484 | # 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] | 12485 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12486 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12487 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12488 | *GNU* | *'with BFD'*) |
| 12489 | test "$with_gnu_ld" != no && break |
| 12490 | ;; |
| 12491 | *) |
| 12492 | test "$with_gnu_ld" != yes && break |
| 12493 | ;; |
| 12494 | esac |
| 12495 | fi |
| 12496 | done |
| 12497 | IFS="$lt_save_ifs" |
| 12498 | else |
| 12499 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12500 | fi |
| 12501 | fi |
| 12502 | |
| 12503 | LD="$lt_cv_path_LD" |
| 12504 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12505 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12506 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12507 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12509 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12510 | fi |
| 12511 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12512 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12513 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12514 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12515 | 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] | 12516 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12518 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12519 | # 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] | 12520 | case `$LD -v 2>&1 </dev/null` in |
| 12521 | *GNU* | *'with BFD'*) |
| 12522 | lt_cv_prog_gnu_ld=yes |
| 12523 | ;; |
| 12524 | *) |
| 12525 | lt_cv_prog_gnu_ld=no |
| 12526 | ;; |
| 12527 | esac |
| 12528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12529 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12530 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12531 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12532 | |
| 12533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12534 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12535 | 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] | 12536 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12538 | else |
| 12539 | lt_cv_ld_reload_flag='-r' |
| 12540 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12541 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12542 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12543 | reload_flag=$lt_cv_ld_reload_flag |
| 12544 | case $reload_flag in |
| 12545 | "" | " "*) ;; |
| 12546 | *) reload_flag=" $reload_flag" ;; |
| 12547 | esac |
| 12548 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12549 | case $host_os in |
| 12550 | darwin*) |
| 12551 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12552 | 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] | 12553 | else |
| 12554 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12555 | fi |
| 12556 | ;; |
| 12557 | esac |
| 12558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12559 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12560 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12561 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12563 | else |
| 12564 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12565 | lt_cv_file_magic_test_file= |
| 12566 | lt_cv_deplibs_check_method='unknown' |
| 12567 | # Need to set the preceding variable on all platforms that support |
| 12568 | # interlibrary dependencies. |
| 12569 | # 'none' -- dependencies not supported. |
| 12570 | # `unknown' -- same as none, but documents that we really don't know. |
| 12571 | # 'pass_all' -- all dependencies passed with no checks. |
| 12572 | # 'test_compile' -- check by making test program. |
| 12573 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12574 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12575 | # If you have `file' or equivalent on your system and you're not sure |
| 12576 | # whether `pass_all' will *always* work, you probably want this one. |
| 12577 | |
| 12578 | case $host_os in |
| 12579 | aix4* | aix5*) |
| 12580 | lt_cv_deplibs_check_method=pass_all |
| 12581 | ;; |
| 12582 | |
| 12583 | beos*) |
| 12584 | lt_cv_deplibs_check_method=pass_all |
| 12585 | ;; |
| 12586 | |
| 12587 | bsdi[45]*) |
| 12588 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12589 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12590 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12591 | ;; |
| 12592 | |
| 12593 | cygwin*) |
| 12594 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12595 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12596 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12597 | ;; |
| 12598 | |
| 12599 | mingw* | pw32*) |
| 12600 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12601 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12602 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12603 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12604 | ;; |
| 12605 | |
| 12606 | darwin* | rhapsody*) |
| 12607 | lt_cv_deplibs_check_method=pass_all |
| 12608 | ;; |
| 12609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12610 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12611 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12612 | case $host_cpu in |
| 12613 | i*86 ) |
| 12614 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12615 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12616 | 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] | 12617 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12618 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12619 | ;; |
| 12620 | esac |
| 12621 | else |
| 12622 | lt_cv_deplibs_check_method=pass_all |
| 12623 | fi |
| 12624 | ;; |
| 12625 | |
| 12626 | gnu*) |
| 12627 | lt_cv_deplibs_check_method=pass_all |
| 12628 | ;; |
| 12629 | |
| 12630 | hpux10.20* | hpux11*) |
| 12631 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12632 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12633 | ia64*) |
| 12634 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12635 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12636 | ;; |
| 12637 | hppa*64*) |
| 12638 | 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]' |
| 12639 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12640 | ;; |
| 12641 | *) |
| 12642 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12643 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12644 | ;; |
| 12645 | esac |
| 12646 | ;; |
| 12647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12648 | interix3*) |
| 12649 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12650 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12651 | ;; |
| 12652 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12653 | irix5* | irix6* | nonstopux*) |
| 12654 | case $LD in |
| 12655 | *-32|*"-32 ") libmagic=32-bit;; |
| 12656 | *-n32|*"-n32 ") libmagic=N32;; |
| 12657 | *-64|*"-64 ") libmagic=64-bit;; |
| 12658 | *) libmagic=never-match;; |
| 12659 | esac |
| 12660 | lt_cv_deplibs_check_method=pass_all |
| 12661 | ;; |
| 12662 | |
| 12663 | # This must be Linux ELF. |
| 12664 | linux*) |
| 12665 | lt_cv_deplibs_check_method=pass_all |
| 12666 | ;; |
| 12667 | |
| 12668 | netbsd*) |
| 12669 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12670 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12671 | else |
| 12672 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12673 | fi |
| 12674 | ;; |
| 12675 | |
| 12676 | newos6*) |
| 12677 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12678 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12679 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12680 | ;; |
| 12681 | |
| 12682 | nto-qnx*) |
| 12683 | lt_cv_deplibs_check_method=unknown |
| 12684 | ;; |
| 12685 | |
| 12686 | openbsd*) |
| 12687 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12688 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12689 | else |
| 12690 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12691 | fi |
| 12692 | ;; |
| 12693 | |
| 12694 | osf3* | osf4* | osf5*) |
| 12695 | lt_cv_deplibs_check_method=pass_all |
| 12696 | ;; |
| 12697 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12698 | solaris*) |
| 12699 | lt_cv_deplibs_check_method=pass_all |
| 12700 | ;; |
| 12701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12702 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12703 | case $host_vendor in |
| 12704 | motorola) |
| 12705 | 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]' |
| 12706 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12707 | ;; |
| 12708 | ncr) |
| 12709 | lt_cv_deplibs_check_method=pass_all |
| 12710 | ;; |
| 12711 | sequent) |
| 12712 | lt_cv_file_magic_cmd='/bin/file' |
| 12713 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12714 | ;; |
| 12715 | sni) |
| 12716 | lt_cv_file_magic_cmd='/bin/file' |
| 12717 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12718 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12719 | ;; |
| 12720 | siemens) |
| 12721 | lt_cv_deplibs_check_method=pass_all |
| 12722 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12723 | pc) |
| 12724 | lt_cv_deplibs_check_method=pass_all |
| 12725 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12726 | esac |
| 12727 | ;; |
| 12728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12729 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12730 | lt_cv_deplibs_check_method=pass_all |
| 12731 | ;; |
| 12732 | esac |
| 12733 | |
| 12734 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12735 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12736 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12737 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12738 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12739 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12740 | |
| 12741 | |
| 12742 | |
| 12743 | # If no C compiler was specified, use CC. |
| 12744 | LTCC=${LTCC-"$CC"} |
| 12745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12746 | # If no C compiler flags were specified, use CFLAGS. |
| 12747 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12748 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12749 | # Allow CC to be a program name with arguments. |
| 12750 | compiler=$CC |
| 12751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12752 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12753 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12754 | enableval=$enable_libtool_lock; |
| 12755 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12756 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12757 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12758 | |
| 12759 | # Some flags need to be propagated to the compiler or linker for good |
| 12760 | # libtool support. |
| 12761 | case $host in |
| 12762 | ia64-*-hpux*) |
| 12763 | # Find out which ABI we are using. |
| 12764 | echo 'int i;' > conftest.$ac_ext |
| 12765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12766 | (eval $ac_compile) 2>&5 |
| 12767 | ac_status=$? |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); }; then |
| 12770 | case `/usr/bin/file conftest.$ac_objext` in |
| 12771 | *ELF-32*) |
| 12772 | HPUX_IA64_MODE="32" |
| 12773 | ;; |
| 12774 | *ELF-64*) |
| 12775 | HPUX_IA64_MODE="64" |
| 12776 | ;; |
| 12777 | esac |
| 12778 | fi |
| 12779 | rm -rf conftest* |
| 12780 | ;; |
| 12781 | *-*-irix6*) |
| 12782 | # Find out which ABI we are using. |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 12783 | echo '#line 12778 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12785 | (eval $ac_compile) 2>&5 |
| 12786 | ac_status=$? |
| 12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12788 | (exit $ac_status); }; then |
| 12789 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12790 | case `/usr/bin/file conftest.$ac_objext` in |
| 12791 | *32-bit*) |
| 12792 | LD="${LD-ld} -melf32bsmip" |
| 12793 | ;; |
| 12794 | *N32*) |
| 12795 | LD="${LD-ld} -melf32bmipn32" |
| 12796 | ;; |
| 12797 | *64-bit*) |
| 12798 | LD="${LD-ld} -melf64bmip" |
| 12799 | ;; |
| 12800 | esac |
| 12801 | else |
| 12802 | case `/usr/bin/file conftest.$ac_objext` in |
| 12803 | *32-bit*) |
| 12804 | LD="${LD-ld} -32" |
| 12805 | ;; |
| 12806 | *N32*) |
| 12807 | LD="${LD-ld} -n32" |
| 12808 | ;; |
| 12809 | *64-bit*) |
| 12810 | LD="${LD-ld} -64" |
| 12811 | ;; |
| 12812 | esac |
| 12813 | fi |
| 12814 | fi |
| 12815 | rm -rf conftest* |
| 12816 | ;; |
| 12817 | |
| 12818 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12819 | # Find out which ABI we are using. |
| 12820 | echo 'int i;' > conftest.$ac_ext |
| 12821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12822 | (eval $ac_compile) 2>&5 |
| 12823 | ac_status=$? |
| 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12825 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12826 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12827 | *32-bit*) |
| 12828 | case $host in |
| 12829 | x86_64-*linux*) |
| 12830 | LD="${LD-ld} -m elf_i386" |
| 12831 | ;; |
| 12832 | ppc64-*linux*|powerpc64-*linux*) |
| 12833 | LD="${LD-ld} -m elf32ppclinux" |
| 12834 | ;; |
| 12835 | s390x-*linux*) |
| 12836 | LD="${LD-ld} -m elf_s390" |
| 12837 | ;; |
| 12838 | sparc64-*linux*) |
| 12839 | LD="${LD-ld} -m elf32_sparc" |
| 12840 | ;; |
| 12841 | esac |
| 12842 | ;; |
| 12843 | *64-bit*) |
| 12844 | case $host in |
| 12845 | x86_64-*linux*) |
| 12846 | LD="${LD-ld} -m elf_x86_64" |
| 12847 | ;; |
| 12848 | ppc*-*linux*|powerpc*-*linux*) |
| 12849 | LD="${LD-ld} -m elf64ppc" |
| 12850 | ;; |
| 12851 | s390*-*linux*) |
| 12852 | LD="${LD-ld} -m elf64_s390" |
| 12853 | ;; |
| 12854 | sparc*-*linux*) |
| 12855 | LD="${LD-ld} -m elf64_sparc" |
| 12856 | ;; |
| 12857 | esac |
| 12858 | ;; |
| 12859 | esac |
| 12860 | fi |
| 12861 | rm -rf conftest* |
| 12862 | ;; |
| 12863 | |
| 12864 | *-*-sco3.2v5*) |
| 12865 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12866 | SAVE_CFLAGS="$CFLAGS" |
| 12867 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12868 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12869 | 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] | 12870 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12872 | else |
| 12873 | ac_ext=c |
| 12874 | ac_cpp='$CPP $CPPFLAGS' |
| 12875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12878 | |
| 12879 | cat >conftest.$ac_ext <<_ACEOF |
| 12880 | /* confdefs.h. */ |
| 12881 | _ACEOF |
| 12882 | cat confdefs.h >>conftest.$ac_ext |
| 12883 | cat >>conftest.$ac_ext <<_ACEOF |
| 12884 | /* end confdefs.h. */ |
| 12885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12886 | int |
| 12887 | main () |
| 12888 | { |
| 12889 | |
| 12890 | ; |
| 12891 | return 0; |
| 12892 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12893 | _ACEOF |
| 12894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12895 | if { (ac_try="$ac_link" |
| 12896 | case "(($ac_try" in |
| 12897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12898 | *) ac_try_echo=$ac_try;; |
| 12899 | esac |
| 12900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12901 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12902 | ac_status=$? |
| 12903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12904 | rm -f conftest.er1 |
| 12905 | cat conftest.err >&5 |
| 12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12907 | (exit $ac_status); } && |
| 12908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12909 | { (case "(($ac_try" in |
| 12910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12911 | *) ac_try_echo=$ac_try;; |
| 12912 | esac |
| 12913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12914 | (eval "$ac_try") 2>&5 |
| 12915 | ac_status=$? |
| 12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12917 | (exit $ac_status); }; } && |
| 12918 | { ac_try='test -s conftest$ac_exeext' |
| 12919 | { (case "(($ac_try" in |
| 12920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12921 | *) ac_try_echo=$ac_try;; |
| 12922 | esac |
| 12923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12924 | (eval "$ac_try") 2>&5 |
| 12925 | ac_status=$? |
| 12926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12927 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12928 | lt_cv_cc_needs_belf=yes |
| 12929 | else |
| 12930 | echo "$as_me: failed program was:" >&5 |
| 12931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12933 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12935 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 12936 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12937 | conftest$ac_exeext conftest.$ac_ext |
| 12938 | ac_ext=c |
| 12939 | ac_cpp='$CPP $CPPFLAGS' |
| 12940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12943 | |
| 12944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12945 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12946 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12947 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12948 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12949 | CFLAGS="$SAVE_CFLAGS" |
| 12950 | fi |
| 12951 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 | sparc*-*solaris*) |
| 12953 | # Find out which ABI we are using. |
| 12954 | echo 'int i;' > conftest.$ac_ext |
| 12955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12956 | (eval $ac_compile) 2>&5 |
| 12957 | ac_status=$? |
| 12958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12959 | (exit $ac_status); }; then |
| 12960 | case `/usr/bin/file conftest.o` in |
| 12961 | *64-bit*) |
| 12962 | case $lt_cv_prog_gnu_ld in |
| 12963 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12964 | *) LD="${LD-ld} -64" ;; |
| 12965 | esac |
| 12966 | ;; |
| 12967 | esac |
| 12968 | fi |
| 12969 | rm -rf conftest* |
| 12970 | ;; |
| 12971 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12972 | |
| 12973 | esac |
| 12974 | |
| 12975 | need_locks="$enable_libtool_lock" |
| 12976 | |
| 12977 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12978 | |
| 12979 | |
| 12980 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12981 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12982 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12983 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12984 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12985 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12986 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12987 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12988 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12989 | 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] | 12990 | if test -z "$CXXCPP"; then |
| 12991 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12993 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12994 | # Double quotes because CXXCPP needs to be expanded |
| 12995 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12996 | do |
| 12997 | ac_preproc_ok=false |
| 12998 | for ac_cxx_preproc_warn_flag in '' yes |
| 12999 | do |
| 13000 | # Use a header file that comes with gcc, so configuring glibc |
| 13001 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13002 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13003 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13004 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13005 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13006 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13007 | /* confdefs.h. */ |
| 13008 | _ACEOF |
| 13009 | cat confdefs.h >>conftest.$ac_ext |
| 13010 | cat >>conftest.$ac_ext <<_ACEOF |
| 13011 | /* end confdefs.h. */ |
| 13012 | #ifdef __STDC__ |
| 13013 | # include <limits.h> |
| 13014 | #else |
| 13015 | # include <assert.h> |
| 13016 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13017 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13018 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13020 | case "(($ac_try" in |
| 13021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13022 | *) ac_try_echo=$ac_try;; |
| 13023 | esac |
| 13024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13025 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13026 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13027 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13028 | rm -f conftest.er1 |
| 13029 | cat conftest.err >&5 |
| 13030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13031 | (exit $ac_status); } >/dev/null; then |
| 13032 | if test -s conftest.err; then |
| 13033 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13034 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13035 | else |
| 13036 | ac_cpp_err= |
| 13037 | fi |
| 13038 | else |
| 13039 | ac_cpp_err=yes |
| 13040 | fi |
| 13041 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13042 | : |
| 13043 | else |
| 13044 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13046 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13047 | # Broken: fails on valid input. |
| 13048 | continue |
| 13049 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13050 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13051 | rm -f conftest.err conftest.$ac_ext |
| 13052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13053 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13054 | # can be detected and how. |
| 13055 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13056 | /* confdefs.h. */ |
| 13057 | _ACEOF |
| 13058 | cat confdefs.h >>conftest.$ac_ext |
| 13059 | cat >>conftest.$ac_ext <<_ACEOF |
| 13060 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13061 | #include <ac_nonexistent.h> |
| 13062 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13063 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13064 | case "(($ac_try" in |
| 13065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13066 | *) ac_try_echo=$ac_try;; |
| 13067 | esac |
| 13068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13069 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13070 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13071 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13072 | rm -f conftest.er1 |
| 13073 | cat conftest.err >&5 |
| 13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13075 | (exit $ac_status); } >/dev/null; then |
| 13076 | if test -s conftest.err; then |
| 13077 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13078 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13079 | else |
| 13080 | ac_cpp_err= |
| 13081 | fi |
| 13082 | else |
| 13083 | ac_cpp_err=yes |
| 13084 | fi |
| 13085 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13086 | # Broken: success on invalid input. |
| 13087 | continue |
| 13088 | else |
| 13089 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13092 | # Passes both tests. |
| 13093 | ac_preproc_ok=: |
| 13094 | break |
| 13095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13096 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13097 | rm -f conftest.err conftest.$ac_ext |
| 13098 | |
| 13099 | done |
| 13100 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13101 | rm -f conftest.err conftest.$ac_ext |
| 13102 | if $ac_preproc_ok; then |
| 13103 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13104 | fi |
| 13105 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13106 | done |
| 13107 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13108 | |
| 13109 | fi |
| 13110 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13111 | else |
| 13112 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13114 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13115 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13116 | ac_preproc_ok=false |
| 13117 | for ac_cxx_preproc_warn_flag in '' yes |
| 13118 | do |
| 13119 | # Use a header file that comes with gcc, so configuring glibc |
| 13120 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13121 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13122 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13123 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13124 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13125 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13126 | /* confdefs.h. */ |
| 13127 | _ACEOF |
| 13128 | cat confdefs.h >>conftest.$ac_ext |
| 13129 | cat >>conftest.$ac_ext <<_ACEOF |
| 13130 | /* end confdefs.h. */ |
| 13131 | #ifdef __STDC__ |
| 13132 | # include <limits.h> |
| 13133 | #else |
| 13134 | # include <assert.h> |
| 13135 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13136 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13137 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13138 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13139 | case "(($ac_try" in |
| 13140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13141 | *) ac_try_echo=$ac_try;; |
| 13142 | esac |
| 13143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13144 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13145 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13146 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13147 | rm -f conftest.er1 |
| 13148 | cat conftest.err >&5 |
| 13149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13150 | (exit $ac_status); } >/dev/null; then |
| 13151 | if test -s conftest.err; then |
| 13152 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13153 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13154 | else |
| 13155 | ac_cpp_err= |
| 13156 | fi |
| 13157 | else |
| 13158 | ac_cpp_err=yes |
| 13159 | fi |
| 13160 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13161 | : |
| 13162 | else |
| 13163 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13165 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13166 | # Broken: fails on valid input. |
| 13167 | continue |
| 13168 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13169 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13170 | rm -f conftest.err conftest.$ac_ext |
| 13171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13172 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13173 | # can be detected and how. |
| 13174 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13175 | /* confdefs.h. */ |
| 13176 | _ACEOF |
| 13177 | cat confdefs.h >>conftest.$ac_ext |
| 13178 | cat >>conftest.$ac_ext <<_ACEOF |
| 13179 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13180 | #include <ac_nonexistent.h> |
| 13181 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13183 | case "(($ac_try" in |
| 13184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13185 | *) ac_try_echo=$ac_try;; |
| 13186 | esac |
| 13187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13189 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13190 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13191 | rm -f conftest.er1 |
| 13192 | cat conftest.err >&5 |
| 13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13194 | (exit $ac_status); } >/dev/null; then |
| 13195 | if test -s conftest.err; then |
| 13196 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13197 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13198 | else |
| 13199 | ac_cpp_err= |
| 13200 | fi |
| 13201 | else |
| 13202 | ac_cpp_err=yes |
| 13203 | fi |
| 13204 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13205 | # Broken: success on invalid input. |
| 13206 | continue |
| 13207 | else |
| 13208 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13210 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13211 | # Passes both tests. |
| 13212 | ac_preproc_ok=: |
| 13213 | break |
| 13214 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13215 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13216 | rm -f conftest.err conftest.$ac_ext |
| 13217 | |
| 13218 | done |
| 13219 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13220 | rm -f conftest.err conftest.$ac_ext |
| 13221 | if $ac_preproc_ok; then |
| 13222 | : |
| 13223 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13224 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13225 | See \`config.log' for more details." >&5 |
| 13226 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13227 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13228 | { (exit 1); exit 1; }; } |
| 13229 | fi |
| 13230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13231 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13232 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13233 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13234 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13235 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13236 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13237 | fi |
| 13238 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13239 | |
| 13240 | ac_ext=f |
| 13241 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13242 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13243 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13244 | if test -n "$ac_tool_prefix"; then |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13245 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13246 | do |
| 13247 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13248 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13249 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13251 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13253 | else |
| 13254 | if test -n "$F77"; then |
| 13255 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13256 | else |
| 13257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13258 | for as_dir in $PATH |
| 13259 | do |
| 13260 | IFS=$as_save_IFS |
| 13261 | test -z "$as_dir" && as_dir=. |
| 13262 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13264 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13266 | break 2 |
| 13267 | fi |
| 13268 | done |
| 13269 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13270 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13271 | |
| 13272 | fi |
| 13273 | fi |
| 13274 | F77=$ac_cv_prog_F77 |
| 13275 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13276 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13277 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13278 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13279 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13280 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13281 | fi |
| 13282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13283 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13284 | test -n "$F77" && break |
| 13285 | done |
| 13286 | fi |
| 13287 | if test -z "$F77"; then |
| 13288 | ac_ct_F77=$F77 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13289 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13290 | do |
| 13291 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13292 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13293 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13295 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13297 | else |
| 13298 | if test -n "$ac_ct_F77"; then |
| 13299 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13300 | else |
| 13301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13302 | for as_dir in $PATH |
| 13303 | do |
| 13304 | IFS=$as_save_IFS |
| 13305 | test -z "$as_dir" && as_dir=. |
| 13306 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13308 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13310 | break 2 |
| 13311 | fi |
| 13312 | done |
| 13313 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13314 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13315 | |
| 13316 | fi |
| 13317 | fi |
| 13318 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13319 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13320 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13321 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13322 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13324 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13325 | fi |
| 13326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13327 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13328 | test -n "$ac_ct_F77" && break |
| 13329 | done |
| 13330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13331 | if test "x$ac_ct_F77" = x; then |
| 13332 | F77="" |
| 13333 | else |
| 13334 | case $cross_compiling:$ac_tool_warned in |
| 13335 | yes:) |
| 13336 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13337 | whose name does not start with the host triplet. If you think this |
| 13338 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13339 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13340 | whose name does not start with the host triplet. If you think this |
| 13341 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13342 | ac_tool_warned=yes ;; |
| 13343 | esac |
| 13344 | F77=$ac_ct_F77 |
| 13345 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13346 | fi |
| 13347 | |
| 13348 | |
| 13349 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13350 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13351 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13352 | { (ac_try="$ac_compiler --version >&5" |
| 13353 | case "(($ac_try" in |
| 13354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13355 | *) ac_try_echo=$ac_try;; |
| 13356 | esac |
| 13357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13358 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13359 | ac_status=$? |
| 13360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13361 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13362 | { (ac_try="$ac_compiler -v >&5" |
| 13363 | case "(($ac_try" in |
| 13364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13365 | *) ac_try_echo=$ac_try;; |
| 13366 | esac |
| 13367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13368 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13369 | ac_status=$? |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13371 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13372 | { (ac_try="$ac_compiler -V >&5" |
| 13373 | case "(($ac_try" in |
| 13374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13375 | *) ac_try_echo=$ac_try;; |
| 13376 | esac |
| 13377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13378 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13379 | ac_status=$? |
| 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13381 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13382 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13383 | |
| 13384 | # 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] | 13385 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13386 | ac_save_ext=$ac_ext |
| 13387 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13388 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13389 | 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] | 13390 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13392 | else |
| 13393 | cat >conftest.$ac_ext <<_ACEOF |
| 13394 | program main |
| 13395 | #ifndef __GNUC__ |
| 13396 | choke me |
| 13397 | #endif |
| 13398 | |
| 13399 | end |
| 13400 | _ACEOF |
| 13401 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13402 | if { (ac_try="$ac_compile" |
| 13403 | case "(($ac_try" in |
| 13404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13405 | *) ac_try_echo=$ac_try;; |
| 13406 | esac |
| 13407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13408 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13409 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13411 | rm -f conftest.er1 |
| 13412 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13414 | (exit $ac_status); } && |
| 13415 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13416 | { (case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
| 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13421 | (eval "$ac_try") 2>&5 |
| 13422 | ac_status=$? |
| 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13424 | (exit $ac_status); }; } && |
| 13425 | { ac_try='test -s conftest.$ac_objext' |
| 13426 | { (case "(($ac_try" in |
| 13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13428 | *) ac_try_echo=$ac_try;; |
| 13429 | esac |
| 13430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13431 | (eval "$ac_try") 2>&5 |
| 13432 | ac_status=$? |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13435 | ac_compiler_gnu=yes |
| 13436 | else |
| 13437 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13440 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13442 | |
| 13443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13444 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13445 | |
| 13446 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13447 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13448 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13449 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13450 | ac_test_FFLAGS=${FFLAGS+set} |
| 13451 | ac_save_FFLAGS=$FFLAGS |
| 13452 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13453 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13454 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13455 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13457 | else |
| 13458 | FFLAGS=-g |
| 13459 | cat >conftest.$ac_ext <<_ACEOF |
| 13460 | program main |
| 13461 | |
| 13462 | end |
| 13463 | _ACEOF |
| 13464 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13465 | if { (ac_try="$ac_compile" |
| 13466 | case "(($ac_try" in |
| 13467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13468 | *) ac_try_echo=$ac_try;; |
| 13469 | esac |
| 13470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13471 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13472 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13474 | rm -f conftest.er1 |
| 13475 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13477 | (exit $ac_status); } && |
| 13478 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13479 | { (case "(($ac_try" in |
| 13480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13481 | *) ac_try_echo=$ac_try;; |
| 13482 | esac |
| 13483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13484 | (eval "$ac_try") 2>&5 |
| 13485 | ac_status=$? |
| 13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13487 | (exit $ac_status); }; } && |
| 13488 | { ac_try='test -s conftest.$ac_objext' |
| 13489 | { (case "(($ac_try" in |
| 13490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13491 | *) ac_try_echo=$ac_try;; |
| 13492 | esac |
| 13493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13494 | (eval "$ac_try") 2>&5 |
| 13495 | ac_status=$? |
| 13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13497 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13498 | ac_cv_prog_f77_g=yes |
| 13499 | else |
| 13500 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13503 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13505 | |
| 13506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13507 | |
| 13508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13509 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13510 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13511 | if test "$ac_test_FFLAGS" = set; then |
| 13512 | FFLAGS=$ac_save_FFLAGS |
| 13513 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13514 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13515 | FFLAGS="-g -O2" |
| 13516 | else |
| 13517 | FFLAGS="-g" |
| 13518 | fi |
| 13519 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13520 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13521 | FFLAGS="-O2" |
| 13522 | else |
| 13523 | FFLAGS= |
| 13524 | fi |
| 13525 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13526 | |
| 13527 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13528 | ac_ext=c |
| 13529 | ac_cpp='$CPP $CPPFLAGS' |
| 13530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13537 | |
| 13538 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13539 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13540 | 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] | 13541 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13543 | else |
| 13544 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13545 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13546 | |
| 13547 | case $build_os in |
| 13548 | msdosdjgpp*) |
| 13549 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13550 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13551 | # during glob expansion). Even if it were fixed, the result of this |
| 13552 | # check would be larger than it should be. |
| 13553 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13554 | ;; |
| 13555 | |
| 13556 | gnu*) |
| 13557 | # Under GNU Hurd, this test is not required because there is |
| 13558 | # no limit to the length of command line arguments. |
| 13559 | # Libtool will interpret -1 as no limit whatsoever |
| 13560 | lt_cv_sys_max_cmd_len=-1; |
| 13561 | ;; |
| 13562 | |
| 13563 | cygwin* | mingw*) |
| 13564 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13565 | # about 5 minutes as the teststring grows exponentially. |
| 13566 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13567 | # you end up with a "frozen" computer, even though with patience |
| 13568 | # the test eventually succeeds (with a max line length of 256k). |
| 13569 | # Instead, let's just punt: use the minimum linelength reported by |
| 13570 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13571 | lt_cv_sys_max_cmd_len=8192; |
| 13572 | ;; |
| 13573 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13574 | amigaos*) |
| 13575 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13576 | # So we just punt and use a minimum line length of 8192. |
| 13577 | lt_cv_sys_max_cmd_len=8192; |
| 13578 | ;; |
| 13579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13580 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13581 | # This has been around since 386BSD, at least. Likely further. |
| 13582 | if test -x /sbin/sysctl; then |
| 13583 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13584 | elif test -x /usr/sbin/sysctl; then |
| 13585 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13586 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13587 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13588 | fi |
| 13589 | # And add a safety zone |
| 13590 | 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] | 13591 | 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] | 13592 | ;; |
| 13593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13594 | interix*) |
| 13595 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13596 | lt_cv_sys_max_cmd_len=196608 |
| 13597 | ;; |
| 13598 | |
| 13599 | osf*) |
| 13600 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13601 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13602 | # nice to cause kernel panics so lets avoid the loop below. |
| 13603 | # First set a reasonable default. |
| 13604 | lt_cv_sys_max_cmd_len=16384 |
| 13605 | # |
| 13606 | if test -x /sbin/sysconfig; then |
| 13607 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13608 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13609 | esac |
| 13610 | fi |
| 13611 | ;; |
| 13612 | sco3.2v5*) |
| 13613 | lt_cv_sys_max_cmd_len=102400 |
| 13614 | ;; |
| 13615 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13616 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13617 | if test -n "$kargmax"; then |
| 13618 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13619 | else |
| 13620 | lt_cv_sys_max_cmd_len=32768 |
| 13621 | fi |
| 13622 | ;; |
| 13623 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13624 | # If test is not a shell built-in, we'll probably end up computing a |
| 13625 | # maximum length that is only half of the actual maximum length, but |
| 13626 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13627 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13628 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13629 | = "XX$teststring") >/dev/null 2>&1 && |
| 13630 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13631 | lt_cv_sys_max_cmd_len=$new_result && |
| 13632 | test $i != 17 # 1/2 MB should be enough |
| 13633 | do |
| 13634 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13635 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13636 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13637 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13638 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13639 | # amounts of additional arguments before passing them to the linker. |
| 13640 | # It appears as though 1/2 is a usable value. |
| 13641 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13642 | ;; |
| 13643 | esac |
| 13644 | |
| 13645 | fi |
| 13646 | |
| 13647 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13648 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13649 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13650 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13651 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13652 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13653 | fi |
| 13654 | |
| 13655 | |
| 13656 | |
| 13657 | |
| 13658 | # 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] | 13659 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13660 | 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] | 13661 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13663 | else |
| 13664 | |
| 13665 | # These are sane defaults that work on at least a few old systems. |
| 13666 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13667 | |
| 13668 | # Character class describing NM global symbol codes. |
| 13669 | symcode='[BCDEGRST]' |
| 13670 | |
| 13671 | # Regexp to match symbols that can be accessed directly from C. |
| 13672 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13673 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13674 | # Transform an extracted symbol line into a proper C declaration |
| 13675 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13676 | |
| 13677 | # Transform an extracted symbol line into symbol name and symbol address |
| 13678 | 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'" |
| 13679 | |
| 13680 | # Define system-specific variables. |
| 13681 | case $host_os in |
| 13682 | aix*) |
| 13683 | symcode='[BCDT]' |
| 13684 | ;; |
| 13685 | cygwin* | mingw* | pw32*) |
| 13686 | symcode='[ABCDGISTW]' |
| 13687 | ;; |
| 13688 | hpux*) # Its linker distinguishes data from code symbols |
| 13689 | if test "$host_cpu" = ia64; then |
| 13690 | symcode='[ABCDEGRST]' |
| 13691 | fi |
| 13692 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13693 | 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'" |
| 13694 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13695 | linux*) |
| 13696 | if test "$host_cpu" = ia64; then |
| 13697 | symcode='[ABCDGIRSTW]' |
| 13698 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13699 | 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'" |
| 13700 | fi |
| 13701 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13702 | irix* | nonstopux*) |
| 13703 | symcode='[BCDEGRST]' |
| 13704 | ;; |
| 13705 | osf*) |
| 13706 | symcode='[BCDEGQRST]' |
| 13707 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13708 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13709 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13710 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13711 | sco3.2v5*) |
| 13712 | symcode='[DT]' |
| 13713 | ;; |
| 13714 | sysv4.2uw2*) |
| 13715 | symcode='[DT]' |
| 13716 | ;; |
| 13717 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13718 | symcode='[ABDT]' |
| 13719 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13720 | sysv4) |
| 13721 | symcode='[DFNSTU]' |
| 13722 | ;; |
| 13723 | esac |
| 13724 | |
| 13725 | # Handle CRLF in mingw tool chain |
| 13726 | opt_cr= |
| 13727 | case $build_os in |
| 13728 | mingw*) |
| 13729 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13730 | ;; |
| 13731 | esac |
| 13732 | |
| 13733 | # If we're using GNU nm, then use its standard symbol codes. |
| 13734 | case `$NM -V 2>&1` in |
| 13735 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13736 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13737 | esac |
| 13738 | |
| 13739 | # Try without a prefix undercore, then with it. |
| 13740 | for ac_symprfx in "" "_"; do |
| 13741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13742 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13743 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13744 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13745 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13746 | 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] | 13747 | |
| 13748 | # Check to see that the pipe works correctly. |
| 13749 | pipe_works=no |
| 13750 | |
| 13751 | rm -f conftest* |
| 13752 | cat > conftest.$ac_ext <<EOF |
| 13753 | #ifdef __cplusplus |
| 13754 | extern "C" { |
| 13755 | #endif |
| 13756 | char nm_test_var; |
| 13757 | void nm_test_func(){} |
| 13758 | #ifdef __cplusplus |
| 13759 | } |
| 13760 | #endif |
| 13761 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13762 | EOF |
| 13763 | |
| 13764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13765 | (eval $ac_compile) 2>&5 |
| 13766 | ac_status=$? |
| 13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13768 | (exit $ac_status); }; then |
| 13769 | # Now try to grab the symbols. |
| 13770 | nlist=conftest.nm |
| 13771 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13772 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13773 | ac_status=$? |
| 13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13775 | (exit $ac_status); } && test -s "$nlist"; then |
| 13776 | # Try sorting and uniquifying the output. |
| 13777 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13778 | mv -f "$nlist"T "$nlist" |
| 13779 | else |
| 13780 | rm -f "$nlist"T |
| 13781 | fi |
| 13782 | |
| 13783 | # Make sure that we snagged all the symbols we need. |
| 13784 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13785 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13786 | cat <<EOF > conftest.$ac_ext |
| 13787 | #ifdef __cplusplus |
| 13788 | extern "C" { |
| 13789 | #endif |
| 13790 | |
| 13791 | EOF |
| 13792 | # Now generate the symbol file. |
| 13793 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13794 | |
| 13795 | cat <<EOF >> conftest.$ac_ext |
| 13796 | #if defined (__STDC__) && __STDC__ |
| 13797 | # define lt_ptr_t void * |
| 13798 | #else |
| 13799 | # define lt_ptr_t char * |
| 13800 | # define const |
| 13801 | #endif |
| 13802 | |
| 13803 | /* The mapping between symbol names and symbols. */ |
| 13804 | const struct { |
| 13805 | const char *name; |
| 13806 | lt_ptr_t address; |
| 13807 | } |
| 13808 | lt_preloaded_symbols[] = |
| 13809 | { |
| 13810 | EOF |
| 13811 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13812 | cat <<\EOF >> conftest.$ac_ext |
| 13813 | {0, (lt_ptr_t) 0} |
| 13814 | }; |
| 13815 | |
| 13816 | #ifdef __cplusplus |
| 13817 | } |
| 13818 | #endif |
| 13819 | EOF |
| 13820 | # Now try linking the two files. |
| 13821 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13822 | lt_save_LIBS="$LIBS" |
| 13823 | lt_save_CFLAGS="$CFLAGS" |
| 13824 | LIBS="conftstm.$ac_objext" |
| 13825 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13827 | (eval $ac_link) 2>&5 |
| 13828 | ac_status=$? |
| 13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13830 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13831 | pipe_works=yes |
| 13832 | fi |
| 13833 | LIBS="$lt_save_LIBS" |
| 13834 | CFLAGS="$lt_save_CFLAGS" |
| 13835 | else |
| 13836 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13837 | fi |
| 13838 | else |
| 13839 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13840 | fi |
| 13841 | else |
| 13842 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13843 | fi |
| 13844 | else |
| 13845 | echo "$progname: failed program was:" >&5 |
| 13846 | cat conftest.$ac_ext >&5 |
| 13847 | fi |
| 13848 | rm -f conftest* conftst* |
| 13849 | |
| 13850 | # Do not use the global_symbol_pipe unless it works. |
| 13851 | if test "$pipe_works" = yes; then |
| 13852 | break |
| 13853 | else |
| 13854 | lt_cv_sys_global_symbol_pipe= |
| 13855 | fi |
| 13856 | done |
| 13857 | |
| 13858 | fi |
| 13859 | |
| 13860 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13861 | lt_cv_sys_global_symbol_to_cdecl= |
| 13862 | fi |
| 13863 | 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] | 13864 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13865 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13866 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13867 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13868 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13869 | fi |
| 13870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13871 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13872 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13873 | if test "${lt_cv_objdir+set}" = set; then |
| 13874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13875 | else |
| 13876 | rm -f .libs 2>/dev/null |
| 13877 | mkdir .libs 2>/dev/null |
| 13878 | if test -d .libs; then |
| 13879 | lt_cv_objdir=.libs |
| 13880 | else |
| 13881 | # MS-DOS does not allow filenames that begin with a dot. |
| 13882 | lt_cv_objdir=_libs |
| 13883 | fi |
| 13884 | rmdir .libs 2>/dev/null |
| 13885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13886 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13887 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13888 | objdir=$lt_cv_objdir |
| 13889 | |
| 13890 | |
| 13891 | |
| 13892 | |
| 13893 | |
| 13894 | case $host_os in |
| 13895 | aix3*) |
| 13896 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13897 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13898 | # vanish in a puff of smoke. |
| 13899 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13900 | COLLECT_NAMES= |
| 13901 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13902 | fi |
| 13903 | ;; |
| 13904 | esac |
| 13905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13906 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13907 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13908 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13909 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13910 | |
| 13911 | # Same as above, but do not quote variable references. |
| 13912 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13913 | |
| 13914 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13915 | # double_quote_subst'ed string. |
| 13916 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13917 | |
| 13918 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13919 | no_glob_subst='s/\*/\\\*/g' |
| 13920 | |
| 13921 | # Constants: |
| 13922 | rm="rm -f" |
| 13923 | |
| 13924 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13925 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13926 | can_build_shared=yes |
| 13927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13928 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13929 | # which needs '.lib'). |
| 13930 | libext=a |
| 13931 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13932 | ofile="$default_ofile" |
| 13933 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13934 | |
| 13935 | if test -n "$ac_tool_prefix"; then |
| 13936 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13937 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13940 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13942 | else |
| 13943 | if test -n "$AR"; then |
| 13944 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13945 | else |
| 13946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13947 | for as_dir in $PATH |
| 13948 | do |
| 13949 | IFS=$as_save_IFS |
| 13950 | test -z "$as_dir" && as_dir=. |
| 13951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13953 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13955 | break 2 |
| 13956 | fi |
| 13957 | done |
| 13958 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13959 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13960 | |
| 13961 | fi |
| 13962 | fi |
| 13963 | AR=$ac_cv_prog_AR |
| 13964 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13965 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13966 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13967 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13968 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13969 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13970 | fi |
| 13971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13972 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13973 | fi |
| 13974 | if test -z "$ac_cv_prog_AR"; then |
| 13975 | ac_ct_AR=$AR |
| 13976 | # Extract the first word of "ar", so it can be a program name with args. |
| 13977 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13980 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13982 | else |
| 13983 | if test -n "$ac_ct_AR"; then |
| 13984 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13985 | else |
| 13986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13987 | for as_dir in $PATH |
| 13988 | do |
| 13989 | IFS=$as_save_IFS |
| 13990 | test -z "$as_dir" && as_dir=. |
| 13991 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 13992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13993 | ac_cv_prog_ac_ct_AR="ar" |
| 13994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13995 | break 2 |
| 13996 | fi |
| 13997 | done |
| 13998 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13999 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14000 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14001 | fi |
| 14002 | fi |
| 14003 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14004 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14005 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14006 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14007 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14009 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14010 | fi |
| 14011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14012 | if test "x$ac_ct_AR" = x; then |
| 14013 | AR="false" |
| 14014 | else |
| 14015 | case $cross_compiling:$ac_tool_warned in |
| 14016 | yes:) |
| 14017 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14018 | whose name does not start with the host triplet. If you think this |
| 14019 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14020 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14021 | whose name does not start with the host triplet. If you think this |
| 14022 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14023 | ac_tool_warned=yes ;; |
| 14024 | esac |
| 14025 | AR=$ac_ct_AR |
| 14026 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14027 | else |
| 14028 | AR="$ac_cv_prog_AR" |
| 14029 | fi |
| 14030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14031 | if test -n "$ac_tool_prefix"; then |
| 14032 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14033 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14034 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14036 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14038 | else |
| 14039 | if test -n "$RANLIB"; then |
| 14040 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14041 | else |
| 14042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14043 | for as_dir in $PATH |
| 14044 | do |
| 14045 | IFS=$as_save_IFS |
| 14046 | test -z "$as_dir" && as_dir=. |
| 14047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14049 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14051 | break 2 |
| 14052 | fi |
| 14053 | done |
| 14054 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14055 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14056 | |
| 14057 | fi |
| 14058 | fi |
| 14059 | RANLIB=$ac_cv_prog_RANLIB |
| 14060 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14061 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14062 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14063 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14065 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14066 | fi |
| 14067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14068 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14069 | fi |
| 14070 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14071 | ac_ct_RANLIB=$RANLIB |
| 14072 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14073 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14074 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14076 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14078 | else |
| 14079 | if test -n "$ac_ct_RANLIB"; then |
| 14080 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14081 | else |
| 14082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14083 | for as_dir in $PATH |
| 14084 | do |
| 14085 | IFS=$as_save_IFS |
| 14086 | test -z "$as_dir" && as_dir=. |
| 14087 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14089 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14091 | break 2 |
| 14092 | fi |
| 14093 | done |
| 14094 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14095 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14096 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14097 | fi |
| 14098 | fi |
| 14099 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14100 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14101 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14102 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14103 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14104 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14105 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14106 | fi |
| 14107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14108 | if test "x$ac_ct_RANLIB" = x; then |
| 14109 | RANLIB=":" |
| 14110 | else |
| 14111 | case $cross_compiling:$ac_tool_warned in |
| 14112 | yes:) |
| 14113 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14114 | whose name does not start with the host triplet. If you think this |
| 14115 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14116 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14117 | whose name does not start with the host triplet. If you think this |
| 14118 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14119 | ac_tool_warned=yes ;; |
| 14120 | esac |
| 14121 | RANLIB=$ac_ct_RANLIB |
| 14122 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14123 | else |
| 14124 | RANLIB="$ac_cv_prog_RANLIB" |
| 14125 | fi |
| 14126 | |
| 14127 | if test -n "$ac_tool_prefix"; then |
| 14128 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14129 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14130 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14132 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14134 | else |
| 14135 | if test -n "$STRIP"; then |
| 14136 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14137 | else |
| 14138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14139 | for as_dir in $PATH |
| 14140 | do |
| 14141 | IFS=$as_save_IFS |
| 14142 | test -z "$as_dir" && as_dir=. |
| 14143 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14145 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14147 | break 2 |
| 14148 | fi |
| 14149 | done |
| 14150 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14151 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14152 | |
| 14153 | fi |
| 14154 | fi |
| 14155 | STRIP=$ac_cv_prog_STRIP |
| 14156 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14157 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14158 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14159 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14161 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14162 | fi |
| 14163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14164 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14165 | fi |
| 14166 | if test -z "$ac_cv_prog_STRIP"; then |
| 14167 | ac_ct_STRIP=$STRIP |
| 14168 | # Extract the first word of "strip", so it can be a program name with args. |
| 14169 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14172 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14174 | else |
| 14175 | if test -n "$ac_ct_STRIP"; then |
| 14176 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14177 | else |
| 14178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14179 | for as_dir in $PATH |
| 14180 | do |
| 14181 | IFS=$as_save_IFS |
| 14182 | test -z "$as_dir" && as_dir=. |
| 14183 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 14184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14185 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14187 | break 2 |
| 14188 | fi |
| 14189 | done |
| 14190 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14191 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14192 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14193 | fi |
| 14194 | fi |
| 14195 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14196 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14197 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14198 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14199 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14200 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14201 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14202 | fi |
| 14203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14204 | if test "x$ac_ct_STRIP" = x; then |
| 14205 | STRIP=":" |
| 14206 | else |
| 14207 | case $cross_compiling:$ac_tool_warned in |
| 14208 | yes:) |
| 14209 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14210 | whose name does not start with the host triplet. If you think this |
| 14211 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14212 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14213 | whose name does not start with the host triplet. If you think this |
| 14214 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14215 | ac_tool_warned=yes ;; |
| 14216 | esac |
| 14217 | STRIP=$ac_ct_STRIP |
| 14218 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14219 | else |
| 14220 | STRIP="$ac_cv_prog_STRIP" |
| 14221 | fi |
| 14222 | |
| 14223 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14224 | old_CC="$CC" |
| 14225 | old_CFLAGS="$CFLAGS" |
| 14226 | |
| 14227 | # Set sane defaults for various variables |
| 14228 | test -z "$AR" && AR=ar |
| 14229 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14230 | test -z "$AS" && AS=as |
| 14231 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14232 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14233 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14234 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14235 | test -z "$LD" && LD=ld |
| 14236 | test -z "$LN_S" && LN_S="ln -s" |
| 14237 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14238 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14239 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14240 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14241 | test -z "$RANLIB" && RANLIB=: |
| 14242 | test -z "$STRIP" && STRIP=: |
| 14243 | test -z "$ac_objext" && ac_objext=o |
| 14244 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14245 | # Determine commands to create old-style static archives. |
| 14246 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14247 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14248 | old_postuninstall_cmds= |
| 14249 | |
| 14250 | if test -n "$RANLIB"; then |
| 14251 | case $host_os in |
| 14252 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14253 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14254 | ;; |
| 14255 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14256 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14257 | ;; |
| 14258 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14259 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14260 | fi |
| 14261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14262 | for cc_temp in $compiler""; do |
| 14263 | case $cc_temp in |
| 14264 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14265 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14266 | \-*) ;; |
| 14267 | *) break;; |
| 14268 | esac |
| 14269 | done |
| 14270 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14271 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14272 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14273 | # Only perform the check for file, if the check method requires it |
| 14274 | case $deplibs_check_method in |
| 14275 | file_magic*) |
| 14276 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14277 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14278 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14279 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14281 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14282 | case $MAGIC_CMD in |
| 14283 | [\\/*] | ?:[\\/]*) |
| 14284 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14285 | ;; |
| 14286 | *) |
| 14287 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14288 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14289 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14290 | for ac_dir in $ac_dummy; do |
| 14291 | IFS="$lt_save_ifs" |
| 14292 | test -z "$ac_dir" && ac_dir=. |
| 14293 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14294 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14295 | if test -n "$file_magic_test_file"; then |
| 14296 | case $deplibs_check_method in |
| 14297 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14298 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14299 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14300 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14301 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14302 | : |
| 14303 | else |
| 14304 | cat <<EOF 1>&2 |
| 14305 | |
| 14306 | *** Warning: the command libtool uses to detect shared libraries, |
| 14307 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14308 | *** The result is that libtool may fail to recognize shared libraries |
| 14309 | *** as such. This will affect the creation of libtool libraries that |
| 14310 | *** depend on shared libraries, but programs linked with such libtool |
| 14311 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14312 | *** may want to report the problem to your system manager and/or to |
| 14313 | *** bug-libtool@gnu.org |
| 14314 | |
| 14315 | EOF |
| 14316 | fi ;; |
| 14317 | esac |
| 14318 | fi |
| 14319 | break |
| 14320 | fi |
| 14321 | done |
| 14322 | IFS="$lt_save_ifs" |
| 14323 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14324 | ;; |
| 14325 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14326 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14327 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14328 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14329 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14330 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14331 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14332 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14334 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14335 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14336 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14337 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14338 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14339 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14340 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14341 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14343 | else |
| 14344 | case $MAGIC_CMD in |
| 14345 | [\\/*] | ?:[\\/]*) |
| 14346 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14347 | ;; |
| 14348 | *) |
| 14349 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14350 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14351 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14352 | for ac_dir in $ac_dummy; do |
| 14353 | IFS="$lt_save_ifs" |
| 14354 | test -z "$ac_dir" && ac_dir=. |
| 14355 | if test -f $ac_dir/file; then |
| 14356 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14357 | if test -n "$file_magic_test_file"; then |
| 14358 | case $deplibs_check_method in |
| 14359 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14360 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14361 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14362 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14363 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14364 | : |
| 14365 | else |
| 14366 | cat <<EOF 1>&2 |
| 14367 | |
| 14368 | *** Warning: the command libtool uses to detect shared libraries, |
| 14369 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14370 | *** The result is that libtool may fail to recognize shared libraries |
| 14371 | *** as such. This will affect the creation of libtool libraries that |
| 14372 | *** depend on shared libraries, but programs linked with such libtool |
| 14373 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14374 | *** may want to report the problem to your system manager and/or to |
| 14375 | *** bug-libtool@gnu.org |
| 14376 | |
| 14377 | EOF |
| 14378 | fi ;; |
| 14379 | esac |
| 14380 | fi |
| 14381 | break |
| 14382 | fi |
| 14383 | done |
| 14384 | IFS="$lt_save_ifs" |
| 14385 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14386 | ;; |
| 14387 | esac |
| 14388 | fi |
| 14389 | |
| 14390 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14391 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14392 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14393 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14394 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14395 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14396 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14397 | fi |
| 14398 | |
| 14399 | else |
| 14400 | MAGIC_CMD=: |
| 14401 | fi |
| 14402 | fi |
| 14403 | |
| 14404 | fi |
| 14405 | ;; |
| 14406 | esac |
| 14407 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14408 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14409 | enable_win32_dll=no |
| 14410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14411 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14412 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14413 | enableval=$enable_libtool_lock; |
| 14414 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14415 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14416 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14417 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14419 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14420 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14421 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14422 | else |
| 14423 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14424 | fi |
| 14425 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14426 | test -z "$pic_mode" && pic_mode=default |
| 14427 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14428 | # Use C for the default configuration in the libtool script |
| 14429 | tagname= |
| 14430 | lt_save_CC="$CC" |
| 14431 | ac_ext=c |
| 14432 | ac_cpp='$CPP $CPPFLAGS' |
| 14433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14436 | |
| 14437 | |
| 14438 | # Source file extension for C test sources. |
| 14439 | ac_ext=c |
| 14440 | |
| 14441 | # Object file extension for compiled C test sources. |
| 14442 | objext=o |
| 14443 | objext=$objext |
| 14444 | |
| 14445 | # Code to be used in simple compile tests |
| 14446 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14447 | |
| 14448 | # Code to be used in simple link tests |
| 14449 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14450 | |
| 14451 | |
| 14452 | # If no C compiler was specified, use CC. |
| 14453 | LTCC=${LTCC-"$CC"} |
| 14454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14455 | # If no C compiler flags were specified, use CFLAGS. |
| 14456 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14457 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14458 | # Allow CC to be a program name with arguments. |
| 14459 | compiler=$CC |
| 14460 | |
| 14461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14462 | # save warnings/boilerplate of simple test code |
| 14463 | ac_outfile=conftest.$ac_objext |
| 14464 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14465 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14466 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14467 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14469 | ac_outfile=conftest.$ac_objext |
| 14470 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14471 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14472 | _lt_linker_boilerplate=`cat conftest.err` |
| 14473 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14474 | |
| 14475 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14476 | |
| 14477 | lt_prog_compiler_no_builtin_flag= |
| 14478 | |
| 14479 | if test "$GCC" = yes; then |
| 14480 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14481 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14483 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14484 | 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] | 14485 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14487 | else |
| 14488 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14489 | ac_outfile=conftest.$ac_objext |
| 14490 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14491 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14492 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14493 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14494 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14495 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14496 | # The option is referenced via a variable to avoid confusing sed. |
| 14497 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14498 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14499 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14500 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 14501 | (eval echo "\"\$as_me:14496: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14502 | (eval "$lt_compile" 2>conftest.err) |
| 14503 | ac_status=$? |
| 14504 | cat conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 14505 | echo "$as_me:14500: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14506 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14507 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14508 | # So say no if there are warnings other than the usual output. |
| 14509 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14510 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14511 | 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] | 14512 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14513 | fi |
| 14514 | fi |
| 14515 | $rm conftest* |
| 14516 | |
| 14517 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14518 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14519 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14520 | |
| 14521 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14522 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14523 | else |
| 14524 | : |
| 14525 | fi |
| 14526 | |
| 14527 | fi |
| 14528 | |
| 14529 | lt_prog_compiler_wl= |
| 14530 | lt_prog_compiler_pic= |
| 14531 | lt_prog_compiler_static= |
| 14532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14533 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14534 | 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] | 14535 | |
| 14536 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14537 | lt_prog_compiler_wl='-Wl,' |
| 14538 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14539 | |
| 14540 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14541 | aix*) |
| 14542 | # All AIX code is PIC. |
| 14543 | if test "$host_cpu" = ia64; then |
| 14544 | # AIX 5 now supports IA64 processor |
| 14545 | lt_prog_compiler_static='-Bstatic' |
| 14546 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14547 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14548 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14549 | amigaos*) |
| 14550 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14551 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14552 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14553 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14554 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14555 | |
| 14556 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14557 | # PIC is the default for these OSes. |
| 14558 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14559 | |
| 14560 | mingw* | pw32* | os2*) |
| 14561 | # This hack is so that the source file can tell whether it is being |
| 14562 | # built for inclusion in a dll (and should export symbols for example). |
| 14563 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14564 | ;; |
| 14565 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14566 | darwin* | rhapsody*) |
| 14567 | # PIC is the default on this platform |
| 14568 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14569 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14570 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14572 | interix3*) |
| 14573 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14574 | # Instead, we relocate shared libraries at runtime. |
| 14575 | ;; |
| 14576 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14577 | msdosdjgpp*) |
| 14578 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14579 | # on systems that don't support them. |
| 14580 | lt_prog_compiler_can_build_shared=no |
| 14581 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14582 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14583 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14584 | sysv4*MP*) |
| 14585 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14586 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14587 | fi |
| 14588 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14589 | |
| 14590 | hpux*) |
| 14591 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14592 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14593 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14594 | hppa*64*|ia64*) |
| 14595 | # +Z the default |
| 14596 | ;; |
| 14597 | *) |
| 14598 | lt_prog_compiler_pic='-fPIC' |
| 14599 | ;; |
| 14600 | esac |
| 14601 | ;; |
| 14602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14603 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14604 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14605 | ;; |
| 14606 | esac |
| 14607 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14608 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14609 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14610 | aix*) |
| 14611 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14612 | if test "$host_cpu" = ia64; then |
| 14613 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14614 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14615 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14616 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14617 | fi |
| 14618 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14619 | darwin*) |
| 14620 | # PIC is the default on this platform |
| 14621 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14622 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14623 | xlc*) |
| 14624 | lt_prog_compiler_pic='-qnocommon' |
| 14625 | lt_prog_compiler_wl='-Wl,' |
| 14626 | ;; |
| 14627 | esac |
| 14628 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14629 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14630 | mingw* | pw32* | os2*) |
| 14631 | # This hack is so that the source file can tell whether it is being |
| 14632 | # built for inclusion in a dll (and should export symbols for example). |
| 14633 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14634 | ;; |
| 14635 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14636 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14637 | lt_prog_compiler_wl='-Wl,' |
| 14638 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14639 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14640 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14641 | hppa*64*|ia64*) |
| 14642 | # +Z the default |
| 14643 | ;; |
| 14644 | *) |
| 14645 | lt_prog_compiler_pic='+Z' |
| 14646 | ;; |
| 14647 | esac |
| 14648 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14649 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14650 | ;; |
| 14651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14652 | irix5* | irix6* | nonstopux*) |
| 14653 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14654 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14655 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14656 | ;; |
| 14657 | |
| 14658 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14659 | lt_prog_compiler_pic='-KPIC' |
| 14660 | lt_prog_compiler_static='-Bstatic' |
| 14661 | ;; |
| 14662 | |
| 14663 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14664 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14665 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14666 | lt_prog_compiler_wl='-Wl,' |
| 14667 | lt_prog_compiler_pic='-KPIC' |
| 14668 | lt_prog_compiler_static='-static' |
| 14669 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14670 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14671 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14672 | # which looks to be a dead project) |
| 14673 | lt_prog_compiler_wl='-Wl,' |
| 14674 | lt_prog_compiler_pic='-fpic' |
| 14675 | lt_prog_compiler_static='-Bstatic' |
| 14676 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14677 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14678 | lt_prog_compiler_wl='-Wl,' |
| 14679 | # All Alpha code is PIC. |
| 14680 | lt_prog_compiler_static='-non_shared' |
| 14681 | ;; |
| 14682 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14683 | ;; |
| 14684 | |
| 14685 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14686 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14687 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14688 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14689 | ;; |
| 14690 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14691 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14692 | lt_prog_compiler_pic='-KPIC' |
| 14693 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14694 | case $cc_basename in |
| 14695 | f77* | f90* | f95*) |
| 14696 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14697 | *) |
| 14698 | lt_prog_compiler_wl='-Wl,';; |
| 14699 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14700 | ;; |
| 14701 | |
| 14702 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14703 | lt_prog_compiler_wl='-Qoption ld ' |
| 14704 | lt_prog_compiler_pic='-PIC' |
| 14705 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14706 | ;; |
| 14707 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14708 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14709 | lt_prog_compiler_wl='-Wl,' |
| 14710 | lt_prog_compiler_pic='-KPIC' |
| 14711 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14712 | ;; |
| 14713 | |
| 14714 | sysv4*MP*) |
| 14715 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14716 | lt_prog_compiler_pic='-Kconform_pic' |
| 14717 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14718 | fi |
| 14719 | ;; |
| 14720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14721 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14722 | lt_prog_compiler_wl='-Wl,' |
| 14723 | lt_prog_compiler_pic='-KPIC' |
| 14724 | lt_prog_compiler_static='-Bstatic' |
| 14725 | ;; |
| 14726 | |
| 14727 | unicos*) |
| 14728 | lt_prog_compiler_wl='-Wl,' |
| 14729 | lt_prog_compiler_can_build_shared=no |
| 14730 | ;; |
| 14731 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14732 | uts4*) |
| 14733 | lt_prog_compiler_pic='-pic' |
| 14734 | lt_prog_compiler_static='-Bstatic' |
| 14735 | ;; |
| 14736 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14737 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14738 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14739 | ;; |
| 14740 | esac |
| 14741 | fi |
| 14742 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14743 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14744 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14745 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14746 | # |
| 14747 | # Check to make sure the PIC flag actually works. |
| 14748 | # |
| 14749 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14751 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14752 | 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] | 14753 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14755 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14756 | lt_prog_compiler_pic_works=no |
| 14757 | ac_outfile=conftest.$ac_objext |
| 14758 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14759 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14760 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14761 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14762 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14763 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14764 | # The option is referenced via a variable to avoid confusing sed. |
| 14765 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14766 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14767 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14768 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 14769 | (eval echo "\"\$as_me:14764: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14770 | (eval "$lt_compile" 2>conftest.err) |
| 14771 | ac_status=$? |
| 14772 | cat conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 14773 | echo "$as_me:14768: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14774 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14775 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14776 | # So say no if there are warnings other than the usual output. |
| 14777 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14778 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14779 | 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] | 14780 | lt_prog_compiler_pic_works=yes |
| 14781 | fi |
| 14782 | fi |
| 14783 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14786 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14787 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14788 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14789 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14790 | case $lt_prog_compiler_pic in |
| 14791 | "" | " "*) ;; |
| 14792 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14793 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14794 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14795 | lt_prog_compiler_pic= |
| 14796 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14797 | fi |
| 14798 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14799 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14800 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14801 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14802 | *djgpp*) |
| 14803 | lt_prog_compiler_pic= |
| 14804 | ;; |
| 14805 | *) |
| 14806 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14807 | ;; |
| 14808 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14810 | # |
| 14811 | # Check to make sure the static flag actually works. |
| 14812 | # |
| 14813 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14814 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14815 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14816 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14818 | else |
| 14819 | lt_prog_compiler_static_works=no |
| 14820 | save_LDFLAGS="$LDFLAGS" |
| 14821 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14822 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14823 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14824 | # The linker can only warn and ignore the option if not recognized |
| 14825 | # So say no if there are warnings |
| 14826 | if test -s conftest.err; then |
| 14827 | # Append any errors to the config.log. |
| 14828 | cat conftest.err 1>&5 |
| 14829 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14830 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14831 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14832 | lt_prog_compiler_static_works=yes |
| 14833 | fi |
| 14834 | else |
| 14835 | lt_prog_compiler_static_works=yes |
| 14836 | fi |
| 14837 | fi |
| 14838 | $rm conftest* |
| 14839 | LDFLAGS="$save_LDFLAGS" |
| 14840 | |
| 14841 | fi |
| 14842 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14843 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14844 | |
| 14845 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14846 | : |
| 14847 | else |
| 14848 | lt_prog_compiler_static= |
| 14849 | fi |
| 14850 | |
| 14851 | |
| 14852 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14853 | 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] | 14854 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14856 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14857 | lt_cv_prog_compiler_c_o=no |
| 14858 | $rm -r conftest 2>/dev/null |
| 14859 | mkdir conftest |
| 14860 | cd conftest |
| 14861 | mkdir out |
| 14862 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14863 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14864 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14865 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14866 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14867 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14868 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14869 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14870 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14871 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14872 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 14873 | (eval echo "\"\$as_me:14868: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14874 | (eval "$lt_compile" 2>out/conftest.err) |
| 14875 | ac_status=$? |
| 14876 | cat out/conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 14877 | echo "$as_me:14872: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14878 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14879 | then |
| 14880 | # The compiler can only warn and ignore the option if not recognized |
| 14881 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14882 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14883 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14884 | 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] | 14885 | lt_cv_prog_compiler_c_o=yes |
| 14886 | fi |
| 14887 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14888 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14889 | $rm conftest* |
| 14890 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14891 | # template instantiation |
| 14892 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14893 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14894 | cd .. |
| 14895 | rmdir conftest |
| 14896 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14897 | |
| 14898 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14899 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14900 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14902 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14903 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14904 | 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] | 14905 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14906 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14907 | 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] | 14908 | hard_links=yes |
| 14909 | $rm conftest* |
| 14910 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14911 | touch conftest.a |
| 14912 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14913 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14914 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14915 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14916 | if test "$hard_links" = no; then |
| 14917 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14918 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14919 | need_locks=warn |
| 14920 | fi |
| 14921 | else |
| 14922 | need_locks=no |
| 14923 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14925 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14926 | 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] | 14927 | |
| 14928 | runpath_var= |
| 14929 | allow_undefined_flag= |
| 14930 | enable_shared_with_static_runtimes=no |
| 14931 | archive_cmds= |
| 14932 | archive_expsym_cmds= |
| 14933 | old_archive_From_new_cmds= |
| 14934 | old_archive_from_expsyms_cmds= |
| 14935 | export_dynamic_flag_spec= |
| 14936 | whole_archive_flag_spec= |
| 14937 | thread_safe_flag_spec= |
| 14938 | hardcode_libdir_flag_spec= |
| 14939 | hardcode_libdir_flag_spec_ld= |
| 14940 | hardcode_libdir_separator= |
| 14941 | hardcode_direct=no |
| 14942 | hardcode_minus_L=no |
| 14943 | hardcode_shlibpath_var=unsupported |
| 14944 | link_all_deplibs=unknown |
| 14945 | hardcode_automatic=no |
| 14946 | module_cmds= |
| 14947 | module_expsym_cmds= |
| 14948 | always_export_symbols=no |
| 14949 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14950 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14951 | # included in the symbol list |
| 14952 | include_expsyms= |
| 14953 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14954 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14955 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14956 | # as well as any symbol that contains `d'. |
| 14957 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14958 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14959 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14960 | # the symbol is explicitly referenced. Since portable code cannot |
| 14961 | # rely on this symbol name, it's probably fine to never include it in |
| 14962 | # preloaded symbol tables. |
| 14963 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14964 | # Just being paranoid about ensuring that cc_basename is set. |
| 14965 | for cc_temp in $compiler""; do |
| 14966 | case $cc_temp in |
| 14967 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14968 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14969 | \-*) ;; |
| 14970 | *) break;; |
| 14971 | esac |
| 14972 | done |
| 14973 | 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] | 14974 | |
| 14975 | case $host_os in |
| 14976 | cygwin* | mingw* | pw32*) |
| 14977 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14978 | # When not using gcc, we currently assume that we are using |
| 14979 | # Microsoft Visual C++. |
| 14980 | if test "$GCC" != yes; then |
| 14981 | with_gnu_ld=no |
| 14982 | fi |
| 14983 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14984 | interix*) |
| 14985 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14986 | with_gnu_ld=yes |
| 14987 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14988 | openbsd*) |
| 14989 | with_gnu_ld=no |
| 14990 | ;; |
| 14991 | esac |
| 14992 | |
| 14993 | ld_shlibs=yes |
| 14994 | if test "$with_gnu_ld" = yes; then |
| 14995 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14996 | wlarc='${wl}' |
| 14997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14998 | # Set some defaults for GNU ld with shared library support. These |
| 14999 | # are reset later if shared libraries are not supported. Putting them |
| 15000 | # here allows them to be overridden if necessary. |
| 15001 | runpath_var=LD_RUN_PATH |
| 15002 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15003 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15004 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15005 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15006 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15007 | else |
| 15008 | whole_archive_flag_spec= |
| 15009 | fi |
| 15010 | supports_anon_versioning=no |
| 15011 | case `$LD -v 2>/dev/null` in |
| 15012 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15013 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15014 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15015 | *\ 2.11.*) ;; # other 2.11 versions |
| 15016 | *) supports_anon_versioning=yes ;; |
| 15017 | esac |
| 15018 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15019 | # See if GNU ld supports shared libraries. |
| 15020 | case $host_os in |
| 15021 | aix3* | aix4* | aix5*) |
| 15022 | # On AIX/PPC, the GNU linker is very broken |
| 15023 | if test "$host_cpu" != ia64; then |
| 15024 | ld_shlibs=no |
| 15025 | cat <<EOF 1>&2 |
| 15026 | |
| 15027 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15028 | *** to be unable to reliably create shared libraries on AIX. |
| 15029 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15030 | *** really care for shared libraries, you may want to modify your PATH |
| 15031 | *** so that a non-GNU linker is found, and then restart. |
| 15032 | |
| 15033 | EOF |
| 15034 | fi |
| 15035 | ;; |
| 15036 | |
| 15037 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15038 | 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] | 15039 | hardcode_libdir_flag_spec='-L$libdir' |
| 15040 | hardcode_minus_L=yes |
| 15041 | |
| 15042 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15043 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15044 | # to version 4, is to share data among multiple programs linked |
| 15045 | # with the same dynamic library. Since this doesn't match the |
| 15046 | # behavior of shared libraries on other platforms, we can't use |
| 15047 | # them. |
| 15048 | ld_shlibs=no |
| 15049 | ;; |
| 15050 | |
| 15051 | beos*) |
| 15052 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15053 | allow_undefined_flag=unsupported |
| 15054 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15055 | # support --undefined. This deserves some investigation. FIXME |
| 15056 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15057 | else |
| 15058 | ld_shlibs=no |
| 15059 | fi |
| 15060 | ;; |
| 15061 | |
| 15062 | cygwin* | mingw* | pw32*) |
| 15063 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15064 | # as there is no search path for DLLs. |
| 15065 | hardcode_libdir_flag_spec='-L$libdir' |
| 15066 | allow_undefined_flag=unsupported |
| 15067 | always_export_symbols=no |
| 15068 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15069 | 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] | 15070 | |
| 15071 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15072 | 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] | 15073 | # If the export-symbols file already is a .def file (1st line |
| 15074 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15075 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15076 | cp $export_symbols $output_objdir/$soname.def; |
| 15077 | else |
| 15078 | echo EXPORTS > $output_objdir/$soname.def; |
| 15079 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15080 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15081 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15082 | else |
| 15083 | ld_shlibs=no |
| 15084 | fi |
| 15085 | ;; |
| 15086 | |
| 15087 | interix3*) |
| 15088 | hardcode_direct=no |
| 15089 | hardcode_shlibpath_var=no |
| 15090 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15091 | export_dynamic_flag_spec='${wl}-E' |
| 15092 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15093 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15094 | # default) and relocated if they conflict, which is a slow very memory |
| 15095 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15096 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15097 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15098 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15099 | 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' |
| 15100 | ;; |
| 15101 | |
| 15102 | linux*) |
| 15103 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15104 | tmp_addflag= |
| 15105 | case $cc_basename,$host_cpu in |
| 15106 | pgcc*) # Portland Group C compiler |
| 15107 | 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' |
| 15108 | tmp_addflag=' $pic_flag' |
| 15109 | ;; |
| 15110 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15111 | 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' |
| 15112 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15113 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15114 | tmp_addflag=' -i_dynamic' ;; |
| 15115 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15116 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15117 | ifc* | ifort*) # Intel Fortran compiler |
| 15118 | tmp_addflag=' -nofor_main' ;; |
| 15119 | esac |
| 15120 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15121 | |
| 15122 | if test $supports_anon_versioning = yes; then |
| 15123 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15124 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15125 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15126 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15127 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15128 | else |
| 15129 | ld_shlibs=no |
| 15130 | fi |
| 15131 | ;; |
| 15132 | |
| 15133 | netbsd*) |
| 15134 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15135 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15136 | wlarc= |
| 15137 | else |
| 15138 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15139 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15140 | fi |
| 15141 | ;; |
| 15142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15143 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15144 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15145 | ld_shlibs=no |
| 15146 | cat <<EOF 1>&2 |
| 15147 | |
| 15148 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15149 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15150 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15151 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15152 | *** your PATH or compiler configuration so that the native linker is |
| 15153 | *** used, and then restart. |
| 15154 | |
| 15155 | EOF |
| 15156 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15157 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15158 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15159 | else |
| 15160 | ld_shlibs=no |
| 15161 | fi |
| 15162 | ;; |
| 15163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15164 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15165 | case `$LD -v 2>&1` in |
| 15166 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15167 | ld_shlibs=no |
| 15168 | cat <<_LT_EOF 1>&2 |
| 15169 | |
| 15170 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15171 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15172 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15173 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15174 | *** your PATH or compiler configuration so that the native linker is |
| 15175 | *** used, and then restart. |
| 15176 | |
| 15177 | _LT_EOF |
| 15178 | ;; |
| 15179 | *) |
| 15180 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15181 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15182 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15183 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15184 | else |
| 15185 | ld_shlibs=no |
| 15186 | fi |
| 15187 | ;; |
| 15188 | esac |
| 15189 | ;; |
| 15190 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15191 | sunos4*) |
| 15192 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15193 | wlarc= |
| 15194 | hardcode_direct=yes |
| 15195 | hardcode_shlibpath_var=no |
| 15196 | ;; |
| 15197 | |
| 15198 | *) |
| 15199 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15200 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15201 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15202 | else |
| 15203 | ld_shlibs=no |
| 15204 | fi |
| 15205 | ;; |
| 15206 | esac |
| 15207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15208 | if test "$ld_shlibs" = no; then |
| 15209 | runpath_var= |
| 15210 | hardcode_libdir_flag_spec= |
| 15211 | export_dynamic_flag_spec= |
| 15212 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15213 | fi |
| 15214 | else |
| 15215 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15216 | case $host_os in |
| 15217 | aix3*) |
| 15218 | allow_undefined_flag=unsupported |
| 15219 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15220 | 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] | 15221 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15222 | # are no directories specified by -L. |
| 15223 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15224 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15225 | # Neither direct hardcoding nor static linking is supported with a |
| 15226 | # broken collect2. |
| 15227 | hardcode_direct=unsupported |
| 15228 | fi |
| 15229 | ;; |
| 15230 | |
| 15231 | aix4* | aix5*) |
| 15232 | if test "$host_cpu" = ia64; then |
| 15233 | # On IA64, the linker does run time linking by default, so we don't |
| 15234 | # have to do anything special. |
| 15235 | aix_use_runtimelinking=no |
| 15236 | exp_sym_flag='-Bexport' |
| 15237 | no_entry_flag="" |
| 15238 | else |
| 15239 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15240 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15241 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15242 | 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' |
| 15243 | else |
| 15244 | 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' |
| 15245 | fi |
| 15246 | aix_use_runtimelinking=no |
| 15247 | |
| 15248 | # Test if we are trying to use run time linking or normal |
| 15249 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15250 | # need to do runtime linking. |
| 15251 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15252 | for ld_flag in $LDFLAGS; do |
| 15253 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15254 | aix_use_runtimelinking=yes |
| 15255 | break |
| 15256 | fi |
| 15257 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15258 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15259 | esac |
| 15260 | |
| 15261 | exp_sym_flag='-bexport' |
| 15262 | no_entry_flag='-bnoentry' |
| 15263 | fi |
| 15264 | |
| 15265 | # When large executables or shared objects are built, AIX ld can |
| 15266 | # have problems creating the table of contents. If linking a library |
| 15267 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15268 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15269 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15270 | |
| 15271 | archive_cmds='' |
| 15272 | hardcode_direct=yes |
| 15273 | hardcode_libdir_separator=':' |
| 15274 | link_all_deplibs=yes |
| 15275 | |
| 15276 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15277 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15278 | # We only want to do this on AIX 4.2 and lower, the check |
| 15279 | # below for broken collect2 doesn't work under 4.3+ |
| 15280 | collect2name=`${CC} -print-prog-name=collect2` |
| 15281 | if test -f "$collect2name" && \ |
| 15282 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15283 | then |
| 15284 | # We have reworked collect2 |
| 15285 | hardcode_direct=yes |
| 15286 | else |
| 15287 | # We have old collect2 |
| 15288 | hardcode_direct=unsupported |
| 15289 | # It fails to find uninstalled libraries when the uninstalled |
| 15290 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15291 | # to unsupported forces relinking |
| 15292 | hardcode_minus_L=yes |
| 15293 | hardcode_libdir_flag_spec='-L$libdir' |
| 15294 | hardcode_libdir_separator= |
| 15295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15296 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15297 | esac |
| 15298 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15299 | if test "$aix_use_runtimelinking" = yes; then |
| 15300 | shared_flag="$shared_flag "'${wl}-G' |
| 15301 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15302 | else |
| 15303 | # not using gcc |
| 15304 | if test "$host_cpu" = ia64; then |
| 15305 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15306 | # chokes on -Wl,-G. The following line is correct: |
| 15307 | shared_flag='-G' |
| 15308 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15309 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15310 | shared_flag='${wl}-G' |
| 15311 | else |
| 15312 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15313 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15314 | fi |
| 15315 | fi |
| 15316 | |
| 15317 | # It seems that -bexpall does not export symbols beginning with |
| 15318 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15319 | always_export_symbols=yes |
| 15320 | if test "$aix_use_runtimelinking" = yes; then |
| 15321 | # Warning - without using the other runtime loading flags (-brtl), |
| 15322 | # -berok will link without error, but may produce a broken library. |
| 15323 | allow_undefined_flag='-berok' |
| 15324 | # Determine the default libpath from the value encoded in an empty executable. |
| 15325 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15326 | /* confdefs.h. */ |
| 15327 | _ACEOF |
| 15328 | cat confdefs.h >>conftest.$ac_ext |
| 15329 | cat >>conftest.$ac_ext <<_ACEOF |
| 15330 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15332 | int |
| 15333 | main () |
| 15334 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15336 | ; |
| 15337 | return 0; |
| 15338 | } |
| 15339 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15341 | if { (ac_try="$ac_link" |
| 15342 | case "(($ac_try" in |
| 15343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15344 | *) ac_try_echo=$ac_try;; |
| 15345 | esac |
| 15346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15347 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15348 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15350 | rm -f conftest.er1 |
| 15351 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15353 | (exit $ac_status); } && |
| 15354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15355 | { (case "(($ac_try" in |
| 15356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15357 | *) ac_try_echo=$ac_try;; |
| 15358 | esac |
| 15359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15360 | (eval "$ac_try") 2>&5 |
| 15361 | ac_status=$? |
| 15362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15363 | (exit $ac_status); }; } && |
| 15364 | { ac_try='test -s conftest$ac_exeext' |
| 15365 | { (case "(($ac_try" in |
| 15366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15367 | *) ac_try_echo=$ac_try;; |
| 15368 | esac |
| 15369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15370 | (eval "$ac_try") 2>&5 |
| 15371 | ac_status=$? |
| 15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15373 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15374 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15375 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15376 | }'` |
| 15377 | # Check for a 64-bit object if we didn't find anything. |
| 15378 | 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; } |
| 15379 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15380 | else |
| 15381 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15384 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15386 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15387 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15388 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15389 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15390 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15391 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15392 | 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] | 15393 | else |
| 15394 | if test "$host_cpu" = ia64; then |
| 15395 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15396 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15397 | 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] | 15398 | else |
| 15399 | # Determine the default libpath from the value encoded in an empty executable. |
| 15400 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15401 | /* confdefs.h. */ |
| 15402 | _ACEOF |
| 15403 | cat confdefs.h >>conftest.$ac_ext |
| 15404 | cat >>conftest.$ac_ext <<_ACEOF |
| 15405 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15407 | int |
| 15408 | main () |
| 15409 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15411 | ; |
| 15412 | return 0; |
| 15413 | } |
| 15414 | _ACEOF |
| 15415 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15416 | if { (ac_try="$ac_link" |
| 15417 | case "(($ac_try" in |
| 15418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15419 | *) ac_try_echo=$ac_try;; |
| 15420 | esac |
| 15421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15422 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15423 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15425 | rm -f conftest.er1 |
| 15426 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15428 | (exit $ac_status); } && |
| 15429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15430 | { (case "(($ac_try" in |
| 15431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15432 | *) ac_try_echo=$ac_try;; |
| 15433 | esac |
| 15434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15435 | (eval "$ac_try") 2>&5 |
| 15436 | ac_status=$? |
| 15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15438 | (exit $ac_status); }; } && |
| 15439 | { ac_try='test -s conftest$ac_exeext' |
| 15440 | { (case "(($ac_try" in |
| 15441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15442 | *) ac_try_echo=$ac_try;; |
| 15443 | esac |
| 15444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15445 | (eval "$ac_try") 2>&5 |
| 15446 | ac_status=$? |
| 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15448 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15449 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15450 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15451 | }'` |
| 15452 | # Check for a 64-bit object if we didn't find anything. |
| 15453 | 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; } |
| 15454 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15455 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15456 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15459 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15460 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15461 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 15462 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15463 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15464 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15465 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15466 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15467 | # Warning - without using the other run time loading flags, |
| 15468 | # -berok will link without error, but may produce a broken library. |
| 15469 | no_undefined_flag=' ${wl}-bernotok' |
| 15470 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15471 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15472 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15473 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15474 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15475 | 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] | 15476 | fi |
| 15477 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15478 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15479 | |
| 15480 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15481 | 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] | 15482 | hardcode_libdir_flag_spec='-L$libdir' |
| 15483 | hardcode_minus_L=yes |
| 15484 | # see comment about different semantics on the GNU ld section |
| 15485 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15486 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15487 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15488 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15489 | export_dynamic_flag_spec=-rdynamic |
| 15490 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15492 | cygwin* | mingw* | pw32*) |
| 15493 | # When not using gcc, we currently assume that we are using |
| 15494 | # Microsoft Visual C++. |
| 15495 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15496 | # no search path for DLLs. |
| 15497 | hardcode_libdir_flag_spec=' ' |
| 15498 | allow_undefined_flag=unsupported |
| 15499 | # Tell ltmain to make .lib files, not .a files. |
| 15500 | libext=lib |
| 15501 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15502 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15503 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15504 | 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] | 15505 | # The linker will automatically build a .lib file if we build a DLL. |
| 15506 | old_archive_From_new_cmds='true' |
| 15507 | # FIXME: Should let the user specify the lib program. |
| 15508 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15509 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15510 | enable_shared_with_static_runtimes=yes |
| 15511 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15513 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15514 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15515 | rhapsody* | darwin1.[012]) |
| 15516 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15517 | ;; |
| 15518 | *) # Darwin 1.3 on |
| 15519 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15520 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15521 | else |
| 15522 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15523 | 10.[012]) |
| 15524 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15525 | ;; |
| 15526 | 10.*) |
| 15527 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15528 | ;; |
| 15529 | esac |
| 15530 | fi |
| 15531 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15532 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15533 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15534 | hardcode_direct=no |
| 15535 | hardcode_automatic=yes |
| 15536 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15537 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15538 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15539 | if test "$GCC" = yes ; then |
| 15540 | output_verbose_link_cmd='echo' |
| 15541 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15542 | 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] | 15543 | # 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] | 15544 | 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}' |
| 15545 | 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] | 15546 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15547 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15548 | xlc*) |
| 15549 | output_verbose_link_cmd='echo' |
| 15550 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15551 | 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] | 15552 | # 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] | 15553 | 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}' |
| 15554 | 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] | 15555 | ;; |
| 15556 | *) |
| 15557 | ld_shlibs=no |
| 15558 | ;; |
| 15559 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15560 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15561 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15562 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15563 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15564 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15565 | hardcode_libdir_flag_spec='-L$libdir' |
| 15566 | hardcode_shlibpath_var=no |
| 15567 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15568 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15569 | freebsd1*) |
| 15570 | ld_shlibs=no |
| 15571 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15572 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15573 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15574 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15575 | # does not break anything, and helps significantly (at the cost of a little |
| 15576 | # extra space). |
| 15577 | freebsd2.2*) |
| 15578 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15579 | hardcode_libdir_flag_spec='-R$libdir' |
| 15580 | hardcode_direct=yes |
| 15581 | hardcode_shlibpath_var=no |
| 15582 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15583 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15584 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15585 | freebsd2*) |
| 15586 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15587 | hardcode_direct=yes |
| 15588 | hardcode_minus_L=yes |
| 15589 | hardcode_shlibpath_var=no |
| 15590 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15591 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15592 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15593 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15594 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15595 | hardcode_libdir_flag_spec='-R$libdir' |
| 15596 | hardcode_direct=yes |
| 15597 | hardcode_shlibpath_var=no |
| 15598 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15600 | hpux9*) |
| 15601 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15602 | 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] | 15603 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15604 | 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] | 15605 | fi |
| 15606 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15607 | hardcode_libdir_separator=: |
| 15608 | hardcode_direct=yes |
| 15609 | |
| 15610 | # hardcode_minus_L: Not really in the search PATH, |
| 15611 | # but as the default location of the library. |
| 15612 | hardcode_minus_L=yes |
| 15613 | export_dynamic_flag_spec='${wl}-E' |
| 15614 | ;; |
| 15615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15616 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15617 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15618 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15619 | else |
| 15620 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15621 | fi |
| 15622 | if test "$with_gnu_ld" = no; then |
| 15623 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15624 | hardcode_libdir_separator=: |
| 15625 | |
| 15626 | hardcode_direct=yes |
| 15627 | export_dynamic_flag_spec='${wl}-E' |
| 15628 | |
| 15629 | # hardcode_minus_L: Not really in the search PATH, |
| 15630 | # but as the default location of the library. |
| 15631 | hardcode_minus_L=yes |
| 15632 | fi |
| 15633 | ;; |
| 15634 | |
| 15635 | hpux11*) |
| 15636 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15637 | case $host_cpu in |
| 15638 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15639 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15640 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15641 | ia64*) |
| 15642 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15643 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15644 | *) |
| 15645 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15646 | ;; |
| 15647 | esac |
| 15648 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15649 | case $host_cpu in |
| 15650 | hppa*64*) |
| 15651 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15652 | ;; |
| 15653 | ia64*) |
| 15654 | 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] | 15655 | ;; |
| 15656 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15657 | 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] | 15658 | ;; |
| 15659 | esac |
| 15660 | fi |
| 15661 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15662 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15663 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15665 | case $host_cpu in |
| 15666 | hppa*64*|ia64*) |
| 15667 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15668 | hardcode_direct=no |
| 15669 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15670 | ;; |
| 15671 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15672 | hardcode_direct=yes |
| 15673 | export_dynamic_flag_spec='${wl}-E' |
| 15674 | |
| 15675 | # hardcode_minus_L: Not really in the search PATH, |
| 15676 | # but as the default location of the library. |
| 15677 | hardcode_minus_L=yes |
| 15678 | ;; |
| 15679 | esac |
| 15680 | fi |
| 15681 | ;; |
| 15682 | |
| 15683 | irix5* | irix6* | nonstopux*) |
| 15684 | if test "$GCC" = yes; then |
| 15685 | 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' |
| 15686 | else |
| 15687 | 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' |
| 15688 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15689 | fi |
| 15690 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15691 | hardcode_libdir_separator=: |
| 15692 | link_all_deplibs=yes |
| 15693 | ;; |
| 15694 | |
| 15695 | netbsd*) |
| 15696 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15697 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15698 | else |
| 15699 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15700 | fi |
| 15701 | hardcode_libdir_flag_spec='-R$libdir' |
| 15702 | hardcode_direct=yes |
| 15703 | hardcode_shlibpath_var=no |
| 15704 | ;; |
| 15705 | |
| 15706 | newsos6) |
| 15707 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15708 | hardcode_direct=yes |
| 15709 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15710 | hardcode_libdir_separator=: |
| 15711 | hardcode_shlibpath_var=no |
| 15712 | ;; |
| 15713 | |
| 15714 | openbsd*) |
| 15715 | hardcode_direct=yes |
| 15716 | hardcode_shlibpath_var=no |
| 15717 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15718 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15719 | 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] | 15720 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15721 | export_dynamic_flag_spec='${wl}-E' |
| 15722 | else |
| 15723 | case $host_os in |
| 15724 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15725 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15726 | hardcode_libdir_flag_spec='-R$libdir' |
| 15727 | ;; |
| 15728 | *) |
| 15729 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15730 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15731 | ;; |
| 15732 | esac |
| 15733 | fi |
| 15734 | ;; |
| 15735 | |
| 15736 | os2*) |
| 15737 | hardcode_libdir_flag_spec='-L$libdir' |
| 15738 | hardcode_minus_L=yes |
| 15739 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15740 | 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] | 15741 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15742 | ;; |
| 15743 | |
| 15744 | osf3*) |
| 15745 | if test "$GCC" = yes; then |
| 15746 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15747 | 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' |
| 15748 | else |
| 15749 | allow_undefined_flag=' -expect_unresolved \*' |
| 15750 | 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' |
| 15751 | fi |
| 15752 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15753 | hardcode_libdir_separator=: |
| 15754 | ;; |
| 15755 | |
| 15756 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15757 | if test "$GCC" = yes; then |
| 15758 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15759 | 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' |
| 15760 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15761 | else |
| 15762 | allow_undefined_flag=' -expect_unresolved \*' |
| 15763 | 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] | 15764 | 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] | 15765 | $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] | 15766 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15767 | # Both c and cxx compiler support -rpath directly |
| 15768 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15769 | fi |
| 15770 | hardcode_libdir_separator=: |
| 15771 | ;; |
| 15772 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15773 | solaris*) |
| 15774 | no_undefined_flag=' -z text' |
| 15775 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15776 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15777 | 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] | 15778 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15779 | $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] | 15780 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15781 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15782 | 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] | 15783 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15784 | $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] | 15785 | fi |
| 15786 | hardcode_libdir_flag_spec='-R$libdir' |
| 15787 | hardcode_shlibpath_var=no |
| 15788 | case $host_os in |
| 15789 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15790 | *) |
| 15791 | # The compiler driver will combine linker options so we |
| 15792 | # cannot just pass the convience library names through |
| 15793 | # without $wl, iff we do not link with $LD. |
| 15794 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15795 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15796 | case $wlarc in |
| 15797 | '') |
| 15798 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15799 | *) |
| 15800 | 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' ;; |
| 15801 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15802 | esac |
| 15803 | link_all_deplibs=yes |
| 15804 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15806 | sunos4*) |
| 15807 | if test "x$host_vendor" = xsequent; then |
| 15808 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15809 | # files that make .init and .fini sections work. |
| 15810 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15811 | else |
| 15812 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15813 | fi |
| 15814 | hardcode_libdir_flag_spec='-L$libdir' |
| 15815 | hardcode_direct=yes |
| 15816 | hardcode_minus_L=yes |
| 15817 | hardcode_shlibpath_var=no |
| 15818 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15819 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15820 | sysv4) |
| 15821 | case $host_vendor in |
| 15822 | sni) |
| 15823 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15824 | hardcode_direct=yes # is this really true??? |
| 15825 | ;; |
| 15826 | siemens) |
| 15827 | ## LD is ld it makes a PLAMLIB |
| 15828 | ## CC just makes a GrossModule. |
| 15829 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15830 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15831 | hardcode_direct=no |
| 15832 | ;; |
| 15833 | motorola) |
| 15834 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15835 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15836 | ;; |
| 15837 | esac |
| 15838 | runpath_var='LD_RUN_PATH' |
| 15839 | hardcode_shlibpath_var=no |
| 15840 | ;; |
| 15841 | |
| 15842 | sysv4.3*) |
| 15843 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15844 | hardcode_shlibpath_var=no |
| 15845 | export_dynamic_flag_spec='-Bexport' |
| 15846 | ;; |
| 15847 | |
| 15848 | sysv4*MP*) |
| 15849 | if test -d /usr/nec; then |
| 15850 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15851 | hardcode_shlibpath_var=no |
| 15852 | runpath_var=LD_RUN_PATH |
| 15853 | hardcode_runpath_var=yes |
| 15854 | ld_shlibs=yes |
| 15855 | fi |
| 15856 | ;; |
| 15857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15858 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15859 | no_undefined_flag='${wl}-z,text' |
| 15860 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15861 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15862 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15863 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15864 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15865 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15866 | 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] | 15867 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15868 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15869 | 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] | 15870 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15871 | ;; |
| 15872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15873 | sysv5* | sco3.2v5* | sco5v6*) |
| 15874 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15875 | # link with -lc, and that would cause any symbols used from libc to |
| 15876 | # always be unresolved, which means just about no library would |
| 15877 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15878 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15879 | # as -z defs. |
| 15880 | no_undefined_flag='${wl}-z,text' |
| 15881 | allow_undefined_flag='${wl}-z,nodefs' |
| 15882 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15883 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15884 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15885 | hardcode_libdir_separator=':' |
| 15886 | link_all_deplibs=yes |
| 15887 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15888 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15889 | |
| 15890 | if test "$GCC" = yes; then |
| 15891 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15892 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15893 | else |
| 15894 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15895 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15896 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15897 | ;; |
| 15898 | |
| 15899 | uts4*) |
| 15900 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15901 | hardcode_libdir_flag_spec='-L$libdir' |
| 15902 | hardcode_shlibpath_var=no |
| 15903 | ;; |
| 15904 | |
| 15905 | *) |
| 15906 | ld_shlibs=no |
| 15907 | ;; |
| 15908 | esac |
| 15909 | fi |
| 15910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15911 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15912 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15913 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15914 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15915 | # |
| 15916 | # Do we need to explicitly link libc? |
| 15917 | # |
| 15918 | case "x$archive_cmds_need_lc" in |
| 15919 | x|xyes) |
| 15920 | # Assume -lc should be added |
| 15921 | archive_cmds_need_lc=yes |
| 15922 | |
| 15923 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15924 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15925 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15926 | # FIXME: we may have to deal with multi-command sequences. |
| 15927 | ;; |
| 15928 | '$CC '*) |
| 15929 | # Test whether the compiler implicitly links with -lc since on some |
| 15930 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15931 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15932 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15933 | 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] | 15934 | $rm conftest* |
| 15935 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15936 | |
| 15937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15938 | (eval $ac_compile) 2>&5 |
| 15939 | ac_status=$? |
| 15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15941 | (exit $ac_status); } 2>conftest.err; then |
| 15942 | soname=conftest |
| 15943 | lib=conftest |
| 15944 | libobjs=conftest.$ac_objext |
| 15945 | deplibs= |
| 15946 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15947 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15948 | compiler_flags=-v |
| 15949 | linker_flags=-v |
| 15950 | verstring= |
| 15951 | output_objdir=. |
| 15952 | libname=conftest |
| 15953 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15954 | allow_undefined_flag= |
| 15955 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15956 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15957 | ac_status=$? |
| 15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15959 | (exit $ac_status); } |
| 15960 | then |
| 15961 | archive_cmds_need_lc=no |
| 15962 | else |
| 15963 | archive_cmds_need_lc=yes |
| 15964 | fi |
| 15965 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15966 | else |
| 15967 | cat conftest.err 1>&5 |
| 15968 | fi |
| 15969 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15970 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15971 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15972 | ;; |
| 15973 | esac |
| 15974 | fi |
| 15975 | ;; |
| 15976 | esac |
| 15977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15978 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15979 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15980 | library_names_spec= |
| 15981 | libname_spec='lib$name' |
| 15982 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15983 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15984 | postinstall_cmds= |
| 15985 | postuninstall_cmds= |
| 15986 | finish_cmds= |
| 15987 | finish_eval= |
| 15988 | shlibpath_var= |
| 15989 | shlibpath_overrides_runpath=unknown |
| 15990 | version_type=none |
| 15991 | dynamic_linker="$host_os ld.so" |
| 15992 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15993 | if test "$GCC" = yes; then |
| 15994 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15995 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15996 | # if the path contains ";" then we assume it to be the separator |
| 15997 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15998 | # assumed that no part of a normal pathname contains ";" but that should |
| 15999 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16000 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16001 | else |
| 16002 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16003 | fi |
| 16004 | else |
| 16005 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16006 | fi |
| 16007 | need_lib_prefix=unknown |
| 16008 | hardcode_into_libs=no |
| 16009 | |
| 16010 | # when you set need_version to no, make sure it does not cause -set_version |
| 16011 | # flags to be left without arguments |
| 16012 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16013 | |
| 16014 | case $host_os in |
| 16015 | aix3*) |
| 16016 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16017 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16018 | shlibpath_var=LIBPATH |
| 16019 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16020 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16021 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16022 | ;; |
| 16023 | |
| 16024 | aix4* | aix5*) |
| 16025 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16026 | need_lib_prefix=no |
| 16027 | need_version=no |
| 16028 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16029 | if test "$host_cpu" = ia64; then |
| 16030 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16031 | 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] | 16032 | shlibpath_var=LD_LIBRARY_PATH |
| 16033 | else |
| 16034 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16035 | # for dependence libraries. The import file would start with |
| 16036 | # the line `#! .'. This would cause the generated library to |
| 16037 | # depend on `.', always an invalid library. This was fixed in |
| 16038 | # development snapshots of GCC prior to 3.0. |
| 16039 | case $host_os in |
| 16040 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16041 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16042 | echo ' yes ' |
| 16043 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16044 | : |
| 16045 | else |
| 16046 | can_build_shared=no |
| 16047 | fi |
| 16048 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16049 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16050 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16051 | # soname into executable. Probably we can add versioning support to |
| 16052 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16053 | if test "$aix_use_runtimelinking" = yes; then |
| 16054 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16055 | # instead of lib<name>.a to let people know that these are not |
| 16056 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16057 | 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] | 16058 | else |
| 16059 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16060 | # and later when we are not doing run time linking. |
| 16061 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16062 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16063 | fi |
| 16064 | shlibpath_var=LIBPATH |
| 16065 | fi |
| 16066 | ;; |
| 16067 | |
| 16068 | amigaos*) |
| 16069 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16070 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16071 | 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] | 16072 | ;; |
| 16073 | |
| 16074 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16075 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16076 | dynamic_linker="$host_os ld.so" |
| 16077 | shlibpath_var=LIBRARY_PATH |
| 16078 | ;; |
| 16079 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16080 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16081 | version_type=linux |
| 16082 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16084 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16085 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16086 | shlibpath_var=LD_LIBRARY_PATH |
| 16087 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16088 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16089 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16090 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16091 | # libtool to hard-code these into programs |
| 16092 | ;; |
| 16093 | |
| 16094 | cygwin* | mingw* | pw32*) |
| 16095 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16096 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16097 | need_version=no |
| 16098 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16099 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16100 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16101 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16102 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16103 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16104 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16105 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16106 | dldir=$destdir/`dirname \$dlpath`~ |
| 16107 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16108 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16109 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16110 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16111 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16112 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16113 | shlibpath_overrides_runpath=yes |
| 16114 | |
| 16115 | case $host_os in |
| 16116 | cygwin*) |
| 16117 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16118 | 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] | 16119 | 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] | 16120 | ;; |
| 16121 | mingw*) |
| 16122 | # MinGW DLLs use traditional 'lib' prefix |
| 16123 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16124 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16125 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16126 | # It is most probably a Windows format PATH printed by |
| 16127 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16128 | # path with ; separators, and with drive letters. We can handle the |
| 16129 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16130 | # especially as we might pass files found there to a mingw objdump, |
| 16131 | # which wouldn't understand a cygwinified path. Ahh. |
| 16132 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16133 | else |
| 16134 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16135 | fi |
| 16136 | ;; |
| 16137 | pw32*) |
| 16138 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16139 | 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] | 16140 | ;; |
| 16141 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16142 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16143 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16144 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16145 | 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] | 16146 | ;; |
| 16147 | esac |
| 16148 | dynamic_linker='Win32 ld.exe' |
| 16149 | # FIXME: first we should search . and the directory the executable is in |
| 16150 | shlibpath_var=PATH |
| 16151 | ;; |
| 16152 | |
| 16153 | darwin* | rhapsody*) |
| 16154 | dynamic_linker="$host_os dyld" |
| 16155 | version_type=darwin |
| 16156 | need_lib_prefix=no |
| 16157 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16158 | 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] | 16159 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16160 | shlibpath_overrides_runpath=yes |
| 16161 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16162 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16163 | # 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] | 16164 | if test "$GCC" = yes; then |
| 16165 | 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"` |
| 16166 | else |
| 16167 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16168 | fi |
| 16169 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16170 | ;; |
| 16171 | |
| 16172 | dgux*) |
| 16173 | version_type=linux |
| 16174 | need_lib_prefix=no |
| 16175 | need_version=no |
| 16176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16177 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16178 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16179 | ;; |
| 16180 | |
| 16181 | freebsd1*) |
| 16182 | dynamic_linker=no |
| 16183 | ;; |
| 16184 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16185 | kfreebsd*-gnu) |
| 16186 | version_type=linux |
| 16187 | need_lib_prefix=no |
| 16188 | need_version=no |
| 16189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16190 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16191 | shlibpath_var=LD_LIBRARY_PATH |
| 16192 | shlibpath_overrides_runpath=no |
| 16193 | hardcode_into_libs=yes |
| 16194 | dynamic_linker='GNU ld.so' |
| 16195 | ;; |
| 16196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16197 | freebsd* | dragonfly*) |
| 16198 | # DragonFly does not have aout. When/if they implement a new |
| 16199 | # versioning mechanism, adjust this. |
| 16200 | if test -x /usr/bin/objformat; then |
| 16201 | objformat=`/usr/bin/objformat` |
| 16202 | else |
| 16203 | case $host_os in |
| 16204 | freebsd[123]*) objformat=aout ;; |
| 16205 | *) objformat=elf ;; |
| 16206 | esac |
| 16207 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16208 | version_type=freebsd-$objformat |
| 16209 | case $version_type in |
| 16210 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16211 | 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] | 16212 | need_version=no |
| 16213 | need_lib_prefix=no |
| 16214 | ;; |
| 16215 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16216 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16217 | need_version=yes |
| 16218 | ;; |
| 16219 | esac |
| 16220 | shlibpath_var=LD_LIBRARY_PATH |
| 16221 | case $host_os in |
| 16222 | freebsd2*) |
| 16223 | shlibpath_overrides_runpath=yes |
| 16224 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16225 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16226 | shlibpath_overrides_runpath=yes |
| 16227 | hardcode_into_libs=yes |
| 16228 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16229 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16230 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16231 | shlibpath_overrides_runpath=no |
| 16232 | hardcode_into_libs=yes |
| 16233 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16234 | freebsd*) # from 4.6 on |
| 16235 | shlibpath_overrides_runpath=yes |
| 16236 | hardcode_into_libs=yes |
| 16237 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16238 | esac |
| 16239 | ;; |
| 16240 | |
| 16241 | gnu*) |
| 16242 | version_type=linux |
| 16243 | need_lib_prefix=no |
| 16244 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16246 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16247 | shlibpath_var=LD_LIBRARY_PATH |
| 16248 | hardcode_into_libs=yes |
| 16249 | ;; |
| 16250 | |
| 16251 | hpux9* | hpux10* | hpux11*) |
| 16252 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16253 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16254 | version_type=sunos |
| 16255 | need_lib_prefix=no |
| 16256 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16257 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16258 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16259 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16260 | hardcode_into_libs=yes |
| 16261 | dynamic_linker="$host_os dld.so" |
| 16262 | shlibpath_var=LD_LIBRARY_PATH |
| 16263 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16265 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16266 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16267 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16268 | else |
| 16269 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16270 | fi |
| 16271 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16272 | ;; |
| 16273 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16274 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16275 | hardcode_into_libs=yes |
| 16276 | dynamic_linker="$host_os dld.sl" |
| 16277 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16278 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16280 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16281 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16282 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16283 | ;; |
| 16284 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16285 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16286 | dynamic_linker="$host_os dld.sl" |
| 16287 | shlibpath_var=SHLIB_PATH |
| 16288 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16290 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16291 | ;; |
| 16292 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16293 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16294 | postinstall_cmds='chmod 555 $lib' |
| 16295 | ;; |
| 16296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16297 | interix3*) |
| 16298 | version_type=linux |
| 16299 | need_lib_prefix=no |
| 16300 | need_version=no |
| 16301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16302 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16303 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16304 | shlibpath_var=LD_LIBRARY_PATH |
| 16305 | shlibpath_overrides_runpath=no |
| 16306 | hardcode_into_libs=yes |
| 16307 | ;; |
| 16308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16309 | irix5* | irix6* | nonstopux*) |
| 16310 | case $host_os in |
| 16311 | nonstopux*) version_type=nonstopux ;; |
| 16312 | *) |
| 16313 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16314 | version_type=linux |
| 16315 | else |
| 16316 | version_type=irix |
| 16317 | fi ;; |
| 16318 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16319 | need_lib_prefix=no |
| 16320 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16321 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16322 | 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] | 16323 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16324 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16325 | libsuff= shlibsuff= |
| 16326 | ;; |
| 16327 | *) |
| 16328 | 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] | 16329 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16330 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16331 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16332 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16333 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16334 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16335 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16336 | esac |
| 16337 | ;; |
| 16338 | esac |
| 16339 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16340 | shlibpath_overrides_runpath=no |
| 16341 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16342 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16343 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16344 | ;; |
| 16345 | |
| 16346 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16347 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16348 | dynamic_linker=no |
| 16349 | ;; |
| 16350 | |
| 16351 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16352 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16353 | version_type=linux |
| 16354 | need_lib_prefix=no |
| 16355 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16357 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16358 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16359 | shlibpath_var=LD_LIBRARY_PATH |
| 16360 | shlibpath_overrides_runpath=no |
| 16361 | # This implies no fast_install, which is unacceptable. |
| 16362 | # Some rework will be needed to allow for fast_install |
| 16363 | # before this can be enabled. |
| 16364 | hardcode_into_libs=yes |
| 16365 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16366 | # Append ld.so.conf contents to the search path |
| 16367 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16368 | 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] | 16369 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16370 | fi |
| 16371 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16372 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16373 | # powerpc, because MkLinux only supported shared libraries with the |
| 16374 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16375 | # most powerpc-linux boxes support dynamic linking these days and |
| 16376 | # people can always --disable-shared, the test was removed, and we |
| 16377 | # assume the GNU/Linux dynamic linker is in use. |
| 16378 | dynamic_linker='GNU/Linux ld.so' |
| 16379 | ;; |
| 16380 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16381 | knetbsd*-gnu) |
| 16382 | version_type=linux |
| 16383 | need_lib_prefix=no |
| 16384 | need_version=no |
| 16385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16387 | shlibpath_var=LD_LIBRARY_PATH |
| 16388 | shlibpath_overrides_runpath=no |
| 16389 | hardcode_into_libs=yes |
| 16390 | dynamic_linker='GNU ld.so' |
| 16391 | ;; |
| 16392 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16393 | netbsd*) |
| 16394 | version_type=sunos |
| 16395 | need_lib_prefix=no |
| 16396 | need_version=no |
| 16397 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16400 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16401 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16402 | 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] | 16403 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16404 | dynamic_linker='NetBSD ld.elf_so' |
| 16405 | fi |
| 16406 | shlibpath_var=LD_LIBRARY_PATH |
| 16407 | shlibpath_overrides_runpath=yes |
| 16408 | hardcode_into_libs=yes |
| 16409 | ;; |
| 16410 | |
| 16411 | newsos6) |
| 16412 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16414 | shlibpath_var=LD_LIBRARY_PATH |
| 16415 | shlibpath_overrides_runpath=yes |
| 16416 | ;; |
| 16417 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16418 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16419 | version_type=linux |
| 16420 | need_lib_prefix=no |
| 16421 | need_version=no |
| 16422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16423 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16424 | shlibpath_var=LD_LIBRARY_PATH |
| 16425 | shlibpath_overrides_runpath=yes |
| 16426 | ;; |
| 16427 | |
| 16428 | openbsd*) |
| 16429 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16430 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16431 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16432 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16433 | case $host_os in |
| 16434 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16435 | *) need_version=no ;; |
| 16436 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16438 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16439 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16440 | 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] | 16441 | case $host_os in |
| 16442 | openbsd2.[89] | openbsd2.[89].*) |
| 16443 | shlibpath_overrides_runpath=no |
| 16444 | ;; |
| 16445 | *) |
| 16446 | shlibpath_overrides_runpath=yes |
| 16447 | ;; |
| 16448 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16449 | else |
| 16450 | shlibpath_overrides_runpath=yes |
| 16451 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16452 | ;; |
| 16453 | |
| 16454 | os2*) |
| 16455 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16456 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16457 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16458 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16459 | dynamic_linker='OS/2 ld.exe' |
| 16460 | shlibpath_var=LIBPATH |
| 16461 | ;; |
| 16462 | |
| 16463 | osf3* | osf4* | osf5*) |
| 16464 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16465 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16466 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16467 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16468 | 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] | 16469 | shlibpath_var=LD_LIBRARY_PATH |
| 16470 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16471 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16472 | ;; |
| 16473 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16474 | solaris*) |
| 16475 | version_type=linux |
| 16476 | need_lib_prefix=no |
| 16477 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16479 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16480 | shlibpath_var=LD_LIBRARY_PATH |
| 16481 | shlibpath_overrides_runpath=yes |
| 16482 | hardcode_into_libs=yes |
| 16483 | # ldd complains unless libraries are executable |
| 16484 | postinstall_cmds='chmod +x $lib' |
| 16485 | ;; |
| 16486 | |
| 16487 | sunos4*) |
| 16488 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16490 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16491 | shlibpath_var=LD_LIBRARY_PATH |
| 16492 | shlibpath_overrides_runpath=yes |
| 16493 | if test "$with_gnu_ld" = yes; then |
| 16494 | need_lib_prefix=no |
| 16495 | fi |
| 16496 | need_version=yes |
| 16497 | ;; |
| 16498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16499 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16500 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16502 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16503 | shlibpath_var=LD_LIBRARY_PATH |
| 16504 | case $host_vendor in |
| 16505 | sni) |
| 16506 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16507 | need_lib_prefix=no |
| 16508 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16509 | runpath_var=LD_RUN_PATH |
| 16510 | ;; |
| 16511 | siemens) |
| 16512 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16513 | ;; |
| 16514 | motorola) |
| 16515 | need_lib_prefix=no |
| 16516 | need_version=no |
| 16517 | shlibpath_overrides_runpath=no |
| 16518 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16519 | ;; |
| 16520 | esac |
| 16521 | ;; |
| 16522 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16523 | sysv4*MP*) |
| 16524 | if test -d /usr/nec ;then |
| 16525 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16526 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16527 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16528 | shlibpath_var=LD_LIBRARY_PATH |
| 16529 | fi |
| 16530 | ;; |
| 16531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16532 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16533 | version_type=freebsd-elf |
| 16534 | need_lib_prefix=no |
| 16535 | need_version=no |
| 16536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16537 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16538 | shlibpath_var=LD_LIBRARY_PATH |
| 16539 | hardcode_into_libs=yes |
| 16540 | if test "$with_gnu_ld" = yes; then |
| 16541 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16542 | shlibpath_overrides_runpath=no |
| 16543 | else |
| 16544 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16545 | shlibpath_overrides_runpath=yes |
| 16546 | case $host_os in |
| 16547 | sco3.2v5*) |
| 16548 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16549 | ;; |
| 16550 | esac |
| 16551 | fi |
| 16552 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16553 | ;; |
| 16554 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16555 | uts4*) |
| 16556 | version_type=linux |
| 16557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16559 | shlibpath_var=LD_LIBRARY_PATH |
| 16560 | ;; |
| 16561 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16562 | *) |
| 16563 | dynamic_linker=no |
| 16564 | ;; |
| 16565 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16566 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16567 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16568 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16570 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16571 | if test "$GCC" = yes; then |
| 16572 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16573 | fi |
| 16574 | |
| 16575 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16576 | 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] | 16577 | hardcode_action= |
| 16578 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16579 | test -n "$runpath_var" || \ |
| 16580 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16581 | |
| 16582 | # We can hardcode non-existant directories. |
| 16583 | if test "$hardcode_direct" != no && |
| 16584 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16585 | # have to relink, otherwise we might link with an installed library |
| 16586 | # when we should be linking with a yet-to-be-installed one |
| 16587 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16588 | test "$hardcode_minus_L" != no; then |
| 16589 | # Linking always hardcodes the temporary library directory. |
| 16590 | hardcode_action=relink |
| 16591 | else |
| 16592 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16593 | hardcode_action=immediate |
| 16594 | fi |
| 16595 | else |
| 16596 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16597 | # directories. |
| 16598 | hardcode_action=unsupported |
| 16599 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16600 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16601 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16602 | |
| 16603 | if test "$hardcode_action" = relink; then |
| 16604 | # Fast installation is not supported |
| 16605 | enable_fast_install=no |
| 16606 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16607 | test "$enable_shared" = no; then |
| 16608 | # Fast installation is not necessary |
| 16609 | enable_fast_install=needless |
| 16610 | fi |
| 16611 | |
| 16612 | striplib= |
| 16613 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16614 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16615 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16616 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16617 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16618 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16619 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16620 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16621 | else |
| 16622 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16623 | case $host_os in |
| 16624 | darwin*) |
| 16625 | if test -n "$STRIP" ; then |
| 16626 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16627 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16628 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16629 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16630 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16631 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16632 | fi |
| 16633 | ;; |
| 16634 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16635 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16636 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16637 | ;; |
| 16638 | esac |
| 16639 | fi |
| 16640 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16641 | if test "x$enable_dlopen" != xyes; then |
| 16642 | enable_dlopen=unknown |
| 16643 | enable_dlopen_self=unknown |
| 16644 | enable_dlopen_self_static=unknown |
| 16645 | else |
| 16646 | lt_cv_dlopen=no |
| 16647 | lt_cv_dlopen_libs= |
| 16648 | |
| 16649 | case $host_os in |
| 16650 | beos*) |
| 16651 | lt_cv_dlopen="load_add_on" |
| 16652 | lt_cv_dlopen_libs= |
| 16653 | lt_cv_dlopen_self=yes |
| 16654 | ;; |
| 16655 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16656 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16657 | lt_cv_dlopen="LoadLibrary" |
| 16658 | lt_cv_dlopen_libs= |
| 16659 | ;; |
| 16660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16661 | cygwin*) |
| 16662 | lt_cv_dlopen="dlopen" |
| 16663 | lt_cv_dlopen_libs= |
| 16664 | ;; |
| 16665 | |
| 16666 | darwin*) |
| 16667 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16668 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16669 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16670 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16672 | else |
| 16673 | ac_check_lib_save_LIBS=$LIBS |
| 16674 | LIBS="-ldl $LIBS" |
| 16675 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16676 | /* confdefs.h. */ |
| 16677 | _ACEOF |
| 16678 | cat confdefs.h >>conftest.$ac_ext |
| 16679 | cat >>conftest.$ac_ext <<_ACEOF |
| 16680 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16682 | /* Override any GCC internal prototype to avoid an error. |
| 16683 | Use char because int might match the return type of a GCC |
| 16684 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16685 | #ifdef __cplusplus |
| 16686 | extern "C" |
| 16687 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16688 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16689 | int |
| 16690 | main () |
| 16691 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16692 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16693 | ; |
| 16694 | return 0; |
| 16695 | } |
| 16696 | _ACEOF |
| 16697 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16698 | if { (ac_try="$ac_link" |
| 16699 | case "(($ac_try" in |
| 16700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16701 | *) ac_try_echo=$ac_try;; |
| 16702 | esac |
| 16703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16704 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16705 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16707 | rm -f conftest.er1 |
| 16708 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16710 | (exit $ac_status); } && |
| 16711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16712 | { (case "(($ac_try" in |
| 16713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16714 | *) ac_try_echo=$ac_try;; |
| 16715 | esac |
| 16716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16717 | (eval "$ac_try") 2>&5 |
| 16718 | ac_status=$? |
| 16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16720 | (exit $ac_status); }; } && |
| 16721 | { ac_try='test -s conftest$ac_exeext' |
| 16722 | { (case "(($ac_try" in |
| 16723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16724 | *) ac_try_echo=$ac_try;; |
| 16725 | esac |
| 16726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16727 | (eval "$ac_try") 2>&5 |
| 16728 | ac_status=$? |
| 16729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16730 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16731 | ac_cv_lib_dl_dlopen=yes |
| 16732 | else |
| 16733 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16736 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16738 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16739 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16740 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16741 | LIBS=$ac_check_lib_save_LIBS |
| 16742 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16743 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16744 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16745 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16746 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16747 | else |
| 16748 | |
| 16749 | lt_cv_dlopen="dyld" |
| 16750 | lt_cv_dlopen_libs= |
| 16751 | lt_cv_dlopen_self=yes |
| 16752 | |
| 16753 | fi |
| 16754 | |
| 16755 | ;; |
| 16756 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16757 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16758 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16759 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16760 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16762 | else |
| 16763 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16764 | /* confdefs.h. */ |
| 16765 | _ACEOF |
| 16766 | cat confdefs.h >>conftest.$ac_ext |
| 16767 | cat >>conftest.$ac_ext <<_ACEOF |
| 16768 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16769 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16771 | #define shl_load innocuous_shl_load |
| 16772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16773 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16774 | which can conflict with char shl_load (); below. |
| 16775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16776 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16777 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16778 | #ifdef __STDC__ |
| 16779 | # include <limits.h> |
| 16780 | #else |
| 16781 | # include <assert.h> |
| 16782 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16783 | |
| 16784 | #undef shl_load |
| 16785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16786 | /* Override any GCC internal prototype to avoid an error. |
| 16787 | Use char because int might match the return type of a GCC |
| 16788 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16789 | #ifdef __cplusplus |
| 16790 | extern "C" |
| 16791 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16792 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16793 | /* The GNU C library defines this for functions which it implements |
| 16794 | to always fail with ENOSYS. Some functions are actually named |
| 16795 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16796 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16797 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16798 | #endif |
| 16799 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16800 | int |
| 16801 | main () |
| 16802 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16803 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16804 | ; |
| 16805 | return 0; |
| 16806 | } |
| 16807 | _ACEOF |
| 16808 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16809 | if { (ac_try="$ac_link" |
| 16810 | case "(($ac_try" in |
| 16811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16812 | *) ac_try_echo=$ac_try;; |
| 16813 | esac |
| 16814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16815 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16816 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16818 | rm -f conftest.er1 |
| 16819 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16821 | (exit $ac_status); } && |
| 16822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16823 | { (case "(($ac_try" in |
| 16824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16825 | *) ac_try_echo=$ac_try;; |
| 16826 | esac |
| 16827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16828 | (eval "$ac_try") 2>&5 |
| 16829 | ac_status=$? |
| 16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16831 | (exit $ac_status); }; } && |
| 16832 | { ac_try='test -s conftest$ac_exeext' |
| 16833 | { (case "(($ac_try" in |
| 16834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16835 | *) ac_try_echo=$ac_try;; |
| 16836 | esac |
| 16837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16838 | (eval "$ac_try") 2>&5 |
| 16839 | ac_status=$? |
| 16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16841 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16842 | ac_cv_func_shl_load=yes |
| 16843 | else |
| 16844 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16847 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16849 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16850 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16851 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16853 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16854 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16855 | if test $ac_cv_func_shl_load = yes; then |
| 16856 | lt_cv_dlopen="shl_load" |
| 16857 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16858 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16859 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16860 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16862 | else |
| 16863 | ac_check_lib_save_LIBS=$LIBS |
| 16864 | LIBS="-ldld $LIBS" |
| 16865 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16866 | /* confdefs.h. */ |
| 16867 | _ACEOF |
| 16868 | cat confdefs.h >>conftest.$ac_ext |
| 16869 | cat >>conftest.$ac_ext <<_ACEOF |
| 16870 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16872 | /* Override any GCC internal prototype to avoid an error. |
| 16873 | Use char because int might match the return type of a GCC |
| 16874 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16875 | #ifdef __cplusplus |
| 16876 | extern "C" |
| 16877 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16878 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16879 | int |
| 16880 | main () |
| 16881 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16882 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16883 | ; |
| 16884 | return 0; |
| 16885 | } |
| 16886 | _ACEOF |
| 16887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16888 | if { (ac_try="$ac_link" |
| 16889 | case "(($ac_try" in |
| 16890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16891 | *) ac_try_echo=$ac_try;; |
| 16892 | esac |
| 16893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16894 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16895 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16897 | rm -f conftest.er1 |
| 16898 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16900 | (exit $ac_status); } && |
| 16901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16902 | { (case "(($ac_try" in |
| 16903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16904 | *) ac_try_echo=$ac_try;; |
| 16905 | esac |
| 16906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16907 | (eval "$ac_try") 2>&5 |
| 16908 | ac_status=$? |
| 16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16910 | (exit $ac_status); }; } && |
| 16911 | { ac_try='test -s conftest$ac_exeext' |
| 16912 | { (case "(($ac_try" in |
| 16913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16914 | *) ac_try_echo=$ac_try;; |
| 16915 | esac |
| 16916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16917 | (eval "$ac_try") 2>&5 |
| 16918 | ac_status=$? |
| 16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16920 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16921 | ac_cv_lib_dld_shl_load=yes |
| 16922 | else |
| 16923 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16926 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16928 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 16929 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16930 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16931 | LIBS=$ac_check_lib_save_LIBS |
| 16932 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16933 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16934 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16935 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16936 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16937 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16938 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16939 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16940 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16942 | else |
| 16943 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16944 | /* confdefs.h. */ |
| 16945 | _ACEOF |
| 16946 | cat confdefs.h >>conftest.$ac_ext |
| 16947 | cat >>conftest.$ac_ext <<_ACEOF |
| 16948 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16949 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16951 | #define dlopen innocuous_dlopen |
| 16952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16953 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16954 | which can conflict with char dlopen (); below. |
| 16955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16956 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16957 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16958 | #ifdef __STDC__ |
| 16959 | # include <limits.h> |
| 16960 | #else |
| 16961 | # include <assert.h> |
| 16962 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16963 | |
| 16964 | #undef dlopen |
| 16965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16966 | /* Override any GCC internal prototype to avoid an error. |
| 16967 | Use char because int might match the return type of a GCC |
| 16968 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16969 | #ifdef __cplusplus |
| 16970 | extern "C" |
| 16971 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16972 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16973 | /* The GNU C library defines this for functions which it implements |
| 16974 | to always fail with ENOSYS. Some functions are actually named |
| 16975 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16976 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16977 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16978 | #endif |
| 16979 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16980 | int |
| 16981 | main () |
| 16982 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16983 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16984 | ; |
| 16985 | return 0; |
| 16986 | } |
| 16987 | _ACEOF |
| 16988 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16989 | if { (ac_try="$ac_link" |
| 16990 | case "(($ac_try" in |
| 16991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16992 | *) ac_try_echo=$ac_try;; |
| 16993 | esac |
| 16994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16995 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16996 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16998 | rm -f conftest.er1 |
| 16999 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17001 | (exit $ac_status); } && |
| 17002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17003 | { (case "(($ac_try" in |
| 17004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17005 | *) ac_try_echo=$ac_try;; |
| 17006 | esac |
| 17007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17008 | (eval "$ac_try") 2>&5 |
| 17009 | ac_status=$? |
| 17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17011 | (exit $ac_status); }; } && |
| 17012 | { ac_try='test -s conftest$ac_exeext' |
| 17013 | { (case "(($ac_try" in |
| 17014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17015 | *) ac_try_echo=$ac_try;; |
| 17016 | esac |
| 17017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17018 | (eval "$ac_try") 2>&5 |
| 17019 | ac_status=$? |
| 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17022 | ac_cv_func_dlopen=yes |
| 17023 | else |
| 17024 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17027 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17028 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17029 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17030 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17031 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17032 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17033 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17034 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17035 | if test $ac_cv_func_dlopen = yes; then |
| 17036 | lt_cv_dlopen="dlopen" |
| 17037 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17038 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17039 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17040 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17042 | else |
| 17043 | ac_check_lib_save_LIBS=$LIBS |
| 17044 | LIBS="-ldl $LIBS" |
| 17045 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17046 | /* confdefs.h. */ |
| 17047 | _ACEOF |
| 17048 | cat confdefs.h >>conftest.$ac_ext |
| 17049 | cat >>conftest.$ac_ext <<_ACEOF |
| 17050 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17052 | /* Override any GCC internal prototype to avoid an error. |
| 17053 | Use char because int might match the return type of a GCC |
| 17054 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17055 | #ifdef __cplusplus |
| 17056 | extern "C" |
| 17057 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17058 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17059 | int |
| 17060 | main () |
| 17061 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17062 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17063 | ; |
| 17064 | return 0; |
| 17065 | } |
| 17066 | _ACEOF |
| 17067 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17068 | if { (ac_try="$ac_link" |
| 17069 | case "(($ac_try" in |
| 17070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17071 | *) ac_try_echo=$ac_try;; |
| 17072 | esac |
| 17073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17074 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17075 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17077 | rm -f conftest.er1 |
| 17078 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17080 | (exit $ac_status); } && |
| 17081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17082 | { (case "(($ac_try" in |
| 17083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17084 | *) ac_try_echo=$ac_try;; |
| 17085 | esac |
| 17086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17087 | (eval "$ac_try") 2>&5 |
| 17088 | ac_status=$? |
| 17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17090 | (exit $ac_status); }; } && |
| 17091 | { ac_try='test -s conftest$ac_exeext' |
| 17092 | { (case "(($ac_try" in |
| 17093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17094 | *) ac_try_echo=$ac_try;; |
| 17095 | esac |
| 17096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17097 | (eval "$ac_try") 2>&5 |
| 17098 | ac_status=$? |
| 17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17100 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17101 | ac_cv_lib_dl_dlopen=yes |
| 17102 | else |
| 17103 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17106 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17107 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17108 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17109 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17110 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17111 | LIBS=$ac_check_lib_save_LIBS |
| 17112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17113 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17114 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17115 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17116 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17117 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17118 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17119 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17120 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17122 | else |
| 17123 | ac_check_lib_save_LIBS=$LIBS |
| 17124 | LIBS="-lsvld $LIBS" |
| 17125 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17126 | /* confdefs.h. */ |
| 17127 | _ACEOF |
| 17128 | cat confdefs.h >>conftest.$ac_ext |
| 17129 | cat >>conftest.$ac_ext <<_ACEOF |
| 17130 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17132 | /* Override any GCC internal prototype to avoid an error. |
| 17133 | Use char because int might match the return type of a GCC |
| 17134 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17135 | #ifdef __cplusplus |
| 17136 | extern "C" |
| 17137 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17138 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17139 | int |
| 17140 | main () |
| 17141 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17142 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17143 | ; |
| 17144 | return 0; |
| 17145 | } |
| 17146 | _ACEOF |
| 17147 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17148 | if { (ac_try="$ac_link" |
| 17149 | case "(($ac_try" in |
| 17150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17151 | *) ac_try_echo=$ac_try;; |
| 17152 | esac |
| 17153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17154 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17155 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17157 | rm -f conftest.er1 |
| 17158 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17160 | (exit $ac_status); } && |
| 17161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17162 | { (case "(($ac_try" in |
| 17163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17164 | *) ac_try_echo=$ac_try;; |
| 17165 | esac |
| 17166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17167 | (eval "$ac_try") 2>&5 |
| 17168 | ac_status=$? |
| 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17170 | (exit $ac_status); }; } && |
| 17171 | { ac_try='test -s conftest$ac_exeext' |
| 17172 | { (case "(($ac_try" in |
| 17173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17174 | *) ac_try_echo=$ac_try;; |
| 17175 | esac |
| 17176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17177 | (eval "$ac_try") 2>&5 |
| 17178 | ac_status=$? |
| 17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17180 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17181 | ac_cv_lib_svld_dlopen=yes |
| 17182 | else |
| 17183 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17186 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17188 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17189 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17190 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17191 | LIBS=$ac_check_lib_save_LIBS |
| 17192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17193 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17194 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17195 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17196 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17197 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17198 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17199 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17200 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17202 | else |
| 17203 | ac_check_lib_save_LIBS=$LIBS |
| 17204 | LIBS="-ldld $LIBS" |
| 17205 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17206 | /* confdefs.h. */ |
| 17207 | _ACEOF |
| 17208 | cat confdefs.h >>conftest.$ac_ext |
| 17209 | cat >>conftest.$ac_ext <<_ACEOF |
| 17210 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17212 | /* Override any GCC internal prototype to avoid an error. |
| 17213 | Use char because int might match the return type of a GCC |
| 17214 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17215 | #ifdef __cplusplus |
| 17216 | extern "C" |
| 17217 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17218 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17219 | int |
| 17220 | main () |
| 17221 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17222 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17223 | ; |
| 17224 | return 0; |
| 17225 | } |
| 17226 | _ACEOF |
| 17227 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17228 | if { (ac_try="$ac_link" |
| 17229 | case "(($ac_try" in |
| 17230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17231 | *) ac_try_echo=$ac_try;; |
| 17232 | esac |
| 17233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17234 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17235 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17237 | rm -f conftest.er1 |
| 17238 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17240 | (exit $ac_status); } && |
| 17241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17242 | { (case "(($ac_try" in |
| 17243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17244 | *) ac_try_echo=$ac_try;; |
| 17245 | esac |
| 17246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17247 | (eval "$ac_try") 2>&5 |
| 17248 | ac_status=$? |
| 17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17250 | (exit $ac_status); }; } && |
| 17251 | { ac_try='test -s conftest$ac_exeext' |
| 17252 | { (case "(($ac_try" in |
| 17253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17254 | *) ac_try_echo=$ac_try;; |
| 17255 | esac |
| 17256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17257 | (eval "$ac_try") 2>&5 |
| 17258 | ac_status=$? |
| 17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17260 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17261 | ac_cv_lib_dld_dld_link=yes |
| 17262 | else |
| 17263 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17266 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17267 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17268 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 17269 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17270 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | LIBS=$ac_check_lib_save_LIBS |
| 17272 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17273 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17274 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17275 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17276 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17277 | fi |
| 17278 | |
| 17279 | |
| 17280 | fi |
| 17281 | |
| 17282 | |
| 17283 | fi |
| 17284 | |
| 17285 | |
| 17286 | fi |
| 17287 | |
| 17288 | |
| 17289 | fi |
| 17290 | |
| 17291 | |
| 17292 | fi |
| 17293 | |
| 17294 | ;; |
| 17295 | esac |
| 17296 | |
| 17297 | if test "x$lt_cv_dlopen" != xno; then |
| 17298 | enable_dlopen=yes |
| 17299 | else |
| 17300 | enable_dlopen=no |
| 17301 | fi |
| 17302 | |
| 17303 | case $lt_cv_dlopen in |
| 17304 | dlopen) |
| 17305 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17306 | 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] | 17307 | |
| 17308 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17309 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17310 | |
| 17311 | save_LIBS="$LIBS" |
| 17312 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17314 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17315 | 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] | 17316 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17318 | else |
| 17319 | if test "$cross_compiling" = yes; then : |
| 17320 | lt_cv_dlopen_self=cross |
| 17321 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17322 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17323 | lt_status=$lt_dlunknown |
| 17324 | cat > conftest.$ac_ext <<EOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 17325 | #line 17320 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17326 | #include "confdefs.h" |
| 17327 | |
| 17328 | #if HAVE_DLFCN_H |
| 17329 | #include <dlfcn.h> |
| 17330 | #endif |
| 17331 | |
| 17332 | #include <stdio.h> |
| 17333 | |
| 17334 | #ifdef RTLD_GLOBAL |
| 17335 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17336 | #else |
| 17337 | # ifdef DL_GLOBAL |
| 17338 | # define LT_DLGLOBAL DL_GLOBAL |
| 17339 | # else |
| 17340 | # define LT_DLGLOBAL 0 |
| 17341 | # endif |
| 17342 | #endif |
| 17343 | |
| 17344 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17345 | find out it does not work in some platform. */ |
| 17346 | #ifndef LT_DLLAZY_OR_NOW |
| 17347 | # ifdef RTLD_LAZY |
| 17348 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17349 | # else |
| 17350 | # ifdef DL_LAZY |
| 17351 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17352 | # else |
| 17353 | # ifdef RTLD_NOW |
| 17354 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17355 | # else |
| 17356 | # ifdef DL_NOW |
| 17357 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17358 | # else |
| 17359 | # define LT_DLLAZY_OR_NOW 0 |
| 17360 | # endif |
| 17361 | # endif |
| 17362 | # endif |
| 17363 | # endif |
| 17364 | #endif |
| 17365 | |
| 17366 | #ifdef __cplusplus |
| 17367 | extern "C" void exit (int); |
| 17368 | #endif |
| 17369 | |
| 17370 | void fnord() { int i=42;} |
| 17371 | int main () |
| 17372 | { |
| 17373 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17374 | int status = $lt_dlunknown; |
| 17375 | |
| 17376 | if (self) |
| 17377 | { |
| 17378 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17379 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17380 | /* dlclose (self); */ |
| 17381 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17382 | else |
| 17383 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17384 | |
| 17385 | exit (status); |
| 17386 | } |
| 17387 | EOF |
| 17388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17389 | (eval $ac_link) 2>&5 |
| 17390 | ac_status=$? |
| 17391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17392 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17393 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17394 | lt_status=$? |
| 17395 | case x$lt_status in |
| 17396 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17397 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17398 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17399 | esac |
| 17400 | else : |
| 17401 | # compilation failed |
| 17402 | lt_cv_dlopen_self=no |
| 17403 | fi |
| 17404 | fi |
| 17405 | rm -fr conftest* |
| 17406 | |
| 17407 | |
| 17408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17409 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17410 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17411 | |
| 17412 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17413 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17414 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17415 | 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] | 17416 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17418 | else |
| 17419 | if test "$cross_compiling" = yes; then : |
| 17420 | lt_cv_dlopen_self_static=cross |
| 17421 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17422 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17423 | lt_status=$lt_dlunknown |
| 17424 | cat > conftest.$ac_ext <<EOF |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 17425 | #line 17420 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17426 | #include "confdefs.h" |
| 17427 | |
| 17428 | #if HAVE_DLFCN_H |
| 17429 | #include <dlfcn.h> |
| 17430 | #endif |
| 17431 | |
| 17432 | #include <stdio.h> |
| 17433 | |
| 17434 | #ifdef RTLD_GLOBAL |
| 17435 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17436 | #else |
| 17437 | # ifdef DL_GLOBAL |
| 17438 | # define LT_DLGLOBAL DL_GLOBAL |
| 17439 | # else |
| 17440 | # define LT_DLGLOBAL 0 |
| 17441 | # endif |
| 17442 | #endif |
| 17443 | |
| 17444 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17445 | find out it does not work in some platform. */ |
| 17446 | #ifndef LT_DLLAZY_OR_NOW |
| 17447 | # ifdef RTLD_LAZY |
| 17448 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17449 | # else |
| 17450 | # ifdef DL_LAZY |
| 17451 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17452 | # else |
| 17453 | # ifdef RTLD_NOW |
| 17454 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17455 | # else |
| 17456 | # ifdef DL_NOW |
| 17457 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17458 | # else |
| 17459 | # define LT_DLLAZY_OR_NOW 0 |
| 17460 | # endif |
| 17461 | # endif |
| 17462 | # endif |
| 17463 | # endif |
| 17464 | #endif |
| 17465 | |
| 17466 | #ifdef __cplusplus |
| 17467 | extern "C" void exit (int); |
| 17468 | #endif |
| 17469 | |
| 17470 | void fnord() { int i=42;} |
| 17471 | int main () |
| 17472 | { |
| 17473 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17474 | int status = $lt_dlunknown; |
| 17475 | |
| 17476 | if (self) |
| 17477 | { |
| 17478 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17479 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17480 | /* dlclose (self); */ |
| 17481 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17482 | else |
| 17483 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17484 | |
| 17485 | exit (status); |
| 17486 | } |
| 17487 | EOF |
| 17488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17489 | (eval $ac_link) 2>&5 |
| 17490 | ac_status=$? |
| 17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17492 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17493 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17494 | lt_status=$? |
| 17495 | case x$lt_status in |
| 17496 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17497 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17498 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17499 | esac |
| 17500 | else : |
| 17501 | # compilation failed |
| 17502 | lt_cv_dlopen_self_static=no |
| 17503 | fi |
| 17504 | fi |
| 17505 | rm -fr conftest* |
| 17506 | |
| 17507 | |
| 17508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17509 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17510 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17511 | fi |
| 17512 | |
| 17513 | CPPFLAGS="$save_CPPFLAGS" |
| 17514 | LDFLAGS="$save_LDFLAGS" |
| 17515 | LIBS="$save_LIBS" |
| 17516 | ;; |
| 17517 | esac |
| 17518 | |
| 17519 | case $lt_cv_dlopen_self in |
| 17520 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17521 | *) enable_dlopen_self=unknown ;; |
| 17522 | esac |
| 17523 | |
| 17524 | case $lt_cv_dlopen_self_static in |
| 17525 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17526 | *) enable_dlopen_self_static=unknown ;; |
| 17527 | esac |
| 17528 | fi |
| 17529 | |
| 17530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17531 | # Report which library types will actually be built |
| 17532 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17533 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17534 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17535 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17537 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17538 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17539 | test "$can_build_shared" = "no" && enable_shared=no |
| 17540 | |
| 17541 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17542 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17543 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17544 | aix3*) |
| 17545 | test "$enable_shared" = yes && enable_static=no |
| 17546 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17547 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17548 | postinstall_cmds='$RANLIB $lib' |
| 17549 | fi |
| 17550 | ;; |
| 17551 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17552 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17553 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17554 | test "$enable_shared" = yes && enable_static=no |
| 17555 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17556 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17557 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17558 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17559 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17561 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17562 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17563 | # Make sure either enable_shared or enable_static is yes. |
| 17564 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17565 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17566 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17567 | |
| 17568 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17569 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17570 | # with your package, and you will get complaints that there are |
| 17571 | # no rules to generate ltmain.sh. |
| 17572 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17573 | # See if we are running on zsh, and set the options which allow our commands through |
| 17574 | # without removal of \ escapes. |
| 17575 | if test -n "${ZSH_VERSION+set}" ; then |
| 17576 | setopt NO_GLOB_SUBST |
| 17577 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17578 | # Now quote all the things that may contain metacharacters while being |
| 17579 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17580 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17581 | 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] | 17582 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17583 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17584 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17585 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17586 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17587 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17588 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17589 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17590 | compiler \ |
| 17591 | CC \ |
| 17592 | LD \ |
| 17593 | lt_prog_compiler_wl \ |
| 17594 | lt_prog_compiler_pic \ |
| 17595 | lt_prog_compiler_static \ |
| 17596 | lt_prog_compiler_no_builtin_flag \ |
| 17597 | export_dynamic_flag_spec \ |
| 17598 | thread_safe_flag_spec \ |
| 17599 | whole_archive_flag_spec \ |
| 17600 | enable_shared_with_static_runtimes \ |
| 17601 | old_archive_cmds \ |
| 17602 | old_archive_from_new_cmds \ |
| 17603 | predep_objects \ |
| 17604 | postdep_objects \ |
| 17605 | predeps \ |
| 17606 | postdeps \ |
| 17607 | compiler_lib_search_path \ |
| 17608 | archive_cmds \ |
| 17609 | archive_expsym_cmds \ |
| 17610 | postinstall_cmds \ |
| 17611 | postuninstall_cmds \ |
| 17612 | old_archive_from_expsyms_cmds \ |
| 17613 | allow_undefined_flag \ |
| 17614 | no_undefined_flag \ |
| 17615 | export_symbols_cmds \ |
| 17616 | hardcode_libdir_flag_spec \ |
| 17617 | hardcode_libdir_flag_spec_ld \ |
| 17618 | hardcode_libdir_separator \ |
| 17619 | hardcode_automatic \ |
| 17620 | module_cmds \ |
| 17621 | module_expsym_cmds \ |
| 17622 | lt_cv_prog_compiler_c_o \ |
| 17623 | exclude_expsyms \ |
| 17624 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17625 | |
| 17626 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17627 | old_archive_cmds | \ |
| 17628 | old_archive_from_new_cmds | \ |
| 17629 | archive_cmds | \ |
| 17630 | archive_expsym_cmds | \ |
| 17631 | module_cmds | \ |
| 17632 | module_expsym_cmds | \ |
| 17633 | old_archive_from_expsyms_cmds | \ |
| 17634 | export_symbols_cmds | \ |
| 17635 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17636 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17637 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17638 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17639 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17640 | 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] | 17641 | ;; |
| 17642 | *) |
| 17643 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17644 | ;; |
| 17645 | esac |
| 17646 | done |
| 17647 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17648 | case $lt_echo in |
| 17649 | *'\$0 --fallback-echo"') |
| 17650 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17651 | ;; |
| 17652 | esac |
| 17653 | |
| 17654 | cfgfile="${ofile}T" |
| 17655 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17656 | $rm -f "$cfgfile" |
| 17657 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17658 | echo "$as_me: creating $ofile" >&6;} |
| 17659 | |
| 17660 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17661 | #! $SHELL |
| 17662 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17663 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17664 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17665 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17666 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17667 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17668 | # Free Software Foundation, Inc. |
| 17669 | # |
| 17670 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17671 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17672 | # |
| 17673 | # This program is free software; you can redistribute it and/or modify |
| 17674 | # it under the terms of the GNU General Public License as published by |
| 17675 | # the Free Software Foundation; either version 2 of the License, or |
| 17676 | # (at your option) any later version. |
| 17677 | # |
| 17678 | # This program is distributed in the hope that it will be useful, but |
| 17679 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17680 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17681 | # General Public License for more details. |
| 17682 | # |
| 17683 | # You should have received a copy of the GNU General Public License |
| 17684 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17685 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17686 | # |
| 17687 | # As a special exception to the GNU General Public License, if you |
| 17688 | # distribute this file as part of a program that contains a |
| 17689 | # configuration script generated by Autoconf, you may include it under |
| 17690 | # the same distribution terms that you use for the rest of that program. |
| 17691 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17692 | # A sed program that does not truncate output. |
| 17693 | SED=$lt_SED |
| 17694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17695 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17696 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17697 | |
| 17698 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17699 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17700 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17702 | # The names of the tagged configurations supported by this script. |
| 17703 | available_tags= |
| 17704 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17705 | # ### BEGIN LIBTOOL CONFIG |
| 17706 | |
| 17707 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17708 | |
| 17709 | # Shell to use when invoking shell scripts. |
| 17710 | SHELL=$lt_SHELL |
| 17711 | |
| 17712 | # Whether or not to build shared libraries. |
| 17713 | build_libtool_libs=$enable_shared |
| 17714 | |
| 17715 | # Whether or not to build static libraries. |
| 17716 | build_old_libs=$enable_static |
| 17717 | |
| 17718 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17719 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17720 | |
| 17721 | # Whether or not to disallow shared libs when runtime libs are static |
| 17722 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17723 | |
| 17724 | # Whether or not to optimize for fast installation. |
| 17725 | fast_install=$enable_fast_install |
| 17726 | |
| 17727 | # The host system. |
| 17728 | host_alias=$host_alias |
| 17729 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17730 | host_os=$host_os |
| 17731 | |
| 17732 | # The build system. |
| 17733 | build_alias=$build_alias |
| 17734 | build=$build |
| 17735 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17736 | |
| 17737 | # An echo program that does not interpret backslashes. |
| 17738 | echo=$lt_echo |
| 17739 | |
| 17740 | # The archiver. |
| 17741 | AR=$lt_AR |
| 17742 | AR_FLAGS=$lt_AR_FLAGS |
| 17743 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17744 | # A C compiler. |
| 17745 | LTCC=$lt_LTCC |
| 17746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17747 | # LTCC compiler flags. |
| 17748 | LTCFLAGS=$lt_LTCFLAGS |
| 17749 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17750 | # A language-specific compiler. |
| 17751 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17752 | |
| 17753 | # Is the compiler the GNU C compiler? |
| 17754 | with_gcc=$GCC |
| 17755 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17756 | # An ERE matcher. |
| 17757 | EGREP=$lt_EGREP |
| 17758 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17759 | # The linker used to build libraries. |
| 17760 | LD=$lt_LD |
| 17761 | |
| 17762 | # Whether we need hard or soft links. |
| 17763 | LN_S=$lt_LN_S |
| 17764 | |
| 17765 | # A BSD-compatible nm program. |
| 17766 | NM=$lt_NM |
| 17767 | |
| 17768 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17769 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17770 | |
| 17771 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17772 | MAGIC_CMD=$MAGIC_CMD |
| 17773 | |
| 17774 | # Used on cygwin: DLL creation program. |
| 17775 | DLLTOOL="$DLLTOOL" |
| 17776 | |
| 17777 | # Used on cygwin: object dumper. |
| 17778 | OBJDUMP="$OBJDUMP" |
| 17779 | |
| 17780 | # Used on cygwin: assembler. |
| 17781 | AS="$AS" |
| 17782 | |
| 17783 | # The name of the directory that contains temporary libtool files. |
| 17784 | objdir=$objdir |
| 17785 | |
| 17786 | # How to create reloadable object files. |
| 17787 | reload_flag=$lt_reload_flag |
| 17788 | reload_cmds=$lt_reload_cmds |
| 17789 | |
| 17790 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17791 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17792 | |
| 17793 | # Object file suffix (normally "o"). |
| 17794 | objext="$ac_objext" |
| 17795 | |
| 17796 | # Old archive suffix (normally "a"). |
| 17797 | libext="$libext" |
| 17798 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17799 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17800 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17802 | # Executable file suffix (normally ""). |
| 17803 | exeext="$exeext" |
| 17804 | |
| 17805 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17806 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17807 | pic_mode=$pic_mode |
| 17808 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17809 | # What is the maximum length of a command? |
| 17810 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17811 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17812 | # Does compiler simultaneously support -c and -o options? |
| 17813 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17815 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17816 | need_locks=$lt_need_locks |
| 17817 | |
| 17818 | # Do we need the lib prefix for modules? |
| 17819 | need_lib_prefix=$need_lib_prefix |
| 17820 | |
| 17821 | # Do we need a version for libraries? |
| 17822 | need_version=$need_version |
| 17823 | |
| 17824 | # Whether dlopen is supported. |
| 17825 | dlopen_support=$enable_dlopen |
| 17826 | |
| 17827 | # Whether dlopen of programs is supported. |
| 17828 | dlopen_self=$enable_dlopen_self |
| 17829 | |
| 17830 | # Whether dlopen of statically linked programs is supported. |
| 17831 | dlopen_self_static=$enable_dlopen_self_static |
| 17832 | |
| 17833 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17834 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17835 | |
| 17836 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17837 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17838 | |
| 17839 | # Compiler flag to allow reflexive dlopens. |
| 17840 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17841 | |
| 17842 | # Compiler flag to generate shared objects directly from archives. |
| 17843 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17844 | |
| 17845 | # Compiler flag to generate thread-safe objects. |
| 17846 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17847 | |
| 17848 | # Library versioning type. |
| 17849 | version_type=$version_type |
| 17850 | |
| 17851 | # Format of library name prefix. |
| 17852 | libname_spec=$lt_libname_spec |
| 17853 | |
| 17854 | # List of archive names. First name is the real one, the rest are links. |
| 17855 | # The last name is the one that the linker finds with -lNAME. |
| 17856 | library_names_spec=$lt_library_names_spec |
| 17857 | |
| 17858 | # The coded name of the library, if different from the real name. |
| 17859 | soname_spec=$lt_soname_spec |
| 17860 | |
| 17861 | # Commands used to build and install an old-style archive. |
| 17862 | RANLIB=$lt_RANLIB |
| 17863 | old_archive_cmds=$lt_old_archive_cmds |
| 17864 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17865 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17866 | |
| 17867 | # Create an old-style archive from a shared archive. |
| 17868 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17869 | |
| 17870 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17871 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17872 | |
| 17873 | # Commands used to build and install a shared archive. |
| 17874 | archive_cmds=$lt_archive_cmds |
| 17875 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17876 | postinstall_cmds=$lt_postinstall_cmds |
| 17877 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17878 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17879 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17880 | module_cmds=$lt_module_cmds |
| 17881 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17882 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17883 | # Commands to strip libraries. |
| 17884 | old_striplib=$lt_old_striplib |
| 17885 | striplib=$lt_striplib |
| 17886 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17887 | # Dependencies to place before the objects being linked to create a |
| 17888 | # shared library. |
| 17889 | predep_objects=$lt_predep_objects |
| 17890 | |
| 17891 | # Dependencies to place after the objects being linked to create a |
| 17892 | # shared library. |
| 17893 | postdep_objects=$lt_postdep_objects |
| 17894 | |
| 17895 | # Dependencies to place before the objects being linked to create a |
| 17896 | # shared library. |
| 17897 | predeps=$lt_predeps |
| 17898 | |
| 17899 | # Dependencies to place after the objects being linked to create a |
| 17900 | # shared library. |
| 17901 | postdeps=$lt_postdeps |
| 17902 | |
| 17903 | # The library search path used internally by the compiler when linking |
| 17904 | # a shared library. |
| 17905 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17906 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17907 | # Method to check whether dependent libraries are shared objects. |
| 17908 | deplibs_check_method=$lt_deplibs_check_method |
| 17909 | |
| 17910 | # Command to use when deplibs_check_method == file_magic. |
| 17911 | file_magic_cmd=$lt_file_magic_cmd |
| 17912 | |
| 17913 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17914 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17915 | |
| 17916 | # Flag that forces no undefined symbols. |
| 17917 | no_undefined_flag=$lt_no_undefined_flag |
| 17918 | |
| 17919 | # Commands used to finish a libtool library installation in a directory. |
| 17920 | finish_cmds=$lt_finish_cmds |
| 17921 | |
| 17922 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17923 | finish_eval=$lt_finish_eval |
| 17924 | |
| 17925 | # 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] | 17926 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17927 | |
| 17928 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17929 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17930 | |
| 17931 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17932 | 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] | 17933 | |
| 17934 | # This is the shared library runtime path variable. |
| 17935 | runpath_var=$runpath_var |
| 17936 | |
| 17937 | # This is the shared library path variable. |
| 17938 | shlibpath_var=$shlibpath_var |
| 17939 | |
| 17940 | # Is shlibpath searched before the hard-coded library search path? |
| 17941 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17942 | |
| 17943 | # How to hardcode a shared library path into an executable. |
| 17944 | hardcode_action=$hardcode_action |
| 17945 | |
| 17946 | # Whether we should hardcode library paths into libraries. |
| 17947 | hardcode_into_libs=$hardcode_into_libs |
| 17948 | |
| 17949 | # Flag to hardcode \$libdir into a binary during linking. |
| 17950 | # This must work even if \$libdir does not exist. |
| 17951 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17952 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17953 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17954 | # a binary during linking. This must work even if \$libdir does |
| 17955 | # not exist. |
| 17956 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17957 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17958 | # Whether we need a single -rpath flag with a separated argument. |
| 17959 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17961 | # 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] | 17962 | # resulting binary. |
| 17963 | hardcode_direct=$hardcode_direct |
| 17964 | |
| 17965 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17966 | # resulting binary. |
| 17967 | hardcode_minus_L=$hardcode_minus_L |
| 17968 | |
| 17969 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17970 | # the resulting binary. |
| 17971 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17972 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17973 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17974 | # and all subsequent libraries and executables linked against it. |
| 17975 | hardcode_automatic=$hardcode_automatic |
| 17976 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17977 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17978 | # restored at relink time. |
| 17979 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17980 | |
| 17981 | # Whether libtool must link a program against all its dependency libraries. |
| 17982 | link_all_deplibs=$link_all_deplibs |
| 17983 | |
| 17984 | # Compile-time system search path for libraries |
| 17985 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17986 | |
| 17987 | # Run-time system search path for libraries |
| 17988 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17989 | |
| 17990 | # Fix the shell variable \$srcfile for the compiler. |
| 17991 | fix_srcfile_path="$fix_srcfile_path" |
| 17992 | |
| 17993 | # Set to yes if exported symbols are required. |
| 17994 | always_export_symbols=$always_export_symbols |
| 17995 | |
| 17996 | # The commands to list exported symbols. |
| 17997 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17998 | |
| 17999 | # The commands to extract the exported symbol list from a shared archive. |
| 18000 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18001 | |
| 18002 | # Symbols that should not be listed in the preloaded symbols. |
| 18003 | exclude_expsyms=$lt_exclude_expsyms |
| 18004 | |
| 18005 | # Symbols that must always be exported. |
| 18006 | include_expsyms=$lt_include_expsyms |
| 18007 | |
| 18008 | # ### END LIBTOOL CONFIG |
| 18009 | |
| 18010 | __EOF__ |
| 18011 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18012 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18013 | case $host_os in |
| 18014 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18015 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18016 | |
| 18017 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18018 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18019 | # vanish in a puff of smoke. |
| 18020 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18021 | COLLECT_NAMES= |
| 18022 | export COLLECT_NAMES |
| 18023 | fi |
| 18024 | EOF |
| 18025 | ;; |
| 18026 | esac |
| 18027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18028 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18029 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18030 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18031 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18032 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18033 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18034 | mv -f "$cfgfile" "$ofile" || \ |
| 18035 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18036 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18037 | |
| 18038 | else |
| 18039 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18040 | # `config.status --recheck' to rerun these tests and create the |
| 18041 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18042 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18043 | if test -f "$ltmain_in"; then |
| 18044 | test -f Makefile && make "$ltmain" |
| 18045 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18046 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18047 | |
| 18048 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18049 | ac_ext=c |
| 18050 | ac_cpp='$CPP $CPPFLAGS' |
| 18051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18054 | |
| 18055 | CC="$lt_save_CC" |
| 18056 | |
| 18057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18058 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18059 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18060 | withval=$with_tags; tagnames="$withval" |
| 18061 | fi |
| 18062 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18063 | |
| 18064 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18065 | if test ! -f "${ofile}"; then |
| 18066 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18067 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18068 | fi |
| 18069 | |
| 18070 | if test -z "$LTCC"; then |
| 18071 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18072 | if test -z "$LTCC"; then |
| 18073 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18074 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18075 | else |
| 18076 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18077 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18078 | fi |
| 18079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18080 | if test -z "$LTCFLAGS"; then |
| 18081 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18082 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18083 | |
| 18084 | # Extract list of available tagged configurations in $ofile. |
| 18085 | # Note that this assumes the entire list is on one line. |
| 18086 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18087 | |
| 18088 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18089 | for tagname in $tagnames; do |
| 18090 | IFS="$lt_save_ifs" |
| 18091 | # Check whether tagname contains only valid characters |
| 18092 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18093 | "") ;; |
| 18094 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18095 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18096 | { (exit 1); exit 1; }; } |
| 18097 | ;; |
| 18098 | esac |
| 18099 | |
| 18100 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18101 | then |
| 18102 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18103 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18104 | { (exit 1); exit 1; }; } |
| 18105 | fi |
| 18106 | |
| 18107 | # Update the list of available tags. |
| 18108 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18109 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18110 | |
| 18111 | case $tagname in |
| 18112 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18113 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18114 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18115 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18116 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18117 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18118 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18119 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18120 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18121 | |
| 18122 | |
| 18123 | |
| 18124 | |
| 18125 | archive_cmds_need_lc_CXX=no |
| 18126 | allow_undefined_flag_CXX= |
| 18127 | always_export_symbols_CXX=no |
| 18128 | archive_expsym_cmds_CXX= |
| 18129 | export_dynamic_flag_spec_CXX= |
| 18130 | hardcode_direct_CXX=no |
| 18131 | hardcode_libdir_flag_spec_CXX= |
| 18132 | hardcode_libdir_flag_spec_ld_CXX= |
| 18133 | hardcode_libdir_separator_CXX= |
| 18134 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18135 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18136 | hardcode_automatic_CXX=no |
| 18137 | module_cmds_CXX= |
| 18138 | module_expsym_cmds_CXX= |
| 18139 | link_all_deplibs_CXX=unknown |
| 18140 | old_archive_cmds_CXX=$old_archive_cmds |
| 18141 | no_undefined_flag_CXX= |
| 18142 | whole_archive_flag_spec_CXX= |
| 18143 | enable_shared_with_static_runtimes_CXX=no |
| 18144 | |
| 18145 | # Dependencies to place before and after the object being linked: |
| 18146 | predep_objects_CXX= |
| 18147 | postdep_objects_CXX= |
| 18148 | predeps_CXX= |
| 18149 | postdeps_CXX= |
| 18150 | compiler_lib_search_path_CXX= |
| 18151 | |
| 18152 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18153 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18154 | |
| 18155 | # Object file extension for compiled C++ test sources. |
| 18156 | objext=o |
| 18157 | objext_CXX=$objext |
| 18158 | |
| 18159 | # Code to be used in simple compile tests |
| 18160 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18161 | |
| 18162 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18163 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18164 | |
| 18165 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18166 | |
| 18167 | # If no C compiler was specified, use CC. |
| 18168 | LTCC=${LTCC-"$CC"} |
| 18169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18170 | # If no C compiler flags were specified, use CFLAGS. |
| 18171 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18172 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18173 | # Allow CC to be a program name with arguments. |
| 18174 | compiler=$CC |
| 18175 | |
| 18176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18177 | # save warnings/boilerplate of simple test code |
| 18178 | ac_outfile=conftest.$ac_objext |
| 18179 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18180 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18181 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18182 | $rm conftest* |
| 18183 | |
| 18184 | ac_outfile=conftest.$ac_objext |
| 18185 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18186 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18187 | _lt_linker_boilerplate=`cat conftest.err` |
| 18188 | $rm conftest* |
| 18189 | |
| 18190 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18191 | # Allow CC to be a program name with arguments. |
| 18192 | lt_save_CC=$CC |
| 18193 | lt_save_LD=$LD |
| 18194 | lt_save_GCC=$GCC |
| 18195 | GCC=$GXX |
| 18196 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18197 | lt_save_path_LD=$lt_cv_path_LD |
| 18198 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18199 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18200 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18201 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18202 | fi |
| 18203 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18204 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18205 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18206 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18207 | fi |
| 18208 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18209 | CC=${CXX-"c++"} |
| 18210 | compiler=$CC |
| 18211 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18212 | for cc_temp in $compiler""; do |
| 18213 | case $cc_temp in |
| 18214 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18215 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18216 | \-*) ;; |
| 18217 | *) break;; |
| 18218 | esac |
| 18219 | done |
| 18220 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18221 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18222 | |
| 18223 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18224 | # no_builtin_flag separately |
| 18225 | if test "$GXX" = yes; then |
| 18226 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18227 | else |
| 18228 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18229 | fi |
| 18230 | |
| 18231 | if test "$GXX" = yes; then |
| 18232 | # Set up default GNU C++ configuration |
| 18233 | |
| 18234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18235 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18236 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18237 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18238 | else |
| 18239 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18240 | fi |
| 18241 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18242 | ac_prog=ld |
| 18243 | if test "$GCC" = yes; then |
| 18244 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18245 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18246 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18247 | case $host in |
| 18248 | *-*-mingw*) |
| 18249 | # gcc leaves a trailing carriage return which upsets mingw |
| 18250 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18251 | *) |
| 18252 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18253 | esac |
| 18254 | case $ac_prog in |
| 18255 | # Accept absolute paths. |
| 18256 | [\\/]* | ?:[\\/]*) |
| 18257 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18258 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18259 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18260 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18261 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18262 | done |
| 18263 | test -z "$LD" && LD="$ac_prog" |
| 18264 | ;; |
| 18265 | "") |
| 18266 | # If it fails, then pretend we aren't using GCC. |
| 18267 | ac_prog=ld |
| 18268 | ;; |
| 18269 | *) |
| 18270 | # If it is relative, then search for the first ld in PATH. |
| 18271 | with_gnu_ld=unknown |
| 18272 | ;; |
| 18273 | esac |
| 18274 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18275 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18276 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18277 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18278 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18279 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18280 | fi |
| 18281 | if test "${lt_cv_path_LD+set}" = set; then |
| 18282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18283 | else |
| 18284 | if test -z "$LD"; then |
| 18285 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18286 | for ac_dir in $PATH; do |
| 18287 | IFS="$lt_save_ifs" |
| 18288 | test -z "$ac_dir" && ac_dir=. |
| 18289 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18290 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18291 | # 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] | 18292 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18293 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18294 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18295 | *GNU* | *'with BFD'*) |
| 18296 | test "$with_gnu_ld" != no && break |
| 18297 | ;; |
| 18298 | *) |
| 18299 | test "$with_gnu_ld" != yes && break |
| 18300 | ;; |
| 18301 | esac |
| 18302 | fi |
| 18303 | done |
| 18304 | IFS="$lt_save_ifs" |
| 18305 | else |
| 18306 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18307 | fi |
| 18308 | fi |
| 18309 | |
| 18310 | LD="$lt_cv_path_LD" |
| 18311 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18312 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18313 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18314 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18315 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18316 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18317 | fi |
| 18318 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18319 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18320 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18321 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18322 | 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] | 18323 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18325 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18326 | # 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] | 18327 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18328 | *GNU* | *'with BFD'*) |
| 18329 | lt_cv_prog_gnu_ld=yes |
| 18330 | ;; |
| 18331 | *) |
| 18332 | lt_cv_prog_gnu_ld=no |
| 18333 | ;; |
| 18334 | esac |
| 18335 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18336 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18337 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18338 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18339 | |
| 18340 | |
| 18341 | |
| 18342 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18343 | # archiving commands below assume that GNU ld is being used. |
| 18344 | if test "$with_gnu_ld" = yes; then |
| 18345 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18346 | 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' |
| 18347 | |
| 18348 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18349 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18350 | |
| 18351 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18352 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18353 | # investigate it a little bit more. (MM) |
| 18354 | wlarc='${wl}' |
| 18355 | |
| 18356 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18357 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18358 | grep 'no-whole-archive' > /dev/null; then |
| 18359 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18360 | else |
| 18361 | whole_archive_flag_spec_CXX= |
| 18362 | fi |
| 18363 | else |
| 18364 | with_gnu_ld=no |
| 18365 | wlarc= |
| 18366 | |
| 18367 | # A generic and very simple default shared library creation |
| 18368 | # command for GNU C++ for the case where it uses the native |
| 18369 | # linker, instead of GNU ld. If possible, this setting should |
| 18370 | # overridden to take advantage of the native linker features on |
| 18371 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18372 | 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] | 18373 | fi |
| 18374 | |
| 18375 | # Commands to make compiler produce verbose output that lists |
| 18376 | # what "hidden" libraries, object files and flags are used when |
| 18377 | # linking a shared library. |
| 18378 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18379 | |
| 18380 | else |
| 18381 | GXX=no |
| 18382 | with_gnu_ld=no |
| 18383 | wlarc= |
| 18384 | fi |
| 18385 | |
| 18386 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18387 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18388 | 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] | 18389 | ld_shlibs_CXX=yes |
| 18390 | case $host_os in |
| 18391 | aix3*) |
| 18392 | # FIXME: insert proper C++ library support |
| 18393 | ld_shlibs_CXX=no |
| 18394 | ;; |
| 18395 | aix4* | aix5*) |
| 18396 | if test "$host_cpu" = ia64; then |
| 18397 | # On IA64, the linker does run time linking by default, so we don't |
| 18398 | # have to do anything special. |
| 18399 | aix_use_runtimelinking=no |
| 18400 | exp_sym_flag='-Bexport' |
| 18401 | no_entry_flag="" |
| 18402 | else |
| 18403 | aix_use_runtimelinking=no |
| 18404 | |
| 18405 | # Test if we are trying to use run time linking or normal |
| 18406 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18407 | # need to do runtime linking. |
| 18408 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18409 | for ld_flag in $LDFLAGS; do |
| 18410 | case $ld_flag in |
| 18411 | *-brtl*) |
| 18412 | aix_use_runtimelinking=yes |
| 18413 | break |
| 18414 | ;; |
| 18415 | esac |
| 18416 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18417 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18418 | esac |
| 18419 | |
| 18420 | exp_sym_flag='-bexport' |
| 18421 | no_entry_flag='-bnoentry' |
| 18422 | fi |
| 18423 | |
| 18424 | # When large executables or shared objects are built, AIX ld can |
| 18425 | # have problems creating the table of contents. If linking a library |
| 18426 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18427 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18428 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18429 | |
| 18430 | archive_cmds_CXX='' |
| 18431 | hardcode_direct_CXX=yes |
| 18432 | hardcode_libdir_separator_CXX=':' |
| 18433 | link_all_deplibs_CXX=yes |
| 18434 | |
| 18435 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18436 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18437 | # We only want to do this on AIX 4.2 and lower, the check |
| 18438 | # below for broken collect2 doesn't work under 4.3+ |
| 18439 | collect2name=`${CC} -print-prog-name=collect2` |
| 18440 | if test -f "$collect2name" && \ |
| 18441 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18442 | then |
| 18443 | # We have reworked collect2 |
| 18444 | hardcode_direct_CXX=yes |
| 18445 | else |
| 18446 | # We have old collect2 |
| 18447 | hardcode_direct_CXX=unsupported |
| 18448 | # It fails to find uninstalled libraries when the uninstalled |
| 18449 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18450 | # to unsupported forces relinking |
| 18451 | hardcode_minus_L_CXX=yes |
| 18452 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18453 | hardcode_libdir_separator_CXX= |
| 18454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18455 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18456 | esac |
| 18457 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18458 | if test "$aix_use_runtimelinking" = yes; then |
| 18459 | shared_flag="$shared_flag "'${wl}-G' |
| 18460 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18461 | else |
| 18462 | # not using gcc |
| 18463 | if test "$host_cpu" = ia64; then |
| 18464 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18465 | # chokes on -Wl,-G. The following line is correct: |
| 18466 | shared_flag='-G' |
| 18467 | else |
| 18468 | if test "$aix_use_runtimelinking" = yes; then |
| 18469 | shared_flag='${wl}-G' |
| 18470 | else |
| 18471 | shared_flag='${wl}-bM:SRE' |
| 18472 | fi |
| 18473 | fi |
| 18474 | fi |
| 18475 | |
| 18476 | # It seems that -bexpall does not export symbols beginning with |
| 18477 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18478 | always_export_symbols_CXX=yes |
| 18479 | if test "$aix_use_runtimelinking" = yes; then |
| 18480 | # Warning - without using the other runtime loading flags (-brtl), |
| 18481 | # -berok will link without error, but may produce a broken library. |
| 18482 | allow_undefined_flag_CXX='-berok' |
| 18483 | # Determine the default libpath from the value encoded in an empty executable. |
| 18484 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18485 | /* confdefs.h. */ |
| 18486 | _ACEOF |
| 18487 | cat confdefs.h >>conftest.$ac_ext |
| 18488 | cat >>conftest.$ac_ext <<_ACEOF |
| 18489 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18490 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18491 | int |
| 18492 | main () |
| 18493 | { |
| 18494 | |
| 18495 | ; |
| 18496 | return 0; |
| 18497 | } |
| 18498 | _ACEOF |
| 18499 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18500 | if { (ac_try="$ac_link" |
| 18501 | case "(($ac_try" in |
| 18502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18503 | *) ac_try_echo=$ac_try;; |
| 18504 | esac |
| 18505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18506 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18507 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18509 | rm -f conftest.er1 |
| 18510 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18512 | (exit $ac_status); } && |
| 18513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18514 | { (case "(($ac_try" in |
| 18515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18516 | *) ac_try_echo=$ac_try;; |
| 18517 | esac |
| 18518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18519 | (eval "$ac_try") 2>&5 |
| 18520 | ac_status=$? |
| 18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18522 | (exit $ac_status); }; } && |
| 18523 | { ac_try='test -s conftest$ac_exeext' |
| 18524 | { (case "(($ac_try" in |
| 18525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18526 | *) ac_try_echo=$ac_try;; |
| 18527 | esac |
| 18528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18529 | (eval "$ac_try") 2>&5 |
| 18530 | ac_status=$? |
| 18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18532 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18533 | |
| 18534 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18535 | }'` |
| 18536 | # Check for a 64-bit object if we didn't find anything. |
| 18537 | 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; } |
| 18538 | }'`; fi |
| 18539 | else |
| 18540 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18543 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18545 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18546 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18547 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18548 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18549 | |
| 18550 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18552 | 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] | 18553 | else |
| 18554 | if test "$host_cpu" = ia64; then |
| 18555 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18556 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18557 | 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] | 18558 | else |
| 18559 | # Determine the default libpath from the value encoded in an empty executable. |
| 18560 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18561 | /* confdefs.h. */ |
| 18562 | _ACEOF |
| 18563 | cat confdefs.h >>conftest.$ac_ext |
| 18564 | cat >>conftest.$ac_ext <<_ACEOF |
| 18565 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18566 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18567 | int |
| 18568 | main () |
| 18569 | { |
| 18570 | |
| 18571 | ; |
| 18572 | return 0; |
| 18573 | } |
| 18574 | _ACEOF |
| 18575 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18576 | if { (ac_try="$ac_link" |
| 18577 | case "(($ac_try" in |
| 18578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18579 | *) ac_try_echo=$ac_try;; |
| 18580 | esac |
| 18581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18582 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18583 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18585 | rm -f conftest.er1 |
| 18586 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18588 | (exit $ac_status); } && |
| 18589 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18590 | { (case "(($ac_try" in |
| 18591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18592 | *) ac_try_echo=$ac_try;; |
| 18593 | esac |
| 18594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18595 | (eval "$ac_try") 2>&5 |
| 18596 | ac_status=$? |
| 18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18598 | (exit $ac_status); }; } && |
| 18599 | { ac_try='test -s conftest$ac_exeext' |
| 18600 | { (case "(($ac_try" in |
| 18601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18602 | *) ac_try_echo=$ac_try;; |
| 18603 | esac |
| 18604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18605 | (eval "$ac_try") 2>&5 |
| 18606 | ac_status=$? |
| 18607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18608 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18609 | |
| 18610 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18611 | }'` |
| 18612 | # Check for a 64-bit object if we didn't find anything. |
| 18613 | 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; } |
| 18614 | }'`; fi |
| 18615 | else |
| 18616 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18620 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18621 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 18622 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18623 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18624 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18625 | |
| 18626 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18627 | # Warning - without using the other run time loading flags, |
| 18628 | # -berok will link without error, but may produce a broken library. |
| 18629 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18630 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18631 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18632 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18633 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18634 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18635 | 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] | 18636 | fi |
| 18637 | fi |
| 18638 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18639 | |
| 18640 | beos*) |
| 18641 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18642 | allow_undefined_flag_CXX=unsupported |
| 18643 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18644 | # support --undefined. This deserves some investigation. FIXME |
| 18645 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18646 | else |
| 18647 | ld_shlibs_CXX=no |
| 18648 | fi |
| 18649 | ;; |
| 18650 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18651 | chorus*) |
| 18652 | case $cc_basename in |
| 18653 | *) |
| 18654 | # FIXME: insert proper C++ library support |
| 18655 | ld_shlibs_CXX=no |
| 18656 | ;; |
| 18657 | esac |
| 18658 | ;; |
| 18659 | |
| 18660 | cygwin* | mingw* | pw32*) |
| 18661 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18662 | # as there is no search path for DLLs. |
| 18663 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18664 | allow_undefined_flag_CXX=unsupported |
| 18665 | always_export_symbols_CXX=no |
| 18666 | enable_shared_with_static_runtimes_CXX=yes |
| 18667 | |
| 18668 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18669 | 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] | 18670 | # If the export-symbols file already is a .def file (1st line |
| 18671 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18672 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18673 | cp $export_symbols $output_objdir/$soname.def; |
| 18674 | else |
| 18675 | echo EXPORTS > $output_objdir/$soname.def; |
| 18676 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18677 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18678 | $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] | 18679 | else |
| 18680 | ld_shlibs_CXX=no |
| 18681 | fi |
| 18682 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18683 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18684 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18685 | rhapsody* | darwin1.[012]) |
| 18686 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18687 | ;; |
| 18688 | *) # Darwin 1.3 on |
| 18689 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18690 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18691 | else |
| 18692 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18693 | 10.[012]) |
| 18694 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18695 | ;; |
| 18696 | 10.*) |
| 18697 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18698 | ;; |
| 18699 | esac |
| 18700 | fi |
| 18701 | ;; |
| 18702 | esac |
| 18703 | archive_cmds_need_lc_CXX=no |
| 18704 | hardcode_direct_CXX=no |
| 18705 | hardcode_automatic_CXX=yes |
| 18706 | hardcode_shlibpath_var_CXX=unsupported |
| 18707 | whole_archive_flag_spec_CXX='' |
| 18708 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18709 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18710 | if test "$GXX" = yes ; then |
| 18711 | lt_int_apple_cc_single_mod=no |
| 18712 | output_verbose_link_cmd='echo' |
| 18713 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18714 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18715 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18716 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18717 | 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] | 18718 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18719 | 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] | 18720 | fi |
| 18721 | 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] | 18722 | # 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] | 18723 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18724 | 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] | 18725 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18726 | 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] | 18727 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18728 | 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] | 18729 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18730 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18731 | xlc*) |
| 18732 | output_verbose_link_cmd='echo' |
| 18733 | 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' |
| 18734 | 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] | 18735 | # 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] | 18736 | 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}' |
| 18737 | 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] | 18738 | ;; |
| 18739 | *) |
| 18740 | ld_shlibs_CXX=no |
| 18741 | ;; |
| 18742 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18743 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18744 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18745 | |
| 18746 | dgux*) |
| 18747 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18748 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18749 | # FIXME: insert proper C++ library support |
| 18750 | ld_shlibs_CXX=no |
| 18751 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18752 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18753 | # Green Hills C++ Compiler |
| 18754 | # FIXME: insert proper C++ library support |
| 18755 | ld_shlibs_CXX=no |
| 18756 | ;; |
| 18757 | *) |
| 18758 | # FIXME: insert proper C++ library support |
| 18759 | ld_shlibs_CXX=no |
| 18760 | ;; |
| 18761 | esac |
| 18762 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18763 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18764 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18765 | ld_shlibs_CXX=no |
| 18766 | ;; |
| 18767 | freebsd-elf*) |
| 18768 | archive_cmds_need_lc_CXX=no |
| 18769 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18770 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18771 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18772 | # conventions |
| 18773 | ld_shlibs_CXX=yes |
| 18774 | ;; |
| 18775 | gnu*) |
| 18776 | ;; |
| 18777 | hpux9*) |
| 18778 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18779 | hardcode_libdir_separator_CXX=: |
| 18780 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18781 | hardcode_direct_CXX=yes |
| 18782 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18783 | # but as the default |
| 18784 | # location of the library. |
| 18785 | |
| 18786 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18787 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18788 | # FIXME: insert proper C++ library support |
| 18789 | ld_shlibs_CXX=no |
| 18790 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18791 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18792 | 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] | 18793 | # Commands to make compiler produce verbose output that lists |
| 18794 | # what "hidden" libraries, object files and flags are used when |
| 18795 | # linking a shared library. |
| 18796 | # |
| 18797 | # There doesn't appear to be a way to prevent this compiler from |
| 18798 | # explicitly linking system object files so we need to strip them |
| 18799 | # from the output so that they don't get included in the library |
| 18800 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18801 | 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] | 18802 | ;; |
| 18803 | *) |
| 18804 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18805 | 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] | 18806 | else |
| 18807 | # FIXME: insert proper C++ library support |
| 18808 | ld_shlibs_CXX=no |
| 18809 | fi |
| 18810 | ;; |
| 18811 | esac |
| 18812 | ;; |
| 18813 | hpux10*|hpux11*) |
| 18814 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18815 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18816 | hardcode_libdir_separator_CXX=: |
| 18817 | |
| 18818 | case $host_cpu in |
| 18819 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18820 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18821 | ;; |
| 18822 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18823 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18824 | ;; |
| 18825 | esac |
| 18826 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18827 | case $host_cpu in |
| 18828 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18829 | hardcode_direct_CXX=no |
| 18830 | hardcode_shlibpath_var_CXX=no |
| 18831 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18832 | *) |
| 18833 | hardcode_direct_CXX=yes |
| 18834 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18835 | # but as the default |
| 18836 | # location of the library. |
| 18837 | ;; |
| 18838 | esac |
| 18839 | |
| 18840 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18841 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18842 | # FIXME: insert proper C++ library support |
| 18843 | ld_shlibs_CXX=no |
| 18844 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18845 | aCC*) |
| 18846 | case $host_cpu in |
| 18847 | hppa*64*) |
| 18848 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18849 | ;; |
| 18850 | ia64*) |
| 18851 | 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] | 18852 | ;; |
| 18853 | *) |
| 18854 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18855 | ;; |
| 18856 | esac |
| 18857 | # Commands to make compiler produce verbose output that lists |
| 18858 | # what "hidden" libraries, object files and flags are used when |
| 18859 | # linking a shared library. |
| 18860 | # |
| 18861 | # There doesn't appear to be a way to prevent this compiler from |
| 18862 | # explicitly linking system object files so we need to strip them |
| 18863 | # from the output so that they don't get included in the library |
| 18864 | # dependencies. |
| 18865 | 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' |
| 18866 | ;; |
| 18867 | *) |
| 18868 | if test "$GXX" = yes; then |
| 18869 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18870 | case $host_cpu in |
| 18871 | hppa*64*) |
| 18872 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18873 | ;; |
| 18874 | ia64*) |
| 18875 | 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] | 18876 | ;; |
| 18877 | *) |
| 18878 | 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' |
| 18879 | ;; |
| 18880 | esac |
| 18881 | fi |
| 18882 | else |
| 18883 | # FIXME: insert proper C++ library support |
| 18884 | ld_shlibs_CXX=no |
| 18885 | fi |
| 18886 | ;; |
| 18887 | esac |
| 18888 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18889 | interix3*) |
| 18890 | hardcode_direct_CXX=no |
| 18891 | hardcode_shlibpath_var_CXX=no |
| 18892 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18893 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18894 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18895 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18896 | # default) and relocated if they conflict, which is a slow very memory |
| 18897 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18898 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18899 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18900 | 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' |
| 18901 | 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' |
| 18902 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18903 | irix5* | irix6*) |
| 18904 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18905 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18906 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18907 | 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] | 18908 | |
| 18909 | # Archives containing C++ object files must be created using |
| 18910 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18911 | # necessary to make sure instantiated templates are included |
| 18912 | # in the archive. |
| 18913 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18914 | ;; |
| 18915 | *) |
| 18916 | if test "$GXX" = yes; then |
| 18917 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18918 | 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] | 18919 | else |
| 18920 | 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' |
| 18921 | fi |
| 18922 | fi |
| 18923 | link_all_deplibs_CXX=yes |
| 18924 | ;; |
| 18925 | esac |
| 18926 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18927 | hardcode_libdir_separator_CXX=: |
| 18928 | ;; |
| 18929 | linux*) |
| 18930 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18931 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18932 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18933 | |
| 18934 | # KCC will only create a shared library if the output file |
| 18935 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18936 | # to its proper name (with version) after linking. |
| 18937 | 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' |
| 18938 | 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' |
| 18939 | # Commands to make compiler produce verbose output that lists |
| 18940 | # what "hidden" libraries, object files and flags are used when |
| 18941 | # linking a shared library. |
| 18942 | # |
| 18943 | # There doesn't appear to be a way to prevent this compiler from |
| 18944 | # explicitly linking system object files so we need to strip them |
| 18945 | # from the output so that they don't get included in the library |
| 18946 | # dependencies. |
| 18947 | 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' |
| 18948 | |
| 18949 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18950 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18951 | |
| 18952 | # Archives containing C++ object files must be created using |
| 18953 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18954 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18955 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18956 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18957 | # Intel C++ |
| 18958 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18959 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18960 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18961 | # earlier do not add the objects themselves. |
| 18962 | case `$CC -V 2>&1` in |
| 18963 | *"Version 7."*) |
| 18964 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18965 | 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' |
| 18966 | ;; |
| 18967 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18968 | tmp_idyn= |
| 18969 | case $host_cpu in |
| 18970 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18971 | esac |
| 18972 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18973 | 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] | 18974 | ;; |
| 18975 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18976 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18977 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18978 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18979 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18980 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18981 | pgCC*) |
| 18982 | # Portland Group C++ compiler |
| 18983 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18984 | 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' |
| 18985 | |
| 18986 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18987 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18988 | 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' |
| 18989 | ;; |
| 18990 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18991 | # Compaq C++ |
| 18992 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18993 | 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' |
| 18994 | |
| 18995 | runpath_var=LD_RUN_PATH |
| 18996 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18997 | hardcode_libdir_separator_CXX=: |
| 18998 | |
| 18999 | # Commands to make compiler produce verbose output that lists |
| 19000 | # what "hidden" libraries, object files and flags are used when |
| 19001 | # linking a shared library. |
| 19002 | # |
| 19003 | # There doesn't appear to be a way to prevent this compiler from |
| 19004 | # explicitly linking system object files so we need to strip them |
| 19005 | # from the output so that they don't get included in the library |
| 19006 | # dependencies. |
| 19007 | 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' |
| 19008 | ;; |
| 19009 | esac |
| 19010 | ;; |
| 19011 | lynxos*) |
| 19012 | # FIXME: insert proper C++ library support |
| 19013 | ld_shlibs_CXX=no |
| 19014 | ;; |
| 19015 | m88k*) |
| 19016 | # FIXME: insert proper C++ library support |
| 19017 | ld_shlibs_CXX=no |
| 19018 | ;; |
| 19019 | mvs*) |
| 19020 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19021 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19022 | # FIXME: insert proper C++ library support |
| 19023 | ld_shlibs_CXX=no |
| 19024 | ;; |
| 19025 | *) |
| 19026 | # FIXME: insert proper C++ library support |
| 19027 | ld_shlibs_CXX=no |
| 19028 | ;; |
| 19029 | esac |
| 19030 | ;; |
| 19031 | netbsd*) |
| 19032 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19033 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19034 | wlarc= |
| 19035 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19036 | hardcode_direct_CXX=yes |
| 19037 | hardcode_shlibpath_var_CXX=no |
| 19038 | fi |
| 19039 | # Workaround some broken pre-1.5 toolchains |
| 19040 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19041 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19042 | openbsd2*) |
| 19043 | # C++ shared libraries are fairly broken |
| 19044 | ld_shlibs_CXX=no |
| 19045 | ;; |
| 19046 | openbsd*) |
| 19047 | hardcode_direct_CXX=yes |
| 19048 | hardcode_shlibpath_var_CXX=no |
| 19049 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19050 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19051 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19052 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19053 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19054 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19055 | fi |
| 19056 | output_verbose_link_cmd='echo' |
| 19057 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19058 | osf3*) |
| 19059 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19060 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19061 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19062 | |
| 19063 | # KCC will only create a shared library if the output file |
| 19064 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19065 | # to its proper name (with version) after linking. |
| 19066 | 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' |
| 19067 | |
| 19068 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19069 | hardcode_libdir_separator_CXX=: |
| 19070 | |
| 19071 | # Archives containing C++ object files must be created using |
| 19072 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19073 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19074 | |
| 19075 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19076 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19077 | # Rational C++ 2.4.1 |
| 19078 | # FIXME: insert proper C++ library support |
| 19079 | ld_shlibs_CXX=no |
| 19080 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19081 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19082 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19083 | 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] | 19084 | |
| 19085 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19086 | hardcode_libdir_separator_CXX=: |
| 19087 | |
| 19088 | # Commands to make compiler produce verbose output that lists |
| 19089 | # what "hidden" libraries, object files and flags are used when |
| 19090 | # linking a shared library. |
| 19091 | # |
| 19092 | # There doesn't appear to be a way to prevent this compiler from |
| 19093 | # explicitly linking system object files so we need to strip them |
| 19094 | # from the output so that they don't get included in the library |
| 19095 | # dependencies. |
| 19096 | 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' |
| 19097 | ;; |
| 19098 | *) |
| 19099 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19100 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19101 | 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] | 19102 | |
| 19103 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19104 | hardcode_libdir_separator_CXX=: |
| 19105 | |
| 19106 | # Commands to make compiler produce verbose output that lists |
| 19107 | # what "hidden" libraries, object files and flags are used when |
| 19108 | # linking a shared library. |
| 19109 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19110 | |
| 19111 | else |
| 19112 | # FIXME: insert proper C++ library support |
| 19113 | ld_shlibs_CXX=no |
| 19114 | fi |
| 19115 | ;; |
| 19116 | esac |
| 19117 | ;; |
| 19118 | osf4* | osf5*) |
| 19119 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19120 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19121 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19122 | |
| 19123 | # KCC will only create a shared library if the output file |
| 19124 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19125 | # to its proper name (with version) after linking. |
| 19126 | 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' |
| 19127 | |
| 19128 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19129 | hardcode_libdir_separator_CXX=: |
| 19130 | |
| 19131 | # Archives containing C++ object files must be created using |
| 19132 | # the KAI C++ compiler. |
| 19133 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19134 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19135 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19136 | # Rational C++ 2.4.1 |
| 19137 | # FIXME: insert proper C++ library support |
| 19138 | ld_shlibs_CXX=no |
| 19139 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19140 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19141 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19142 | 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] | 19143 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19144 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19145 | $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] | 19146 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19147 | |
| 19148 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19149 | hardcode_libdir_separator_CXX=: |
| 19150 | |
| 19151 | # Commands to make compiler produce verbose output that lists |
| 19152 | # what "hidden" libraries, object files and flags are used when |
| 19153 | # linking a shared library. |
| 19154 | # |
| 19155 | # There doesn't appear to be a way to prevent this compiler from |
| 19156 | # explicitly linking system object files so we need to strip them |
| 19157 | # from the output so that they don't get included in the library |
| 19158 | # dependencies. |
| 19159 | 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' |
| 19160 | ;; |
| 19161 | *) |
| 19162 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19163 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19164 | 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] | 19165 | |
| 19166 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19167 | hardcode_libdir_separator_CXX=: |
| 19168 | |
| 19169 | # Commands to make compiler produce verbose output that lists |
| 19170 | # what "hidden" libraries, object files and flags are used when |
| 19171 | # linking a shared library. |
| 19172 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19173 | |
| 19174 | else |
| 19175 | # FIXME: insert proper C++ library support |
| 19176 | ld_shlibs_CXX=no |
| 19177 | fi |
| 19178 | ;; |
| 19179 | esac |
| 19180 | ;; |
| 19181 | psos*) |
| 19182 | # FIXME: insert proper C++ library support |
| 19183 | ld_shlibs_CXX=no |
| 19184 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19185 | sunos4*) |
| 19186 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19187 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19188 | # Sun C++ 4.x |
| 19189 | # FIXME: insert proper C++ library support |
| 19190 | ld_shlibs_CXX=no |
| 19191 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19192 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19193 | # Lucid |
| 19194 | # FIXME: insert proper C++ library support |
| 19195 | ld_shlibs_CXX=no |
| 19196 | ;; |
| 19197 | *) |
| 19198 | # FIXME: insert proper C++ library support |
| 19199 | ld_shlibs_CXX=no |
| 19200 | ;; |
| 19201 | esac |
| 19202 | ;; |
| 19203 | solaris*) |
| 19204 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19205 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19206 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19207 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19208 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19209 | 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] | 19210 | 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] | 19211 | $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] | 19212 | |
| 19213 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19214 | hardcode_shlibpath_var_CXX=no |
| 19215 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19216 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19217 | *) |
| 19218 | # The C++ compiler is used as linker so we must use $wl |
| 19219 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19220 | # linker. We must also pass each convience library through |
| 19221 | # to the system linker between allextract/defaultextract. |
| 19222 | # The C++ compiler will combine linker options so we |
| 19223 | # cannot just pass the convience library names through |
| 19224 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19225 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19226 | 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] | 19227 | ;; |
| 19228 | esac |
| 19229 | link_all_deplibs_CXX=yes |
| 19230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19231 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19232 | |
| 19233 | # Archives containing C++ object files must be created using |
| 19234 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19235 | # necessary to make sure instantiated templates are included |
| 19236 | # in the archive. |
| 19237 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19238 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19239 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19240 | # Green Hills C++ Compiler |
| 19241 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19242 | |
| 19243 | # The C++ compiler must be used to create the archive. |
| 19244 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19245 | ;; |
| 19246 | *) |
| 19247 | # GNU C++ compiler with Solaris linker |
| 19248 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19249 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19250 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19251 | 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] | 19252 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19253 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19254 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19255 | # Commands to make compiler produce verbose output that lists |
| 19256 | # what "hidden" libraries, object files and flags are used when |
| 19257 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19258 | 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] | 19259 | else |
| 19260 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19261 | # platform. |
| 19262 | 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] | 19263 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19264 | $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] | 19265 | |
| 19266 | # Commands to make compiler produce verbose output that lists |
| 19267 | # what "hidden" libraries, object files and flags are used when |
| 19268 | # linking a shared library. |
| 19269 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19270 | fi |
| 19271 | |
| 19272 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19273 | fi |
| 19274 | ;; |
| 19275 | esac |
| 19276 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19277 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19278 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19279 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19280 | hardcode_shlibpath_var_CXX=no |
| 19281 | runpath_var='LD_RUN_PATH' |
| 19282 | |
| 19283 | case $cc_basename in |
| 19284 | CC*) |
| 19285 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19286 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19287 | ;; |
| 19288 | *) |
| 19289 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19290 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19291 | ;; |
| 19292 | esac |
| 19293 | ;; |
| 19294 | sysv5* | sco3.2v5* | sco5v6*) |
| 19295 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19296 | # link with -lc, and that would cause any symbols used from libc to |
| 19297 | # always be unresolved, which means just about no library would |
| 19298 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19299 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19300 | # as -z defs. |
| 19301 | # For security reasons, it is highly recommended that you always |
| 19302 | # use absolute paths for naming shared libraries, and exclude the |
| 19303 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19304 | # requires that you compile everything twice, which is a pain. |
| 19305 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19306 | # non-empty value in the environment. Most likely only useful for |
| 19307 | # creating official distributions of packages. |
| 19308 | # This is a hack until libtool officially supports absolute path |
| 19309 | # names for shared libraries. |
| 19310 | no_undefined_flag_CXX='${wl}-z,text' |
| 19311 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19312 | archive_cmds_need_lc_CXX=no |
| 19313 | hardcode_shlibpath_var_CXX=no |
| 19314 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19315 | hardcode_libdir_separator_CXX=':' |
| 19316 | link_all_deplibs_CXX=yes |
| 19317 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19318 | runpath_var='LD_RUN_PATH' |
| 19319 | |
| 19320 | case $cc_basename in |
| 19321 | CC*) |
| 19322 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19323 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19324 | ;; |
| 19325 | *) |
| 19326 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19327 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19328 | ;; |
| 19329 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19330 | ;; |
| 19331 | tandem*) |
| 19332 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19333 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19334 | # NonStop-UX NCC 3.20 |
| 19335 | # FIXME: insert proper C++ library support |
| 19336 | ld_shlibs_CXX=no |
| 19337 | ;; |
| 19338 | *) |
| 19339 | # FIXME: insert proper C++ library support |
| 19340 | ld_shlibs_CXX=no |
| 19341 | ;; |
| 19342 | esac |
| 19343 | ;; |
| 19344 | vxworks*) |
| 19345 | # FIXME: insert proper C++ library support |
| 19346 | ld_shlibs_CXX=no |
| 19347 | ;; |
| 19348 | *) |
| 19349 | # FIXME: insert proper C++ library support |
| 19350 | ld_shlibs_CXX=no |
| 19351 | ;; |
| 19352 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19353 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19354 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19355 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19356 | |
| 19357 | GCC_CXX="$GXX" |
| 19358 | LD_CXX="$LD" |
| 19359 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19360 | |
| 19361 | cat > conftest.$ac_ext <<EOF |
| 19362 | class Foo |
| 19363 | { |
| 19364 | public: |
| 19365 | Foo (void) { a = 0; } |
| 19366 | private: |
| 19367 | int a; |
| 19368 | }; |
| 19369 | EOF |
| 19370 | |
| 19371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19372 | (eval $ac_compile) 2>&5 |
| 19373 | ac_status=$? |
| 19374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19375 | (exit $ac_status); }; then |
| 19376 | # Parse the compiler output and extract the necessary |
| 19377 | # objects, libraries and library flags. |
| 19378 | |
| 19379 | # Sentinel used to keep track of whether or not we are before |
| 19380 | # the conftest object file. |
| 19381 | pre_test_object_deps_done=no |
| 19382 | |
| 19383 | # The `*' in the case matches for architectures that use `case' in |
| 19384 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19385 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19386 | 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] | 19387 | |
| 19388 | for p in `eval $output_verbose_link_cmd`; do |
| 19389 | case $p in |
| 19390 | |
| 19391 | -L* | -R* | -l*) |
| 19392 | # Some compilers place space between "-{L,R}" and the path. |
| 19393 | # Remove the space. |
| 19394 | if test $p = "-L" \ |
| 19395 | || test $p = "-R"; then |
| 19396 | prev=$p |
| 19397 | continue |
| 19398 | else |
| 19399 | prev= |
| 19400 | fi |
| 19401 | |
| 19402 | if test "$pre_test_object_deps_done" = no; then |
| 19403 | case $p in |
| 19404 | -L* | -R*) |
| 19405 | # Internal compiler library paths should come after those |
| 19406 | # provided the user. The postdeps already come after the |
| 19407 | # user supplied libs so there is no need to process them. |
| 19408 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19409 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19410 | else |
| 19411 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19412 | fi |
| 19413 | ;; |
| 19414 | # The "-l" case would never come before the object being |
| 19415 | # linked, so don't bother handling this case. |
| 19416 | esac |
| 19417 | else |
| 19418 | if test -z "$postdeps_CXX"; then |
| 19419 | postdeps_CXX="${prev}${p}" |
| 19420 | else |
| 19421 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19422 | fi |
| 19423 | fi |
| 19424 | ;; |
| 19425 | |
| 19426 | *.$objext) |
| 19427 | # This assumes that the test object file only shows up |
| 19428 | # once in the compiler output. |
| 19429 | if test "$p" = "conftest.$objext"; then |
| 19430 | pre_test_object_deps_done=yes |
| 19431 | continue |
| 19432 | fi |
| 19433 | |
| 19434 | if test "$pre_test_object_deps_done" = no; then |
| 19435 | if test -z "$predep_objects_CXX"; then |
| 19436 | predep_objects_CXX="$p" |
| 19437 | else |
| 19438 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19439 | fi |
| 19440 | else |
| 19441 | if test -z "$postdep_objects_CXX"; then |
| 19442 | postdep_objects_CXX="$p" |
| 19443 | else |
| 19444 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19445 | fi |
| 19446 | fi |
| 19447 | ;; |
| 19448 | |
| 19449 | *) ;; # Ignore the rest. |
| 19450 | |
| 19451 | esac |
| 19452 | done |
| 19453 | |
| 19454 | # Clean up. |
| 19455 | rm -f a.out a.exe |
| 19456 | else |
| 19457 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19458 | fi |
| 19459 | |
| 19460 | $rm -f confest.$objext |
| 19461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19462 | # PORTME: override above test on systems where it is broken |
| 19463 | case $host_os in |
| 19464 | interix3*) |
| 19465 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19466 | # hack all around it, let's just trust "g++" to DTRT. |
| 19467 | predep_objects_CXX= |
| 19468 | postdep_objects_CXX= |
| 19469 | postdeps_CXX= |
| 19470 | ;; |
| 19471 | |
| 19472 | solaris*) |
| 19473 | case $cc_basename in |
| 19474 | CC*) |
| 19475 | # Adding this requires a known-good setup of shared libraries for |
| 19476 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19477 | # archive will be linked into the output, leading to subtle bugs. |
| 19478 | postdeps_CXX='-lCstd -lCrun' |
| 19479 | ;; |
| 19480 | esac |
| 19481 | ;; |
| 19482 | esac |
| 19483 | |
| 19484 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19485 | case " $postdeps_CXX " in |
| 19486 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19487 | esac |
| 19488 | |
| 19489 | lt_prog_compiler_wl_CXX= |
| 19490 | lt_prog_compiler_pic_CXX= |
| 19491 | lt_prog_compiler_static_CXX= |
| 19492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19493 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19494 | 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] | 19495 | |
| 19496 | # C++ specific cases for pic, static, wl, etc. |
| 19497 | if test "$GXX" = yes; then |
| 19498 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19499 | lt_prog_compiler_static_CXX='-static' |
| 19500 | |
| 19501 | case $host_os in |
| 19502 | aix*) |
| 19503 | # All AIX code is PIC. |
| 19504 | if test "$host_cpu" = ia64; then |
| 19505 | # AIX 5 now supports IA64 processor |
| 19506 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19507 | fi |
| 19508 | ;; |
| 19509 | amigaos*) |
| 19510 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19511 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19512 | # like `-m68040'. |
| 19513 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19514 | ;; |
| 19515 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19516 | # PIC is the default for these OSes. |
| 19517 | ;; |
| 19518 | mingw* | os2* | pw32*) |
| 19519 | # This hack is so that the source file can tell whether it is being |
| 19520 | # built for inclusion in a dll (and should export symbols for example). |
| 19521 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19522 | ;; |
| 19523 | darwin* | rhapsody*) |
| 19524 | # PIC is the default on this platform |
| 19525 | # Common symbols not allowed in MH_DYLIB files |
| 19526 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19527 | ;; |
| 19528 | *djgpp*) |
| 19529 | # DJGPP does not support shared libraries at all |
| 19530 | lt_prog_compiler_pic_CXX= |
| 19531 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19532 | interix3*) |
| 19533 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19534 | # Instead, we relocate shared libraries at runtime. |
| 19535 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19536 | sysv4*MP*) |
| 19537 | if test -d /usr/nec; then |
| 19538 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19539 | fi |
| 19540 | ;; |
| 19541 | hpux*) |
| 19542 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19543 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19544 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19545 | hppa*64*|ia64*) |
| 19546 | ;; |
| 19547 | *) |
| 19548 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19549 | ;; |
| 19550 | esac |
| 19551 | ;; |
| 19552 | *) |
| 19553 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19554 | ;; |
| 19555 | esac |
| 19556 | else |
| 19557 | case $host_os in |
| 19558 | aix4* | aix5*) |
| 19559 | # All AIX code is PIC. |
| 19560 | if test "$host_cpu" = ia64; then |
| 19561 | # AIX 5 now supports IA64 processor |
| 19562 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19563 | else |
| 19564 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19565 | fi |
| 19566 | ;; |
| 19567 | chorus*) |
| 19568 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19569 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19570 | # Green Hills C++ Compiler |
| 19571 | # _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" |
| 19572 | ;; |
| 19573 | esac |
| 19574 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19575 | darwin*) |
| 19576 | # PIC is the default on this platform |
| 19577 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19578 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19579 | xlc*) |
| 19580 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19581 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19582 | ;; |
| 19583 | esac |
| 19584 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19585 | dgux*) |
| 19586 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19587 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19588 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19589 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19590 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19591 | # Green Hills C++ Compiler |
| 19592 | lt_prog_compiler_pic_CXX='-pic' |
| 19593 | ;; |
| 19594 | *) |
| 19595 | ;; |
| 19596 | esac |
| 19597 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19598 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19599 | # FreeBSD uses GNU C++ |
| 19600 | ;; |
| 19601 | hpux9* | hpux10* | hpux11*) |
| 19602 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19603 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19604 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19605 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19606 | if test "$host_cpu" != ia64; then |
| 19607 | lt_prog_compiler_pic_CXX='+Z' |
| 19608 | fi |
| 19609 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19610 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19611 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19612 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19613 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19614 | hppa*64*|ia64*) |
| 19615 | # +Z the default |
| 19616 | ;; |
| 19617 | *) |
| 19618 | lt_prog_compiler_pic_CXX='+Z' |
| 19619 | ;; |
| 19620 | esac |
| 19621 | ;; |
| 19622 | *) |
| 19623 | ;; |
| 19624 | esac |
| 19625 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19626 | interix*) |
| 19627 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19628 | # Anyone wants to do a port? |
| 19629 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19630 | irix5* | irix6* | nonstopux*) |
| 19631 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19632 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19633 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19634 | lt_prog_compiler_static_CXX='-non_shared' |
| 19635 | # CC pic flag -KPIC is the default. |
| 19636 | ;; |
| 19637 | *) |
| 19638 | ;; |
| 19639 | esac |
| 19640 | ;; |
| 19641 | linux*) |
| 19642 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19643 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19644 | # KAI C++ Compiler |
| 19645 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19646 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19647 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19648 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19649 | # Intel C++ |
| 19650 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19651 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19652 | lt_prog_compiler_static_CXX='-static' |
| 19653 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19654 | pgCC*) |
| 19655 | # Portland Group C++ compiler. |
| 19656 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19657 | lt_prog_compiler_pic_CXX='-fpic' |
| 19658 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19659 | ;; |
| 19660 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19661 | # Compaq C++ |
| 19662 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19663 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19664 | lt_prog_compiler_pic_CXX= |
| 19665 | lt_prog_compiler_static_CXX='-non_shared' |
| 19666 | ;; |
| 19667 | *) |
| 19668 | ;; |
| 19669 | esac |
| 19670 | ;; |
| 19671 | lynxos*) |
| 19672 | ;; |
| 19673 | m88k*) |
| 19674 | ;; |
| 19675 | mvs*) |
| 19676 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19677 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19678 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19679 | ;; |
| 19680 | *) |
| 19681 | ;; |
| 19682 | esac |
| 19683 | ;; |
| 19684 | netbsd*) |
| 19685 | ;; |
| 19686 | osf3* | osf4* | osf5*) |
| 19687 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19688 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19689 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19690 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19691 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19692 | # Rational C++ 2.4.1 |
| 19693 | lt_prog_compiler_pic_CXX='-pic' |
| 19694 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19695 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19696 | # Digital/Compaq C++ |
| 19697 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19698 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19699 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19700 | lt_prog_compiler_pic_CXX= |
| 19701 | lt_prog_compiler_static_CXX='-non_shared' |
| 19702 | ;; |
| 19703 | *) |
| 19704 | ;; |
| 19705 | esac |
| 19706 | ;; |
| 19707 | psos*) |
| 19708 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19709 | solaris*) |
| 19710 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19711 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19712 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19713 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19714 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19715 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19716 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19717 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19718 | # Green Hills C++ Compiler |
| 19719 | lt_prog_compiler_pic_CXX='-PIC' |
| 19720 | ;; |
| 19721 | *) |
| 19722 | ;; |
| 19723 | esac |
| 19724 | ;; |
| 19725 | sunos4*) |
| 19726 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19727 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19728 | # Sun C++ 4.x |
| 19729 | lt_prog_compiler_pic_CXX='-pic' |
| 19730 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19731 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19732 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19733 | # Lucid |
| 19734 | lt_prog_compiler_pic_CXX='-pic' |
| 19735 | ;; |
| 19736 | *) |
| 19737 | ;; |
| 19738 | esac |
| 19739 | ;; |
| 19740 | tandem*) |
| 19741 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19742 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19743 | # NonStop-UX NCC 3.20 |
| 19744 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19745 | ;; |
| 19746 | *) |
| 19747 | ;; |
| 19748 | esac |
| 19749 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19750 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19751 | case $cc_basename in |
| 19752 | CC*) |
| 19753 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19754 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19755 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19756 | ;; |
| 19757 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19758 | ;; |
| 19759 | vxworks*) |
| 19760 | ;; |
| 19761 | *) |
| 19762 | lt_prog_compiler_can_build_shared_CXX=no |
| 19763 | ;; |
| 19764 | esac |
| 19765 | fi |
| 19766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19767 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19768 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19769 | |
| 19770 | # |
| 19771 | # Check to make sure the PIC flag actually works. |
| 19772 | # |
| 19773 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19775 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19776 | 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] | 19777 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19779 | else |
| 19780 | lt_prog_compiler_pic_works_CXX=no |
| 19781 | ac_outfile=conftest.$ac_objext |
| 19782 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19783 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19784 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19785 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19786 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19787 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19788 | # The option is referenced via a variable to avoid confusing sed. |
| 19789 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19790 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19791 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19792 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 19793 | (eval echo "\"\$as_me:19788: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19794 | (eval "$lt_compile" 2>conftest.err) |
| 19795 | ac_status=$? |
| 19796 | cat conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 19797 | echo "$as_me:19792: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19798 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19799 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19800 | # So say no if there are warnings other than the usual output. |
| 19801 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19802 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19803 | 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] | 19804 | lt_prog_compiler_pic_works_CXX=yes |
| 19805 | fi |
| 19806 | fi |
| 19807 | $rm conftest* |
| 19808 | |
| 19809 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19810 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19811 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19812 | |
| 19813 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19814 | case $lt_prog_compiler_pic_CXX in |
| 19815 | "" | " "*) ;; |
| 19816 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19817 | esac |
| 19818 | else |
| 19819 | lt_prog_compiler_pic_CXX= |
| 19820 | lt_prog_compiler_can_build_shared_CXX=no |
| 19821 | fi |
| 19822 | |
| 19823 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19824 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19825 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19826 | *djgpp*) |
| 19827 | lt_prog_compiler_pic_CXX= |
| 19828 | ;; |
| 19829 | *) |
| 19830 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19831 | ;; |
| 19832 | esac |
| 19833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19834 | # |
| 19835 | # Check to make sure the static flag actually works. |
| 19836 | # |
| 19837 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19838 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19839 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19840 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19842 | else |
| 19843 | lt_prog_compiler_static_works_CXX=no |
| 19844 | save_LDFLAGS="$LDFLAGS" |
| 19845 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19846 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19847 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19848 | # The linker can only warn and ignore the option if not recognized |
| 19849 | # So say no if there are warnings |
| 19850 | if test -s conftest.err; then |
| 19851 | # Append any errors to the config.log. |
| 19852 | cat conftest.err 1>&5 |
| 19853 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19854 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19855 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19856 | lt_prog_compiler_static_works_CXX=yes |
| 19857 | fi |
| 19858 | else |
| 19859 | lt_prog_compiler_static_works_CXX=yes |
| 19860 | fi |
| 19861 | fi |
| 19862 | $rm conftest* |
| 19863 | LDFLAGS="$save_LDFLAGS" |
| 19864 | |
| 19865 | fi |
| 19866 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19867 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19868 | |
| 19869 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19870 | : |
| 19871 | else |
| 19872 | lt_prog_compiler_static_CXX= |
| 19873 | fi |
| 19874 | |
| 19875 | |
| 19876 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19877 | 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] | 19878 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19880 | else |
| 19881 | lt_cv_prog_compiler_c_o_CXX=no |
| 19882 | $rm -r conftest 2>/dev/null |
| 19883 | mkdir conftest |
| 19884 | cd conftest |
| 19885 | mkdir out |
| 19886 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19887 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19888 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19889 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19890 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19891 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19892 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19893 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19894 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19895 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19896 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 19897 | (eval echo "\"\$as_me:19892: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19898 | (eval "$lt_compile" 2>out/conftest.err) |
| 19899 | ac_status=$? |
| 19900 | cat out/conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 19901 | echo "$as_me:19896: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19902 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19903 | then |
| 19904 | # The compiler can only warn and ignore the option if not recognized |
| 19905 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19906 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19907 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19908 | 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] | 19909 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19910 | fi |
| 19911 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19912 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19913 | $rm conftest* |
| 19914 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19915 | # template instantiation |
| 19916 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19917 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19918 | cd .. |
| 19919 | rmdir conftest |
| 19920 | $rm conftest* |
| 19921 | |
| 19922 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19923 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19924 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19925 | |
| 19926 | |
| 19927 | hard_links="nottested" |
| 19928 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19929 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19930 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19931 | 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] | 19932 | hard_links=yes |
| 19933 | $rm conftest* |
| 19934 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19935 | touch conftest.a |
| 19936 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19937 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19938 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19939 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19940 | if test "$hard_links" = no; then |
| 19941 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19942 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19943 | need_locks=warn |
| 19944 | fi |
| 19945 | else |
| 19946 | need_locks=no |
| 19947 | fi |
| 19948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19949 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19950 | 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] | 19951 | |
| 19952 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19953 | case $host_os in |
| 19954 | aix4* | aix5*) |
| 19955 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19956 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19957 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19958 | 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' |
| 19959 | else |
| 19960 | 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' |
| 19961 | fi |
| 19962 | ;; |
| 19963 | pw32*) |
| 19964 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19965 | ;; |
| 19966 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19967 | 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] | 19968 | ;; |
| 19969 | *) |
| 19970 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19971 | ;; |
| 19972 | esac |
| 19973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19974 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19975 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19976 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19978 | # |
| 19979 | # Do we need to explicitly link libc? |
| 19980 | # |
| 19981 | case "x$archive_cmds_need_lc_CXX" in |
| 19982 | x|xyes) |
| 19983 | # Assume -lc should be added |
| 19984 | archive_cmds_need_lc_CXX=yes |
| 19985 | |
| 19986 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19987 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19988 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19989 | # FIXME: we may have to deal with multi-command sequences. |
| 19990 | ;; |
| 19991 | '$CC '*) |
| 19992 | # Test whether the compiler implicitly links with -lc since on some |
| 19993 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19994 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19995 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19996 | 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] | 19997 | $rm conftest* |
| 19998 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19999 | |
| 20000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20001 | (eval $ac_compile) 2>&5 |
| 20002 | ac_status=$? |
| 20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20004 | (exit $ac_status); } 2>conftest.err; then |
| 20005 | soname=conftest |
| 20006 | lib=conftest |
| 20007 | libobjs=conftest.$ac_objext |
| 20008 | deplibs= |
| 20009 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20010 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20011 | compiler_flags=-v |
| 20012 | linker_flags=-v |
| 20013 | verstring= |
| 20014 | output_objdir=. |
| 20015 | libname=conftest |
| 20016 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20017 | allow_undefined_flag_CXX= |
| 20018 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20019 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20020 | ac_status=$? |
| 20021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20022 | (exit $ac_status); } |
| 20023 | then |
| 20024 | archive_cmds_need_lc_CXX=no |
| 20025 | else |
| 20026 | archive_cmds_need_lc_CXX=yes |
| 20027 | fi |
| 20028 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20029 | else |
| 20030 | cat conftest.err 1>&5 |
| 20031 | fi |
| 20032 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20033 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20034 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20035 | ;; |
| 20036 | esac |
| 20037 | fi |
| 20038 | ;; |
| 20039 | esac |
| 20040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20041 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20042 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20043 | library_names_spec= |
| 20044 | libname_spec='lib$name' |
| 20045 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20046 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20047 | postinstall_cmds= |
| 20048 | postuninstall_cmds= |
| 20049 | finish_cmds= |
| 20050 | finish_eval= |
| 20051 | shlibpath_var= |
| 20052 | shlibpath_overrides_runpath=unknown |
| 20053 | version_type=none |
| 20054 | dynamic_linker="$host_os ld.so" |
| 20055 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20056 | if test "$GCC" = yes; then |
| 20057 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20058 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20059 | # if the path contains ";" then we assume it to be the separator |
| 20060 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20061 | # assumed that no part of a normal pathname contains ";" but that should |
| 20062 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20063 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20064 | else |
| 20065 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20066 | fi |
| 20067 | else |
| 20068 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20069 | fi |
| 20070 | need_lib_prefix=unknown |
| 20071 | hardcode_into_libs=no |
| 20072 | |
| 20073 | # when you set need_version to no, make sure it does not cause -set_version |
| 20074 | # flags to be left without arguments |
| 20075 | need_version=unknown |
| 20076 | |
| 20077 | case $host_os in |
| 20078 | aix3*) |
| 20079 | version_type=linux |
| 20080 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20081 | shlibpath_var=LIBPATH |
| 20082 | |
| 20083 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20084 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20085 | ;; |
| 20086 | |
| 20087 | aix4* | aix5*) |
| 20088 | version_type=linux |
| 20089 | need_lib_prefix=no |
| 20090 | need_version=no |
| 20091 | hardcode_into_libs=yes |
| 20092 | if test "$host_cpu" = ia64; then |
| 20093 | # AIX 5 supports IA64 |
| 20094 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20095 | shlibpath_var=LD_LIBRARY_PATH |
| 20096 | else |
| 20097 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20098 | # for dependence libraries. The import file would start with |
| 20099 | # the line `#! .'. This would cause the generated library to |
| 20100 | # depend on `.', always an invalid library. This was fixed in |
| 20101 | # development snapshots of GCC prior to 3.0. |
| 20102 | case $host_os in |
| 20103 | aix4 | aix4.[01] | aix4.[01].*) |
| 20104 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20105 | echo ' yes ' |
| 20106 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20107 | : |
| 20108 | else |
| 20109 | can_build_shared=no |
| 20110 | fi |
| 20111 | ;; |
| 20112 | esac |
| 20113 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20114 | # soname into executable. Probably we can add versioning support to |
| 20115 | # collect2, so additional links can be useful in future. |
| 20116 | if test "$aix_use_runtimelinking" = yes; then |
| 20117 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20118 | # instead of lib<name>.a to let people know that these are not |
| 20119 | # typical AIX shared libraries. |
| 20120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20121 | else |
| 20122 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20123 | # and later when we are not doing run time linking. |
| 20124 | library_names_spec='${libname}${release}.a $libname.a' |
| 20125 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20126 | fi |
| 20127 | shlibpath_var=LIBPATH |
| 20128 | fi |
| 20129 | ;; |
| 20130 | |
| 20131 | amigaos*) |
| 20132 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20133 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20134 | 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] | 20135 | ;; |
| 20136 | |
| 20137 | beos*) |
| 20138 | library_names_spec='${libname}${shared_ext}' |
| 20139 | dynamic_linker="$host_os ld.so" |
| 20140 | shlibpath_var=LIBRARY_PATH |
| 20141 | ;; |
| 20142 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20143 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20144 | version_type=linux |
| 20145 | need_version=no |
| 20146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20147 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20148 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20149 | shlibpath_var=LD_LIBRARY_PATH |
| 20150 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20151 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20152 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20153 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20154 | # libtool to hard-code these into programs |
| 20155 | ;; |
| 20156 | |
| 20157 | cygwin* | mingw* | pw32*) |
| 20158 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20159 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20160 | need_version=no |
| 20161 | need_lib_prefix=no |
| 20162 | |
| 20163 | case $GCC,$host_os in |
| 20164 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20165 | library_names_spec='$libname.dll.a' |
| 20166 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20167 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20168 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20169 | dldir=$destdir/`dirname \$dlpath`~ |
| 20170 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20171 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20172 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20173 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20174 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20175 | $rm \$dlpath' |
| 20176 | shlibpath_overrides_runpath=yes |
| 20177 | |
| 20178 | case $host_os in |
| 20179 | cygwin*) |
| 20180 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20181 | 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] | 20182 | 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] | 20183 | ;; |
| 20184 | mingw*) |
| 20185 | # MinGW DLLs use traditional 'lib' prefix |
| 20186 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20187 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20188 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20189 | # It is most probably a Windows format PATH printed by |
| 20190 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20191 | # path with ; separators, and with drive letters. We can handle the |
| 20192 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20193 | # especially as we might pass files found there to a mingw objdump, |
| 20194 | # which wouldn't understand a cygwinified path. Ahh. |
| 20195 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20196 | else |
| 20197 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20198 | fi |
| 20199 | ;; |
| 20200 | pw32*) |
| 20201 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20202 | 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] | 20203 | ;; |
| 20204 | esac |
| 20205 | ;; |
| 20206 | |
| 20207 | *) |
| 20208 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20209 | ;; |
| 20210 | esac |
| 20211 | dynamic_linker='Win32 ld.exe' |
| 20212 | # FIXME: first we should search . and the directory the executable is in |
| 20213 | shlibpath_var=PATH |
| 20214 | ;; |
| 20215 | |
| 20216 | darwin* | rhapsody*) |
| 20217 | dynamic_linker="$host_os dyld" |
| 20218 | version_type=darwin |
| 20219 | need_lib_prefix=no |
| 20220 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20221 | 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] | 20222 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20223 | shlibpath_overrides_runpath=yes |
| 20224 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20225 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20226 | # 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] | 20227 | if test "$GCC" = yes; then |
| 20228 | 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"` |
| 20229 | else |
| 20230 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20231 | fi |
| 20232 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20233 | ;; |
| 20234 | |
| 20235 | dgux*) |
| 20236 | version_type=linux |
| 20237 | need_lib_prefix=no |
| 20238 | need_version=no |
| 20239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20241 | shlibpath_var=LD_LIBRARY_PATH |
| 20242 | ;; |
| 20243 | |
| 20244 | freebsd1*) |
| 20245 | dynamic_linker=no |
| 20246 | ;; |
| 20247 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20248 | kfreebsd*-gnu) |
| 20249 | version_type=linux |
| 20250 | need_lib_prefix=no |
| 20251 | need_version=no |
| 20252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20253 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20254 | shlibpath_var=LD_LIBRARY_PATH |
| 20255 | shlibpath_overrides_runpath=no |
| 20256 | hardcode_into_libs=yes |
| 20257 | dynamic_linker='GNU ld.so' |
| 20258 | ;; |
| 20259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20260 | freebsd* | dragonfly*) |
| 20261 | # DragonFly does not have aout. When/if they implement a new |
| 20262 | # versioning mechanism, adjust this. |
| 20263 | if test -x /usr/bin/objformat; then |
| 20264 | objformat=`/usr/bin/objformat` |
| 20265 | else |
| 20266 | case $host_os in |
| 20267 | freebsd[123]*) objformat=aout ;; |
| 20268 | *) objformat=elf ;; |
| 20269 | esac |
| 20270 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20271 | version_type=freebsd-$objformat |
| 20272 | case $version_type in |
| 20273 | freebsd-elf*) |
| 20274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20275 | need_version=no |
| 20276 | need_lib_prefix=no |
| 20277 | ;; |
| 20278 | freebsd-*) |
| 20279 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20280 | need_version=yes |
| 20281 | ;; |
| 20282 | esac |
| 20283 | shlibpath_var=LD_LIBRARY_PATH |
| 20284 | case $host_os in |
| 20285 | freebsd2*) |
| 20286 | shlibpath_overrides_runpath=yes |
| 20287 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20288 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20289 | shlibpath_overrides_runpath=yes |
| 20290 | hardcode_into_libs=yes |
| 20291 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20292 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20293 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20294 | shlibpath_overrides_runpath=no |
| 20295 | hardcode_into_libs=yes |
| 20296 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20297 | freebsd*) # from 4.6 on |
| 20298 | shlibpath_overrides_runpath=yes |
| 20299 | hardcode_into_libs=yes |
| 20300 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20301 | esac |
| 20302 | ;; |
| 20303 | |
| 20304 | gnu*) |
| 20305 | version_type=linux |
| 20306 | need_lib_prefix=no |
| 20307 | need_version=no |
| 20308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20309 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20310 | shlibpath_var=LD_LIBRARY_PATH |
| 20311 | hardcode_into_libs=yes |
| 20312 | ;; |
| 20313 | |
| 20314 | hpux9* | hpux10* | hpux11*) |
| 20315 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20316 | # link against other versions. |
| 20317 | version_type=sunos |
| 20318 | need_lib_prefix=no |
| 20319 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20320 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20321 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20322 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20323 | hardcode_into_libs=yes |
| 20324 | dynamic_linker="$host_os dld.so" |
| 20325 | shlibpath_var=LD_LIBRARY_PATH |
| 20326 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20328 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20329 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20330 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20331 | else |
| 20332 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20333 | fi |
| 20334 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20335 | ;; |
| 20336 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20337 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20338 | hardcode_into_libs=yes |
| 20339 | dynamic_linker="$host_os dld.sl" |
| 20340 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20341 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20343 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20344 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20345 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20346 | ;; |
| 20347 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20348 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20349 | dynamic_linker="$host_os dld.sl" |
| 20350 | shlibpath_var=SHLIB_PATH |
| 20351 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20353 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20354 | ;; |
| 20355 | esac |
| 20356 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20357 | postinstall_cmds='chmod 555 $lib' |
| 20358 | ;; |
| 20359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20360 | interix3*) |
| 20361 | version_type=linux |
| 20362 | need_lib_prefix=no |
| 20363 | need_version=no |
| 20364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20366 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20367 | shlibpath_var=LD_LIBRARY_PATH |
| 20368 | shlibpath_overrides_runpath=no |
| 20369 | hardcode_into_libs=yes |
| 20370 | ;; |
| 20371 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20372 | irix5* | irix6* | nonstopux*) |
| 20373 | case $host_os in |
| 20374 | nonstopux*) version_type=nonstopux ;; |
| 20375 | *) |
| 20376 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20377 | version_type=linux |
| 20378 | else |
| 20379 | version_type=irix |
| 20380 | fi ;; |
| 20381 | esac |
| 20382 | need_lib_prefix=no |
| 20383 | need_version=no |
| 20384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20386 | case $host_os in |
| 20387 | irix5* | nonstopux*) |
| 20388 | libsuff= shlibsuff= |
| 20389 | ;; |
| 20390 | *) |
| 20391 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20392 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20393 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20394 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20395 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20396 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20397 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20398 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20399 | esac |
| 20400 | ;; |
| 20401 | esac |
| 20402 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20403 | shlibpath_overrides_runpath=no |
| 20404 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20405 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20406 | hardcode_into_libs=yes |
| 20407 | ;; |
| 20408 | |
| 20409 | # No shared lib support for Linux oldld, aout, or coff. |
| 20410 | linux*oldld* | linux*aout* | linux*coff*) |
| 20411 | dynamic_linker=no |
| 20412 | ;; |
| 20413 | |
| 20414 | # This must be Linux ELF. |
| 20415 | linux*) |
| 20416 | version_type=linux |
| 20417 | need_lib_prefix=no |
| 20418 | need_version=no |
| 20419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20422 | shlibpath_var=LD_LIBRARY_PATH |
| 20423 | shlibpath_overrides_runpath=no |
| 20424 | # This implies no fast_install, which is unacceptable. |
| 20425 | # Some rework will be needed to allow for fast_install |
| 20426 | # before this can be enabled. |
| 20427 | hardcode_into_libs=yes |
| 20428 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20429 | # Append ld.so.conf contents to the search path |
| 20430 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20431 | 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] | 20432 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20433 | fi |
| 20434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20435 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20436 | # powerpc, because MkLinux only supported shared libraries with the |
| 20437 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20438 | # most powerpc-linux boxes support dynamic linking these days and |
| 20439 | # people can always --disable-shared, the test was removed, and we |
| 20440 | # assume the GNU/Linux dynamic linker is in use. |
| 20441 | dynamic_linker='GNU/Linux ld.so' |
| 20442 | ;; |
| 20443 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20444 | knetbsd*-gnu) |
| 20445 | version_type=linux |
| 20446 | need_lib_prefix=no |
| 20447 | need_version=no |
| 20448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20449 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20450 | shlibpath_var=LD_LIBRARY_PATH |
| 20451 | shlibpath_overrides_runpath=no |
| 20452 | hardcode_into_libs=yes |
| 20453 | dynamic_linker='GNU ld.so' |
| 20454 | ;; |
| 20455 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20456 | netbsd*) |
| 20457 | version_type=sunos |
| 20458 | need_lib_prefix=no |
| 20459 | need_version=no |
| 20460 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20463 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20464 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20465 | 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] | 20466 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20467 | dynamic_linker='NetBSD ld.elf_so' |
| 20468 | fi |
| 20469 | shlibpath_var=LD_LIBRARY_PATH |
| 20470 | shlibpath_overrides_runpath=yes |
| 20471 | hardcode_into_libs=yes |
| 20472 | ;; |
| 20473 | |
| 20474 | newsos6) |
| 20475 | version_type=linux |
| 20476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20477 | shlibpath_var=LD_LIBRARY_PATH |
| 20478 | shlibpath_overrides_runpath=yes |
| 20479 | ;; |
| 20480 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20481 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20482 | version_type=linux |
| 20483 | need_lib_prefix=no |
| 20484 | need_version=no |
| 20485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20487 | shlibpath_var=LD_LIBRARY_PATH |
| 20488 | shlibpath_overrides_runpath=yes |
| 20489 | ;; |
| 20490 | |
| 20491 | openbsd*) |
| 20492 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20493 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20494 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20495 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20496 | case $host_os in |
| 20497 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20498 | *) need_version=no ;; |
| 20499 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20501 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20502 | shlibpath_var=LD_LIBRARY_PATH |
| 20503 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20504 | case $host_os in |
| 20505 | openbsd2.[89] | openbsd2.[89].*) |
| 20506 | shlibpath_overrides_runpath=no |
| 20507 | ;; |
| 20508 | *) |
| 20509 | shlibpath_overrides_runpath=yes |
| 20510 | ;; |
| 20511 | esac |
| 20512 | else |
| 20513 | shlibpath_overrides_runpath=yes |
| 20514 | fi |
| 20515 | ;; |
| 20516 | |
| 20517 | os2*) |
| 20518 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20519 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20520 | need_lib_prefix=no |
| 20521 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20522 | dynamic_linker='OS/2 ld.exe' |
| 20523 | shlibpath_var=LIBPATH |
| 20524 | ;; |
| 20525 | |
| 20526 | osf3* | osf4* | osf5*) |
| 20527 | version_type=osf |
| 20528 | need_lib_prefix=no |
| 20529 | need_version=no |
| 20530 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20532 | shlibpath_var=LD_LIBRARY_PATH |
| 20533 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20534 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20535 | ;; |
| 20536 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20537 | solaris*) |
| 20538 | version_type=linux |
| 20539 | need_lib_prefix=no |
| 20540 | need_version=no |
| 20541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20542 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20543 | shlibpath_var=LD_LIBRARY_PATH |
| 20544 | shlibpath_overrides_runpath=yes |
| 20545 | hardcode_into_libs=yes |
| 20546 | # ldd complains unless libraries are executable |
| 20547 | postinstall_cmds='chmod +x $lib' |
| 20548 | ;; |
| 20549 | |
| 20550 | sunos4*) |
| 20551 | version_type=sunos |
| 20552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20553 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20554 | shlibpath_var=LD_LIBRARY_PATH |
| 20555 | shlibpath_overrides_runpath=yes |
| 20556 | if test "$with_gnu_ld" = yes; then |
| 20557 | need_lib_prefix=no |
| 20558 | fi |
| 20559 | need_version=yes |
| 20560 | ;; |
| 20561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20562 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20563 | version_type=linux |
| 20564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20565 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20566 | shlibpath_var=LD_LIBRARY_PATH |
| 20567 | case $host_vendor in |
| 20568 | sni) |
| 20569 | shlibpath_overrides_runpath=no |
| 20570 | need_lib_prefix=no |
| 20571 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20572 | runpath_var=LD_RUN_PATH |
| 20573 | ;; |
| 20574 | siemens) |
| 20575 | need_lib_prefix=no |
| 20576 | ;; |
| 20577 | motorola) |
| 20578 | need_lib_prefix=no |
| 20579 | need_version=no |
| 20580 | shlibpath_overrides_runpath=no |
| 20581 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20582 | ;; |
| 20583 | esac |
| 20584 | ;; |
| 20585 | |
| 20586 | sysv4*MP*) |
| 20587 | if test -d /usr/nec ;then |
| 20588 | version_type=linux |
| 20589 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20590 | soname_spec='$libname${shared_ext}.$major' |
| 20591 | shlibpath_var=LD_LIBRARY_PATH |
| 20592 | fi |
| 20593 | ;; |
| 20594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20595 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20596 | version_type=freebsd-elf |
| 20597 | need_lib_prefix=no |
| 20598 | need_version=no |
| 20599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20601 | shlibpath_var=LD_LIBRARY_PATH |
| 20602 | hardcode_into_libs=yes |
| 20603 | if test "$with_gnu_ld" = yes; then |
| 20604 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20605 | shlibpath_overrides_runpath=no |
| 20606 | else |
| 20607 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20608 | shlibpath_overrides_runpath=yes |
| 20609 | case $host_os in |
| 20610 | sco3.2v5*) |
| 20611 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20612 | ;; |
| 20613 | esac |
| 20614 | fi |
| 20615 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20616 | ;; |
| 20617 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20618 | uts4*) |
| 20619 | version_type=linux |
| 20620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20621 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20622 | shlibpath_var=LD_LIBRARY_PATH |
| 20623 | ;; |
| 20624 | |
| 20625 | *) |
| 20626 | dynamic_linker=no |
| 20627 | ;; |
| 20628 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20629 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20630 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20631 | test "$dynamic_linker" = no && can_build_shared=no |
| 20632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20633 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20634 | if test "$GCC" = yes; then |
| 20635 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20636 | fi |
| 20637 | |
| 20638 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20639 | 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] | 20640 | hardcode_action_CXX= |
| 20641 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20642 | test -n "$runpath_var_CXX" || \ |
| 20643 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20644 | |
| 20645 | # We can hardcode non-existant directories. |
| 20646 | if test "$hardcode_direct_CXX" != no && |
| 20647 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20648 | # have to relink, otherwise we might link with an installed library |
| 20649 | # when we should be linking with a yet-to-be-installed one |
| 20650 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20651 | test "$hardcode_minus_L_CXX" != no; then |
| 20652 | # Linking always hardcodes the temporary library directory. |
| 20653 | hardcode_action_CXX=relink |
| 20654 | else |
| 20655 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20656 | hardcode_action_CXX=immediate |
| 20657 | fi |
| 20658 | else |
| 20659 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20660 | # directories. |
| 20661 | hardcode_action_CXX=unsupported |
| 20662 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20663 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20664 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20665 | |
| 20666 | if test "$hardcode_action_CXX" = relink; then |
| 20667 | # Fast installation is not supported |
| 20668 | enable_fast_install=no |
| 20669 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20670 | test "$enable_shared" = no; then |
| 20671 | # Fast installation is not necessary |
| 20672 | enable_fast_install=needless |
| 20673 | fi |
| 20674 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20675 | |
| 20676 | # The else clause should only fire when bootstrapping the |
| 20677 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20678 | # with your package, and you will get complaints that there are |
| 20679 | # no rules to generate ltmain.sh. |
| 20680 | if test -f "$ltmain"; then |
| 20681 | # See if we are running on zsh, and set the options which allow our commands through |
| 20682 | # without removal of \ escapes. |
| 20683 | if test -n "${ZSH_VERSION+set}" ; then |
| 20684 | setopt NO_GLOB_SUBST |
| 20685 | fi |
| 20686 | # Now quote all the things that may contain metacharacters while being |
| 20687 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20688 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20689 | 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] | 20690 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20691 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20692 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20693 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20694 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20695 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20696 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20697 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20698 | compiler_CXX \ |
| 20699 | CC_CXX \ |
| 20700 | LD_CXX \ |
| 20701 | lt_prog_compiler_wl_CXX \ |
| 20702 | lt_prog_compiler_pic_CXX \ |
| 20703 | lt_prog_compiler_static_CXX \ |
| 20704 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20705 | export_dynamic_flag_spec_CXX \ |
| 20706 | thread_safe_flag_spec_CXX \ |
| 20707 | whole_archive_flag_spec_CXX \ |
| 20708 | enable_shared_with_static_runtimes_CXX \ |
| 20709 | old_archive_cmds_CXX \ |
| 20710 | old_archive_from_new_cmds_CXX \ |
| 20711 | predep_objects_CXX \ |
| 20712 | postdep_objects_CXX \ |
| 20713 | predeps_CXX \ |
| 20714 | postdeps_CXX \ |
| 20715 | compiler_lib_search_path_CXX \ |
| 20716 | archive_cmds_CXX \ |
| 20717 | archive_expsym_cmds_CXX \ |
| 20718 | postinstall_cmds_CXX \ |
| 20719 | postuninstall_cmds_CXX \ |
| 20720 | old_archive_from_expsyms_cmds_CXX \ |
| 20721 | allow_undefined_flag_CXX \ |
| 20722 | no_undefined_flag_CXX \ |
| 20723 | export_symbols_cmds_CXX \ |
| 20724 | hardcode_libdir_flag_spec_CXX \ |
| 20725 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20726 | hardcode_libdir_separator_CXX \ |
| 20727 | hardcode_automatic_CXX \ |
| 20728 | module_cmds_CXX \ |
| 20729 | module_expsym_cmds_CXX \ |
| 20730 | lt_cv_prog_compiler_c_o_CXX \ |
| 20731 | exclude_expsyms_CXX \ |
| 20732 | include_expsyms_CXX; do |
| 20733 | |
| 20734 | case $var in |
| 20735 | old_archive_cmds_CXX | \ |
| 20736 | old_archive_from_new_cmds_CXX | \ |
| 20737 | archive_cmds_CXX | \ |
| 20738 | archive_expsym_cmds_CXX | \ |
| 20739 | module_cmds_CXX | \ |
| 20740 | module_expsym_cmds_CXX | \ |
| 20741 | old_archive_from_expsyms_cmds_CXX | \ |
| 20742 | export_symbols_cmds_CXX | \ |
| 20743 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20744 | postinstall_cmds | postuninstall_cmds | \ |
| 20745 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20746 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20747 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20748 | 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] | 20749 | ;; |
| 20750 | *) |
| 20751 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20752 | ;; |
| 20753 | esac |
| 20754 | done |
| 20755 | |
| 20756 | case $lt_echo in |
| 20757 | *'\$0 --fallback-echo"') |
| 20758 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20759 | ;; |
| 20760 | esac |
| 20761 | |
| 20762 | cfgfile="$ofile" |
| 20763 | |
| 20764 | cat <<__EOF__ >> "$cfgfile" |
| 20765 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20766 | |
| 20767 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20768 | |
| 20769 | # Shell to use when invoking shell scripts. |
| 20770 | SHELL=$lt_SHELL |
| 20771 | |
| 20772 | # Whether or not to build shared libraries. |
| 20773 | build_libtool_libs=$enable_shared |
| 20774 | |
| 20775 | # Whether or not to build static libraries. |
| 20776 | build_old_libs=$enable_static |
| 20777 | |
| 20778 | # Whether or not to add -lc for building shared libraries. |
| 20779 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20780 | |
| 20781 | # Whether or not to disallow shared libs when runtime libs are static |
| 20782 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20783 | |
| 20784 | # Whether or not to optimize for fast installation. |
| 20785 | fast_install=$enable_fast_install |
| 20786 | |
| 20787 | # The host system. |
| 20788 | host_alias=$host_alias |
| 20789 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20790 | host_os=$host_os |
| 20791 | |
| 20792 | # The build system. |
| 20793 | build_alias=$build_alias |
| 20794 | build=$build |
| 20795 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20796 | |
| 20797 | # An echo program that does not interpret backslashes. |
| 20798 | echo=$lt_echo |
| 20799 | |
| 20800 | # The archiver. |
| 20801 | AR=$lt_AR |
| 20802 | AR_FLAGS=$lt_AR_FLAGS |
| 20803 | |
| 20804 | # A C compiler. |
| 20805 | LTCC=$lt_LTCC |
| 20806 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20807 | # LTCC compiler flags. |
| 20808 | LTCFLAGS=$lt_LTCFLAGS |
| 20809 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20810 | # A language-specific compiler. |
| 20811 | CC=$lt_compiler_CXX |
| 20812 | |
| 20813 | # Is the compiler the GNU C compiler? |
| 20814 | with_gcc=$GCC_CXX |
| 20815 | |
| 20816 | # An ERE matcher. |
| 20817 | EGREP=$lt_EGREP |
| 20818 | |
| 20819 | # The linker used to build libraries. |
| 20820 | LD=$lt_LD_CXX |
| 20821 | |
| 20822 | # Whether we need hard or soft links. |
| 20823 | LN_S=$lt_LN_S |
| 20824 | |
| 20825 | # A BSD-compatible nm program. |
| 20826 | NM=$lt_NM |
| 20827 | |
| 20828 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20829 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20830 | |
| 20831 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20832 | MAGIC_CMD=$MAGIC_CMD |
| 20833 | |
| 20834 | # Used on cygwin: DLL creation program. |
| 20835 | DLLTOOL="$DLLTOOL" |
| 20836 | |
| 20837 | # Used on cygwin: object dumper. |
| 20838 | OBJDUMP="$OBJDUMP" |
| 20839 | |
| 20840 | # Used on cygwin: assembler. |
| 20841 | AS="$AS" |
| 20842 | |
| 20843 | # The name of the directory that contains temporary libtool files. |
| 20844 | objdir=$objdir |
| 20845 | |
| 20846 | # How to create reloadable object files. |
| 20847 | reload_flag=$lt_reload_flag |
| 20848 | reload_cmds=$lt_reload_cmds |
| 20849 | |
| 20850 | # How to pass a linker flag through the compiler. |
| 20851 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20852 | |
| 20853 | # Object file suffix (normally "o"). |
| 20854 | objext="$ac_objext" |
| 20855 | |
| 20856 | # Old archive suffix (normally "a"). |
| 20857 | libext="$libext" |
| 20858 | |
| 20859 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20860 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20861 | |
| 20862 | # Executable file suffix (normally ""). |
| 20863 | exeext="$exeext" |
| 20864 | |
| 20865 | # Additional compiler flags for building library objects. |
| 20866 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20867 | pic_mode=$pic_mode |
| 20868 | |
| 20869 | # What is the maximum length of a command? |
| 20870 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20871 | |
| 20872 | # Does compiler simultaneously support -c and -o options? |
| 20873 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20875 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20876 | need_locks=$lt_need_locks |
| 20877 | |
| 20878 | # Do we need the lib prefix for modules? |
| 20879 | need_lib_prefix=$need_lib_prefix |
| 20880 | |
| 20881 | # Do we need a version for libraries? |
| 20882 | need_version=$need_version |
| 20883 | |
| 20884 | # Whether dlopen is supported. |
| 20885 | dlopen_support=$enable_dlopen |
| 20886 | |
| 20887 | # Whether dlopen of programs is supported. |
| 20888 | dlopen_self=$enable_dlopen_self |
| 20889 | |
| 20890 | # Whether dlopen of statically linked programs is supported. |
| 20891 | dlopen_self_static=$enable_dlopen_self_static |
| 20892 | |
| 20893 | # Compiler flag to prevent dynamic linking. |
| 20894 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20895 | |
| 20896 | # Compiler flag to turn off builtin functions. |
| 20897 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20898 | |
| 20899 | # Compiler flag to allow reflexive dlopens. |
| 20900 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20901 | |
| 20902 | # Compiler flag to generate shared objects directly from archives. |
| 20903 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20904 | |
| 20905 | # Compiler flag to generate thread-safe objects. |
| 20906 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20907 | |
| 20908 | # Library versioning type. |
| 20909 | version_type=$version_type |
| 20910 | |
| 20911 | # Format of library name prefix. |
| 20912 | libname_spec=$lt_libname_spec |
| 20913 | |
| 20914 | # List of archive names. First name is the real one, the rest are links. |
| 20915 | # The last name is the one that the linker finds with -lNAME. |
| 20916 | library_names_spec=$lt_library_names_spec |
| 20917 | |
| 20918 | # The coded name of the library, if different from the real name. |
| 20919 | soname_spec=$lt_soname_spec |
| 20920 | |
| 20921 | # Commands used to build and install an old-style archive. |
| 20922 | RANLIB=$lt_RANLIB |
| 20923 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20924 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20925 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20926 | |
| 20927 | # Create an old-style archive from a shared archive. |
| 20928 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20929 | |
| 20930 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20931 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20932 | |
| 20933 | # Commands used to build and install a shared archive. |
| 20934 | archive_cmds=$lt_archive_cmds_CXX |
| 20935 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20936 | postinstall_cmds=$lt_postinstall_cmds |
| 20937 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20938 | |
| 20939 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20940 | module_cmds=$lt_module_cmds_CXX |
| 20941 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20942 | |
| 20943 | # Commands to strip libraries. |
| 20944 | old_striplib=$lt_old_striplib |
| 20945 | striplib=$lt_striplib |
| 20946 | |
| 20947 | # Dependencies to place before the objects being linked to create a |
| 20948 | # shared library. |
| 20949 | predep_objects=$lt_predep_objects_CXX |
| 20950 | |
| 20951 | # Dependencies to place after the objects being linked to create a |
| 20952 | # shared library. |
| 20953 | postdep_objects=$lt_postdep_objects_CXX |
| 20954 | |
| 20955 | # Dependencies to place before the objects being linked to create a |
| 20956 | # shared library. |
| 20957 | predeps=$lt_predeps_CXX |
| 20958 | |
| 20959 | # Dependencies to place after the objects being linked to create a |
| 20960 | # shared library. |
| 20961 | postdeps=$lt_postdeps_CXX |
| 20962 | |
| 20963 | # The library search path used internally by the compiler when linking |
| 20964 | # a shared library. |
| 20965 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20966 | |
| 20967 | # Method to check whether dependent libraries are shared objects. |
| 20968 | deplibs_check_method=$lt_deplibs_check_method |
| 20969 | |
| 20970 | # Command to use when deplibs_check_method == file_magic. |
| 20971 | file_magic_cmd=$lt_file_magic_cmd |
| 20972 | |
| 20973 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20974 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20975 | |
| 20976 | # Flag that forces no undefined symbols. |
| 20977 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20978 | |
| 20979 | # Commands used to finish a libtool library installation in a directory. |
| 20980 | finish_cmds=$lt_finish_cmds |
| 20981 | |
| 20982 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20983 | finish_eval=$lt_finish_eval |
| 20984 | |
| 20985 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20986 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20987 | |
| 20988 | # Transform the output of nm in a proper C declaration |
| 20989 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20990 | |
| 20991 | # Transform the output of nm in a C name address pair |
| 20992 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20993 | |
| 20994 | # This is the shared library runtime path variable. |
| 20995 | runpath_var=$runpath_var |
| 20996 | |
| 20997 | # This is the shared library path variable. |
| 20998 | shlibpath_var=$shlibpath_var |
| 20999 | |
| 21000 | # Is shlibpath searched before the hard-coded library search path? |
| 21001 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21002 | |
| 21003 | # How to hardcode a shared library path into an executable. |
| 21004 | hardcode_action=$hardcode_action_CXX |
| 21005 | |
| 21006 | # Whether we should hardcode library paths into libraries. |
| 21007 | hardcode_into_libs=$hardcode_into_libs |
| 21008 | |
| 21009 | # Flag to hardcode \$libdir into a binary during linking. |
| 21010 | # This must work even if \$libdir does not exist. |
| 21011 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21012 | |
| 21013 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21014 | # a binary during linking. This must work even if \$libdir does |
| 21015 | # not exist. |
| 21016 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21017 | |
| 21018 | # Whether we need a single -rpath flag with a separated argument. |
| 21019 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21020 | |
| 21021 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21022 | # resulting binary. |
| 21023 | hardcode_direct=$hardcode_direct_CXX |
| 21024 | |
| 21025 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21026 | # resulting binary. |
| 21027 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21028 | |
| 21029 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21030 | # the resulting binary. |
| 21031 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21032 | |
| 21033 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21034 | # and all subsequent libraries and executables linked against it. |
| 21035 | hardcode_automatic=$hardcode_automatic_CXX |
| 21036 | |
| 21037 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21038 | # restored at relink time. |
| 21039 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21040 | |
| 21041 | # Whether libtool must link a program against all its dependency libraries. |
| 21042 | link_all_deplibs=$link_all_deplibs_CXX |
| 21043 | |
| 21044 | # Compile-time system search path for libraries |
| 21045 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21046 | |
| 21047 | # Run-time system search path for libraries |
| 21048 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21049 | |
| 21050 | # Fix the shell variable \$srcfile for the compiler. |
| 21051 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21052 | |
| 21053 | # Set to yes if exported symbols are required. |
| 21054 | always_export_symbols=$always_export_symbols_CXX |
| 21055 | |
| 21056 | # The commands to list exported symbols. |
| 21057 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21058 | |
| 21059 | # The commands to extract the exported symbol list from a shared archive. |
| 21060 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21061 | |
| 21062 | # Symbols that should not be listed in the preloaded symbols. |
| 21063 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21064 | |
| 21065 | # Symbols that must always be exported. |
| 21066 | include_expsyms=$lt_include_expsyms_CXX |
| 21067 | |
| 21068 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21069 | |
| 21070 | __EOF__ |
| 21071 | |
| 21072 | |
| 21073 | else |
| 21074 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21075 | # `config.status --recheck' to rerun these tests and create the |
| 21076 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21077 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21078 | if test -f "$ltmain_in"; then |
| 21079 | test -f Makefile && make "$ltmain" |
| 21080 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21081 | fi |
| 21082 | |
| 21083 | |
| 21084 | ac_ext=c |
| 21085 | ac_cpp='$CPP $CPPFLAGS' |
| 21086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21089 | |
| 21090 | CC=$lt_save_CC |
| 21091 | LDCXX=$LD |
| 21092 | LD=$lt_save_LD |
| 21093 | GCC=$lt_save_GCC |
| 21094 | with_gnu_ldcxx=$with_gnu_ld |
| 21095 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21096 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21097 | lt_cv_path_LD=$lt_save_path_LD |
| 21098 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21099 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21100 | |
| 21101 | else |
| 21102 | tagname="" |
| 21103 | fi |
| 21104 | ;; |
| 21105 | |
| 21106 | F77) |
| 21107 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21108 | |
| 21109 | ac_ext=f |
| 21110 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21111 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21112 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21113 | |
| 21114 | |
| 21115 | archive_cmds_need_lc_F77=no |
| 21116 | allow_undefined_flag_F77= |
| 21117 | always_export_symbols_F77=no |
| 21118 | archive_expsym_cmds_F77= |
| 21119 | export_dynamic_flag_spec_F77= |
| 21120 | hardcode_direct_F77=no |
| 21121 | hardcode_libdir_flag_spec_F77= |
| 21122 | hardcode_libdir_flag_spec_ld_F77= |
| 21123 | hardcode_libdir_separator_F77= |
| 21124 | hardcode_minus_L_F77=no |
| 21125 | hardcode_automatic_F77=no |
| 21126 | module_cmds_F77= |
| 21127 | module_expsym_cmds_F77= |
| 21128 | link_all_deplibs_F77=unknown |
| 21129 | old_archive_cmds_F77=$old_archive_cmds |
| 21130 | no_undefined_flag_F77= |
| 21131 | whole_archive_flag_spec_F77= |
| 21132 | enable_shared_with_static_runtimes_F77=no |
| 21133 | |
| 21134 | # Source file extension for f77 test sources. |
| 21135 | ac_ext=f |
| 21136 | |
| 21137 | # Object file extension for compiled f77 test sources. |
| 21138 | objext=o |
| 21139 | objext_F77=$objext |
| 21140 | |
| 21141 | # Code to be used in simple compile tests |
| 21142 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21143 | |
| 21144 | # Code to be used in simple link tests |
| 21145 | lt_simple_link_test_code=" program t\n end\n" |
| 21146 | |
| 21147 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21148 | |
| 21149 | # If no C compiler was specified, use CC. |
| 21150 | LTCC=${LTCC-"$CC"} |
| 21151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21152 | # If no C compiler flags were specified, use CFLAGS. |
| 21153 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21154 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21155 | # Allow CC to be a program name with arguments. |
| 21156 | compiler=$CC |
| 21157 | |
| 21158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21159 | # save warnings/boilerplate of simple test code |
| 21160 | ac_outfile=conftest.$ac_objext |
| 21161 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21162 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21163 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21164 | $rm conftest* |
| 21165 | |
| 21166 | ac_outfile=conftest.$ac_objext |
| 21167 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21168 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21169 | _lt_linker_boilerplate=`cat conftest.err` |
| 21170 | $rm conftest* |
| 21171 | |
| 21172 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21173 | # Allow CC to be a program name with arguments. |
| 21174 | lt_save_CC="$CC" |
| 21175 | CC=${F77-"f77"} |
| 21176 | compiler=$CC |
| 21177 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21178 | for cc_temp in $compiler""; do |
| 21179 | case $cc_temp in |
| 21180 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21181 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21182 | \-*) ;; |
| 21183 | *) break;; |
| 21184 | esac |
| 21185 | done |
| 21186 | 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] | 21187 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21189 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21190 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21191 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21192 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21193 | |
| 21194 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21195 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21196 | test "$can_build_shared" = "no" && enable_shared=no |
| 21197 | |
| 21198 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21199 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21200 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21201 | aix3*) |
| 21202 | test "$enable_shared" = yes && enable_static=no |
| 21203 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21204 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21205 | postinstall_cmds='$RANLIB $lib' |
| 21206 | fi |
| 21207 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21208 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21209 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21210 | test "$enable_shared" = yes && enable_static=no |
| 21211 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21212 | ;; |
| 21213 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21214 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21215 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21217 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21218 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21219 | # Make sure either enable_shared or enable_static is yes. |
| 21220 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21221 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21222 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21223 | |
| 21224 | GCC_F77="$G77" |
| 21225 | LD_F77="$LD" |
| 21226 | |
| 21227 | lt_prog_compiler_wl_F77= |
| 21228 | lt_prog_compiler_pic_F77= |
| 21229 | lt_prog_compiler_static_F77= |
| 21230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21231 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21232 | 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] | 21233 | |
| 21234 | if test "$GCC" = yes; then |
| 21235 | lt_prog_compiler_wl_F77='-Wl,' |
| 21236 | lt_prog_compiler_static_F77='-static' |
| 21237 | |
| 21238 | case $host_os in |
| 21239 | aix*) |
| 21240 | # All AIX code is PIC. |
| 21241 | if test "$host_cpu" = ia64; then |
| 21242 | # AIX 5 now supports IA64 processor |
| 21243 | lt_prog_compiler_static_F77='-Bstatic' |
| 21244 | fi |
| 21245 | ;; |
| 21246 | |
| 21247 | amigaos*) |
| 21248 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21249 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21250 | # like `-m68040'. |
| 21251 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21252 | ;; |
| 21253 | |
| 21254 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21255 | # PIC is the default for these OSes. |
| 21256 | ;; |
| 21257 | |
| 21258 | mingw* | pw32* | os2*) |
| 21259 | # This hack is so that the source file can tell whether it is being |
| 21260 | # built for inclusion in a dll (and should export symbols for example). |
| 21261 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21262 | ;; |
| 21263 | |
| 21264 | darwin* | rhapsody*) |
| 21265 | # PIC is the default on this platform |
| 21266 | # Common symbols not allowed in MH_DYLIB files |
| 21267 | lt_prog_compiler_pic_F77='-fno-common' |
| 21268 | ;; |
| 21269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21270 | interix3*) |
| 21271 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21272 | # Instead, we relocate shared libraries at runtime. |
| 21273 | ;; |
| 21274 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21275 | msdosdjgpp*) |
| 21276 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21277 | # on systems that don't support them. |
| 21278 | lt_prog_compiler_can_build_shared_F77=no |
| 21279 | enable_shared=no |
| 21280 | ;; |
| 21281 | |
| 21282 | sysv4*MP*) |
| 21283 | if test -d /usr/nec; then |
| 21284 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21285 | fi |
| 21286 | ;; |
| 21287 | |
| 21288 | hpux*) |
| 21289 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21290 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21291 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21292 | hppa*64*|ia64*) |
| 21293 | # +Z the default |
| 21294 | ;; |
| 21295 | *) |
| 21296 | lt_prog_compiler_pic_F77='-fPIC' |
| 21297 | ;; |
| 21298 | esac |
| 21299 | ;; |
| 21300 | |
| 21301 | *) |
| 21302 | lt_prog_compiler_pic_F77='-fPIC' |
| 21303 | ;; |
| 21304 | esac |
| 21305 | else |
| 21306 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21307 | case $host_os in |
| 21308 | aix*) |
| 21309 | lt_prog_compiler_wl_F77='-Wl,' |
| 21310 | if test "$host_cpu" = ia64; then |
| 21311 | # AIX 5 now supports IA64 processor |
| 21312 | lt_prog_compiler_static_F77='-Bstatic' |
| 21313 | else |
| 21314 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21315 | fi |
| 21316 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21317 | darwin*) |
| 21318 | # PIC is the default on this platform |
| 21319 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21320 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21321 | xlc*) |
| 21322 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21323 | lt_prog_compiler_wl_F77='-Wl,' |
| 21324 | ;; |
| 21325 | esac |
| 21326 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21327 | |
| 21328 | mingw* | pw32* | os2*) |
| 21329 | # This hack is so that the source file can tell whether it is being |
| 21330 | # built for inclusion in a dll (and should export symbols for example). |
| 21331 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21332 | ;; |
| 21333 | |
| 21334 | hpux9* | hpux10* | hpux11*) |
| 21335 | lt_prog_compiler_wl_F77='-Wl,' |
| 21336 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21337 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21338 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21339 | hppa*64*|ia64*) |
| 21340 | # +Z the default |
| 21341 | ;; |
| 21342 | *) |
| 21343 | lt_prog_compiler_pic_F77='+Z' |
| 21344 | ;; |
| 21345 | esac |
| 21346 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21347 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21348 | ;; |
| 21349 | |
| 21350 | irix5* | irix6* | nonstopux*) |
| 21351 | lt_prog_compiler_wl_F77='-Wl,' |
| 21352 | # PIC (with -KPIC) is the default. |
| 21353 | lt_prog_compiler_static_F77='-non_shared' |
| 21354 | ;; |
| 21355 | |
| 21356 | newsos6) |
| 21357 | lt_prog_compiler_pic_F77='-KPIC' |
| 21358 | lt_prog_compiler_static_F77='-Bstatic' |
| 21359 | ;; |
| 21360 | |
| 21361 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21362 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21363 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21364 | lt_prog_compiler_wl_F77='-Wl,' |
| 21365 | lt_prog_compiler_pic_F77='-KPIC' |
| 21366 | lt_prog_compiler_static_F77='-static' |
| 21367 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21368 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21369 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21370 | # which looks to be a dead project) |
| 21371 | lt_prog_compiler_wl_F77='-Wl,' |
| 21372 | lt_prog_compiler_pic_F77='-fpic' |
| 21373 | lt_prog_compiler_static_F77='-Bstatic' |
| 21374 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21375 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21376 | lt_prog_compiler_wl_F77='-Wl,' |
| 21377 | # All Alpha code is PIC. |
| 21378 | lt_prog_compiler_static_F77='-non_shared' |
| 21379 | ;; |
| 21380 | esac |
| 21381 | ;; |
| 21382 | |
| 21383 | osf3* | osf4* | osf5*) |
| 21384 | lt_prog_compiler_wl_F77='-Wl,' |
| 21385 | # All OSF/1 code is PIC. |
| 21386 | lt_prog_compiler_static_F77='-non_shared' |
| 21387 | ;; |
| 21388 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21389 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21390 | lt_prog_compiler_pic_F77='-KPIC' |
| 21391 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21392 | case $cc_basename in |
| 21393 | f77* | f90* | f95*) |
| 21394 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21395 | *) |
| 21396 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21397 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21398 | ;; |
| 21399 | |
| 21400 | sunos4*) |
| 21401 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21402 | lt_prog_compiler_pic_F77='-PIC' |
| 21403 | lt_prog_compiler_static_F77='-Bstatic' |
| 21404 | ;; |
| 21405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21407 | lt_prog_compiler_wl_F77='-Wl,' |
| 21408 | lt_prog_compiler_pic_F77='-KPIC' |
| 21409 | lt_prog_compiler_static_F77='-Bstatic' |
| 21410 | ;; |
| 21411 | |
| 21412 | sysv4*MP*) |
| 21413 | if test -d /usr/nec ;then |
| 21414 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21415 | lt_prog_compiler_static_F77='-Bstatic' |
| 21416 | fi |
| 21417 | ;; |
| 21418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21419 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21420 | lt_prog_compiler_wl_F77='-Wl,' |
| 21421 | lt_prog_compiler_pic_F77='-KPIC' |
| 21422 | lt_prog_compiler_static_F77='-Bstatic' |
| 21423 | ;; |
| 21424 | |
| 21425 | unicos*) |
| 21426 | lt_prog_compiler_wl_F77='-Wl,' |
| 21427 | lt_prog_compiler_can_build_shared_F77=no |
| 21428 | ;; |
| 21429 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21430 | uts4*) |
| 21431 | lt_prog_compiler_pic_F77='-pic' |
| 21432 | lt_prog_compiler_static_F77='-Bstatic' |
| 21433 | ;; |
| 21434 | |
| 21435 | *) |
| 21436 | lt_prog_compiler_can_build_shared_F77=no |
| 21437 | ;; |
| 21438 | esac |
| 21439 | fi |
| 21440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21441 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21442 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21443 | |
| 21444 | # |
| 21445 | # Check to make sure the PIC flag actually works. |
| 21446 | # |
| 21447 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21449 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21450 | 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] | 21451 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21453 | else |
| 21454 | lt_prog_compiler_pic_works_F77=no |
| 21455 | ac_outfile=conftest.$ac_objext |
| 21456 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21457 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21458 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21459 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21460 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21461 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21462 | # The option is referenced via a variable to avoid confusing sed. |
| 21463 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21464 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21465 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21466 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 21467 | (eval echo "\"\$as_me:21462: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21468 | (eval "$lt_compile" 2>conftest.err) |
| 21469 | ac_status=$? |
| 21470 | cat conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 21471 | echo "$as_me:21466: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21472 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21473 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21474 | # So say no if there are warnings other than the usual output. |
| 21475 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21476 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21477 | 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] | 21478 | lt_prog_compiler_pic_works_F77=yes |
| 21479 | fi |
| 21480 | fi |
| 21481 | $rm conftest* |
| 21482 | |
| 21483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21484 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21485 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21486 | |
| 21487 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21488 | case $lt_prog_compiler_pic_F77 in |
| 21489 | "" | " "*) ;; |
| 21490 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21491 | esac |
| 21492 | else |
| 21493 | lt_prog_compiler_pic_F77= |
| 21494 | lt_prog_compiler_can_build_shared_F77=no |
| 21495 | fi |
| 21496 | |
| 21497 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21498 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21499 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21500 | *djgpp*) |
| 21501 | lt_prog_compiler_pic_F77= |
| 21502 | ;; |
| 21503 | *) |
| 21504 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21505 | ;; |
| 21506 | esac |
| 21507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21508 | # |
| 21509 | # Check to make sure the static flag actually works. |
| 21510 | # |
| 21511 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21512 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21513 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21514 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21516 | else |
| 21517 | lt_prog_compiler_static_works_F77=no |
| 21518 | save_LDFLAGS="$LDFLAGS" |
| 21519 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21520 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21521 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21522 | # The linker can only warn and ignore the option if not recognized |
| 21523 | # So say no if there are warnings |
| 21524 | if test -s conftest.err; then |
| 21525 | # Append any errors to the config.log. |
| 21526 | cat conftest.err 1>&5 |
| 21527 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21528 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21529 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21530 | lt_prog_compiler_static_works_F77=yes |
| 21531 | fi |
| 21532 | else |
| 21533 | lt_prog_compiler_static_works_F77=yes |
| 21534 | fi |
| 21535 | fi |
| 21536 | $rm conftest* |
| 21537 | LDFLAGS="$save_LDFLAGS" |
| 21538 | |
| 21539 | fi |
| 21540 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21541 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21542 | |
| 21543 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21544 | : |
| 21545 | else |
| 21546 | lt_prog_compiler_static_F77= |
| 21547 | fi |
| 21548 | |
| 21549 | |
| 21550 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21551 | 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] | 21552 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21554 | else |
| 21555 | lt_cv_prog_compiler_c_o_F77=no |
| 21556 | $rm -r conftest 2>/dev/null |
| 21557 | mkdir conftest |
| 21558 | cd conftest |
| 21559 | mkdir out |
| 21560 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21561 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21562 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21563 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21564 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21565 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21566 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21567 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21569 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21570 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 21571 | (eval echo "\"\$as_me:21566: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21572 | (eval "$lt_compile" 2>out/conftest.err) |
| 21573 | ac_status=$? |
| 21574 | cat out/conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 21575 | echo "$as_me:21570: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21576 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21577 | then |
| 21578 | # The compiler can only warn and ignore the option if not recognized |
| 21579 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21580 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21581 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21582 | 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] | 21583 | lt_cv_prog_compiler_c_o_F77=yes |
| 21584 | fi |
| 21585 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21586 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21587 | $rm conftest* |
| 21588 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21589 | # template instantiation |
| 21590 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21591 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21592 | cd .. |
| 21593 | rmdir conftest |
| 21594 | $rm conftest* |
| 21595 | |
| 21596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21597 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21598 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21599 | |
| 21600 | |
| 21601 | hard_links="nottested" |
| 21602 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21603 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21604 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21605 | 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] | 21606 | hard_links=yes |
| 21607 | $rm conftest* |
| 21608 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21609 | touch conftest.a |
| 21610 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21611 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21612 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21613 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21614 | if test "$hard_links" = no; then |
| 21615 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21616 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21617 | need_locks=warn |
| 21618 | fi |
| 21619 | else |
| 21620 | need_locks=no |
| 21621 | fi |
| 21622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21623 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21624 | 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] | 21625 | |
| 21626 | runpath_var= |
| 21627 | allow_undefined_flag_F77= |
| 21628 | enable_shared_with_static_runtimes_F77=no |
| 21629 | archive_cmds_F77= |
| 21630 | archive_expsym_cmds_F77= |
| 21631 | old_archive_From_new_cmds_F77= |
| 21632 | old_archive_from_expsyms_cmds_F77= |
| 21633 | export_dynamic_flag_spec_F77= |
| 21634 | whole_archive_flag_spec_F77= |
| 21635 | thread_safe_flag_spec_F77= |
| 21636 | hardcode_libdir_flag_spec_F77= |
| 21637 | hardcode_libdir_flag_spec_ld_F77= |
| 21638 | hardcode_libdir_separator_F77= |
| 21639 | hardcode_direct_F77=no |
| 21640 | hardcode_minus_L_F77=no |
| 21641 | hardcode_shlibpath_var_F77=unsupported |
| 21642 | link_all_deplibs_F77=unknown |
| 21643 | hardcode_automatic_F77=no |
| 21644 | module_cmds_F77= |
| 21645 | module_expsym_cmds_F77= |
| 21646 | always_export_symbols_F77=no |
| 21647 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21648 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21649 | # included in the symbol list |
| 21650 | include_expsyms_F77= |
| 21651 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21652 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21653 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21654 | # as well as any symbol that contains `d'. |
| 21655 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21656 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21657 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21658 | # the symbol is explicitly referenced. Since portable code cannot |
| 21659 | # rely on this symbol name, it's probably fine to never include it in |
| 21660 | # preloaded symbol tables. |
| 21661 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21662 | # Just being paranoid about ensuring that cc_basename is set. |
| 21663 | for cc_temp in $compiler""; do |
| 21664 | case $cc_temp in |
| 21665 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21666 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21667 | \-*) ;; |
| 21668 | *) break;; |
| 21669 | esac |
| 21670 | done |
| 21671 | 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] | 21672 | |
| 21673 | case $host_os in |
| 21674 | cygwin* | mingw* | pw32*) |
| 21675 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21676 | # When not using gcc, we currently assume that we are using |
| 21677 | # Microsoft Visual C++. |
| 21678 | if test "$GCC" != yes; then |
| 21679 | with_gnu_ld=no |
| 21680 | fi |
| 21681 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21682 | interix*) |
| 21683 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21684 | with_gnu_ld=yes |
| 21685 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21686 | openbsd*) |
| 21687 | with_gnu_ld=no |
| 21688 | ;; |
| 21689 | esac |
| 21690 | |
| 21691 | ld_shlibs_F77=yes |
| 21692 | if test "$with_gnu_ld" = yes; then |
| 21693 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21694 | wlarc='${wl}' |
| 21695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21696 | # Set some defaults for GNU ld with shared library support. These |
| 21697 | # are reset later if shared libraries are not supported. Putting them |
| 21698 | # here allows them to be overridden if necessary. |
| 21699 | runpath_var=LD_RUN_PATH |
| 21700 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21701 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21702 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21703 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21704 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21705 | else |
| 21706 | whole_archive_flag_spec_F77= |
| 21707 | fi |
| 21708 | supports_anon_versioning=no |
| 21709 | case `$LD -v 2>/dev/null` in |
| 21710 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21711 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21712 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21713 | *\ 2.11.*) ;; # other 2.11 versions |
| 21714 | *) supports_anon_versioning=yes ;; |
| 21715 | esac |
| 21716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21717 | # See if GNU ld supports shared libraries. |
| 21718 | case $host_os in |
| 21719 | aix3* | aix4* | aix5*) |
| 21720 | # On AIX/PPC, the GNU linker is very broken |
| 21721 | if test "$host_cpu" != ia64; then |
| 21722 | ld_shlibs_F77=no |
| 21723 | cat <<EOF 1>&2 |
| 21724 | |
| 21725 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21726 | *** to be unable to reliably create shared libraries on AIX. |
| 21727 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21728 | *** really care for shared libraries, you may want to modify your PATH |
| 21729 | *** so that a non-GNU linker is found, and then restart. |
| 21730 | |
| 21731 | EOF |
| 21732 | fi |
| 21733 | ;; |
| 21734 | |
| 21735 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21736 | 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] | 21737 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21738 | hardcode_minus_L_F77=yes |
| 21739 | |
| 21740 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21741 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21742 | # to version 4, is to share data among multiple programs linked |
| 21743 | # with the same dynamic library. Since this doesn't match the |
| 21744 | # behavior of shared libraries on other platforms, we can't use |
| 21745 | # them. |
| 21746 | ld_shlibs_F77=no |
| 21747 | ;; |
| 21748 | |
| 21749 | beos*) |
| 21750 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21751 | allow_undefined_flag_F77=unsupported |
| 21752 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21753 | # support --undefined. This deserves some investigation. FIXME |
| 21754 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21755 | else |
| 21756 | ld_shlibs_F77=no |
| 21757 | fi |
| 21758 | ;; |
| 21759 | |
| 21760 | cygwin* | mingw* | pw32*) |
| 21761 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21762 | # as there is no search path for DLLs. |
| 21763 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21764 | allow_undefined_flag_F77=unsupported |
| 21765 | always_export_symbols_F77=no |
| 21766 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21767 | 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] | 21768 | |
| 21769 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | 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] | 21771 | # If the export-symbols file already is a .def file (1st line |
| 21772 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21773 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21774 | cp $export_symbols $output_objdir/$soname.def; |
| 21775 | else |
| 21776 | echo EXPORTS > $output_objdir/$soname.def; |
| 21777 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21778 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21779 | $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] | 21780 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21781 | ld_shlibs_F77=no |
| 21782 | fi |
| 21783 | ;; |
| 21784 | |
| 21785 | interix3*) |
| 21786 | hardcode_direct_F77=no |
| 21787 | hardcode_shlibpath_var_F77=no |
| 21788 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21789 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21790 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21791 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21792 | # default) and relocated if they conflict, which is a slow very memory |
| 21793 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21794 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21795 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21796 | 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' |
| 21797 | 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' |
| 21798 | ;; |
| 21799 | |
| 21800 | linux*) |
| 21801 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21802 | tmp_addflag= |
| 21803 | case $cc_basename,$host_cpu in |
| 21804 | pgcc*) # Portland Group C compiler |
| 21805 | 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' |
| 21806 | tmp_addflag=' $pic_flag' |
| 21807 | ;; |
| 21808 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21809 | 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' |
| 21810 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21811 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21812 | tmp_addflag=' -i_dynamic' ;; |
| 21813 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21814 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21815 | ifc* | ifort*) # Intel Fortran compiler |
| 21816 | tmp_addflag=' -nofor_main' ;; |
| 21817 | esac |
| 21818 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21819 | |
| 21820 | if test $supports_anon_versioning = yes; then |
| 21821 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21822 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21823 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21824 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21825 | fi |
| 21826 | else |
| 21827 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21828 | fi |
| 21829 | ;; |
| 21830 | |
| 21831 | netbsd*) |
| 21832 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21833 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21834 | wlarc= |
| 21835 | else |
| 21836 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21837 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21838 | fi |
| 21839 | ;; |
| 21840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21841 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21842 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21843 | ld_shlibs_F77=no |
| 21844 | cat <<EOF 1>&2 |
| 21845 | |
| 21846 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21847 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21848 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21849 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21850 | *** your PATH or compiler configuration so that the native linker is |
| 21851 | *** used, and then restart. |
| 21852 | |
| 21853 | EOF |
| 21854 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21855 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21856 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21857 | else |
| 21858 | ld_shlibs_F77=no |
| 21859 | fi |
| 21860 | ;; |
| 21861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21862 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21863 | case `$LD -v 2>&1` in |
| 21864 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21865 | ld_shlibs_F77=no |
| 21866 | cat <<_LT_EOF 1>&2 |
| 21867 | |
| 21868 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21869 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21870 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21871 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21872 | *** your PATH or compiler configuration so that the native linker is |
| 21873 | *** used, and then restart. |
| 21874 | |
| 21875 | _LT_EOF |
| 21876 | ;; |
| 21877 | *) |
| 21878 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21879 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21880 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21881 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21882 | else |
| 21883 | ld_shlibs_F77=no |
| 21884 | fi |
| 21885 | ;; |
| 21886 | esac |
| 21887 | ;; |
| 21888 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21889 | sunos4*) |
| 21890 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21891 | wlarc= |
| 21892 | hardcode_direct_F77=yes |
| 21893 | hardcode_shlibpath_var_F77=no |
| 21894 | ;; |
| 21895 | |
| 21896 | *) |
| 21897 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21898 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21899 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21900 | else |
| 21901 | ld_shlibs_F77=no |
| 21902 | fi |
| 21903 | ;; |
| 21904 | esac |
| 21905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21906 | if test "$ld_shlibs_F77" = no; then |
| 21907 | runpath_var= |
| 21908 | hardcode_libdir_flag_spec_F77= |
| 21909 | export_dynamic_flag_spec_F77= |
| 21910 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21911 | fi |
| 21912 | else |
| 21913 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21914 | case $host_os in |
| 21915 | aix3*) |
| 21916 | allow_undefined_flag_F77=unsupported |
| 21917 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21918 | 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] | 21919 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21920 | # are no directories specified by -L. |
| 21921 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21922 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21923 | # Neither direct hardcoding nor static linking is supported with a |
| 21924 | # broken collect2. |
| 21925 | hardcode_direct_F77=unsupported |
| 21926 | fi |
| 21927 | ;; |
| 21928 | |
| 21929 | aix4* | aix5*) |
| 21930 | if test "$host_cpu" = ia64; then |
| 21931 | # On IA64, the linker does run time linking by default, so we don't |
| 21932 | # have to do anything special. |
| 21933 | aix_use_runtimelinking=no |
| 21934 | exp_sym_flag='-Bexport' |
| 21935 | no_entry_flag="" |
| 21936 | else |
| 21937 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21938 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21939 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21940 | 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' |
| 21941 | else |
| 21942 | 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' |
| 21943 | fi |
| 21944 | aix_use_runtimelinking=no |
| 21945 | |
| 21946 | # Test if we are trying to use run time linking or normal |
| 21947 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21948 | # need to do runtime linking. |
| 21949 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21950 | for ld_flag in $LDFLAGS; do |
| 21951 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21952 | aix_use_runtimelinking=yes |
| 21953 | break |
| 21954 | fi |
| 21955 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21956 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21957 | esac |
| 21958 | |
| 21959 | exp_sym_flag='-bexport' |
| 21960 | no_entry_flag='-bnoentry' |
| 21961 | fi |
| 21962 | |
| 21963 | # When large executables or shared objects are built, AIX ld can |
| 21964 | # have problems creating the table of contents. If linking a library |
| 21965 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21966 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21967 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21968 | |
| 21969 | archive_cmds_F77='' |
| 21970 | hardcode_direct_F77=yes |
| 21971 | hardcode_libdir_separator_F77=':' |
| 21972 | link_all_deplibs_F77=yes |
| 21973 | |
| 21974 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21975 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21976 | # We only want to do this on AIX 4.2 and lower, the check |
| 21977 | # below for broken collect2 doesn't work under 4.3+ |
| 21978 | collect2name=`${CC} -print-prog-name=collect2` |
| 21979 | if test -f "$collect2name" && \ |
| 21980 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21981 | then |
| 21982 | # We have reworked collect2 |
| 21983 | hardcode_direct_F77=yes |
| 21984 | else |
| 21985 | # We have old collect2 |
| 21986 | hardcode_direct_F77=unsupported |
| 21987 | # It fails to find uninstalled libraries when the uninstalled |
| 21988 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21989 | # to unsupported forces relinking |
| 21990 | hardcode_minus_L_F77=yes |
| 21991 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21992 | hardcode_libdir_separator_F77= |
| 21993 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21994 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21995 | esac |
| 21996 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21997 | if test "$aix_use_runtimelinking" = yes; then |
| 21998 | shared_flag="$shared_flag "'${wl}-G' |
| 21999 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22000 | else |
| 22001 | # not using gcc |
| 22002 | if test "$host_cpu" = ia64; then |
| 22003 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22004 | # chokes on -Wl,-G. The following line is correct: |
| 22005 | shared_flag='-G' |
| 22006 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22007 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22008 | shared_flag='${wl}-G' |
| 22009 | else |
| 22010 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22011 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22012 | fi |
| 22013 | fi |
| 22014 | |
| 22015 | # It seems that -bexpall does not export symbols beginning with |
| 22016 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22017 | always_export_symbols_F77=yes |
| 22018 | if test "$aix_use_runtimelinking" = yes; then |
| 22019 | # Warning - without using the other runtime loading flags (-brtl), |
| 22020 | # -berok will link without error, but may produce a broken library. |
| 22021 | allow_undefined_flag_F77='-berok' |
| 22022 | # Determine the default libpath from the value encoded in an empty executable. |
| 22023 | cat >conftest.$ac_ext <<_ACEOF |
| 22024 | program main |
| 22025 | |
| 22026 | end |
| 22027 | _ACEOF |
| 22028 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22029 | if { (ac_try="$ac_link" |
| 22030 | case "(($ac_try" in |
| 22031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22032 | *) ac_try_echo=$ac_try;; |
| 22033 | esac |
| 22034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22035 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22036 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22038 | rm -f conftest.er1 |
| 22039 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22041 | (exit $ac_status); } && |
| 22042 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22043 | { (case "(($ac_try" in |
| 22044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22045 | *) ac_try_echo=$ac_try;; |
| 22046 | esac |
| 22047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22048 | (eval "$ac_try") 2>&5 |
| 22049 | ac_status=$? |
| 22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22051 | (exit $ac_status); }; } && |
| 22052 | { ac_try='test -s conftest$ac_exeext' |
| 22053 | { (case "(($ac_try" in |
| 22054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22055 | *) ac_try_echo=$ac_try;; |
| 22056 | esac |
| 22057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22058 | (eval "$ac_try") 2>&5 |
| 22059 | ac_status=$? |
| 22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22061 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22062 | |
| 22063 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22064 | }'` |
| 22065 | # Check for a 64-bit object if we didn't find anything. |
| 22066 | 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; } |
| 22067 | }'`; fi |
| 22068 | else |
| 22069 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22072 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22074 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22075 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22076 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22077 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22078 | |
| 22079 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22080 | 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] | 22081 | else |
| 22082 | if test "$host_cpu" = ia64; then |
| 22083 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22084 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22085 | 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] | 22086 | else |
| 22087 | # Determine the default libpath from the value encoded in an empty executable. |
| 22088 | cat >conftest.$ac_ext <<_ACEOF |
| 22089 | program main |
| 22090 | |
| 22091 | end |
| 22092 | _ACEOF |
| 22093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22094 | if { (ac_try="$ac_link" |
| 22095 | case "(($ac_try" in |
| 22096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22097 | *) ac_try_echo=$ac_try;; |
| 22098 | esac |
| 22099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22100 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22101 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22103 | rm -f conftest.er1 |
| 22104 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22106 | (exit $ac_status); } && |
| 22107 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22108 | { (case "(($ac_try" in |
| 22109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22110 | *) ac_try_echo=$ac_try;; |
| 22111 | esac |
| 22112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22113 | (eval "$ac_try") 2>&5 |
| 22114 | ac_status=$? |
| 22115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22116 | (exit $ac_status); }; } && |
| 22117 | { ac_try='test -s conftest$ac_exeext' |
| 22118 | { (case "(($ac_try" in |
| 22119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22120 | *) ac_try_echo=$ac_try;; |
| 22121 | esac |
| 22122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22123 | (eval "$ac_try") 2>&5 |
| 22124 | ac_status=$? |
| 22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22126 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22127 | |
| 22128 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22129 | }'` |
| 22130 | # Check for a 64-bit object if we didn't find anything. |
| 22131 | 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; } |
| 22132 | }'`; fi |
| 22133 | else |
| 22134 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22136 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22137 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22138 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22139 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 22140 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22141 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22142 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22143 | |
| 22144 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22145 | # Warning - without using the other run time loading flags, |
| 22146 | # -berok will link without error, but may produce a broken library. |
| 22147 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22148 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22149 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22150 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22151 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22152 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22153 | 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] | 22154 | fi |
| 22155 | fi |
| 22156 | ;; |
| 22157 | |
| 22158 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22159 | 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] | 22160 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22161 | hardcode_minus_L_F77=yes |
| 22162 | # see comment about different semantics on the GNU ld section |
| 22163 | ld_shlibs_F77=no |
| 22164 | ;; |
| 22165 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22166 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22167 | export_dynamic_flag_spec_F77=-rdynamic |
| 22168 | ;; |
| 22169 | |
| 22170 | cygwin* | mingw* | pw32*) |
| 22171 | # When not using gcc, we currently assume that we are using |
| 22172 | # Microsoft Visual C++. |
| 22173 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22174 | # no search path for DLLs. |
| 22175 | hardcode_libdir_flag_spec_F77=' ' |
| 22176 | allow_undefined_flag_F77=unsupported |
| 22177 | # Tell ltmain to make .lib files, not .a files. |
| 22178 | libext=lib |
| 22179 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22180 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22181 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22182 | 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] | 22183 | # The linker will automatically build a .lib file if we build a DLL. |
| 22184 | old_archive_From_new_cmds_F77='true' |
| 22185 | # FIXME: Should let the user specify the lib program. |
| 22186 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22187 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22188 | enable_shared_with_static_runtimes_F77=yes |
| 22189 | ;; |
| 22190 | |
| 22191 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22192 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22193 | rhapsody* | darwin1.[012]) |
| 22194 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22195 | ;; |
| 22196 | *) # Darwin 1.3 on |
| 22197 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22198 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22199 | else |
| 22200 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22201 | 10.[012]) |
| 22202 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22203 | ;; |
| 22204 | 10.*) |
| 22205 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22206 | ;; |
| 22207 | esac |
| 22208 | fi |
| 22209 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22210 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22211 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22212 | hardcode_direct_F77=no |
| 22213 | hardcode_automatic_F77=yes |
| 22214 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22215 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22216 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22217 | if test "$GCC" = yes ; then |
| 22218 | output_verbose_link_cmd='echo' |
| 22219 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22220 | 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] | 22221 | # 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] | 22222 | 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}' |
| 22223 | 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] | 22224 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22225 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22226 | xlc*) |
| 22227 | output_verbose_link_cmd='echo' |
| 22228 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22229 | 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] | 22230 | # 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] | 22231 | 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}' |
| 22232 | 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] | 22233 | ;; |
| 22234 | *) |
| 22235 | ld_shlibs_F77=no |
| 22236 | ;; |
| 22237 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22238 | fi |
| 22239 | ;; |
| 22240 | |
| 22241 | dgux*) |
| 22242 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22243 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22244 | hardcode_shlibpath_var_F77=no |
| 22245 | ;; |
| 22246 | |
| 22247 | freebsd1*) |
| 22248 | ld_shlibs_F77=no |
| 22249 | ;; |
| 22250 | |
| 22251 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22252 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22253 | # does not break anything, and helps significantly (at the cost of a little |
| 22254 | # extra space). |
| 22255 | freebsd2.2*) |
| 22256 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22257 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22258 | hardcode_direct_F77=yes |
| 22259 | hardcode_shlibpath_var_F77=no |
| 22260 | ;; |
| 22261 | |
| 22262 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22263 | freebsd2*) |
| 22264 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22265 | hardcode_direct_F77=yes |
| 22266 | hardcode_minus_L_F77=yes |
| 22267 | hardcode_shlibpath_var_F77=no |
| 22268 | ;; |
| 22269 | |
| 22270 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22271 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22272 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22273 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22274 | hardcode_direct_F77=yes |
| 22275 | hardcode_shlibpath_var_F77=no |
| 22276 | ;; |
| 22277 | |
| 22278 | hpux9*) |
| 22279 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22280 | 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] | 22281 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22282 | 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] | 22283 | fi |
| 22284 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22285 | hardcode_libdir_separator_F77=: |
| 22286 | hardcode_direct_F77=yes |
| 22287 | |
| 22288 | # hardcode_minus_L: Not really in the search PATH, |
| 22289 | # but as the default location of the library. |
| 22290 | hardcode_minus_L_F77=yes |
| 22291 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22292 | ;; |
| 22293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22294 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22295 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22296 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22297 | else |
| 22298 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22299 | fi |
| 22300 | if test "$with_gnu_ld" = no; then |
| 22301 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22302 | hardcode_libdir_separator_F77=: |
| 22303 | |
| 22304 | hardcode_direct_F77=yes |
| 22305 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22306 | |
| 22307 | # hardcode_minus_L: Not really in the search PATH, |
| 22308 | # but as the default location of the library. |
| 22309 | hardcode_minus_L_F77=yes |
| 22310 | fi |
| 22311 | ;; |
| 22312 | |
| 22313 | hpux11*) |
| 22314 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22315 | case $host_cpu in |
| 22316 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22317 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22318 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22319 | ia64*) |
| 22320 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22321 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22322 | *) |
| 22323 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22324 | ;; |
| 22325 | esac |
| 22326 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22327 | case $host_cpu in |
| 22328 | hppa*64*) |
| 22329 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22330 | ;; |
| 22331 | ia64*) |
| 22332 | 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] | 22333 | ;; |
| 22334 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22335 | 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] | 22336 | ;; |
| 22337 | esac |
| 22338 | fi |
| 22339 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22340 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22341 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22343 | case $host_cpu in |
| 22344 | hppa*64*|ia64*) |
| 22345 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22346 | hardcode_direct_F77=no |
| 22347 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22348 | ;; |
| 22349 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22350 | hardcode_direct_F77=yes |
| 22351 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22352 | |
| 22353 | # hardcode_minus_L: Not really in the search PATH, |
| 22354 | # but as the default location of the library. |
| 22355 | hardcode_minus_L_F77=yes |
| 22356 | ;; |
| 22357 | esac |
| 22358 | fi |
| 22359 | ;; |
| 22360 | |
| 22361 | irix5* | irix6* | nonstopux*) |
| 22362 | if test "$GCC" = yes; then |
| 22363 | 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' |
| 22364 | else |
| 22365 | 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' |
| 22366 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22367 | fi |
| 22368 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22369 | hardcode_libdir_separator_F77=: |
| 22370 | link_all_deplibs_F77=yes |
| 22371 | ;; |
| 22372 | |
| 22373 | netbsd*) |
| 22374 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22375 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22376 | else |
| 22377 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22378 | fi |
| 22379 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22380 | hardcode_direct_F77=yes |
| 22381 | hardcode_shlibpath_var_F77=no |
| 22382 | ;; |
| 22383 | |
| 22384 | newsos6) |
| 22385 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22386 | hardcode_direct_F77=yes |
| 22387 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22388 | hardcode_libdir_separator_F77=: |
| 22389 | hardcode_shlibpath_var_F77=no |
| 22390 | ;; |
| 22391 | |
| 22392 | openbsd*) |
| 22393 | hardcode_direct_F77=yes |
| 22394 | hardcode_shlibpath_var_F77=no |
| 22395 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22396 | 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] | 22397 | 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] | 22398 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22399 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22400 | else |
| 22401 | case $host_os in |
| 22402 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22403 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22404 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22405 | ;; |
| 22406 | *) |
| 22407 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22408 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22409 | ;; |
| 22410 | esac |
| 22411 | fi |
| 22412 | ;; |
| 22413 | |
| 22414 | os2*) |
| 22415 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22416 | hardcode_minus_L_F77=yes |
| 22417 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22418 | 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] | 22419 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22420 | ;; |
| 22421 | |
| 22422 | osf3*) |
| 22423 | if test "$GCC" = yes; then |
| 22424 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22425 | 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' |
| 22426 | else |
| 22427 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22428 | 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' |
| 22429 | fi |
| 22430 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22431 | hardcode_libdir_separator_F77=: |
| 22432 | ;; |
| 22433 | |
| 22434 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22435 | if test "$GCC" = yes; then |
| 22436 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22437 | 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' |
| 22438 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22439 | else |
| 22440 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22441 | 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] | 22442 | 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] | 22443 | $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] | 22444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22445 | # Both c and cxx compiler support -rpath directly |
| 22446 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22447 | fi |
| 22448 | hardcode_libdir_separator_F77=: |
| 22449 | ;; |
| 22450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22451 | solaris*) |
| 22452 | no_undefined_flag_F77=' -z text' |
| 22453 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22454 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22455 | 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] | 22456 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22457 | $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] | 22458 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22459 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22460 | 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] | 22461 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22462 | $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] | 22463 | fi |
| 22464 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22465 | hardcode_shlibpath_var_F77=no |
| 22466 | case $host_os in |
| 22467 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22468 | *) |
| 22469 | # The compiler driver will combine linker options so we |
| 22470 | # cannot just pass the convience library names through |
| 22471 | # without $wl, iff we do not link with $LD. |
| 22472 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22473 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22474 | case $wlarc in |
| 22475 | '') |
| 22476 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22477 | *) |
| 22478 | 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' ;; |
| 22479 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22480 | esac |
| 22481 | link_all_deplibs_F77=yes |
| 22482 | ;; |
| 22483 | |
| 22484 | sunos4*) |
| 22485 | if test "x$host_vendor" = xsequent; then |
| 22486 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22487 | # files that make .init and .fini sections work. |
| 22488 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22489 | else |
| 22490 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22491 | fi |
| 22492 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22493 | hardcode_direct_F77=yes |
| 22494 | hardcode_minus_L_F77=yes |
| 22495 | hardcode_shlibpath_var_F77=no |
| 22496 | ;; |
| 22497 | |
| 22498 | sysv4) |
| 22499 | case $host_vendor in |
| 22500 | sni) |
| 22501 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22502 | hardcode_direct_F77=yes # is this really true??? |
| 22503 | ;; |
| 22504 | siemens) |
| 22505 | ## LD is ld it makes a PLAMLIB |
| 22506 | ## CC just makes a GrossModule. |
| 22507 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22508 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22509 | hardcode_direct_F77=no |
| 22510 | ;; |
| 22511 | motorola) |
| 22512 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22513 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22514 | ;; |
| 22515 | esac |
| 22516 | runpath_var='LD_RUN_PATH' |
| 22517 | hardcode_shlibpath_var_F77=no |
| 22518 | ;; |
| 22519 | |
| 22520 | sysv4.3*) |
| 22521 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22522 | hardcode_shlibpath_var_F77=no |
| 22523 | export_dynamic_flag_spec_F77='-Bexport' |
| 22524 | ;; |
| 22525 | |
| 22526 | sysv4*MP*) |
| 22527 | if test -d /usr/nec; then |
| 22528 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22529 | hardcode_shlibpath_var_F77=no |
| 22530 | runpath_var=LD_RUN_PATH |
| 22531 | hardcode_runpath_var=yes |
| 22532 | ld_shlibs_F77=yes |
| 22533 | fi |
| 22534 | ;; |
| 22535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22536 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22537 | no_undefined_flag_F77='${wl}-z,text' |
| 22538 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22539 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22540 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22541 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22542 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22543 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22544 | 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] | 22545 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22546 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22547 | 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] | 22548 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22549 | ;; |
| 22550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22551 | sysv5* | sco3.2v5* | sco5v6*) |
| 22552 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22553 | # link with -lc, and that would cause any symbols used from libc to |
| 22554 | # always be unresolved, which means just about no library would |
| 22555 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22556 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22557 | # as -z defs. |
| 22558 | no_undefined_flag_F77='${wl}-z,text' |
| 22559 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22560 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22561 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22562 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22563 | hardcode_libdir_separator_F77=':' |
| 22564 | link_all_deplibs_F77=yes |
| 22565 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22566 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22567 | |
| 22568 | if test "$GCC" = yes; then |
| 22569 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22570 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22571 | else |
| 22572 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22573 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22574 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22575 | ;; |
| 22576 | |
| 22577 | uts4*) |
| 22578 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22579 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22580 | hardcode_shlibpath_var_F77=no |
| 22581 | ;; |
| 22582 | |
| 22583 | *) |
| 22584 | ld_shlibs_F77=no |
| 22585 | ;; |
| 22586 | esac |
| 22587 | fi |
| 22588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22589 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22590 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22591 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22592 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22593 | # |
| 22594 | # Do we need to explicitly link libc? |
| 22595 | # |
| 22596 | case "x$archive_cmds_need_lc_F77" in |
| 22597 | x|xyes) |
| 22598 | # Assume -lc should be added |
| 22599 | archive_cmds_need_lc_F77=yes |
| 22600 | |
| 22601 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22602 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22603 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22604 | # FIXME: we may have to deal with multi-command sequences. |
| 22605 | ;; |
| 22606 | '$CC '*) |
| 22607 | # Test whether the compiler implicitly links with -lc since on some |
| 22608 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22609 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22610 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22611 | 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] | 22612 | $rm conftest* |
| 22613 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22614 | |
| 22615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22616 | (eval $ac_compile) 2>&5 |
| 22617 | ac_status=$? |
| 22618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22619 | (exit $ac_status); } 2>conftest.err; then |
| 22620 | soname=conftest |
| 22621 | lib=conftest |
| 22622 | libobjs=conftest.$ac_objext |
| 22623 | deplibs= |
| 22624 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22625 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22626 | compiler_flags=-v |
| 22627 | linker_flags=-v |
| 22628 | verstring= |
| 22629 | output_objdir=. |
| 22630 | libname=conftest |
| 22631 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22632 | allow_undefined_flag_F77= |
| 22633 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22634 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22635 | ac_status=$? |
| 22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22637 | (exit $ac_status); } |
| 22638 | then |
| 22639 | archive_cmds_need_lc_F77=no |
| 22640 | else |
| 22641 | archive_cmds_need_lc_F77=yes |
| 22642 | fi |
| 22643 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22644 | else |
| 22645 | cat conftest.err 1>&5 |
| 22646 | fi |
| 22647 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22648 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22649 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22650 | ;; |
| 22651 | esac |
| 22652 | fi |
| 22653 | ;; |
| 22654 | esac |
| 22655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22656 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22657 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22658 | library_names_spec= |
| 22659 | libname_spec='lib$name' |
| 22660 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22661 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22662 | postinstall_cmds= |
| 22663 | postuninstall_cmds= |
| 22664 | finish_cmds= |
| 22665 | finish_eval= |
| 22666 | shlibpath_var= |
| 22667 | shlibpath_overrides_runpath=unknown |
| 22668 | version_type=none |
| 22669 | dynamic_linker="$host_os ld.so" |
| 22670 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22671 | if test "$GCC" = yes; then |
| 22672 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22673 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22674 | # if the path contains ";" then we assume it to be the separator |
| 22675 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22676 | # assumed that no part of a normal pathname contains ";" but that should |
| 22677 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22678 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22679 | else |
| 22680 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22681 | fi |
| 22682 | else |
| 22683 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22684 | fi |
| 22685 | need_lib_prefix=unknown |
| 22686 | hardcode_into_libs=no |
| 22687 | |
| 22688 | # when you set need_version to no, make sure it does not cause -set_version |
| 22689 | # flags to be left without arguments |
| 22690 | need_version=unknown |
| 22691 | |
| 22692 | case $host_os in |
| 22693 | aix3*) |
| 22694 | version_type=linux |
| 22695 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22696 | shlibpath_var=LIBPATH |
| 22697 | |
| 22698 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22699 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22700 | ;; |
| 22701 | |
| 22702 | aix4* | aix5*) |
| 22703 | version_type=linux |
| 22704 | need_lib_prefix=no |
| 22705 | need_version=no |
| 22706 | hardcode_into_libs=yes |
| 22707 | if test "$host_cpu" = ia64; then |
| 22708 | # AIX 5 supports IA64 |
| 22709 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22710 | shlibpath_var=LD_LIBRARY_PATH |
| 22711 | else |
| 22712 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22713 | # for dependence libraries. The import file would start with |
| 22714 | # the line `#! .'. This would cause the generated library to |
| 22715 | # depend on `.', always an invalid library. This was fixed in |
| 22716 | # development snapshots of GCC prior to 3.0. |
| 22717 | case $host_os in |
| 22718 | aix4 | aix4.[01] | aix4.[01].*) |
| 22719 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22720 | echo ' yes ' |
| 22721 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22722 | : |
| 22723 | else |
| 22724 | can_build_shared=no |
| 22725 | fi |
| 22726 | ;; |
| 22727 | esac |
| 22728 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22729 | # soname into executable. Probably we can add versioning support to |
| 22730 | # collect2, so additional links can be useful in future. |
| 22731 | if test "$aix_use_runtimelinking" = yes; then |
| 22732 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22733 | # instead of lib<name>.a to let people know that these are not |
| 22734 | # typical AIX shared libraries. |
| 22735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22736 | else |
| 22737 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22738 | # and later when we are not doing run time linking. |
| 22739 | library_names_spec='${libname}${release}.a $libname.a' |
| 22740 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22741 | fi |
| 22742 | shlibpath_var=LIBPATH |
| 22743 | fi |
| 22744 | ;; |
| 22745 | |
| 22746 | amigaos*) |
| 22747 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22748 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22749 | 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] | 22750 | ;; |
| 22751 | |
| 22752 | beos*) |
| 22753 | library_names_spec='${libname}${shared_ext}' |
| 22754 | dynamic_linker="$host_os ld.so" |
| 22755 | shlibpath_var=LIBRARY_PATH |
| 22756 | ;; |
| 22757 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22758 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22759 | version_type=linux |
| 22760 | need_version=no |
| 22761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22762 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22763 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22764 | shlibpath_var=LD_LIBRARY_PATH |
| 22765 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22766 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22767 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22768 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22769 | # libtool to hard-code these into programs |
| 22770 | ;; |
| 22771 | |
| 22772 | cygwin* | mingw* | pw32*) |
| 22773 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22774 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22775 | need_version=no |
| 22776 | need_lib_prefix=no |
| 22777 | |
| 22778 | case $GCC,$host_os in |
| 22779 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22780 | library_names_spec='$libname.dll.a' |
| 22781 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22782 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22783 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22784 | dldir=$destdir/`dirname \$dlpath`~ |
| 22785 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22786 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22787 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22788 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22789 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22790 | $rm \$dlpath' |
| 22791 | shlibpath_overrides_runpath=yes |
| 22792 | |
| 22793 | case $host_os in |
| 22794 | cygwin*) |
| 22795 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22796 | 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] | 22797 | 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] | 22798 | ;; |
| 22799 | mingw*) |
| 22800 | # MinGW DLLs use traditional 'lib' prefix |
| 22801 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22802 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22803 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22804 | # It is most probably a Windows format PATH printed by |
| 22805 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22806 | # path with ; separators, and with drive letters. We can handle the |
| 22807 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22808 | # especially as we might pass files found there to a mingw objdump, |
| 22809 | # which wouldn't understand a cygwinified path. Ahh. |
| 22810 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22811 | else |
| 22812 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22813 | fi |
| 22814 | ;; |
| 22815 | pw32*) |
| 22816 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22817 | 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] | 22818 | ;; |
| 22819 | esac |
| 22820 | ;; |
| 22821 | |
| 22822 | *) |
| 22823 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22824 | ;; |
| 22825 | esac |
| 22826 | dynamic_linker='Win32 ld.exe' |
| 22827 | # FIXME: first we should search . and the directory the executable is in |
| 22828 | shlibpath_var=PATH |
| 22829 | ;; |
| 22830 | |
| 22831 | darwin* | rhapsody*) |
| 22832 | dynamic_linker="$host_os dyld" |
| 22833 | version_type=darwin |
| 22834 | need_lib_prefix=no |
| 22835 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22836 | 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] | 22837 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22838 | shlibpath_overrides_runpath=yes |
| 22839 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 22840 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22841 | # 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] | 22842 | if test "$GCC" = yes; then |
| 22843 | 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"` |
| 22844 | else |
| 22845 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22846 | fi |
| 22847 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22848 | ;; |
| 22849 | |
| 22850 | dgux*) |
| 22851 | version_type=linux |
| 22852 | need_lib_prefix=no |
| 22853 | need_version=no |
| 22854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22855 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22856 | shlibpath_var=LD_LIBRARY_PATH |
| 22857 | ;; |
| 22858 | |
| 22859 | freebsd1*) |
| 22860 | dynamic_linker=no |
| 22861 | ;; |
| 22862 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22863 | kfreebsd*-gnu) |
| 22864 | version_type=linux |
| 22865 | need_lib_prefix=no |
| 22866 | need_version=no |
| 22867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22868 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22869 | shlibpath_var=LD_LIBRARY_PATH |
| 22870 | shlibpath_overrides_runpath=no |
| 22871 | hardcode_into_libs=yes |
| 22872 | dynamic_linker='GNU ld.so' |
| 22873 | ;; |
| 22874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22875 | freebsd* | dragonfly*) |
| 22876 | # DragonFly does not have aout. When/if they implement a new |
| 22877 | # versioning mechanism, adjust this. |
| 22878 | if test -x /usr/bin/objformat; then |
| 22879 | objformat=`/usr/bin/objformat` |
| 22880 | else |
| 22881 | case $host_os in |
| 22882 | freebsd[123]*) objformat=aout ;; |
| 22883 | *) objformat=elf ;; |
| 22884 | esac |
| 22885 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22886 | version_type=freebsd-$objformat |
| 22887 | case $version_type in |
| 22888 | freebsd-elf*) |
| 22889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22890 | need_version=no |
| 22891 | need_lib_prefix=no |
| 22892 | ;; |
| 22893 | freebsd-*) |
| 22894 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22895 | need_version=yes |
| 22896 | ;; |
| 22897 | esac |
| 22898 | shlibpath_var=LD_LIBRARY_PATH |
| 22899 | case $host_os in |
| 22900 | freebsd2*) |
| 22901 | shlibpath_overrides_runpath=yes |
| 22902 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22903 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22904 | shlibpath_overrides_runpath=yes |
| 22905 | hardcode_into_libs=yes |
| 22906 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22907 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22908 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22909 | shlibpath_overrides_runpath=no |
| 22910 | hardcode_into_libs=yes |
| 22911 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22912 | freebsd*) # from 4.6 on |
| 22913 | shlibpath_overrides_runpath=yes |
| 22914 | hardcode_into_libs=yes |
| 22915 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22916 | esac |
| 22917 | ;; |
| 22918 | |
| 22919 | gnu*) |
| 22920 | version_type=linux |
| 22921 | need_lib_prefix=no |
| 22922 | need_version=no |
| 22923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22925 | shlibpath_var=LD_LIBRARY_PATH |
| 22926 | hardcode_into_libs=yes |
| 22927 | ;; |
| 22928 | |
| 22929 | hpux9* | hpux10* | hpux11*) |
| 22930 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22931 | # link against other versions. |
| 22932 | version_type=sunos |
| 22933 | need_lib_prefix=no |
| 22934 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22935 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22936 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22937 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22938 | hardcode_into_libs=yes |
| 22939 | dynamic_linker="$host_os dld.so" |
| 22940 | shlibpath_var=LD_LIBRARY_PATH |
| 22941 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22944 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22945 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22946 | else |
| 22947 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22948 | fi |
| 22949 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22950 | ;; |
| 22951 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22952 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22953 | hardcode_into_libs=yes |
| 22954 | dynamic_linker="$host_os dld.sl" |
| 22955 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22956 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22959 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22960 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22961 | ;; |
| 22962 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22963 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22964 | dynamic_linker="$host_os dld.sl" |
| 22965 | shlibpath_var=SHLIB_PATH |
| 22966 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22969 | ;; |
| 22970 | esac |
| 22971 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22972 | postinstall_cmds='chmod 555 $lib' |
| 22973 | ;; |
| 22974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22975 | interix3*) |
| 22976 | version_type=linux |
| 22977 | need_lib_prefix=no |
| 22978 | need_version=no |
| 22979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22981 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22982 | shlibpath_var=LD_LIBRARY_PATH |
| 22983 | shlibpath_overrides_runpath=no |
| 22984 | hardcode_into_libs=yes |
| 22985 | ;; |
| 22986 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22987 | irix5* | irix6* | nonstopux*) |
| 22988 | case $host_os in |
| 22989 | nonstopux*) version_type=nonstopux ;; |
| 22990 | *) |
| 22991 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22992 | version_type=linux |
| 22993 | else |
| 22994 | version_type=irix |
| 22995 | fi ;; |
| 22996 | esac |
| 22997 | need_lib_prefix=no |
| 22998 | need_version=no |
| 22999 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23001 | case $host_os in |
| 23002 | irix5* | nonstopux*) |
| 23003 | libsuff= shlibsuff= |
| 23004 | ;; |
| 23005 | *) |
| 23006 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23007 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23008 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23009 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23010 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23011 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23012 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23013 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23014 | esac |
| 23015 | ;; |
| 23016 | esac |
| 23017 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23018 | shlibpath_overrides_runpath=no |
| 23019 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23020 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23021 | hardcode_into_libs=yes |
| 23022 | ;; |
| 23023 | |
| 23024 | # No shared lib support for Linux oldld, aout, or coff. |
| 23025 | linux*oldld* | linux*aout* | linux*coff*) |
| 23026 | dynamic_linker=no |
| 23027 | ;; |
| 23028 | |
| 23029 | # This must be Linux ELF. |
| 23030 | linux*) |
| 23031 | version_type=linux |
| 23032 | need_lib_prefix=no |
| 23033 | need_version=no |
| 23034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23035 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23036 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23037 | shlibpath_var=LD_LIBRARY_PATH |
| 23038 | shlibpath_overrides_runpath=no |
| 23039 | # This implies no fast_install, which is unacceptable. |
| 23040 | # Some rework will be needed to allow for fast_install |
| 23041 | # before this can be enabled. |
| 23042 | hardcode_into_libs=yes |
| 23043 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23044 | # Append ld.so.conf contents to the search path |
| 23045 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23046 | 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] | 23047 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23048 | fi |
| 23049 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23050 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23051 | # powerpc, because MkLinux only supported shared libraries with the |
| 23052 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23053 | # most powerpc-linux boxes support dynamic linking these days and |
| 23054 | # people can always --disable-shared, the test was removed, and we |
| 23055 | # assume the GNU/Linux dynamic linker is in use. |
| 23056 | dynamic_linker='GNU/Linux ld.so' |
| 23057 | ;; |
| 23058 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23059 | knetbsd*-gnu) |
| 23060 | version_type=linux |
| 23061 | need_lib_prefix=no |
| 23062 | need_version=no |
| 23063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23064 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23065 | shlibpath_var=LD_LIBRARY_PATH |
| 23066 | shlibpath_overrides_runpath=no |
| 23067 | hardcode_into_libs=yes |
| 23068 | dynamic_linker='GNU ld.so' |
| 23069 | ;; |
| 23070 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23071 | netbsd*) |
| 23072 | version_type=sunos |
| 23073 | need_lib_prefix=no |
| 23074 | need_version=no |
| 23075 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23077 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23078 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23079 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23080 | 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] | 23081 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23082 | dynamic_linker='NetBSD ld.elf_so' |
| 23083 | fi |
| 23084 | shlibpath_var=LD_LIBRARY_PATH |
| 23085 | shlibpath_overrides_runpath=yes |
| 23086 | hardcode_into_libs=yes |
| 23087 | ;; |
| 23088 | |
| 23089 | newsos6) |
| 23090 | version_type=linux |
| 23091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23092 | shlibpath_var=LD_LIBRARY_PATH |
| 23093 | shlibpath_overrides_runpath=yes |
| 23094 | ;; |
| 23095 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23096 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23097 | version_type=linux |
| 23098 | need_lib_prefix=no |
| 23099 | need_version=no |
| 23100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23101 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23102 | shlibpath_var=LD_LIBRARY_PATH |
| 23103 | shlibpath_overrides_runpath=yes |
| 23104 | ;; |
| 23105 | |
| 23106 | openbsd*) |
| 23107 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23108 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23109 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23110 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23111 | case $host_os in |
| 23112 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23113 | *) need_version=no ;; |
| 23114 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23116 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23117 | shlibpath_var=LD_LIBRARY_PATH |
| 23118 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23119 | case $host_os in |
| 23120 | openbsd2.[89] | openbsd2.[89].*) |
| 23121 | shlibpath_overrides_runpath=no |
| 23122 | ;; |
| 23123 | *) |
| 23124 | shlibpath_overrides_runpath=yes |
| 23125 | ;; |
| 23126 | esac |
| 23127 | else |
| 23128 | shlibpath_overrides_runpath=yes |
| 23129 | fi |
| 23130 | ;; |
| 23131 | |
| 23132 | os2*) |
| 23133 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23134 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23135 | need_lib_prefix=no |
| 23136 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23137 | dynamic_linker='OS/2 ld.exe' |
| 23138 | shlibpath_var=LIBPATH |
| 23139 | ;; |
| 23140 | |
| 23141 | osf3* | osf4* | osf5*) |
| 23142 | version_type=osf |
| 23143 | need_lib_prefix=no |
| 23144 | need_version=no |
| 23145 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23147 | shlibpath_var=LD_LIBRARY_PATH |
| 23148 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23149 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23150 | ;; |
| 23151 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23152 | solaris*) |
| 23153 | version_type=linux |
| 23154 | need_lib_prefix=no |
| 23155 | need_version=no |
| 23156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23158 | shlibpath_var=LD_LIBRARY_PATH |
| 23159 | shlibpath_overrides_runpath=yes |
| 23160 | hardcode_into_libs=yes |
| 23161 | # ldd complains unless libraries are executable |
| 23162 | postinstall_cmds='chmod +x $lib' |
| 23163 | ;; |
| 23164 | |
| 23165 | sunos4*) |
| 23166 | version_type=sunos |
| 23167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23168 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23169 | shlibpath_var=LD_LIBRARY_PATH |
| 23170 | shlibpath_overrides_runpath=yes |
| 23171 | if test "$with_gnu_ld" = yes; then |
| 23172 | need_lib_prefix=no |
| 23173 | fi |
| 23174 | need_version=yes |
| 23175 | ;; |
| 23176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23177 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23178 | version_type=linux |
| 23179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23180 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23181 | shlibpath_var=LD_LIBRARY_PATH |
| 23182 | case $host_vendor in |
| 23183 | sni) |
| 23184 | shlibpath_overrides_runpath=no |
| 23185 | need_lib_prefix=no |
| 23186 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23187 | runpath_var=LD_RUN_PATH |
| 23188 | ;; |
| 23189 | siemens) |
| 23190 | need_lib_prefix=no |
| 23191 | ;; |
| 23192 | motorola) |
| 23193 | need_lib_prefix=no |
| 23194 | need_version=no |
| 23195 | shlibpath_overrides_runpath=no |
| 23196 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23197 | ;; |
| 23198 | esac |
| 23199 | ;; |
| 23200 | |
| 23201 | sysv4*MP*) |
| 23202 | if test -d /usr/nec ;then |
| 23203 | version_type=linux |
| 23204 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23205 | soname_spec='$libname${shared_ext}.$major' |
| 23206 | shlibpath_var=LD_LIBRARY_PATH |
| 23207 | fi |
| 23208 | ;; |
| 23209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23210 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23211 | version_type=freebsd-elf |
| 23212 | need_lib_prefix=no |
| 23213 | need_version=no |
| 23214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23215 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23216 | shlibpath_var=LD_LIBRARY_PATH |
| 23217 | hardcode_into_libs=yes |
| 23218 | if test "$with_gnu_ld" = yes; then |
| 23219 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23220 | shlibpath_overrides_runpath=no |
| 23221 | else |
| 23222 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23223 | shlibpath_overrides_runpath=yes |
| 23224 | case $host_os in |
| 23225 | sco3.2v5*) |
| 23226 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23227 | ;; |
| 23228 | esac |
| 23229 | fi |
| 23230 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23231 | ;; |
| 23232 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23233 | uts4*) |
| 23234 | version_type=linux |
| 23235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23236 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23237 | shlibpath_var=LD_LIBRARY_PATH |
| 23238 | ;; |
| 23239 | |
| 23240 | *) |
| 23241 | dynamic_linker=no |
| 23242 | ;; |
| 23243 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23244 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23245 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23246 | test "$dynamic_linker" = no && can_build_shared=no |
| 23247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23248 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23249 | if test "$GCC" = yes; then |
| 23250 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23251 | fi |
| 23252 | |
| 23253 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23254 | 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] | 23255 | hardcode_action_F77= |
| 23256 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23257 | test -n "$runpath_var_F77" || \ |
| 23258 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23259 | |
| 23260 | # We can hardcode non-existant directories. |
| 23261 | if test "$hardcode_direct_F77" != no && |
| 23262 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23263 | # have to relink, otherwise we might link with an installed library |
| 23264 | # when we should be linking with a yet-to-be-installed one |
| 23265 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23266 | test "$hardcode_minus_L_F77" != no; then |
| 23267 | # Linking always hardcodes the temporary library directory. |
| 23268 | hardcode_action_F77=relink |
| 23269 | else |
| 23270 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23271 | hardcode_action_F77=immediate |
| 23272 | fi |
| 23273 | else |
| 23274 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23275 | # directories. |
| 23276 | hardcode_action_F77=unsupported |
| 23277 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23278 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23279 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23280 | |
| 23281 | if test "$hardcode_action_F77" = relink; then |
| 23282 | # Fast installation is not supported |
| 23283 | enable_fast_install=no |
| 23284 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23285 | test "$enable_shared" = no; then |
| 23286 | # Fast installation is not necessary |
| 23287 | enable_fast_install=needless |
| 23288 | fi |
| 23289 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23290 | |
| 23291 | # The else clause should only fire when bootstrapping the |
| 23292 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23293 | # with your package, and you will get complaints that there are |
| 23294 | # no rules to generate ltmain.sh. |
| 23295 | if test -f "$ltmain"; then |
| 23296 | # See if we are running on zsh, and set the options which allow our commands through |
| 23297 | # without removal of \ escapes. |
| 23298 | if test -n "${ZSH_VERSION+set}" ; then |
| 23299 | setopt NO_GLOB_SUBST |
| 23300 | fi |
| 23301 | # Now quote all the things that may contain metacharacters while being |
| 23302 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23303 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23304 | 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] | 23305 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23306 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23307 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23308 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23309 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23310 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23311 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23312 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23313 | compiler_F77 \ |
| 23314 | CC_F77 \ |
| 23315 | LD_F77 \ |
| 23316 | lt_prog_compiler_wl_F77 \ |
| 23317 | lt_prog_compiler_pic_F77 \ |
| 23318 | lt_prog_compiler_static_F77 \ |
| 23319 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23320 | export_dynamic_flag_spec_F77 \ |
| 23321 | thread_safe_flag_spec_F77 \ |
| 23322 | whole_archive_flag_spec_F77 \ |
| 23323 | enable_shared_with_static_runtimes_F77 \ |
| 23324 | old_archive_cmds_F77 \ |
| 23325 | old_archive_from_new_cmds_F77 \ |
| 23326 | predep_objects_F77 \ |
| 23327 | postdep_objects_F77 \ |
| 23328 | predeps_F77 \ |
| 23329 | postdeps_F77 \ |
| 23330 | compiler_lib_search_path_F77 \ |
| 23331 | archive_cmds_F77 \ |
| 23332 | archive_expsym_cmds_F77 \ |
| 23333 | postinstall_cmds_F77 \ |
| 23334 | postuninstall_cmds_F77 \ |
| 23335 | old_archive_from_expsyms_cmds_F77 \ |
| 23336 | allow_undefined_flag_F77 \ |
| 23337 | no_undefined_flag_F77 \ |
| 23338 | export_symbols_cmds_F77 \ |
| 23339 | hardcode_libdir_flag_spec_F77 \ |
| 23340 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23341 | hardcode_libdir_separator_F77 \ |
| 23342 | hardcode_automatic_F77 \ |
| 23343 | module_cmds_F77 \ |
| 23344 | module_expsym_cmds_F77 \ |
| 23345 | lt_cv_prog_compiler_c_o_F77 \ |
| 23346 | exclude_expsyms_F77 \ |
| 23347 | include_expsyms_F77; do |
| 23348 | |
| 23349 | case $var in |
| 23350 | old_archive_cmds_F77 | \ |
| 23351 | old_archive_from_new_cmds_F77 | \ |
| 23352 | archive_cmds_F77 | \ |
| 23353 | archive_expsym_cmds_F77 | \ |
| 23354 | module_cmds_F77 | \ |
| 23355 | module_expsym_cmds_F77 | \ |
| 23356 | old_archive_from_expsyms_cmds_F77 | \ |
| 23357 | export_symbols_cmds_F77 | \ |
| 23358 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23359 | postinstall_cmds | postuninstall_cmds | \ |
| 23360 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23361 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23362 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23363 | 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] | 23364 | ;; |
| 23365 | *) |
| 23366 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23367 | ;; |
| 23368 | esac |
| 23369 | done |
| 23370 | |
| 23371 | case $lt_echo in |
| 23372 | *'\$0 --fallback-echo"') |
| 23373 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23374 | ;; |
| 23375 | esac |
| 23376 | |
| 23377 | cfgfile="$ofile" |
| 23378 | |
| 23379 | cat <<__EOF__ >> "$cfgfile" |
| 23380 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23381 | |
| 23382 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23383 | |
| 23384 | # Shell to use when invoking shell scripts. |
| 23385 | SHELL=$lt_SHELL |
| 23386 | |
| 23387 | # Whether or not to build shared libraries. |
| 23388 | build_libtool_libs=$enable_shared |
| 23389 | |
| 23390 | # Whether or not to build static libraries. |
| 23391 | build_old_libs=$enable_static |
| 23392 | |
| 23393 | # Whether or not to add -lc for building shared libraries. |
| 23394 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23395 | |
| 23396 | # Whether or not to disallow shared libs when runtime libs are static |
| 23397 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23398 | |
| 23399 | # Whether or not to optimize for fast installation. |
| 23400 | fast_install=$enable_fast_install |
| 23401 | |
| 23402 | # The host system. |
| 23403 | host_alias=$host_alias |
| 23404 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23405 | host_os=$host_os |
| 23406 | |
| 23407 | # The build system. |
| 23408 | build_alias=$build_alias |
| 23409 | build=$build |
| 23410 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23411 | |
| 23412 | # An echo program that does not interpret backslashes. |
| 23413 | echo=$lt_echo |
| 23414 | |
| 23415 | # The archiver. |
| 23416 | AR=$lt_AR |
| 23417 | AR_FLAGS=$lt_AR_FLAGS |
| 23418 | |
| 23419 | # A C compiler. |
| 23420 | LTCC=$lt_LTCC |
| 23421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23422 | # LTCC compiler flags. |
| 23423 | LTCFLAGS=$lt_LTCFLAGS |
| 23424 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23425 | # A language-specific compiler. |
| 23426 | CC=$lt_compiler_F77 |
| 23427 | |
| 23428 | # Is the compiler the GNU C compiler? |
| 23429 | with_gcc=$GCC_F77 |
| 23430 | |
| 23431 | # An ERE matcher. |
| 23432 | EGREP=$lt_EGREP |
| 23433 | |
| 23434 | # The linker used to build libraries. |
| 23435 | LD=$lt_LD_F77 |
| 23436 | |
| 23437 | # Whether we need hard or soft links. |
| 23438 | LN_S=$lt_LN_S |
| 23439 | |
| 23440 | # A BSD-compatible nm program. |
| 23441 | NM=$lt_NM |
| 23442 | |
| 23443 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23444 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23445 | |
| 23446 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23447 | MAGIC_CMD=$MAGIC_CMD |
| 23448 | |
| 23449 | # Used on cygwin: DLL creation program. |
| 23450 | DLLTOOL="$DLLTOOL" |
| 23451 | |
| 23452 | # Used on cygwin: object dumper. |
| 23453 | OBJDUMP="$OBJDUMP" |
| 23454 | |
| 23455 | # Used on cygwin: assembler. |
| 23456 | AS="$AS" |
| 23457 | |
| 23458 | # The name of the directory that contains temporary libtool files. |
| 23459 | objdir=$objdir |
| 23460 | |
| 23461 | # How to create reloadable object files. |
| 23462 | reload_flag=$lt_reload_flag |
| 23463 | reload_cmds=$lt_reload_cmds |
| 23464 | |
| 23465 | # How to pass a linker flag through the compiler. |
| 23466 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23467 | |
| 23468 | # Object file suffix (normally "o"). |
| 23469 | objext="$ac_objext" |
| 23470 | |
| 23471 | # Old archive suffix (normally "a"). |
| 23472 | libext="$libext" |
| 23473 | |
| 23474 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23475 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23476 | |
| 23477 | # Executable file suffix (normally ""). |
| 23478 | exeext="$exeext" |
| 23479 | |
| 23480 | # Additional compiler flags for building library objects. |
| 23481 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23482 | pic_mode=$pic_mode |
| 23483 | |
| 23484 | # What is the maximum length of a command? |
| 23485 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23486 | |
| 23487 | # Does compiler simultaneously support -c and -o options? |
| 23488 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23490 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23491 | need_locks=$lt_need_locks |
| 23492 | |
| 23493 | # Do we need the lib prefix for modules? |
| 23494 | need_lib_prefix=$need_lib_prefix |
| 23495 | |
| 23496 | # Do we need a version for libraries? |
| 23497 | need_version=$need_version |
| 23498 | |
| 23499 | # Whether dlopen is supported. |
| 23500 | dlopen_support=$enable_dlopen |
| 23501 | |
| 23502 | # Whether dlopen of programs is supported. |
| 23503 | dlopen_self=$enable_dlopen_self |
| 23504 | |
| 23505 | # Whether dlopen of statically linked programs is supported. |
| 23506 | dlopen_self_static=$enable_dlopen_self_static |
| 23507 | |
| 23508 | # Compiler flag to prevent dynamic linking. |
| 23509 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23510 | |
| 23511 | # Compiler flag to turn off builtin functions. |
| 23512 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23513 | |
| 23514 | # Compiler flag to allow reflexive dlopens. |
| 23515 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23516 | |
| 23517 | # Compiler flag to generate shared objects directly from archives. |
| 23518 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23519 | |
| 23520 | # Compiler flag to generate thread-safe objects. |
| 23521 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23522 | |
| 23523 | # Library versioning type. |
| 23524 | version_type=$version_type |
| 23525 | |
| 23526 | # Format of library name prefix. |
| 23527 | libname_spec=$lt_libname_spec |
| 23528 | |
| 23529 | # List of archive names. First name is the real one, the rest are links. |
| 23530 | # The last name is the one that the linker finds with -lNAME. |
| 23531 | library_names_spec=$lt_library_names_spec |
| 23532 | |
| 23533 | # The coded name of the library, if different from the real name. |
| 23534 | soname_spec=$lt_soname_spec |
| 23535 | |
| 23536 | # Commands used to build and install an old-style archive. |
| 23537 | RANLIB=$lt_RANLIB |
| 23538 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23539 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23540 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23541 | |
| 23542 | # Create an old-style archive from a shared archive. |
| 23543 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23544 | |
| 23545 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23546 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23547 | |
| 23548 | # Commands used to build and install a shared archive. |
| 23549 | archive_cmds=$lt_archive_cmds_F77 |
| 23550 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23551 | postinstall_cmds=$lt_postinstall_cmds |
| 23552 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23553 | |
| 23554 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23555 | module_cmds=$lt_module_cmds_F77 |
| 23556 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23557 | |
| 23558 | # Commands to strip libraries. |
| 23559 | old_striplib=$lt_old_striplib |
| 23560 | striplib=$lt_striplib |
| 23561 | |
| 23562 | # Dependencies to place before the objects being linked to create a |
| 23563 | # shared library. |
| 23564 | predep_objects=$lt_predep_objects_F77 |
| 23565 | |
| 23566 | # Dependencies to place after the objects being linked to create a |
| 23567 | # shared library. |
| 23568 | postdep_objects=$lt_postdep_objects_F77 |
| 23569 | |
| 23570 | # Dependencies to place before the objects being linked to create a |
| 23571 | # shared library. |
| 23572 | predeps=$lt_predeps_F77 |
| 23573 | |
| 23574 | # Dependencies to place after the objects being linked to create a |
| 23575 | # shared library. |
| 23576 | postdeps=$lt_postdeps_F77 |
| 23577 | |
| 23578 | # The library search path used internally by the compiler when linking |
| 23579 | # a shared library. |
| 23580 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23581 | |
| 23582 | # Method to check whether dependent libraries are shared objects. |
| 23583 | deplibs_check_method=$lt_deplibs_check_method |
| 23584 | |
| 23585 | # Command to use when deplibs_check_method == file_magic. |
| 23586 | file_magic_cmd=$lt_file_magic_cmd |
| 23587 | |
| 23588 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23589 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23590 | |
| 23591 | # Flag that forces no undefined symbols. |
| 23592 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23593 | |
| 23594 | # Commands used to finish a libtool library installation in a directory. |
| 23595 | finish_cmds=$lt_finish_cmds |
| 23596 | |
| 23597 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23598 | finish_eval=$lt_finish_eval |
| 23599 | |
| 23600 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23601 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23602 | |
| 23603 | # Transform the output of nm in a proper C declaration |
| 23604 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23605 | |
| 23606 | # Transform the output of nm in a C name address pair |
| 23607 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23608 | |
| 23609 | # This is the shared library runtime path variable. |
| 23610 | runpath_var=$runpath_var |
| 23611 | |
| 23612 | # This is the shared library path variable. |
| 23613 | shlibpath_var=$shlibpath_var |
| 23614 | |
| 23615 | # Is shlibpath searched before the hard-coded library search path? |
| 23616 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23617 | |
| 23618 | # How to hardcode a shared library path into an executable. |
| 23619 | hardcode_action=$hardcode_action_F77 |
| 23620 | |
| 23621 | # Whether we should hardcode library paths into libraries. |
| 23622 | hardcode_into_libs=$hardcode_into_libs |
| 23623 | |
| 23624 | # Flag to hardcode \$libdir into a binary during linking. |
| 23625 | # This must work even if \$libdir does not exist. |
| 23626 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23627 | |
| 23628 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23629 | # a binary during linking. This must work even if \$libdir does |
| 23630 | # not exist. |
| 23631 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23632 | |
| 23633 | # Whether we need a single -rpath flag with a separated argument. |
| 23634 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23635 | |
| 23636 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23637 | # resulting binary. |
| 23638 | hardcode_direct=$hardcode_direct_F77 |
| 23639 | |
| 23640 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23641 | # resulting binary. |
| 23642 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23643 | |
| 23644 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23645 | # the resulting binary. |
| 23646 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23647 | |
| 23648 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23649 | # and all subsequent libraries and executables linked against it. |
| 23650 | hardcode_automatic=$hardcode_automatic_F77 |
| 23651 | |
| 23652 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23653 | # restored at relink time. |
| 23654 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23655 | |
| 23656 | # Whether libtool must link a program against all its dependency libraries. |
| 23657 | link_all_deplibs=$link_all_deplibs_F77 |
| 23658 | |
| 23659 | # Compile-time system search path for libraries |
| 23660 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23661 | |
| 23662 | # Run-time system search path for libraries |
| 23663 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23664 | |
| 23665 | # Fix the shell variable \$srcfile for the compiler. |
| 23666 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23667 | |
| 23668 | # Set to yes if exported symbols are required. |
| 23669 | always_export_symbols=$always_export_symbols_F77 |
| 23670 | |
| 23671 | # The commands to list exported symbols. |
| 23672 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23673 | |
| 23674 | # The commands to extract the exported symbol list from a shared archive. |
| 23675 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23676 | |
| 23677 | # Symbols that should not be listed in the preloaded symbols. |
| 23678 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23679 | |
| 23680 | # Symbols that must always be exported. |
| 23681 | include_expsyms=$lt_include_expsyms_F77 |
| 23682 | |
| 23683 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23684 | |
| 23685 | __EOF__ |
| 23686 | |
| 23687 | |
| 23688 | else |
| 23689 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23690 | # `config.status --recheck' to rerun these tests and create the |
| 23691 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23692 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23693 | if test -f "$ltmain_in"; then |
| 23694 | test -f Makefile && make "$ltmain" |
| 23695 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23696 | fi |
| 23697 | |
| 23698 | |
| 23699 | ac_ext=c |
| 23700 | ac_cpp='$CPP $CPPFLAGS' |
| 23701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23704 | |
| 23705 | CC="$lt_save_CC" |
| 23706 | |
| 23707 | else |
| 23708 | tagname="" |
| 23709 | fi |
| 23710 | ;; |
| 23711 | |
| 23712 | GCJ) |
| 23713 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23714 | ac_ext=c |
| 23715 | ac_cpp='$CPP $CPPFLAGS' |
| 23716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23719 | |
| 23720 | |
| 23721 | # Source file extension for Java test sources. |
| 23722 | ac_ext=java |
| 23723 | |
| 23724 | # Object file extension for compiled Java test sources. |
| 23725 | objext=o |
| 23726 | objext_GCJ=$objext |
| 23727 | |
| 23728 | # Code to be used in simple compile tests |
| 23729 | lt_simple_compile_test_code="class foo {}\n" |
| 23730 | |
| 23731 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23732 | 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] | 23733 | |
| 23734 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23735 | |
| 23736 | # If no C compiler was specified, use CC. |
| 23737 | LTCC=${LTCC-"$CC"} |
| 23738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23739 | # If no C compiler flags were specified, use CFLAGS. |
| 23740 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23741 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23742 | # Allow CC to be a program name with arguments. |
| 23743 | compiler=$CC |
| 23744 | |
| 23745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23746 | # save warnings/boilerplate of simple test code |
| 23747 | ac_outfile=conftest.$ac_objext |
| 23748 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23749 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23750 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23751 | $rm conftest* |
| 23752 | |
| 23753 | ac_outfile=conftest.$ac_objext |
| 23754 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23755 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23756 | _lt_linker_boilerplate=`cat conftest.err` |
| 23757 | $rm conftest* |
| 23758 | |
| 23759 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23760 | # Allow CC to be a program name with arguments. |
| 23761 | lt_save_CC="$CC" |
| 23762 | CC=${GCJ-"gcj"} |
| 23763 | compiler=$CC |
| 23764 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23765 | for cc_temp in $compiler""; do |
| 23766 | case $cc_temp in |
| 23767 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23768 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23769 | \-*) ;; |
| 23770 | *) break;; |
| 23771 | esac |
| 23772 | done |
| 23773 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23775 | |
| 23776 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23777 | archive_cmds_need_lc_GCJ=no |
| 23778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23779 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23780 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23781 | |
| 23782 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23783 | |
| 23784 | if test "$GCC" = yes; then |
| 23785 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23786 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23788 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23789 | 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] | 23790 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23792 | else |
| 23793 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23794 | ac_outfile=conftest.$ac_objext |
| 23795 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23796 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23797 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23798 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23799 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23800 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23801 | # The option is referenced via a variable to avoid confusing sed. |
| 23802 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23803 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23804 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23805 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 23806 | (eval echo "\"\$as_me:23801: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23807 | (eval "$lt_compile" 2>conftest.err) |
| 23808 | ac_status=$? |
| 23809 | cat conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 23810 | echo "$as_me:23805: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23811 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23812 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23813 | # So say no if there are warnings other than the usual output. |
| 23814 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23815 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23816 | 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] | 23817 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23818 | fi |
| 23819 | fi |
| 23820 | $rm conftest* |
| 23821 | |
| 23822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23823 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23824 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23825 | |
| 23826 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23827 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23828 | else |
| 23829 | : |
| 23830 | fi |
| 23831 | |
| 23832 | fi |
| 23833 | |
| 23834 | lt_prog_compiler_wl_GCJ= |
| 23835 | lt_prog_compiler_pic_GCJ= |
| 23836 | lt_prog_compiler_static_GCJ= |
| 23837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23838 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23839 | 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] | 23840 | |
| 23841 | if test "$GCC" = yes; then |
| 23842 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23843 | lt_prog_compiler_static_GCJ='-static' |
| 23844 | |
| 23845 | case $host_os in |
| 23846 | aix*) |
| 23847 | # All AIX code is PIC. |
| 23848 | if test "$host_cpu" = ia64; then |
| 23849 | # AIX 5 now supports IA64 processor |
| 23850 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23851 | fi |
| 23852 | ;; |
| 23853 | |
| 23854 | amigaos*) |
| 23855 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23856 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23857 | # like `-m68040'. |
| 23858 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23859 | ;; |
| 23860 | |
| 23861 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23862 | # PIC is the default for these OSes. |
| 23863 | ;; |
| 23864 | |
| 23865 | mingw* | pw32* | os2*) |
| 23866 | # This hack is so that the source file can tell whether it is being |
| 23867 | # built for inclusion in a dll (and should export symbols for example). |
| 23868 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23869 | ;; |
| 23870 | |
| 23871 | darwin* | rhapsody*) |
| 23872 | # PIC is the default on this platform |
| 23873 | # Common symbols not allowed in MH_DYLIB files |
| 23874 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23875 | ;; |
| 23876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23877 | interix3*) |
| 23878 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23879 | # Instead, we relocate shared libraries at runtime. |
| 23880 | ;; |
| 23881 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23882 | msdosdjgpp*) |
| 23883 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23884 | # on systems that don't support them. |
| 23885 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23886 | enable_shared=no |
| 23887 | ;; |
| 23888 | |
| 23889 | sysv4*MP*) |
| 23890 | if test -d /usr/nec; then |
| 23891 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23892 | fi |
| 23893 | ;; |
| 23894 | |
| 23895 | hpux*) |
| 23896 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23897 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23898 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23899 | hppa*64*|ia64*) |
| 23900 | # +Z the default |
| 23901 | ;; |
| 23902 | *) |
| 23903 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23904 | ;; |
| 23905 | esac |
| 23906 | ;; |
| 23907 | |
| 23908 | *) |
| 23909 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23910 | ;; |
| 23911 | esac |
| 23912 | else |
| 23913 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23914 | case $host_os in |
| 23915 | aix*) |
| 23916 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23917 | if test "$host_cpu" = ia64; then |
| 23918 | # AIX 5 now supports IA64 processor |
| 23919 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23920 | else |
| 23921 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23922 | fi |
| 23923 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23924 | darwin*) |
| 23925 | # PIC is the default on this platform |
| 23926 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23927 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23928 | xlc*) |
| 23929 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23930 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23931 | ;; |
| 23932 | esac |
| 23933 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23934 | |
| 23935 | mingw* | pw32* | os2*) |
| 23936 | # This hack is so that the source file can tell whether it is being |
| 23937 | # built for inclusion in a dll (and should export symbols for example). |
| 23938 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23939 | ;; |
| 23940 | |
| 23941 | hpux9* | hpux10* | hpux11*) |
| 23942 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23943 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23944 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23945 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23946 | hppa*64*|ia64*) |
| 23947 | # +Z the default |
| 23948 | ;; |
| 23949 | *) |
| 23950 | lt_prog_compiler_pic_GCJ='+Z' |
| 23951 | ;; |
| 23952 | esac |
| 23953 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23954 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23955 | ;; |
| 23956 | |
| 23957 | irix5* | irix6* | nonstopux*) |
| 23958 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23959 | # PIC (with -KPIC) is the default. |
| 23960 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23961 | ;; |
| 23962 | |
| 23963 | newsos6) |
| 23964 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23965 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23966 | ;; |
| 23967 | |
| 23968 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23969 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23970 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23971 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23972 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23973 | lt_prog_compiler_static_GCJ='-static' |
| 23974 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23975 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23976 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23977 | # which looks to be a dead project) |
| 23978 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23979 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23980 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23981 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23982 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23983 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23984 | # All Alpha code is PIC. |
| 23985 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23986 | ;; |
| 23987 | esac |
| 23988 | ;; |
| 23989 | |
| 23990 | osf3* | osf4* | osf5*) |
| 23991 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23992 | # All OSF/1 code is PIC. |
| 23993 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23994 | ;; |
| 23995 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23996 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23997 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23998 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23999 | case $cc_basename in |
| 24000 | f77* | f90* | f95*) |
| 24001 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24002 | *) |
| 24003 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24004 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24005 | ;; |
| 24006 | |
| 24007 | sunos4*) |
| 24008 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24009 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24010 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24011 | ;; |
| 24012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24013 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24014 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24015 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24016 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24017 | ;; |
| 24018 | |
| 24019 | sysv4*MP*) |
| 24020 | if test -d /usr/nec ;then |
| 24021 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24022 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24023 | fi |
| 24024 | ;; |
| 24025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24026 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24027 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24028 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24029 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24030 | ;; |
| 24031 | |
| 24032 | unicos*) |
| 24033 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24034 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24035 | ;; |
| 24036 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24037 | uts4*) |
| 24038 | lt_prog_compiler_pic_GCJ='-pic' |
| 24039 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24040 | ;; |
| 24041 | |
| 24042 | *) |
| 24043 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24044 | ;; |
| 24045 | esac |
| 24046 | fi |
| 24047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24048 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24049 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24050 | |
| 24051 | # |
| 24052 | # Check to make sure the PIC flag actually works. |
| 24053 | # |
| 24054 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24055 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24056 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24057 | 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] | 24058 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24060 | else |
| 24061 | lt_prog_compiler_pic_works_GCJ=no |
| 24062 | ac_outfile=conftest.$ac_objext |
| 24063 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24064 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24065 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24066 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24067 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24068 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24069 | # The option is referenced via a variable to avoid confusing sed. |
| 24070 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24071 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24072 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24073 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 24074 | (eval echo "\"\$as_me:24069: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24075 | (eval "$lt_compile" 2>conftest.err) |
| 24076 | ac_status=$? |
| 24077 | cat conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 24078 | echo "$as_me:24073: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24079 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24080 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24081 | # So say no if there are warnings other than the usual output. |
| 24082 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24083 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24084 | 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] | 24085 | lt_prog_compiler_pic_works_GCJ=yes |
| 24086 | fi |
| 24087 | fi |
| 24088 | $rm conftest* |
| 24089 | |
| 24090 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24091 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24092 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24093 | |
| 24094 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24095 | case $lt_prog_compiler_pic_GCJ in |
| 24096 | "" | " "*) ;; |
| 24097 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24098 | esac |
| 24099 | else |
| 24100 | lt_prog_compiler_pic_GCJ= |
| 24101 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24102 | fi |
| 24103 | |
| 24104 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24105 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24106 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24107 | *djgpp*) |
| 24108 | lt_prog_compiler_pic_GCJ= |
| 24109 | ;; |
| 24110 | *) |
| 24111 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24112 | ;; |
| 24113 | esac |
| 24114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24115 | # |
| 24116 | # Check to make sure the static flag actually works. |
| 24117 | # |
| 24118 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24119 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24120 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24121 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24123 | else |
| 24124 | lt_prog_compiler_static_works_GCJ=no |
| 24125 | save_LDFLAGS="$LDFLAGS" |
| 24126 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24127 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24128 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24129 | # The linker can only warn and ignore the option if not recognized |
| 24130 | # So say no if there are warnings |
| 24131 | if test -s conftest.err; then |
| 24132 | # Append any errors to the config.log. |
| 24133 | cat conftest.err 1>&5 |
| 24134 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24135 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24136 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24137 | lt_prog_compiler_static_works_GCJ=yes |
| 24138 | fi |
| 24139 | else |
| 24140 | lt_prog_compiler_static_works_GCJ=yes |
| 24141 | fi |
| 24142 | fi |
| 24143 | $rm conftest* |
| 24144 | LDFLAGS="$save_LDFLAGS" |
| 24145 | |
| 24146 | fi |
| 24147 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24148 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24149 | |
| 24150 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24151 | : |
| 24152 | else |
| 24153 | lt_prog_compiler_static_GCJ= |
| 24154 | fi |
| 24155 | |
| 24156 | |
| 24157 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24158 | 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] | 24159 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24161 | else |
| 24162 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24163 | $rm -r conftest 2>/dev/null |
| 24164 | mkdir conftest |
| 24165 | cd conftest |
| 24166 | mkdir out |
| 24167 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24169 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24170 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24171 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24172 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24173 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24174 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24175 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24176 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24177 | -e 's:$: $lt_compiler_flag:'` |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 24178 | (eval echo "\"\$as_me:24173: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24179 | (eval "$lt_compile" 2>out/conftest.err) |
| 24180 | ac_status=$? |
| 24181 | cat out/conftest.err >&5 |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 24182 | echo "$as_me:24177: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24183 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24184 | then |
| 24185 | # The compiler can only warn and ignore the option if not recognized |
| 24186 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24187 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24188 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24189 | 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] | 24190 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24191 | fi |
| 24192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24193 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24194 | $rm conftest* |
| 24195 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24196 | # template instantiation |
| 24197 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24198 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24199 | cd .. |
| 24200 | rmdir conftest |
| 24201 | $rm conftest* |
| 24202 | |
| 24203 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24204 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24205 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24206 | |
| 24207 | |
| 24208 | hard_links="nottested" |
| 24209 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24210 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24211 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24212 | 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] | 24213 | hard_links=yes |
| 24214 | $rm conftest* |
| 24215 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24216 | touch conftest.a |
| 24217 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24218 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24219 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24220 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24221 | if test "$hard_links" = no; then |
| 24222 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24223 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24224 | need_locks=warn |
| 24225 | fi |
| 24226 | else |
| 24227 | need_locks=no |
| 24228 | fi |
| 24229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24230 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24231 | 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] | 24232 | |
| 24233 | runpath_var= |
| 24234 | allow_undefined_flag_GCJ= |
| 24235 | enable_shared_with_static_runtimes_GCJ=no |
| 24236 | archive_cmds_GCJ= |
| 24237 | archive_expsym_cmds_GCJ= |
| 24238 | old_archive_From_new_cmds_GCJ= |
| 24239 | old_archive_from_expsyms_cmds_GCJ= |
| 24240 | export_dynamic_flag_spec_GCJ= |
| 24241 | whole_archive_flag_spec_GCJ= |
| 24242 | thread_safe_flag_spec_GCJ= |
| 24243 | hardcode_libdir_flag_spec_GCJ= |
| 24244 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24245 | hardcode_libdir_separator_GCJ= |
| 24246 | hardcode_direct_GCJ=no |
| 24247 | hardcode_minus_L_GCJ=no |
| 24248 | hardcode_shlibpath_var_GCJ=unsupported |
| 24249 | link_all_deplibs_GCJ=unknown |
| 24250 | hardcode_automatic_GCJ=no |
| 24251 | module_cmds_GCJ= |
| 24252 | module_expsym_cmds_GCJ= |
| 24253 | always_export_symbols_GCJ=no |
| 24254 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24255 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24256 | # included in the symbol list |
| 24257 | include_expsyms_GCJ= |
| 24258 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24259 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24260 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24261 | # as well as any symbol that contains `d'. |
| 24262 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24263 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24264 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24265 | # the symbol is explicitly referenced. Since portable code cannot |
| 24266 | # rely on this symbol name, it's probably fine to never include it in |
| 24267 | # preloaded symbol tables. |
| 24268 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24269 | # Just being paranoid about ensuring that cc_basename is set. |
| 24270 | for cc_temp in $compiler""; do |
| 24271 | case $cc_temp in |
| 24272 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24273 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24274 | \-*) ;; |
| 24275 | *) break;; |
| 24276 | esac |
| 24277 | done |
| 24278 | 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] | 24279 | |
| 24280 | case $host_os in |
| 24281 | cygwin* | mingw* | pw32*) |
| 24282 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24283 | # When not using gcc, we currently assume that we are using |
| 24284 | # Microsoft Visual C++. |
| 24285 | if test "$GCC" != yes; then |
| 24286 | with_gnu_ld=no |
| 24287 | fi |
| 24288 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24289 | interix*) |
| 24290 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24291 | with_gnu_ld=yes |
| 24292 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24293 | openbsd*) |
| 24294 | with_gnu_ld=no |
| 24295 | ;; |
| 24296 | esac |
| 24297 | |
| 24298 | ld_shlibs_GCJ=yes |
| 24299 | if test "$with_gnu_ld" = yes; then |
| 24300 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24301 | wlarc='${wl}' |
| 24302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24303 | # Set some defaults for GNU ld with shared library support. These |
| 24304 | # are reset later if shared libraries are not supported. Putting them |
| 24305 | # here allows them to be overridden if necessary. |
| 24306 | runpath_var=LD_RUN_PATH |
| 24307 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24308 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24309 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24310 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24311 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24312 | else |
| 24313 | whole_archive_flag_spec_GCJ= |
| 24314 | fi |
| 24315 | supports_anon_versioning=no |
| 24316 | case `$LD -v 2>/dev/null` in |
| 24317 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24318 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24319 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24320 | *\ 2.11.*) ;; # other 2.11 versions |
| 24321 | *) supports_anon_versioning=yes ;; |
| 24322 | esac |
| 24323 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24324 | # See if GNU ld supports shared libraries. |
| 24325 | case $host_os in |
| 24326 | aix3* | aix4* | aix5*) |
| 24327 | # On AIX/PPC, the GNU linker is very broken |
| 24328 | if test "$host_cpu" != ia64; then |
| 24329 | ld_shlibs_GCJ=no |
| 24330 | cat <<EOF 1>&2 |
| 24331 | |
| 24332 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24333 | *** to be unable to reliably create shared libraries on AIX. |
| 24334 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24335 | *** really care for shared libraries, you may want to modify your PATH |
| 24336 | *** so that a non-GNU linker is found, and then restart. |
| 24337 | |
| 24338 | EOF |
| 24339 | fi |
| 24340 | ;; |
| 24341 | |
| 24342 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24343 | 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] | 24344 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24345 | hardcode_minus_L_GCJ=yes |
| 24346 | |
| 24347 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24348 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24349 | # to version 4, is to share data among multiple programs linked |
| 24350 | # with the same dynamic library. Since this doesn't match the |
| 24351 | # behavior of shared libraries on other platforms, we can't use |
| 24352 | # them. |
| 24353 | ld_shlibs_GCJ=no |
| 24354 | ;; |
| 24355 | |
| 24356 | beos*) |
| 24357 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24358 | allow_undefined_flag_GCJ=unsupported |
| 24359 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24360 | # support --undefined. This deserves some investigation. FIXME |
| 24361 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24362 | else |
| 24363 | ld_shlibs_GCJ=no |
| 24364 | fi |
| 24365 | ;; |
| 24366 | |
| 24367 | cygwin* | mingw* | pw32*) |
| 24368 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24369 | # as there is no search path for DLLs. |
| 24370 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24371 | allow_undefined_flag_GCJ=unsupported |
| 24372 | always_export_symbols_GCJ=no |
| 24373 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24374 | 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] | 24375 | |
| 24376 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24377 | 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] | 24378 | # If the export-symbols file already is a .def file (1st line |
| 24379 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24380 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24381 | cp $export_symbols $output_objdir/$soname.def; |
| 24382 | else |
| 24383 | echo EXPORTS > $output_objdir/$soname.def; |
| 24384 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24385 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24386 | $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] | 24387 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24388 | ld_shlibs_GCJ=no |
| 24389 | fi |
| 24390 | ;; |
| 24391 | |
| 24392 | interix3*) |
| 24393 | hardcode_direct_GCJ=no |
| 24394 | hardcode_shlibpath_var_GCJ=no |
| 24395 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24396 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24397 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24398 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24399 | # default) and relocated if they conflict, which is a slow very memory |
| 24400 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24401 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24402 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24403 | 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' |
| 24404 | 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' |
| 24405 | ;; |
| 24406 | |
| 24407 | linux*) |
| 24408 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24409 | tmp_addflag= |
| 24410 | case $cc_basename,$host_cpu in |
| 24411 | pgcc*) # Portland Group C compiler |
| 24412 | 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' |
| 24413 | tmp_addflag=' $pic_flag' |
| 24414 | ;; |
| 24415 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24416 | 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' |
| 24417 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24418 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24419 | tmp_addflag=' -i_dynamic' ;; |
| 24420 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24421 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24422 | ifc* | ifort*) # Intel Fortran compiler |
| 24423 | tmp_addflag=' -nofor_main' ;; |
| 24424 | esac |
| 24425 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24426 | |
| 24427 | if test $supports_anon_versioning = yes; then |
| 24428 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24429 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24430 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24431 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24432 | fi |
| 24433 | else |
| 24434 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24435 | fi |
| 24436 | ;; |
| 24437 | |
| 24438 | netbsd*) |
| 24439 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24440 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24441 | wlarc= |
| 24442 | else |
| 24443 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24444 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24445 | fi |
| 24446 | ;; |
| 24447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24448 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24449 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24450 | ld_shlibs_GCJ=no |
| 24451 | cat <<EOF 1>&2 |
| 24452 | |
| 24453 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24454 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24455 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24456 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24457 | *** your PATH or compiler configuration so that the native linker is |
| 24458 | *** used, and then restart. |
| 24459 | |
| 24460 | EOF |
| 24461 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24462 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24463 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24464 | else |
| 24465 | ld_shlibs_GCJ=no |
| 24466 | fi |
| 24467 | ;; |
| 24468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24469 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24470 | case `$LD -v 2>&1` in |
| 24471 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24472 | ld_shlibs_GCJ=no |
| 24473 | cat <<_LT_EOF 1>&2 |
| 24474 | |
| 24475 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24476 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24477 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24478 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24479 | *** your PATH or compiler configuration so that the native linker is |
| 24480 | *** used, and then restart. |
| 24481 | |
| 24482 | _LT_EOF |
| 24483 | ;; |
| 24484 | *) |
| 24485 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24486 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24487 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24488 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24489 | else |
| 24490 | ld_shlibs_GCJ=no |
| 24491 | fi |
| 24492 | ;; |
| 24493 | esac |
| 24494 | ;; |
| 24495 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24496 | sunos4*) |
| 24497 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24498 | wlarc= |
| 24499 | hardcode_direct_GCJ=yes |
| 24500 | hardcode_shlibpath_var_GCJ=no |
| 24501 | ;; |
| 24502 | |
| 24503 | *) |
| 24504 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24505 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24506 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24507 | else |
| 24508 | ld_shlibs_GCJ=no |
| 24509 | fi |
| 24510 | ;; |
| 24511 | esac |
| 24512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24513 | if test "$ld_shlibs_GCJ" = no; then |
| 24514 | runpath_var= |
| 24515 | hardcode_libdir_flag_spec_GCJ= |
| 24516 | export_dynamic_flag_spec_GCJ= |
| 24517 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24518 | fi |
| 24519 | else |
| 24520 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24521 | case $host_os in |
| 24522 | aix3*) |
| 24523 | allow_undefined_flag_GCJ=unsupported |
| 24524 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24525 | 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] | 24526 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24527 | # are no directories specified by -L. |
| 24528 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24529 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24530 | # Neither direct hardcoding nor static linking is supported with a |
| 24531 | # broken collect2. |
| 24532 | hardcode_direct_GCJ=unsupported |
| 24533 | fi |
| 24534 | ;; |
| 24535 | |
| 24536 | aix4* | aix5*) |
| 24537 | if test "$host_cpu" = ia64; then |
| 24538 | # On IA64, the linker does run time linking by default, so we don't |
| 24539 | # have to do anything special. |
| 24540 | aix_use_runtimelinking=no |
| 24541 | exp_sym_flag='-Bexport' |
| 24542 | no_entry_flag="" |
| 24543 | else |
| 24544 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24545 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24546 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24547 | 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' |
| 24548 | else |
| 24549 | 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' |
| 24550 | fi |
| 24551 | aix_use_runtimelinking=no |
| 24552 | |
| 24553 | # Test if we are trying to use run time linking or normal |
| 24554 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24555 | # need to do runtime linking. |
| 24556 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24557 | for ld_flag in $LDFLAGS; do |
| 24558 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24559 | aix_use_runtimelinking=yes |
| 24560 | break |
| 24561 | fi |
| 24562 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24563 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24564 | esac |
| 24565 | |
| 24566 | exp_sym_flag='-bexport' |
| 24567 | no_entry_flag='-bnoentry' |
| 24568 | fi |
| 24569 | |
| 24570 | # When large executables or shared objects are built, AIX ld can |
| 24571 | # have problems creating the table of contents. If linking a library |
| 24572 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24573 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24574 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24575 | |
| 24576 | archive_cmds_GCJ='' |
| 24577 | hardcode_direct_GCJ=yes |
| 24578 | hardcode_libdir_separator_GCJ=':' |
| 24579 | link_all_deplibs_GCJ=yes |
| 24580 | |
| 24581 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24582 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24583 | # We only want to do this on AIX 4.2 and lower, the check |
| 24584 | # below for broken collect2 doesn't work under 4.3+ |
| 24585 | collect2name=`${CC} -print-prog-name=collect2` |
| 24586 | if test -f "$collect2name" && \ |
| 24587 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24588 | then |
| 24589 | # We have reworked collect2 |
| 24590 | hardcode_direct_GCJ=yes |
| 24591 | else |
| 24592 | # We have old collect2 |
| 24593 | hardcode_direct_GCJ=unsupported |
| 24594 | # It fails to find uninstalled libraries when the uninstalled |
| 24595 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24596 | # to unsupported forces relinking |
| 24597 | hardcode_minus_L_GCJ=yes |
| 24598 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24599 | hardcode_libdir_separator_GCJ= |
| 24600 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24601 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24602 | esac |
| 24603 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24604 | if test "$aix_use_runtimelinking" = yes; then |
| 24605 | shared_flag="$shared_flag "'${wl}-G' |
| 24606 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24607 | else |
| 24608 | # not using gcc |
| 24609 | if test "$host_cpu" = ia64; then |
| 24610 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24611 | # chokes on -Wl,-G. The following line is correct: |
| 24612 | shared_flag='-G' |
| 24613 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24614 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24615 | shared_flag='${wl}-G' |
| 24616 | else |
| 24617 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24618 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24619 | fi |
| 24620 | fi |
| 24621 | |
| 24622 | # It seems that -bexpall does not export symbols beginning with |
| 24623 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24624 | always_export_symbols_GCJ=yes |
| 24625 | if test "$aix_use_runtimelinking" = yes; then |
| 24626 | # Warning - without using the other runtime loading flags (-brtl), |
| 24627 | # -berok will link without error, but may produce a broken library. |
| 24628 | allow_undefined_flag_GCJ='-berok' |
| 24629 | # Determine the default libpath from the value encoded in an empty executable. |
| 24630 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24631 | /* confdefs.h. */ |
| 24632 | _ACEOF |
| 24633 | cat confdefs.h >>conftest.$ac_ext |
| 24634 | cat >>conftest.$ac_ext <<_ACEOF |
| 24635 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24636 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24637 | int |
| 24638 | main () |
| 24639 | { |
| 24640 | |
| 24641 | ; |
| 24642 | return 0; |
| 24643 | } |
| 24644 | _ACEOF |
| 24645 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24646 | if { (ac_try="$ac_link" |
| 24647 | case "(($ac_try" in |
| 24648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24649 | *) ac_try_echo=$ac_try;; |
| 24650 | esac |
| 24651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24652 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24653 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24655 | rm -f conftest.er1 |
| 24656 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24658 | (exit $ac_status); } && |
| 24659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24660 | { (case "(($ac_try" in |
| 24661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24662 | *) ac_try_echo=$ac_try;; |
| 24663 | esac |
| 24664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24665 | (eval "$ac_try") 2>&5 |
| 24666 | ac_status=$? |
| 24667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24668 | (exit $ac_status); }; } && |
| 24669 | { ac_try='test -s conftest$ac_exeext' |
| 24670 | { (case "(($ac_try" in |
| 24671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24672 | *) ac_try_echo=$ac_try;; |
| 24673 | esac |
| 24674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24675 | (eval "$ac_try") 2>&5 |
| 24676 | ac_status=$? |
| 24677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24678 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24679 | |
| 24680 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24681 | }'` |
| 24682 | # Check for a 64-bit object if we didn't find anything. |
| 24683 | 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; } |
| 24684 | }'`; fi |
| 24685 | else |
| 24686 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24691 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24692 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24693 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24694 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24695 | |
| 24696 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24697 | 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] | 24698 | else |
| 24699 | if test "$host_cpu" = ia64; then |
| 24700 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24701 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24702 | 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] | 24703 | else |
| 24704 | # Determine the default libpath from the value encoded in an empty executable. |
| 24705 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24706 | /* confdefs.h. */ |
| 24707 | _ACEOF |
| 24708 | cat confdefs.h >>conftest.$ac_ext |
| 24709 | cat >>conftest.$ac_ext <<_ACEOF |
| 24710 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24711 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24712 | int |
| 24713 | main () |
| 24714 | { |
| 24715 | |
| 24716 | ; |
| 24717 | return 0; |
| 24718 | } |
| 24719 | _ACEOF |
| 24720 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24721 | if { (ac_try="$ac_link" |
| 24722 | case "(($ac_try" in |
| 24723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24724 | *) ac_try_echo=$ac_try;; |
| 24725 | esac |
| 24726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24727 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24728 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24730 | rm -f conftest.er1 |
| 24731 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24733 | (exit $ac_status); } && |
| 24734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24735 | { (case "(($ac_try" in |
| 24736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24737 | *) ac_try_echo=$ac_try;; |
| 24738 | esac |
| 24739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24740 | (eval "$ac_try") 2>&5 |
| 24741 | ac_status=$? |
| 24742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24743 | (exit $ac_status); }; } && |
| 24744 | { ac_try='test -s conftest$ac_exeext' |
| 24745 | { (case "(($ac_try" in |
| 24746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24747 | *) ac_try_echo=$ac_try;; |
| 24748 | esac |
| 24749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24750 | (eval "$ac_try") 2>&5 |
| 24751 | ac_status=$? |
| 24752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24753 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24754 | |
| 24755 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24756 | }'` |
| 24757 | # Check for a 64-bit object if we didn't find anything. |
| 24758 | 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; } |
| 24759 | }'`; fi |
| 24760 | else |
| 24761 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24764 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24765 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24766 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 24767 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24768 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24769 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24770 | |
| 24771 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24772 | # Warning - without using the other run time loading flags, |
| 24773 | # -berok will link without error, but may produce a broken library. |
| 24774 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24775 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24776 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24777 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24778 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24779 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24780 | 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] | 24781 | fi |
| 24782 | fi |
| 24783 | ;; |
| 24784 | |
| 24785 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24786 | 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] | 24787 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24788 | hardcode_minus_L_GCJ=yes |
| 24789 | # see comment about different semantics on the GNU ld section |
| 24790 | ld_shlibs_GCJ=no |
| 24791 | ;; |
| 24792 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24793 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24794 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24795 | ;; |
| 24796 | |
| 24797 | cygwin* | mingw* | pw32*) |
| 24798 | # When not using gcc, we currently assume that we are using |
| 24799 | # Microsoft Visual C++. |
| 24800 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24801 | # no search path for DLLs. |
| 24802 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24803 | allow_undefined_flag_GCJ=unsupported |
| 24804 | # Tell ltmain to make .lib files, not .a files. |
| 24805 | libext=lib |
| 24806 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24807 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24808 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24809 | 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] | 24810 | # The linker will automatically build a .lib file if we build a DLL. |
| 24811 | old_archive_From_new_cmds_GCJ='true' |
| 24812 | # FIXME: Should let the user specify the lib program. |
| 24813 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24814 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24815 | enable_shared_with_static_runtimes_GCJ=yes |
| 24816 | ;; |
| 24817 | |
| 24818 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24819 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24820 | rhapsody* | darwin1.[012]) |
| 24821 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24822 | ;; |
| 24823 | *) # Darwin 1.3 on |
| 24824 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24825 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24826 | else |
| 24827 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24828 | 10.[012]) |
| 24829 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24830 | ;; |
| 24831 | 10.*) |
| 24832 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24833 | ;; |
| 24834 | esac |
| 24835 | fi |
| 24836 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24837 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24838 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24839 | hardcode_direct_GCJ=no |
| 24840 | hardcode_automatic_GCJ=yes |
| 24841 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24842 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24843 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24844 | if test "$GCC" = yes ; then |
| 24845 | output_verbose_link_cmd='echo' |
| 24846 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24847 | 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] | 24848 | # 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] | 24849 | 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}' |
| 24850 | 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] | 24851 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24852 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24853 | xlc*) |
| 24854 | output_verbose_link_cmd='echo' |
| 24855 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24856 | 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] | 24857 | # 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] | 24858 | 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}' |
| 24859 | 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] | 24860 | ;; |
| 24861 | *) |
| 24862 | ld_shlibs_GCJ=no |
| 24863 | ;; |
| 24864 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24865 | fi |
| 24866 | ;; |
| 24867 | |
| 24868 | dgux*) |
| 24869 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24870 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24871 | hardcode_shlibpath_var_GCJ=no |
| 24872 | ;; |
| 24873 | |
| 24874 | freebsd1*) |
| 24875 | ld_shlibs_GCJ=no |
| 24876 | ;; |
| 24877 | |
| 24878 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24879 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24880 | # does not break anything, and helps significantly (at the cost of a little |
| 24881 | # extra space). |
| 24882 | freebsd2.2*) |
| 24883 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24884 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24885 | hardcode_direct_GCJ=yes |
| 24886 | hardcode_shlibpath_var_GCJ=no |
| 24887 | ;; |
| 24888 | |
| 24889 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24890 | freebsd2*) |
| 24891 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24892 | hardcode_direct_GCJ=yes |
| 24893 | hardcode_minus_L_GCJ=yes |
| 24894 | hardcode_shlibpath_var_GCJ=no |
| 24895 | ;; |
| 24896 | |
| 24897 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24898 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24899 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24900 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24901 | hardcode_direct_GCJ=yes |
| 24902 | hardcode_shlibpath_var_GCJ=no |
| 24903 | ;; |
| 24904 | |
| 24905 | hpux9*) |
| 24906 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24907 | 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] | 24908 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24909 | 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] | 24910 | fi |
| 24911 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24912 | hardcode_libdir_separator_GCJ=: |
| 24913 | hardcode_direct_GCJ=yes |
| 24914 | |
| 24915 | # hardcode_minus_L: Not really in the search PATH, |
| 24916 | # but as the default location of the library. |
| 24917 | hardcode_minus_L_GCJ=yes |
| 24918 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24919 | ;; |
| 24920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24921 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24922 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24923 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24924 | else |
| 24925 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24926 | fi |
| 24927 | if test "$with_gnu_ld" = no; then |
| 24928 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24929 | hardcode_libdir_separator_GCJ=: |
| 24930 | |
| 24931 | hardcode_direct_GCJ=yes |
| 24932 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24933 | |
| 24934 | # hardcode_minus_L: Not really in the search PATH, |
| 24935 | # but as the default location of the library. |
| 24936 | hardcode_minus_L_GCJ=yes |
| 24937 | fi |
| 24938 | ;; |
| 24939 | |
| 24940 | hpux11*) |
| 24941 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24942 | case $host_cpu in |
| 24943 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24944 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24945 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24946 | ia64*) |
| 24947 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24948 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24949 | *) |
| 24950 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24951 | ;; |
| 24952 | esac |
| 24953 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24954 | case $host_cpu in |
| 24955 | hppa*64*) |
| 24956 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24957 | ;; |
| 24958 | ia64*) |
| 24959 | 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] | 24960 | ;; |
| 24961 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24962 | 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] | 24963 | ;; |
| 24964 | esac |
| 24965 | fi |
| 24966 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24967 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24968 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24970 | case $host_cpu in |
| 24971 | hppa*64*|ia64*) |
| 24972 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24973 | hardcode_direct_GCJ=no |
| 24974 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24975 | ;; |
| 24976 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24977 | hardcode_direct_GCJ=yes |
| 24978 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24979 | |
| 24980 | # hardcode_minus_L: Not really in the search PATH, |
| 24981 | # but as the default location of the library. |
| 24982 | hardcode_minus_L_GCJ=yes |
| 24983 | ;; |
| 24984 | esac |
| 24985 | fi |
| 24986 | ;; |
| 24987 | |
| 24988 | irix5* | irix6* | nonstopux*) |
| 24989 | if test "$GCC" = yes; then |
| 24990 | 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' |
| 24991 | else |
| 24992 | 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' |
| 24993 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24994 | fi |
| 24995 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24996 | hardcode_libdir_separator_GCJ=: |
| 24997 | link_all_deplibs_GCJ=yes |
| 24998 | ;; |
| 24999 | |
| 25000 | netbsd*) |
| 25001 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25002 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25003 | else |
| 25004 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25005 | fi |
| 25006 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25007 | hardcode_direct_GCJ=yes |
| 25008 | hardcode_shlibpath_var_GCJ=no |
| 25009 | ;; |
| 25010 | |
| 25011 | newsos6) |
| 25012 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25013 | hardcode_direct_GCJ=yes |
| 25014 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25015 | hardcode_libdir_separator_GCJ=: |
| 25016 | hardcode_shlibpath_var_GCJ=no |
| 25017 | ;; |
| 25018 | |
| 25019 | openbsd*) |
| 25020 | hardcode_direct_GCJ=yes |
| 25021 | hardcode_shlibpath_var_GCJ=no |
| 25022 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25023 | 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] | 25024 | 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] | 25025 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25026 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25027 | else |
| 25028 | case $host_os in |
| 25029 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25030 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25031 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25032 | ;; |
| 25033 | *) |
| 25034 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25035 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25036 | ;; |
| 25037 | esac |
| 25038 | fi |
| 25039 | ;; |
| 25040 | |
| 25041 | os2*) |
| 25042 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25043 | hardcode_minus_L_GCJ=yes |
| 25044 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25045 | 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] | 25046 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25047 | ;; |
| 25048 | |
| 25049 | osf3*) |
| 25050 | if test "$GCC" = yes; then |
| 25051 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25052 | 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' |
| 25053 | else |
| 25054 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25055 | 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' |
| 25056 | fi |
| 25057 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25058 | hardcode_libdir_separator_GCJ=: |
| 25059 | ;; |
| 25060 | |
| 25061 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25062 | if test "$GCC" = yes; then |
| 25063 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25064 | 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' |
| 25065 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25066 | else |
| 25067 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25068 | 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] | 25069 | 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] | 25070 | $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] | 25071 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25072 | # Both c and cxx compiler support -rpath directly |
| 25073 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25074 | fi |
| 25075 | hardcode_libdir_separator_GCJ=: |
| 25076 | ;; |
| 25077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25078 | solaris*) |
| 25079 | no_undefined_flag_GCJ=' -z text' |
| 25080 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25081 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25082 | 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] | 25083 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25084 | $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] | 25085 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25086 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25087 | 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] | 25088 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25089 | $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] | 25090 | fi |
| 25091 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25092 | hardcode_shlibpath_var_GCJ=no |
| 25093 | case $host_os in |
| 25094 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25095 | *) |
| 25096 | # The compiler driver will combine linker options so we |
| 25097 | # cannot just pass the convience library names through |
| 25098 | # without $wl, iff we do not link with $LD. |
| 25099 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25100 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25101 | case $wlarc in |
| 25102 | '') |
| 25103 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25104 | *) |
| 25105 | 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' ;; |
| 25106 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25107 | esac |
| 25108 | link_all_deplibs_GCJ=yes |
| 25109 | ;; |
| 25110 | |
| 25111 | sunos4*) |
| 25112 | if test "x$host_vendor" = xsequent; then |
| 25113 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25114 | # files that make .init and .fini sections work. |
| 25115 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25116 | else |
| 25117 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25118 | fi |
| 25119 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25120 | hardcode_direct_GCJ=yes |
| 25121 | hardcode_minus_L_GCJ=yes |
| 25122 | hardcode_shlibpath_var_GCJ=no |
| 25123 | ;; |
| 25124 | |
| 25125 | sysv4) |
| 25126 | case $host_vendor in |
| 25127 | sni) |
| 25128 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25129 | hardcode_direct_GCJ=yes # is this really true??? |
| 25130 | ;; |
| 25131 | siemens) |
| 25132 | ## LD is ld it makes a PLAMLIB |
| 25133 | ## CC just makes a GrossModule. |
| 25134 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25135 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25136 | hardcode_direct_GCJ=no |
| 25137 | ;; |
| 25138 | motorola) |
| 25139 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25140 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25141 | ;; |
| 25142 | esac |
| 25143 | runpath_var='LD_RUN_PATH' |
| 25144 | hardcode_shlibpath_var_GCJ=no |
| 25145 | ;; |
| 25146 | |
| 25147 | sysv4.3*) |
| 25148 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25149 | hardcode_shlibpath_var_GCJ=no |
| 25150 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25151 | ;; |
| 25152 | |
| 25153 | sysv4*MP*) |
| 25154 | if test -d /usr/nec; then |
| 25155 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25156 | hardcode_shlibpath_var_GCJ=no |
| 25157 | runpath_var=LD_RUN_PATH |
| 25158 | hardcode_runpath_var=yes |
| 25159 | ld_shlibs_GCJ=yes |
| 25160 | fi |
| 25161 | ;; |
| 25162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25163 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25164 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25165 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25166 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25167 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25169 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25170 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25171 | 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] | 25172 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25173 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25174 | 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] | 25175 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25176 | ;; |
| 25177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25178 | sysv5* | sco3.2v5* | sco5v6*) |
| 25179 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25180 | # link with -lc, and that would cause any symbols used from libc to |
| 25181 | # always be unresolved, which means just about no library would |
| 25182 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25183 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25184 | # as -z defs. |
| 25185 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25186 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25187 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25188 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25189 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25190 | hardcode_libdir_separator_GCJ=':' |
| 25191 | link_all_deplibs_GCJ=yes |
| 25192 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25193 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25194 | |
| 25195 | if test "$GCC" = yes; then |
| 25196 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25197 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25198 | else |
| 25199 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25200 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25201 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25202 | ;; |
| 25203 | |
| 25204 | uts4*) |
| 25205 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25206 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25207 | hardcode_shlibpath_var_GCJ=no |
| 25208 | ;; |
| 25209 | |
| 25210 | *) |
| 25211 | ld_shlibs_GCJ=no |
| 25212 | ;; |
| 25213 | esac |
| 25214 | fi |
| 25215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25216 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25217 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25218 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25219 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25220 | # |
| 25221 | # Do we need to explicitly link libc? |
| 25222 | # |
| 25223 | case "x$archive_cmds_need_lc_GCJ" in |
| 25224 | x|xyes) |
| 25225 | # Assume -lc should be added |
| 25226 | archive_cmds_need_lc_GCJ=yes |
| 25227 | |
| 25228 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25229 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25230 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25231 | # FIXME: we may have to deal with multi-command sequences. |
| 25232 | ;; |
| 25233 | '$CC '*) |
| 25234 | # Test whether the compiler implicitly links with -lc since on some |
| 25235 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25236 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25237 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25238 | 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] | 25239 | $rm conftest* |
| 25240 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25241 | |
| 25242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25243 | (eval $ac_compile) 2>&5 |
| 25244 | ac_status=$? |
| 25245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25246 | (exit $ac_status); } 2>conftest.err; then |
| 25247 | soname=conftest |
| 25248 | lib=conftest |
| 25249 | libobjs=conftest.$ac_objext |
| 25250 | deplibs= |
| 25251 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25252 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25253 | compiler_flags=-v |
| 25254 | linker_flags=-v |
| 25255 | verstring= |
| 25256 | output_objdir=. |
| 25257 | libname=conftest |
| 25258 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25259 | allow_undefined_flag_GCJ= |
| 25260 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25261 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25262 | ac_status=$? |
| 25263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25264 | (exit $ac_status); } |
| 25265 | then |
| 25266 | archive_cmds_need_lc_GCJ=no |
| 25267 | else |
| 25268 | archive_cmds_need_lc_GCJ=yes |
| 25269 | fi |
| 25270 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25271 | else |
| 25272 | cat conftest.err 1>&5 |
| 25273 | fi |
| 25274 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25275 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25276 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25277 | ;; |
| 25278 | esac |
| 25279 | fi |
| 25280 | ;; |
| 25281 | esac |
| 25282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25283 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25284 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25285 | library_names_spec= |
| 25286 | libname_spec='lib$name' |
| 25287 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25288 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25289 | postinstall_cmds= |
| 25290 | postuninstall_cmds= |
| 25291 | finish_cmds= |
| 25292 | finish_eval= |
| 25293 | shlibpath_var= |
| 25294 | shlibpath_overrides_runpath=unknown |
| 25295 | version_type=none |
| 25296 | dynamic_linker="$host_os ld.so" |
| 25297 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25298 | if test "$GCC" = yes; then |
| 25299 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25300 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25301 | # if the path contains ";" then we assume it to be the separator |
| 25302 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25303 | # assumed that no part of a normal pathname contains ";" but that should |
| 25304 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25305 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25306 | else |
| 25307 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25308 | fi |
| 25309 | else |
| 25310 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25311 | fi |
| 25312 | need_lib_prefix=unknown |
| 25313 | hardcode_into_libs=no |
| 25314 | |
| 25315 | # when you set need_version to no, make sure it does not cause -set_version |
| 25316 | # flags to be left without arguments |
| 25317 | need_version=unknown |
| 25318 | |
| 25319 | case $host_os in |
| 25320 | aix3*) |
| 25321 | version_type=linux |
| 25322 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25323 | shlibpath_var=LIBPATH |
| 25324 | |
| 25325 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25327 | ;; |
| 25328 | |
| 25329 | aix4* | aix5*) |
| 25330 | version_type=linux |
| 25331 | need_lib_prefix=no |
| 25332 | need_version=no |
| 25333 | hardcode_into_libs=yes |
| 25334 | if test "$host_cpu" = ia64; then |
| 25335 | # AIX 5 supports IA64 |
| 25336 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25337 | shlibpath_var=LD_LIBRARY_PATH |
| 25338 | else |
| 25339 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25340 | # for dependence libraries. The import file would start with |
| 25341 | # the line `#! .'. This would cause the generated library to |
| 25342 | # depend on `.', always an invalid library. This was fixed in |
| 25343 | # development snapshots of GCC prior to 3.0. |
| 25344 | case $host_os in |
| 25345 | aix4 | aix4.[01] | aix4.[01].*) |
| 25346 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25347 | echo ' yes ' |
| 25348 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25349 | : |
| 25350 | else |
| 25351 | can_build_shared=no |
| 25352 | fi |
| 25353 | ;; |
| 25354 | esac |
| 25355 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25356 | # soname into executable. Probably we can add versioning support to |
| 25357 | # collect2, so additional links can be useful in future. |
| 25358 | if test "$aix_use_runtimelinking" = yes; then |
| 25359 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25360 | # instead of lib<name>.a to let people know that these are not |
| 25361 | # typical AIX shared libraries. |
| 25362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25363 | else |
| 25364 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25365 | # and later when we are not doing run time linking. |
| 25366 | library_names_spec='${libname}${release}.a $libname.a' |
| 25367 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25368 | fi |
| 25369 | shlibpath_var=LIBPATH |
| 25370 | fi |
| 25371 | ;; |
| 25372 | |
| 25373 | amigaos*) |
| 25374 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25375 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25376 | 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] | 25377 | ;; |
| 25378 | |
| 25379 | beos*) |
| 25380 | library_names_spec='${libname}${shared_ext}' |
| 25381 | dynamic_linker="$host_os ld.so" |
| 25382 | shlibpath_var=LIBRARY_PATH |
| 25383 | ;; |
| 25384 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25385 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25386 | version_type=linux |
| 25387 | need_version=no |
| 25388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25389 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25390 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25391 | shlibpath_var=LD_LIBRARY_PATH |
| 25392 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25393 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25394 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25395 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25396 | # libtool to hard-code these into programs |
| 25397 | ;; |
| 25398 | |
| 25399 | cygwin* | mingw* | pw32*) |
| 25400 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25401 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25402 | need_version=no |
| 25403 | need_lib_prefix=no |
| 25404 | |
| 25405 | case $GCC,$host_os in |
| 25406 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25407 | library_names_spec='$libname.dll.a' |
| 25408 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25409 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25410 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25411 | dldir=$destdir/`dirname \$dlpath`~ |
| 25412 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25413 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25414 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25415 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25416 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25417 | $rm \$dlpath' |
| 25418 | shlibpath_overrides_runpath=yes |
| 25419 | |
| 25420 | case $host_os in |
| 25421 | cygwin*) |
| 25422 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25423 | 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] | 25424 | 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] | 25425 | ;; |
| 25426 | mingw*) |
| 25427 | # MinGW DLLs use traditional 'lib' prefix |
| 25428 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25429 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25430 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25431 | # It is most probably a Windows format PATH printed by |
| 25432 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25433 | # path with ; separators, and with drive letters. We can handle the |
| 25434 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25435 | # especially as we might pass files found there to a mingw objdump, |
| 25436 | # which wouldn't understand a cygwinified path. Ahh. |
| 25437 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25438 | else |
| 25439 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25440 | fi |
| 25441 | ;; |
| 25442 | pw32*) |
| 25443 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25444 | 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] | 25445 | ;; |
| 25446 | esac |
| 25447 | ;; |
| 25448 | |
| 25449 | *) |
| 25450 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25451 | ;; |
| 25452 | esac |
| 25453 | dynamic_linker='Win32 ld.exe' |
| 25454 | # FIXME: first we should search . and the directory the executable is in |
| 25455 | shlibpath_var=PATH |
| 25456 | ;; |
| 25457 | |
| 25458 | darwin* | rhapsody*) |
| 25459 | dynamic_linker="$host_os dyld" |
| 25460 | version_type=darwin |
| 25461 | need_lib_prefix=no |
| 25462 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25463 | 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] | 25464 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25465 | shlibpath_overrides_runpath=yes |
| 25466 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25467 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25468 | # 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] | 25469 | if test "$GCC" = yes; then |
| 25470 | 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"` |
| 25471 | else |
| 25472 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25473 | fi |
| 25474 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25475 | ;; |
| 25476 | |
| 25477 | dgux*) |
| 25478 | version_type=linux |
| 25479 | need_lib_prefix=no |
| 25480 | need_version=no |
| 25481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25482 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25483 | shlibpath_var=LD_LIBRARY_PATH |
| 25484 | ;; |
| 25485 | |
| 25486 | freebsd1*) |
| 25487 | dynamic_linker=no |
| 25488 | ;; |
| 25489 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25490 | kfreebsd*-gnu) |
| 25491 | version_type=linux |
| 25492 | need_lib_prefix=no |
| 25493 | need_version=no |
| 25494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25496 | shlibpath_var=LD_LIBRARY_PATH |
| 25497 | shlibpath_overrides_runpath=no |
| 25498 | hardcode_into_libs=yes |
| 25499 | dynamic_linker='GNU ld.so' |
| 25500 | ;; |
| 25501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25502 | freebsd* | dragonfly*) |
| 25503 | # DragonFly does not have aout. When/if they implement a new |
| 25504 | # versioning mechanism, adjust this. |
| 25505 | if test -x /usr/bin/objformat; then |
| 25506 | objformat=`/usr/bin/objformat` |
| 25507 | else |
| 25508 | case $host_os in |
| 25509 | freebsd[123]*) objformat=aout ;; |
| 25510 | *) objformat=elf ;; |
| 25511 | esac |
| 25512 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25513 | version_type=freebsd-$objformat |
| 25514 | case $version_type in |
| 25515 | freebsd-elf*) |
| 25516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25517 | need_version=no |
| 25518 | need_lib_prefix=no |
| 25519 | ;; |
| 25520 | freebsd-*) |
| 25521 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25522 | need_version=yes |
| 25523 | ;; |
| 25524 | esac |
| 25525 | shlibpath_var=LD_LIBRARY_PATH |
| 25526 | case $host_os in |
| 25527 | freebsd2*) |
| 25528 | shlibpath_overrides_runpath=yes |
| 25529 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25530 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25531 | shlibpath_overrides_runpath=yes |
| 25532 | hardcode_into_libs=yes |
| 25533 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25534 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25535 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25536 | shlibpath_overrides_runpath=no |
| 25537 | hardcode_into_libs=yes |
| 25538 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25539 | freebsd*) # from 4.6 on |
| 25540 | shlibpath_overrides_runpath=yes |
| 25541 | hardcode_into_libs=yes |
| 25542 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25543 | esac |
| 25544 | ;; |
| 25545 | |
| 25546 | gnu*) |
| 25547 | version_type=linux |
| 25548 | need_lib_prefix=no |
| 25549 | need_version=no |
| 25550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25552 | shlibpath_var=LD_LIBRARY_PATH |
| 25553 | hardcode_into_libs=yes |
| 25554 | ;; |
| 25555 | |
| 25556 | hpux9* | hpux10* | hpux11*) |
| 25557 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25558 | # link against other versions. |
| 25559 | version_type=sunos |
| 25560 | need_lib_prefix=no |
| 25561 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25562 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25563 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25564 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25565 | hardcode_into_libs=yes |
| 25566 | dynamic_linker="$host_os dld.so" |
| 25567 | shlibpath_var=LD_LIBRARY_PATH |
| 25568 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25571 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25572 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25573 | else |
| 25574 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25575 | fi |
| 25576 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25577 | ;; |
| 25578 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25579 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25580 | hardcode_into_libs=yes |
| 25581 | dynamic_linker="$host_os dld.sl" |
| 25582 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25583 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25585 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25586 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25587 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25588 | ;; |
| 25589 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25590 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25591 | dynamic_linker="$host_os dld.sl" |
| 25592 | shlibpath_var=SHLIB_PATH |
| 25593 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25596 | ;; |
| 25597 | esac |
| 25598 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25599 | postinstall_cmds='chmod 555 $lib' |
| 25600 | ;; |
| 25601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25602 | interix3*) |
| 25603 | version_type=linux |
| 25604 | need_lib_prefix=no |
| 25605 | need_version=no |
| 25606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25608 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25609 | shlibpath_var=LD_LIBRARY_PATH |
| 25610 | shlibpath_overrides_runpath=no |
| 25611 | hardcode_into_libs=yes |
| 25612 | ;; |
| 25613 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25614 | irix5* | irix6* | nonstopux*) |
| 25615 | case $host_os in |
| 25616 | nonstopux*) version_type=nonstopux ;; |
| 25617 | *) |
| 25618 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25619 | version_type=linux |
| 25620 | else |
| 25621 | version_type=irix |
| 25622 | fi ;; |
| 25623 | esac |
| 25624 | need_lib_prefix=no |
| 25625 | need_version=no |
| 25626 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25628 | case $host_os in |
| 25629 | irix5* | nonstopux*) |
| 25630 | libsuff= shlibsuff= |
| 25631 | ;; |
| 25632 | *) |
| 25633 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25634 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25635 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25636 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25637 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25638 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25639 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25640 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25641 | esac |
| 25642 | ;; |
| 25643 | esac |
| 25644 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25645 | shlibpath_overrides_runpath=no |
| 25646 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25647 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25648 | hardcode_into_libs=yes |
| 25649 | ;; |
| 25650 | |
| 25651 | # No shared lib support for Linux oldld, aout, or coff. |
| 25652 | linux*oldld* | linux*aout* | linux*coff*) |
| 25653 | dynamic_linker=no |
| 25654 | ;; |
| 25655 | |
| 25656 | # This must be Linux ELF. |
| 25657 | linux*) |
| 25658 | version_type=linux |
| 25659 | need_lib_prefix=no |
| 25660 | need_version=no |
| 25661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25663 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25664 | shlibpath_var=LD_LIBRARY_PATH |
| 25665 | shlibpath_overrides_runpath=no |
| 25666 | # This implies no fast_install, which is unacceptable. |
| 25667 | # Some rework will be needed to allow for fast_install |
| 25668 | # before this can be enabled. |
| 25669 | hardcode_into_libs=yes |
| 25670 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25671 | # Append ld.so.conf contents to the search path |
| 25672 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25673 | 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] | 25674 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25675 | fi |
| 25676 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25677 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25678 | # powerpc, because MkLinux only supported shared libraries with the |
| 25679 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25680 | # most powerpc-linux boxes support dynamic linking these days and |
| 25681 | # people can always --disable-shared, the test was removed, and we |
| 25682 | # assume the GNU/Linux dynamic linker is in use. |
| 25683 | dynamic_linker='GNU/Linux ld.so' |
| 25684 | ;; |
| 25685 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25686 | knetbsd*-gnu) |
| 25687 | version_type=linux |
| 25688 | need_lib_prefix=no |
| 25689 | need_version=no |
| 25690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25691 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25692 | shlibpath_var=LD_LIBRARY_PATH |
| 25693 | shlibpath_overrides_runpath=no |
| 25694 | hardcode_into_libs=yes |
| 25695 | dynamic_linker='GNU ld.so' |
| 25696 | ;; |
| 25697 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25698 | netbsd*) |
| 25699 | version_type=sunos |
| 25700 | need_lib_prefix=no |
| 25701 | need_version=no |
| 25702 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25704 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25705 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25706 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25707 | 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] | 25708 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25709 | dynamic_linker='NetBSD ld.elf_so' |
| 25710 | fi |
| 25711 | shlibpath_var=LD_LIBRARY_PATH |
| 25712 | shlibpath_overrides_runpath=yes |
| 25713 | hardcode_into_libs=yes |
| 25714 | ;; |
| 25715 | |
| 25716 | newsos6) |
| 25717 | version_type=linux |
| 25718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25719 | shlibpath_var=LD_LIBRARY_PATH |
| 25720 | shlibpath_overrides_runpath=yes |
| 25721 | ;; |
| 25722 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25723 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25724 | version_type=linux |
| 25725 | need_lib_prefix=no |
| 25726 | need_version=no |
| 25727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25728 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25729 | shlibpath_var=LD_LIBRARY_PATH |
| 25730 | shlibpath_overrides_runpath=yes |
| 25731 | ;; |
| 25732 | |
| 25733 | openbsd*) |
| 25734 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25735 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25736 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25737 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25738 | case $host_os in |
| 25739 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25740 | *) need_version=no ;; |
| 25741 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25743 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25744 | shlibpath_var=LD_LIBRARY_PATH |
| 25745 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25746 | case $host_os in |
| 25747 | openbsd2.[89] | openbsd2.[89].*) |
| 25748 | shlibpath_overrides_runpath=no |
| 25749 | ;; |
| 25750 | *) |
| 25751 | shlibpath_overrides_runpath=yes |
| 25752 | ;; |
| 25753 | esac |
| 25754 | else |
| 25755 | shlibpath_overrides_runpath=yes |
| 25756 | fi |
| 25757 | ;; |
| 25758 | |
| 25759 | os2*) |
| 25760 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25761 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25762 | need_lib_prefix=no |
| 25763 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25764 | dynamic_linker='OS/2 ld.exe' |
| 25765 | shlibpath_var=LIBPATH |
| 25766 | ;; |
| 25767 | |
| 25768 | osf3* | osf4* | osf5*) |
| 25769 | version_type=osf |
| 25770 | need_lib_prefix=no |
| 25771 | need_version=no |
| 25772 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25774 | shlibpath_var=LD_LIBRARY_PATH |
| 25775 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25776 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25777 | ;; |
| 25778 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25779 | solaris*) |
| 25780 | version_type=linux |
| 25781 | need_lib_prefix=no |
| 25782 | need_version=no |
| 25783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25784 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25785 | shlibpath_var=LD_LIBRARY_PATH |
| 25786 | shlibpath_overrides_runpath=yes |
| 25787 | hardcode_into_libs=yes |
| 25788 | # ldd complains unless libraries are executable |
| 25789 | postinstall_cmds='chmod +x $lib' |
| 25790 | ;; |
| 25791 | |
| 25792 | sunos4*) |
| 25793 | version_type=sunos |
| 25794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25795 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25796 | shlibpath_var=LD_LIBRARY_PATH |
| 25797 | shlibpath_overrides_runpath=yes |
| 25798 | if test "$with_gnu_ld" = yes; then |
| 25799 | need_lib_prefix=no |
| 25800 | fi |
| 25801 | need_version=yes |
| 25802 | ;; |
| 25803 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25804 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25805 | version_type=linux |
| 25806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25808 | shlibpath_var=LD_LIBRARY_PATH |
| 25809 | case $host_vendor in |
| 25810 | sni) |
| 25811 | shlibpath_overrides_runpath=no |
| 25812 | need_lib_prefix=no |
| 25813 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25814 | runpath_var=LD_RUN_PATH |
| 25815 | ;; |
| 25816 | siemens) |
| 25817 | need_lib_prefix=no |
| 25818 | ;; |
| 25819 | motorola) |
| 25820 | need_lib_prefix=no |
| 25821 | need_version=no |
| 25822 | shlibpath_overrides_runpath=no |
| 25823 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25824 | ;; |
| 25825 | esac |
| 25826 | ;; |
| 25827 | |
| 25828 | sysv4*MP*) |
| 25829 | if test -d /usr/nec ;then |
| 25830 | version_type=linux |
| 25831 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25832 | soname_spec='$libname${shared_ext}.$major' |
| 25833 | shlibpath_var=LD_LIBRARY_PATH |
| 25834 | fi |
| 25835 | ;; |
| 25836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25837 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25838 | version_type=freebsd-elf |
| 25839 | need_lib_prefix=no |
| 25840 | need_version=no |
| 25841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25843 | shlibpath_var=LD_LIBRARY_PATH |
| 25844 | hardcode_into_libs=yes |
| 25845 | if test "$with_gnu_ld" = yes; then |
| 25846 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25847 | shlibpath_overrides_runpath=no |
| 25848 | else |
| 25849 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25850 | shlibpath_overrides_runpath=yes |
| 25851 | case $host_os in |
| 25852 | sco3.2v5*) |
| 25853 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25854 | ;; |
| 25855 | esac |
| 25856 | fi |
| 25857 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25858 | ;; |
| 25859 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25860 | uts4*) |
| 25861 | version_type=linux |
| 25862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25863 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25864 | shlibpath_var=LD_LIBRARY_PATH |
| 25865 | ;; |
| 25866 | |
| 25867 | *) |
| 25868 | dynamic_linker=no |
| 25869 | ;; |
| 25870 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25871 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25872 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25873 | test "$dynamic_linker" = no && can_build_shared=no |
| 25874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25875 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25876 | if test "$GCC" = yes; then |
| 25877 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25878 | fi |
| 25879 | |
| 25880 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25881 | 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] | 25882 | hardcode_action_GCJ= |
| 25883 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25884 | test -n "$runpath_var_GCJ" || \ |
| 25885 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25886 | |
| 25887 | # We can hardcode non-existant directories. |
| 25888 | if test "$hardcode_direct_GCJ" != no && |
| 25889 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25890 | # have to relink, otherwise we might link with an installed library |
| 25891 | # when we should be linking with a yet-to-be-installed one |
| 25892 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25893 | test "$hardcode_minus_L_GCJ" != no; then |
| 25894 | # Linking always hardcodes the temporary library directory. |
| 25895 | hardcode_action_GCJ=relink |
| 25896 | else |
| 25897 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25898 | hardcode_action_GCJ=immediate |
| 25899 | fi |
| 25900 | else |
| 25901 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25902 | # directories. |
| 25903 | hardcode_action_GCJ=unsupported |
| 25904 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25905 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25906 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25907 | |
| 25908 | if test "$hardcode_action_GCJ" = relink; then |
| 25909 | # Fast installation is not supported |
| 25910 | enable_fast_install=no |
| 25911 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25912 | test "$enable_shared" = no; then |
| 25913 | # Fast installation is not necessary |
| 25914 | enable_fast_install=needless |
| 25915 | fi |
| 25916 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25917 | |
| 25918 | # The else clause should only fire when bootstrapping the |
| 25919 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25920 | # with your package, and you will get complaints that there are |
| 25921 | # no rules to generate ltmain.sh. |
| 25922 | if test -f "$ltmain"; then |
| 25923 | # See if we are running on zsh, and set the options which allow our commands through |
| 25924 | # without removal of \ escapes. |
| 25925 | if test -n "${ZSH_VERSION+set}" ; then |
| 25926 | setopt NO_GLOB_SUBST |
| 25927 | fi |
| 25928 | # Now quote all the things that may contain metacharacters while being |
| 25929 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25930 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25931 | 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] | 25932 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25933 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25934 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25935 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25936 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25937 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25938 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25939 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25940 | compiler_GCJ \ |
| 25941 | CC_GCJ \ |
| 25942 | LD_GCJ \ |
| 25943 | lt_prog_compiler_wl_GCJ \ |
| 25944 | lt_prog_compiler_pic_GCJ \ |
| 25945 | lt_prog_compiler_static_GCJ \ |
| 25946 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25947 | export_dynamic_flag_spec_GCJ \ |
| 25948 | thread_safe_flag_spec_GCJ \ |
| 25949 | whole_archive_flag_spec_GCJ \ |
| 25950 | enable_shared_with_static_runtimes_GCJ \ |
| 25951 | old_archive_cmds_GCJ \ |
| 25952 | old_archive_from_new_cmds_GCJ \ |
| 25953 | predep_objects_GCJ \ |
| 25954 | postdep_objects_GCJ \ |
| 25955 | predeps_GCJ \ |
| 25956 | postdeps_GCJ \ |
| 25957 | compiler_lib_search_path_GCJ \ |
| 25958 | archive_cmds_GCJ \ |
| 25959 | archive_expsym_cmds_GCJ \ |
| 25960 | postinstall_cmds_GCJ \ |
| 25961 | postuninstall_cmds_GCJ \ |
| 25962 | old_archive_from_expsyms_cmds_GCJ \ |
| 25963 | allow_undefined_flag_GCJ \ |
| 25964 | no_undefined_flag_GCJ \ |
| 25965 | export_symbols_cmds_GCJ \ |
| 25966 | hardcode_libdir_flag_spec_GCJ \ |
| 25967 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25968 | hardcode_libdir_separator_GCJ \ |
| 25969 | hardcode_automatic_GCJ \ |
| 25970 | module_cmds_GCJ \ |
| 25971 | module_expsym_cmds_GCJ \ |
| 25972 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25973 | exclude_expsyms_GCJ \ |
| 25974 | include_expsyms_GCJ; do |
| 25975 | |
| 25976 | case $var in |
| 25977 | old_archive_cmds_GCJ | \ |
| 25978 | old_archive_from_new_cmds_GCJ | \ |
| 25979 | archive_cmds_GCJ | \ |
| 25980 | archive_expsym_cmds_GCJ | \ |
| 25981 | module_cmds_GCJ | \ |
| 25982 | module_expsym_cmds_GCJ | \ |
| 25983 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25984 | export_symbols_cmds_GCJ | \ |
| 25985 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25986 | postinstall_cmds | postuninstall_cmds | \ |
| 25987 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25988 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25989 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25990 | 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] | 25991 | ;; |
| 25992 | *) |
| 25993 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25994 | ;; |
| 25995 | esac |
| 25996 | done |
| 25997 | |
| 25998 | case $lt_echo in |
| 25999 | *'\$0 --fallback-echo"') |
| 26000 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26001 | ;; |
| 26002 | esac |
| 26003 | |
| 26004 | cfgfile="$ofile" |
| 26005 | |
| 26006 | cat <<__EOF__ >> "$cfgfile" |
| 26007 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26008 | |
| 26009 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26010 | |
| 26011 | # Shell to use when invoking shell scripts. |
| 26012 | SHELL=$lt_SHELL |
| 26013 | |
| 26014 | # Whether or not to build shared libraries. |
| 26015 | build_libtool_libs=$enable_shared |
| 26016 | |
| 26017 | # Whether or not to build static libraries. |
| 26018 | build_old_libs=$enable_static |
| 26019 | |
| 26020 | # Whether or not to add -lc for building shared libraries. |
| 26021 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26022 | |
| 26023 | # Whether or not to disallow shared libs when runtime libs are static |
| 26024 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26025 | |
| 26026 | # Whether or not to optimize for fast installation. |
| 26027 | fast_install=$enable_fast_install |
| 26028 | |
| 26029 | # The host system. |
| 26030 | host_alias=$host_alias |
| 26031 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26032 | host_os=$host_os |
| 26033 | |
| 26034 | # The build system. |
| 26035 | build_alias=$build_alias |
| 26036 | build=$build |
| 26037 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26038 | |
| 26039 | # An echo program that does not interpret backslashes. |
| 26040 | echo=$lt_echo |
| 26041 | |
| 26042 | # The archiver. |
| 26043 | AR=$lt_AR |
| 26044 | AR_FLAGS=$lt_AR_FLAGS |
| 26045 | |
| 26046 | # A C compiler. |
| 26047 | LTCC=$lt_LTCC |
| 26048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26049 | # LTCC compiler flags. |
| 26050 | LTCFLAGS=$lt_LTCFLAGS |
| 26051 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26052 | # A language-specific compiler. |
| 26053 | CC=$lt_compiler_GCJ |
| 26054 | |
| 26055 | # Is the compiler the GNU C compiler? |
| 26056 | with_gcc=$GCC_GCJ |
| 26057 | |
| 26058 | # An ERE matcher. |
| 26059 | EGREP=$lt_EGREP |
| 26060 | |
| 26061 | # The linker used to build libraries. |
| 26062 | LD=$lt_LD_GCJ |
| 26063 | |
| 26064 | # Whether we need hard or soft links. |
| 26065 | LN_S=$lt_LN_S |
| 26066 | |
| 26067 | # A BSD-compatible nm program. |
| 26068 | NM=$lt_NM |
| 26069 | |
| 26070 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26071 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26072 | |
| 26073 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26074 | MAGIC_CMD=$MAGIC_CMD |
| 26075 | |
| 26076 | # Used on cygwin: DLL creation program. |
| 26077 | DLLTOOL="$DLLTOOL" |
| 26078 | |
| 26079 | # Used on cygwin: object dumper. |
| 26080 | OBJDUMP="$OBJDUMP" |
| 26081 | |
| 26082 | # Used on cygwin: assembler. |
| 26083 | AS="$AS" |
| 26084 | |
| 26085 | # The name of the directory that contains temporary libtool files. |
| 26086 | objdir=$objdir |
| 26087 | |
| 26088 | # How to create reloadable object files. |
| 26089 | reload_flag=$lt_reload_flag |
| 26090 | reload_cmds=$lt_reload_cmds |
| 26091 | |
| 26092 | # How to pass a linker flag through the compiler. |
| 26093 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26094 | |
| 26095 | # Object file suffix (normally "o"). |
| 26096 | objext="$ac_objext" |
| 26097 | |
| 26098 | # Old archive suffix (normally "a"). |
| 26099 | libext="$libext" |
| 26100 | |
| 26101 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26102 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26103 | |
| 26104 | # Executable file suffix (normally ""). |
| 26105 | exeext="$exeext" |
| 26106 | |
| 26107 | # Additional compiler flags for building library objects. |
| 26108 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26109 | pic_mode=$pic_mode |
| 26110 | |
| 26111 | # What is the maximum length of a command? |
| 26112 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26113 | |
| 26114 | # Does compiler simultaneously support -c and -o options? |
| 26115 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26117 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26118 | need_locks=$lt_need_locks |
| 26119 | |
| 26120 | # Do we need the lib prefix for modules? |
| 26121 | need_lib_prefix=$need_lib_prefix |
| 26122 | |
| 26123 | # Do we need a version for libraries? |
| 26124 | need_version=$need_version |
| 26125 | |
| 26126 | # Whether dlopen is supported. |
| 26127 | dlopen_support=$enable_dlopen |
| 26128 | |
| 26129 | # Whether dlopen of programs is supported. |
| 26130 | dlopen_self=$enable_dlopen_self |
| 26131 | |
| 26132 | # Whether dlopen of statically linked programs is supported. |
| 26133 | dlopen_self_static=$enable_dlopen_self_static |
| 26134 | |
| 26135 | # Compiler flag to prevent dynamic linking. |
| 26136 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26137 | |
| 26138 | # Compiler flag to turn off builtin functions. |
| 26139 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26140 | |
| 26141 | # Compiler flag to allow reflexive dlopens. |
| 26142 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26143 | |
| 26144 | # Compiler flag to generate shared objects directly from archives. |
| 26145 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26146 | |
| 26147 | # Compiler flag to generate thread-safe objects. |
| 26148 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26149 | |
| 26150 | # Library versioning type. |
| 26151 | version_type=$version_type |
| 26152 | |
| 26153 | # Format of library name prefix. |
| 26154 | libname_spec=$lt_libname_spec |
| 26155 | |
| 26156 | # List of archive names. First name is the real one, the rest are links. |
| 26157 | # The last name is the one that the linker finds with -lNAME. |
| 26158 | library_names_spec=$lt_library_names_spec |
| 26159 | |
| 26160 | # The coded name of the library, if different from the real name. |
| 26161 | soname_spec=$lt_soname_spec |
| 26162 | |
| 26163 | # Commands used to build and install an old-style archive. |
| 26164 | RANLIB=$lt_RANLIB |
| 26165 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26166 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26167 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26168 | |
| 26169 | # Create an old-style archive from a shared archive. |
| 26170 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26171 | |
| 26172 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26173 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26174 | |
| 26175 | # Commands used to build and install a shared archive. |
| 26176 | archive_cmds=$lt_archive_cmds_GCJ |
| 26177 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26178 | postinstall_cmds=$lt_postinstall_cmds |
| 26179 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26180 | |
| 26181 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26182 | module_cmds=$lt_module_cmds_GCJ |
| 26183 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26184 | |
| 26185 | # Commands to strip libraries. |
| 26186 | old_striplib=$lt_old_striplib |
| 26187 | striplib=$lt_striplib |
| 26188 | |
| 26189 | # Dependencies to place before the objects being linked to create a |
| 26190 | # shared library. |
| 26191 | predep_objects=$lt_predep_objects_GCJ |
| 26192 | |
| 26193 | # Dependencies to place after the objects being linked to create a |
| 26194 | # shared library. |
| 26195 | postdep_objects=$lt_postdep_objects_GCJ |
| 26196 | |
| 26197 | # Dependencies to place before the objects being linked to create a |
| 26198 | # shared library. |
| 26199 | predeps=$lt_predeps_GCJ |
| 26200 | |
| 26201 | # Dependencies to place after the objects being linked to create a |
| 26202 | # shared library. |
| 26203 | postdeps=$lt_postdeps_GCJ |
| 26204 | |
| 26205 | # The library search path used internally by the compiler when linking |
| 26206 | # a shared library. |
| 26207 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26208 | |
| 26209 | # Method to check whether dependent libraries are shared objects. |
| 26210 | deplibs_check_method=$lt_deplibs_check_method |
| 26211 | |
| 26212 | # Command to use when deplibs_check_method == file_magic. |
| 26213 | file_magic_cmd=$lt_file_magic_cmd |
| 26214 | |
| 26215 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26216 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26217 | |
| 26218 | # Flag that forces no undefined symbols. |
| 26219 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26220 | |
| 26221 | # Commands used to finish a libtool library installation in a directory. |
| 26222 | finish_cmds=$lt_finish_cmds |
| 26223 | |
| 26224 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26225 | finish_eval=$lt_finish_eval |
| 26226 | |
| 26227 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26228 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26229 | |
| 26230 | # Transform the output of nm in a proper C declaration |
| 26231 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26232 | |
| 26233 | # Transform the output of nm in a C name address pair |
| 26234 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26235 | |
| 26236 | # This is the shared library runtime path variable. |
| 26237 | runpath_var=$runpath_var |
| 26238 | |
| 26239 | # This is the shared library path variable. |
| 26240 | shlibpath_var=$shlibpath_var |
| 26241 | |
| 26242 | # Is shlibpath searched before the hard-coded library search path? |
| 26243 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26244 | |
| 26245 | # How to hardcode a shared library path into an executable. |
| 26246 | hardcode_action=$hardcode_action_GCJ |
| 26247 | |
| 26248 | # Whether we should hardcode library paths into libraries. |
| 26249 | hardcode_into_libs=$hardcode_into_libs |
| 26250 | |
| 26251 | # Flag to hardcode \$libdir into a binary during linking. |
| 26252 | # This must work even if \$libdir does not exist. |
| 26253 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26254 | |
| 26255 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26256 | # a binary during linking. This must work even if \$libdir does |
| 26257 | # not exist. |
| 26258 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26259 | |
| 26260 | # Whether we need a single -rpath flag with a separated argument. |
| 26261 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26262 | |
| 26263 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26264 | # resulting binary. |
| 26265 | hardcode_direct=$hardcode_direct_GCJ |
| 26266 | |
| 26267 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26268 | # resulting binary. |
| 26269 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26270 | |
| 26271 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26272 | # the resulting binary. |
| 26273 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26274 | |
| 26275 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26276 | # and all subsequent libraries and executables linked against it. |
| 26277 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26278 | |
| 26279 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26280 | # restored at relink time. |
| 26281 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26282 | |
| 26283 | # Whether libtool must link a program against all its dependency libraries. |
| 26284 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26285 | |
| 26286 | # Compile-time system search path for libraries |
| 26287 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26288 | |
| 26289 | # Run-time system search path for libraries |
| 26290 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26291 | |
| 26292 | # Fix the shell variable \$srcfile for the compiler. |
| 26293 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26294 | |
| 26295 | # Set to yes if exported symbols are required. |
| 26296 | always_export_symbols=$always_export_symbols_GCJ |
| 26297 | |
| 26298 | # The commands to list exported symbols. |
| 26299 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26300 | |
| 26301 | # The commands to extract the exported symbol list from a shared archive. |
| 26302 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26303 | |
| 26304 | # Symbols that should not be listed in the preloaded symbols. |
| 26305 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26306 | |
| 26307 | # Symbols that must always be exported. |
| 26308 | include_expsyms=$lt_include_expsyms_GCJ |
| 26309 | |
| 26310 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26311 | |
| 26312 | __EOF__ |
| 26313 | |
| 26314 | |
| 26315 | else |
| 26316 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26317 | # `config.status --recheck' to rerun these tests and create the |
| 26318 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26319 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26320 | if test -f "$ltmain_in"; then |
| 26321 | test -f Makefile && make "$ltmain" |
| 26322 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26323 | fi |
| 26324 | |
| 26325 | |
| 26326 | ac_ext=c |
| 26327 | ac_cpp='$CPP $CPPFLAGS' |
| 26328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26331 | |
| 26332 | CC="$lt_save_CC" |
| 26333 | |
| 26334 | else |
| 26335 | tagname="" |
| 26336 | fi |
| 26337 | ;; |
| 26338 | |
| 26339 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26340 | ac_ext=c |
| 26341 | ac_cpp='$CPP $CPPFLAGS' |
| 26342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26345 | |
| 26346 | |
| 26347 | # Source file extension for RC test sources. |
| 26348 | ac_ext=rc |
| 26349 | |
| 26350 | # Object file extension for compiled RC test sources. |
| 26351 | objext=o |
| 26352 | objext_RC=$objext |
| 26353 | |
| 26354 | # Code to be used in simple compile tests |
| 26355 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26356 | |
| 26357 | # Code to be used in simple link tests |
| 26358 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26359 | |
| 26360 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26361 | |
| 26362 | # If no C compiler was specified, use CC. |
| 26363 | LTCC=${LTCC-"$CC"} |
| 26364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26365 | # If no C compiler flags were specified, use CFLAGS. |
| 26366 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26367 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26368 | # Allow CC to be a program name with arguments. |
| 26369 | compiler=$CC |
| 26370 | |
| 26371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26372 | # save warnings/boilerplate of simple test code |
| 26373 | ac_outfile=conftest.$ac_objext |
| 26374 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26375 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26376 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26377 | $rm conftest* |
| 26378 | |
| 26379 | ac_outfile=conftest.$ac_objext |
| 26380 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26381 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26382 | _lt_linker_boilerplate=`cat conftest.err` |
| 26383 | $rm conftest* |
| 26384 | |
| 26385 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26386 | # Allow CC to be a program name with arguments. |
| 26387 | lt_save_CC="$CC" |
| 26388 | CC=${RC-"windres"} |
| 26389 | compiler=$CC |
| 26390 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26391 | for cc_temp in $compiler""; do |
| 26392 | case $cc_temp in |
| 26393 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26394 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26395 | \-*) ;; |
| 26396 | *) break;; |
| 26397 | esac |
| 26398 | done |
| 26399 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26400 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26401 | lt_cv_prog_compiler_c_o_RC=yes |
| 26402 | |
| 26403 | # The else clause should only fire when bootstrapping the |
| 26404 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26405 | # with your package, and you will get complaints that there are |
| 26406 | # no rules to generate ltmain.sh. |
| 26407 | if test -f "$ltmain"; then |
| 26408 | # See if we are running on zsh, and set the options which allow our commands through |
| 26409 | # without removal of \ escapes. |
| 26410 | if test -n "${ZSH_VERSION+set}" ; then |
| 26411 | setopt NO_GLOB_SUBST |
| 26412 | fi |
| 26413 | # Now quote all the things that may contain metacharacters while being |
| 26414 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26415 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26416 | 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] | 26417 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26418 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26419 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26420 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26421 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26422 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26423 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26424 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26425 | compiler_RC \ |
| 26426 | CC_RC \ |
| 26427 | LD_RC \ |
| 26428 | lt_prog_compiler_wl_RC \ |
| 26429 | lt_prog_compiler_pic_RC \ |
| 26430 | lt_prog_compiler_static_RC \ |
| 26431 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26432 | export_dynamic_flag_spec_RC \ |
| 26433 | thread_safe_flag_spec_RC \ |
| 26434 | whole_archive_flag_spec_RC \ |
| 26435 | enable_shared_with_static_runtimes_RC \ |
| 26436 | old_archive_cmds_RC \ |
| 26437 | old_archive_from_new_cmds_RC \ |
| 26438 | predep_objects_RC \ |
| 26439 | postdep_objects_RC \ |
| 26440 | predeps_RC \ |
| 26441 | postdeps_RC \ |
| 26442 | compiler_lib_search_path_RC \ |
| 26443 | archive_cmds_RC \ |
| 26444 | archive_expsym_cmds_RC \ |
| 26445 | postinstall_cmds_RC \ |
| 26446 | postuninstall_cmds_RC \ |
| 26447 | old_archive_from_expsyms_cmds_RC \ |
| 26448 | allow_undefined_flag_RC \ |
| 26449 | no_undefined_flag_RC \ |
| 26450 | export_symbols_cmds_RC \ |
| 26451 | hardcode_libdir_flag_spec_RC \ |
| 26452 | hardcode_libdir_flag_spec_ld_RC \ |
| 26453 | hardcode_libdir_separator_RC \ |
| 26454 | hardcode_automatic_RC \ |
| 26455 | module_cmds_RC \ |
| 26456 | module_expsym_cmds_RC \ |
| 26457 | lt_cv_prog_compiler_c_o_RC \ |
| 26458 | exclude_expsyms_RC \ |
| 26459 | include_expsyms_RC; do |
| 26460 | |
| 26461 | case $var in |
| 26462 | old_archive_cmds_RC | \ |
| 26463 | old_archive_from_new_cmds_RC | \ |
| 26464 | archive_cmds_RC | \ |
| 26465 | archive_expsym_cmds_RC | \ |
| 26466 | module_cmds_RC | \ |
| 26467 | module_expsym_cmds_RC | \ |
| 26468 | old_archive_from_expsyms_cmds_RC | \ |
| 26469 | export_symbols_cmds_RC | \ |
| 26470 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26471 | postinstall_cmds | postuninstall_cmds | \ |
| 26472 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26473 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26474 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26475 | 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] | 26476 | ;; |
| 26477 | *) |
| 26478 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26479 | ;; |
| 26480 | esac |
| 26481 | done |
| 26482 | |
| 26483 | case $lt_echo in |
| 26484 | *'\$0 --fallback-echo"') |
| 26485 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26486 | ;; |
| 26487 | esac |
| 26488 | |
| 26489 | cfgfile="$ofile" |
| 26490 | |
| 26491 | cat <<__EOF__ >> "$cfgfile" |
| 26492 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26493 | |
| 26494 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26495 | |
| 26496 | # Shell to use when invoking shell scripts. |
| 26497 | SHELL=$lt_SHELL |
| 26498 | |
| 26499 | # Whether or not to build shared libraries. |
| 26500 | build_libtool_libs=$enable_shared |
| 26501 | |
| 26502 | # Whether or not to build static libraries. |
| 26503 | build_old_libs=$enable_static |
| 26504 | |
| 26505 | # Whether or not to add -lc for building shared libraries. |
| 26506 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26507 | |
| 26508 | # Whether or not to disallow shared libs when runtime libs are static |
| 26509 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26510 | |
| 26511 | # Whether or not to optimize for fast installation. |
| 26512 | fast_install=$enable_fast_install |
| 26513 | |
| 26514 | # The host system. |
| 26515 | host_alias=$host_alias |
| 26516 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26517 | host_os=$host_os |
| 26518 | |
| 26519 | # The build system. |
| 26520 | build_alias=$build_alias |
| 26521 | build=$build |
| 26522 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26523 | |
| 26524 | # An echo program that does not interpret backslashes. |
| 26525 | echo=$lt_echo |
| 26526 | |
| 26527 | # The archiver. |
| 26528 | AR=$lt_AR |
| 26529 | AR_FLAGS=$lt_AR_FLAGS |
| 26530 | |
| 26531 | # A C compiler. |
| 26532 | LTCC=$lt_LTCC |
| 26533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26534 | # LTCC compiler flags. |
| 26535 | LTCFLAGS=$lt_LTCFLAGS |
| 26536 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26537 | # A language-specific compiler. |
| 26538 | CC=$lt_compiler_RC |
| 26539 | |
| 26540 | # Is the compiler the GNU C compiler? |
| 26541 | with_gcc=$GCC_RC |
| 26542 | |
| 26543 | # An ERE matcher. |
| 26544 | EGREP=$lt_EGREP |
| 26545 | |
| 26546 | # The linker used to build libraries. |
| 26547 | LD=$lt_LD_RC |
| 26548 | |
| 26549 | # Whether we need hard or soft links. |
| 26550 | LN_S=$lt_LN_S |
| 26551 | |
| 26552 | # A BSD-compatible nm program. |
| 26553 | NM=$lt_NM |
| 26554 | |
| 26555 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26556 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26557 | |
| 26558 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26559 | MAGIC_CMD=$MAGIC_CMD |
| 26560 | |
| 26561 | # Used on cygwin: DLL creation program. |
| 26562 | DLLTOOL="$DLLTOOL" |
| 26563 | |
| 26564 | # Used on cygwin: object dumper. |
| 26565 | OBJDUMP="$OBJDUMP" |
| 26566 | |
| 26567 | # Used on cygwin: assembler. |
| 26568 | AS="$AS" |
| 26569 | |
| 26570 | # The name of the directory that contains temporary libtool files. |
| 26571 | objdir=$objdir |
| 26572 | |
| 26573 | # How to create reloadable object files. |
| 26574 | reload_flag=$lt_reload_flag |
| 26575 | reload_cmds=$lt_reload_cmds |
| 26576 | |
| 26577 | # How to pass a linker flag through the compiler. |
| 26578 | wl=$lt_lt_prog_compiler_wl_RC |
| 26579 | |
| 26580 | # Object file suffix (normally "o"). |
| 26581 | objext="$ac_objext" |
| 26582 | |
| 26583 | # Old archive suffix (normally "a"). |
| 26584 | libext="$libext" |
| 26585 | |
| 26586 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26587 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26588 | |
| 26589 | # Executable file suffix (normally ""). |
| 26590 | exeext="$exeext" |
| 26591 | |
| 26592 | # Additional compiler flags for building library objects. |
| 26593 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26594 | pic_mode=$pic_mode |
| 26595 | |
| 26596 | # What is the maximum length of a command? |
| 26597 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26598 | |
| 26599 | # Does compiler simultaneously support -c and -o options? |
| 26600 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26602 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26603 | need_locks=$lt_need_locks |
| 26604 | |
| 26605 | # Do we need the lib prefix for modules? |
| 26606 | need_lib_prefix=$need_lib_prefix |
| 26607 | |
| 26608 | # Do we need a version for libraries? |
| 26609 | need_version=$need_version |
| 26610 | |
| 26611 | # Whether dlopen is supported. |
| 26612 | dlopen_support=$enable_dlopen |
| 26613 | |
| 26614 | # Whether dlopen of programs is supported. |
| 26615 | dlopen_self=$enable_dlopen_self |
| 26616 | |
| 26617 | # Whether dlopen of statically linked programs is supported. |
| 26618 | dlopen_self_static=$enable_dlopen_self_static |
| 26619 | |
| 26620 | # Compiler flag to prevent dynamic linking. |
| 26621 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26622 | |
| 26623 | # Compiler flag to turn off builtin functions. |
| 26624 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26625 | |
| 26626 | # Compiler flag to allow reflexive dlopens. |
| 26627 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26628 | |
| 26629 | # Compiler flag to generate shared objects directly from archives. |
| 26630 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26631 | |
| 26632 | # Compiler flag to generate thread-safe objects. |
| 26633 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26634 | |
| 26635 | # Library versioning type. |
| 26636 | version_type=$version_type |
| 26637 | |
| 26638 | # Format of library name prefix. |
| 26639 | libname_spec=$lt_libname_spec |
| 26640 | |
| 26641 | # List of archive names. First name is the real one, the rest are links. |
| 26642 | # The last name is the one that the linker finds with -lNAME. |
| 26643 | library_names_spec=$lt_library_names_spec |
| 26644 | |
| 26645 | # The coded name of the library, if different from the real name. |
| 26646 | soname_spec=$lt_soname_spec |
| 26647 | |
| 26648 | # Commands used to build and install an old-style archive. |
| 26649 | RANLIB=$lt_RANLIB |
| 26650 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26651 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26652 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26653 | |
| 26654 | # Create an old-style archive from a shared archive. |
| 26655 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26656 | |
| 26657 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26658 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26659 | |
| 26660 | # Commands used to build and install a shared archive. |
| 26661 | archive_cmds=$lt_archive_cmds_RC |
| 26662 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26663 | postinstall_cmds=$lt_postinstall_cmds |
| 26664 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26665 | |
| 26666 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26667 | module_cmds=$lt_module_cmds_RC |
| 26668 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26669 | |
| 26670 | # Commands to strip libraries. |
| 26671 | old_striplib=$lt_old_striplib |
| 26672 | striplib=$lt_striplib |
| 26673 | |
| 26674 | # Dependencies to place before the objects being linked to create a |
| 26675 | # shared library. |
| 26676 | predep_objects=$lt_predep_objects_RC |
| 26677 | |
| 26678 | # Dependencies to place after the objects being linked to create a |
| 26679 | # shared library. |
| 26680 | postdep_objects=$lt_postdep_objects_RC |
| 26681 | |
| 26682 | # Dependencies to place before the objects being linked to create a |
| 26683 | # shared library. |
| 26684 | predeps=$lt_predeps_RC |
| 26685 | |
| 26686 | # Dependencies to place after the objects being linked to create a |
| 26687 | # shared library. |
| 26688 | postdeps=$lt_postdeps_RC |
| 26689 | |
| 26690 | # The library search path used internally by the compiler when linking |
| 26691 | # a shared library. |
| 26692 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26693 | |
| 26694 | # Method to check whether dependent libraries are shared objects. |
| 26695 | deplibs_check_method=$lt_deplibs_check_method |
| 26696 | |
| 26697 | # Command to use when deplibs_check_method == file_magic. |
| 26698 | file_magic_cmd=$lt_file_magic_cmd |
| 26699 | |
| 26700 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26701 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26702 | |
| 26703 | # Flag that forces no undefined symbols. |
| 26704 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26705 | |
| 26706 | # Commands used to finish a libtool library installation in a directory. |
| 26707 | finish_cmds=$lt_finish_cmds |
| 26708 | |
| 26709 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26710 | finish_eval=$lt_finish_eval |
| 26711 | |
| 26712 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26713 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26714 | |
| 26715 | # Transform the output of nm in a proper C declaration |
| 26716 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26717 | |
| 26718 | # Transform the output of nm in a C name address pair |
| 26719 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26720 | |
| 26721 | # This is the shared library runtime path variable. |
| 26722 | runpath_var=$runpath_var |
| 26723 | |
| 26724 | # This is the shared library path variable. |
| 26725 | shlibpath_var=$shlibpath_var |
| 26726 | |
| 26727 | # Is shlibpath searched before the hard-coded library search path? |
| 26728 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26729 | |
| 26730 | # How to hardcode a shared library path into an executable. |
| 26731 | hardcode_action=$hardcode_action_RC |
| 26732 | |
| 26733 | # Whether we should hardcode library paths into libraries. |
| 26734 | hardcode_into_libs=$hardcode_into_libs |
| 26735 | |
| 26736 | # Flag to hardcode \$libdir into a binary during linking. |
| 26737 | # This must work even if \$libdir does not exist. |
| 26738 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26739 | |
| 26740 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26741 | # a binary during linking. This must work even if \$libdir does |
| 26742 | # not exist. |
| 26743 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26744 | |
| 26745 | # Whether we need a single -rpath flag with a separated argument. |
| 26746 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26747 | |
| 26748 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26749 | # resulting binary. |
| 26750 | hardcode_direct=$hardcode_direct_RC |
| 26751 | |
| 26752 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26753 | # resulting binary. |
| 26754 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26755 | |
| 26756 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26757 | # the resulting binary. |
| 26758 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26759 | |
| 26760 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26761 | # and all subsequent libraries and executables linked against it. |
| 26762 | hardcode_automatic=$hardcode_automatic_RC |
| 26763 | |
| 26764 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26765 | # restored at relink time. |
| 26766 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26767 | |
| 26768 | # Whether libtool must link a program against all its dependency libraries. |
| 26769 | link_all_deplibs=$link_all_deplibs_RC |
| 26770 | |
| 26771 | # Compile-time system search path for libraries |
| 26772 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26773 | |
| 26774 | # Run-time system search path for libraries |
| 26775 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26776 | |
| 26777 | # Fix the shell variable \$srcfile for the compiler. |
| 26778 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26779 | |
| 26780 | # Set to yes if exported symbols are required. |
| 26781 | always_export_symbols=$always_export_symbols_RC |
| 26782 | |
| 26783 | # The commands to list exported symbols. |
| 26784 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26785 | |
| 26786 | # The commands to extract the exported symbol list from a shared archive. |
| 26787 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26788 | |
| 26789 | # Symbols that should not be listed in the preloaded symbols. |
| 26790 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26791 | |
| 26792 | # Symbols that must always be exported. |
| 26793 | include_expsyms=$lt_include_expsyms_RC |
| 26794 | |
| 26795 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26796 | |
| 26797 | __EOF__ |
| 26798 | |
| 26799 | |
| 26800 | else |
| 26801 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26802 | # `config.status --recheck' to rerun these tests and create the |
| 26803 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26804 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26805 | if test -f "$ltmain_in"; then |
| 26806 | test -f Makefile && make "$ltmain" |
| 26807 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26808 | fi |
| 26809 | |
| 26810 | |
| 26811 | ac_ext=c |
| 26812 | ac_cpp='$CPP $CPPFLAGS' |
| 26813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26816 | |
| 26817 | CC="$lt_save_CC" |
| 26818 | |
| 26819 | ;; |
| 26820 | |
| 26821 | *) |
| 26822 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26823 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26824 | { (exit 1); exit 1; }; } |
| 26825 | ;; |
| 26826 | esac |
| 26827 | |
| 26828 | # Append the new tag name to the list of available tags. |
| 26829 | if test -n "$tagname" ; then |
| 26830 | available_tags="$available_tags $tagname" |
| 26831 | fi |
| 26832 | fi |
| 26833 | done |
| 26834 | IFS="$lt_save_ifs" |
| 26835 | |
| 26836 | # Now substitute the updated list of available tags. |
| 26837 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26838 | mv "${ofile}T" "$ofile" |
| 26839 | chmod +x "$ofile" |
| 26840 | else |
| 26841 | rm -f "${ofile}T" |
| 26842 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26843 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26844 | { (exit 1); exit 1; }; } |
| 26845 | fi |
| 26846 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26847 | |
| 26848 | |
| 26849 | |
| 26850 | # This can be used to rebuild libtool when needed |
| 26851 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26852 | |
| 26853 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26854 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26855 | |
| 26856 | # Prevent multiple expansion |
| 26857 | |
| 26858 | |
| 26859 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26860 | |
| 26861 | |
| 26862 | |
| 26863 | |
| 26864 | |
| 26865 | |
| 26866 | |
| 26867 | |
| 26868 | |
| 26869 | |
| 26870 | |
| 26871 | |
| 26872 | |
| 26873 | |
| 26874 | |
| 26875 | |
| 26876 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26877 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26878 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26879 | |
| 26880 | cat >>confdefs.h <<\_ACEOF |
| 26881 | #define CAN_DLOPEN_SELF 1 |
| 26882 | _ACEOF |
| 26883 | |
| 26884 | fi |
| 26885 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26886 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26887 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26888 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26889 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26890 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26893 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26895 | else |
| 26896 | case $LLVMGCC in |
| 26897 | [\\/]* | ?:[\\/]*) |
| 26898 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26899 | ;; |
| 26900 | *) |
| 26901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26902 | for as_dir in $PATH |
| 26903 | do |
| 26904 | IFS=$as_save_IFS |
| 26905 | test -z "$as_dir" && as_dir=. |
| 26906 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26908 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26910 | break 2 |
| 26911 | fi |
| 26912 | done |
| 26913 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26914 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26915 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26916 | ;; |
| 26917 | esac |
| 26918 | fi |
| 26919 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26920 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26921 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26922 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26923 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26924 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26925 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26926 | fi |
| 26927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26928 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26929 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26930 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26931 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26933 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26935 | else |
| 26936 | case $LLVMGXX in |
| 26937 | [\\/]* | ?:[\\/]*) |
| 26938 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26939 | ;; |
| 26940 | *) |
| 26941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26942 | for as_dir in $PATH |
| 26943 | do |
| 26944 | IFS=$as_save_IFS |
| 26945 | test -z "$as_dir" && as_dir=. |
| 26946 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 26947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26948 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26950 | break 2 |
| 26951 | fi |
| 26952 | done |
| 26953 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26954 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26955 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26956 | ;; |
| 26957 | esac |
| 26958 | fi |
| 26959 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26960 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26961 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26962 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26963 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26964 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26965 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26966 | fi |
| 26967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26968 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26969 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 26970 | if test -z "$LLVMGCC"; then |
| 26971 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26972 | fi |
| 26973 | if test -z "$LLVMGXX"; then |
| 26974 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
| 26975 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26976 | LLVMGCC=$LLVMGCC |
| 26977 | |
| 26978 | LLVMGXX=$LLVMGXX |
| 26979 | |
| 26980 | fi |
| 26981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26982 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26983 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26984 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26985 | ICC=no |
| 26986 | IXX=no |
| 26987 | case $CC in |
| 26988 | icc*|icpc*) |
| 26989 | ICC=yes |
| 26990 | IXX=yes |
| 26991 | ;; |
| 26992 | *) |
| 26993 | ;; |
| 26994 | esac |
| 26995 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26996 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26997 | then |
| 26998 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26999 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27000 | { (exit 1); exit 1; }; } |
| 27001 | fi |
| 27002 | |
| 27003 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27004 | then |
| 27005 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27006 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27007 | { (exit 1); exit 1; }; } |
| 27008 | fi |
| 27009 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27010 | if test "$GCC" = "yes" |
| 27011 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27012 | cat >conftest.$ac_ext <<_ACEOF |
| 27013 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27014 | #error Unsupported GCC version |
| 27015 | #endif |
| 27016 | |
| 27017 | _ACEOF |
| 27018 | rm -f conftest.$ac_objext |
| 27019 | if { (ac_try="$ac_compile" |
| 27020 | case "(($ac_try" in |
| 27021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27022 | *) ac_try_echo=$ac_try;; |
| 27023 | esac |
| 27024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27025 | (eval "$ac_compile") 2>conftest.er1 |
| 27026 | ac_status=$? |
| 27027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27028 | rm -f conftest.er1 |
| 27029 | cat conftest.err >&5 |
| 27030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27031 | (exit $ac_status); } && |
| 27032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27033 | { (case "(($ac_try" in |
| 27034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27035 | *) ac_try_echo=$ac_try;; |
| 27036 | esac |
| 27037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27038 | (eval "$ac_try") 2>&5 |
| 27039 | ac_status=$? |
| 27040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27041 | (exit $ac_status); }; } && |
| 27042 | { ac_try='test -s conftest.$ac_objext' |
| 27043 | { (case "(($ac_try" in |
| 27044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27045 | *) ac_try_echo=$ac_try;; |
| 27046 | esac |
| 27047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27048 | (eval "$ac_try") 2>&5 |
| 27049 | ac_status=$? |
| 27050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27051 | (exit $ac_status); }; }; then |
| 27052 | : |
| 27053 | else |
| 27054 | echo "$as_me: failed program was:" >&5 |
| 27055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27056 | |
| 27057 | { { 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] | 27058 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27059 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27060 | fi |
| 27061 | |
| 27062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27063 | fi |
| 27064 | |
| 27065 | if test -z "$llvm_cv_gnu_make_command" |
| 27066 | then |
| 27067 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27068 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27069 | { (exit 1); exit 1; }; } |
| 27070 | fi |
| 27071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27072 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27073 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27074 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27075 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27077 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 27078 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27079 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 27080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27081 | else |
| 27082 | ac_check_lib_save_LIBS=$LIBS |
| 27083 | LIBS="-lelf $LIBS" |
| 27084 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27085 | /* confdefs.h. */ |
| 27086 | _ACEOF |
| 27087 | cat confdefs.h >>conftest.$ac_ext |
| 27088 | cat >>conftest.$ac_ext <<_ACEOF |
| 27089 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27091 | /* Override any GCC internal prototype to avoid an error. |
| 27092 | Use char because int might match the return type of a GCC |
| 27093 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27094 | #ifdef __cplusplus |
| 27095 | extern "C" |
| 27096 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27097 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27098 | int |
| 27099 | main () |
| 27100 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27101 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27102 | ; |
| 27103 | return 0; |
| 27104 | } |
| 27105 | _ACEOF |
| 27106 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27107 | if { (ac_try="$ac_link" |
| 27108 | case "(($ac_try" in |
| 27109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27110 | *) ac_try_echo=$ac_try;; |
| 27111 | esac |
| 27112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27113 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27114 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27116 | rm -f conftest.er1 |
| 27117 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27119 | (exit $ac_status); } && |
| 27120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27121 | { (case "(($ac_try" in |
| 27122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27123 | *) ac_try_echo=$ac_try;; |
| 27124 | esac |
| 27125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27126 | (eval "$ac_try") 2>&5 |
| 27127 | ac_status=$? |
| 27128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27129 | (exit $ac_status); }; } && |
| 27130 | { ac_try='test -s conftest$ac_exeext' |
| 27131 | { (case "(($ac_try" in |
| 27132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27133 | *) ac_try_echo=$ac_try;; |
| 27134 | esac |
| 27135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27136 | (eval "$ac_try") 2>&5 |
| 27137 | ac_status=$? |
| 27138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27139 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27140 | ac_cv_lib_elf_elf_begin=yes |
| 27141 | else |
| 27142 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27145 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27147 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27148 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27149 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27150 | LIBS=$ac_check_lib_save_LIBS |
| 27151 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27152 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 27153 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27154 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 27155 | cat >>confdefs.h <<_ACEOF |
| 27156 | #define HAVE_LIBELF 1 |
| 27157 | _ACEOF |
| 27158 | |
| 27159 | LIBS="-lelf $LIBS" |
| 27160 | |
| 27161 | fi |
| 27162 | |
| 27163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27164 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27165 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27166 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27168 | else |
| 27169 | ac_check_lib_save_LIBS=$LIBS |
| 27170 | LIBS="-lm $LIBS" |
| 27171 | cat >conftest.$ac_ext <<_ACEOF |
| 27172 | /* confdefs.h. */ |
| 27173 | _ACEOF |
| 27174 | cat confdefs.h >>conftest.$ac_ext |
| 27175 | cat >>conftest.$ac_ext <<_ACEOF |
| 27176 | /* end confdefs.h. */ |
| 27177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27178 | /* Override any GCC internal prototype to avoid an error. |
| 27179 | Use char because int might match the return type of a GCC |
| 27180 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27181 | #ifdef __cplusplus |
| 27182 | extern "C" |
| 27183 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27184 | char sin (); |
| 27185 | int |
| 27186 | main () |
| 27187 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27188 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27189 | ; |
| 27190 | return 0; |
| 27191 | } |
| 27192 | _ACEOF |
| 27193 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27194 | if { (ac_try="$ac_link" |
| 27195 | case "(($ac_try" in |
| 27196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27197 | *) ac_try_echo=$ac_try;; |
| 27198 | esac |
| 27199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27200 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27201 | ac_status=$? |
| 27202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27203 | rm -f conftest.er1 |
| 27204 | cat conftest.err >&5 |
| 27205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27206 | (exit $ac_status); } && |
| 27207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27208 | { (case "(($ac_try" in |
| 27209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27210 | *) ac_try_echo=$ac_try;; |
| 27211 | esac |
| 27212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27213 | (eval "$ac_try") 2>&5 |
| 27214 | ac_status=$? |
| 27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27216 | (exit $ac_status); }; } && |
| 27217 | { ac_try='test -s conftest$ac_exeext' |
| 27218 | { (case "(($ac_try" in |
| 27219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27220 | *) ac_try_echo=$ac_try;; |
| 27221 | esac |
| 27222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27223 | (eval "$ac_try") 2>&5 |
| 27224 | ac_status=$? |
| 27225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27226 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27227 | ac_cv_lib_m_sin=yes |
| 27228 | else |
| 27229 | echo "$as_me: failed program was:" >&5 |
| 27230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27232 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27234 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27235 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27236 | conftest$ac_exeext conftest.$ac_ext |
| 27237 | LIBS=$ac_check_lib_save_LIBS |
| 27238 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27239 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27240 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27241 | if test $ac_cv_lib_m_sin = yes; then |
| 27242 | cat >>confdefs.h <<_ACEOF |
| 27243 | #define HAVE_LIBM 1 |
| 27244 | _ACEOF |
| 27245 | |
| 27246 | LIBS="-lm $LIBS" |
| 27247 | |
| 27248 | fi |
| 27249 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27250 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27252 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27253 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27254 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27256 | else |
| 27257 | ac_check_lib_save_LIBS=$LIBS |
| 27258 | LIBS="-limagehlp $LIBS" |
| 27259 | cat >conftest.$ac_ext <<_ACEOF |
| 27260 | /* confdefs.h. */ |
| 27261 | _ACEOF |
| 27262 | cat confdefs.h >>conftest.$ac_ext |
| 27263 | cat >>conftest.$ac_ext <<_ACEOF |
| 27264 | /* end confdefs.h. */ |
| 27265 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27266 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27267 | int |
| 27268 | main () |
| 27269 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27270 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27271 | ; |
| 27272 | return 0; |
| 27273 | } |
| 27274 | _ACEOF |
| 27275 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27276 | if { (ac_try="$ac_link" |
| 27277 | case "(($ac_try" in |
| 27278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27279 | *) ac_try_echo=$ac_try;; |
| 27280 | esac |
| 27281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27282 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27283 | ac_status=$? |
| 27284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27285 | rm -f conftest.er1 |
| 27286 | cat conftest.err >&5 |
| 27287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27288 | (exit $ac_status); } && |
| 27289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27290 | { (case "(($ac_try" in |
| 27291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27292 | *) ac_try_echo=$ac_try;; |
| 27293 | esac |
| 27294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27295 | (eval "$ac_try") 2>&5 |
| 27296 | ac_status=$? |
| 27297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27298 | (exit $ac_status); }; } && |
| 27299 | { ac_try='test -s conftest$ac_exeext' |
| 27300 | { (case "(($ac_try" in |
| 27301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27302 | *) ac_try_echo=$ac_try;; |
| 27303 | esac |
| 27304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27305 | (eval "$ac_try") 2>&5 |
| 27306 | ac_status=$? |
| 27307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27308 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27309 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27310 | else |
| 27311 | echo "$as_me: failed program was:" >&5 |
| 27312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27314 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27315 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27316 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27317 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27318 | conftest$ac_exeext conftest.$ac_ext |
| 27319 | LIBS=$ac_check_lib_save_LIBS |
| 27320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27322 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27323 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27324 | cat >>confdefs.h <<_ACEOF |
| 27325 | #define HAVE_LIBIMAGEHLP 1 |
| 27326 | _ACEOF |
| 27327 | |
| 27328 | LIBS="-limagehlp $LIBS" |
| 27329 | |
| 27330 | fi |
| 27331 | |
| 27332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27333 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27334 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27335 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27337 | else |
| 27338 | ac_check_lib_save_LIBS=$LIBS |
| 27339 | LIBS="-lpsapi $LIBS" |
| 27340 | cat >conftest.$ac_ext <<_ACEOF |
| 27341 | /* confdefs.h. */ |
| 27342 | _ACEOF |
| 27343 | cat confdefs.h >>conftest.$ac_ext |
| 27344 | cat >>conftest.$ac_ext <<_ACEOF |
| 27345 | /* end confdefs.h. */ |
| 27346 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27347 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27348 | int |
| 27349 | main () |
| 27350 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27351 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27352 | ; |
| 27353 | return 0; |
| 27354 | } |
| 27355 | _ACEOF |
| 27356 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27357 | if { (ac_try="$ac_link" |
| 27358 | case "(($ac_try" in |
| 27359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27360 | *) ac_try_echo=$ac_try;; |
| 27361 | esac |
| 27362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27363 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27364 | ac_status=$? |
| 27365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27366 | rm -f conftest.er1 |
| 27367 | cat conftest.err >&5 |
| 27368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27369 | (exit $ac_status); } && |
| 27370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27371 | { (case "(($ac_try" in |
| 27372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27373 | *) ac_try_echo=$ac_try;; |
| 27374 | esac |
| 27375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27376 | (eval "$ac_try") 2>&5 |
| 27377 | ac_status=$? |
| 27378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27379 | (exit $ac_status); }; } && |
| 27380 | { ac_try='test -s conftest$ac_exeext' |
| 27381 | { (case "(($ac_try" in |
| 27382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27383 | *) ac_try_echo=$ac_try;; |
| 27384 | esac |
| 27385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27386 | (eval "$ac_try") 2>&5 |
| 27387 | ac_status=$? |
| 27388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27389 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27390 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27391 | else |
| 27392 | echo "$as_me: failed program was:" >&5 |
| 27393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27395 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27396 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27397 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27398 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27399 | conftest$ac_exeext conftest.$ac_ext |
| 27400 | LIBS=$ac_check_lib_save_LIBS |
| 27401 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27402 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27403 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27404 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27405 | cat >>confdefs.h <<_ACEOF |
| 27406 | #define HAVE_LIBPSAPI 1 |
| 27407 | _ACEOF |
| 27408 | |
| 27409 | LIBS="-lpsapi $LIBS" |
| 27410 | |
| 27411 | fi |
| 27412 | |
| 27413 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27415 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27416 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27417 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27419 | else |
| 27420 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27421 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27422 | /* confdefs.h. */ |
| 27423 | _ACEOF |
| 27424 | cat confdefs.h >>conftest.$ac_ext |
| 27425 | cat >>conftest.$ac_ext <<_ACEOF |
| 27426 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27428 | /* Override any GCC internal prototype to avoid an error. |
| 27429 | Use char because int might match the return type of a GCC |
| 27430 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27431 | #ifdef __cplusplus |
| 27432 | extern "C" |
| 27433 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27434 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27435 | int |
| 27436 | main () |
| 27437 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27438 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27439 | ; |
| 27440 | return 0; |
| 27441 | } |
| 27442 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27443 | for ac_lib in '' dl; do |
| 27444 | if test -z "$ac_lib"; then |
| 27445 | ac_res="none required" |
| 27446 | else |
| 27447 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27448 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27449 | fi |
| 27450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27451 | if { (ac_try="$ac_link" |
| 27452 | case "(($ac_try" in |
| 27453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27454 | *) ac_try_echo=$ac_try;; |
| 27455 | esac |
| 27456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27457 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27458 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27460 | rm -f conftest.er1 |
| 27461 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27463 | (exit $ac_status); } && |
| 27464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27465 | { (case "(($ac_try" in |
| 27466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27467 | *) ac_try_echo=$ac_try;; |
| 27468 | esac |
| 27469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27470 | (eval "$ac_try") 2>&5 |
| 27471 | ac_status=$? |
| 27472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27473 | (exit $ac_status); }; } && |
| 27474 | { ac_try='test -s conftest$ac_exeext' |
| 27475 | { (case "(($ac_try" in |
| 27476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27477 | *) ac_try_echo=$ac_try;; |
| 27478 | esac |
| 27479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27480 | (eval "$ac_try") 2>&5 |
| 27481 | ac_status=$? |
| 27482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27483 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27484 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27485 | else |
| 27486 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27489 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27490 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27491 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27492 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27493 | conftest$ac_exeext |
| 27494 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27495 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27496 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27497 | done |
| 27498 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27499 | : |
| 27500 | else |
| 27501 | ac_cv_search_dlopen=no |
| 27502 | fi |
| 27503 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27504 | LIBS=$ac_func_search_save_LIBS |
| 27505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27506 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27507 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27508 | ac_res=$ac_cv_search_dlopen |
| 27509 | if test "$ac_res" != no; then |
| 27510 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27511 | |
| 27512 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27513 | #define HAVE_DLOPEN 1 |
| 27514 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27515 | |
| 27516 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27517 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27518 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27519 | fi |
| 27520 | |
| 27521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27522 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27523 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27524 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27526 | else |
| 27527 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27528 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27529 | /* confdefs.h. */ |
| 27530 | _ACEOF |
| 27531 | cat confdefs.h >>conftest.$ac_ext |
| 27532 | cat >>conftest.$ac_ext <<_ACEOF |
| 27533 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27534 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27535 | /* Override any GCC internal prototype to avoid an error. |
| 27536 | Use char because int might match the return type of a GCC |
| 27537 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27538 | #ifdef __cplusplus |
| 27539 | extern "C" |
| 27540 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27541 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27542 | int |
| 27543 | main () |
| 27544 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27545 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27546 | ; |
| 27547 | return 0; |
| 27548 | } |
| 27549 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27550 | for ac_lib in '' malloc; do |
| 27551 | if test -z "$ac_lib"; then |
| 27552 | ac_res="none required" |
| 27553 | else |
| 27554 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27555 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27556 | fi |
| 27557 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27558 | if { (ac_try="$ac_link" |
| 27559 | case "(($ac_try" in |
| 27560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27561 | *) ac_try_echo=$ac_try;; |
| 27562 | esac |
| 27563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27564 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27565 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27567 | rm -f conftest.er1 |
| 27568 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27570 | (exit $ac_status); } && |
| 27571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27572 | { (case "(($ac_try" in |
| 27573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27574 | *) ac_try_echo=$ac_try;; |
| 27575 | esac |
| 27576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27577 | (eval "$ac_try") 2>&5 |
| 27578 | ac_status=$? |
| 27579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27580 | (exit $ac_status); }; } && |
| 27581 | { ac_try='test -s conftest$ac_exeext' |
| 27582 | { (case "(($ac_try" in |
| 27583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27584 | *) ac_try_echo=$ac_try;; |
| 27585 | esac |
| 27586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27587 | (eval "$ac_try") 2>&5 |
| 27588 | ac_status=$? |
| 27589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27590 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27591 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27592 | else |
| 27593 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27595 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27596 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27597 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27598 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27599 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27600 | conftest$ac_exeext |
| 27601 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27602 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27604 | done |
| 27605 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27606 | : |
| 27607 | else |
| 27608 | ac_cv_search_mallinfo=no |
| 27609 | fi |
| 27610 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27611 | LIBS=$ac_func_search_save_LIBS |
| 27612 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27613 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27614 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27615 | ac_res=$ac_cv_search_mallinfo |
| 27616 | if test "$ac_res" != no; then |
| 27617 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27618 | |
| 27619 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27620 | #define HAVE_MALLINFO 1 |
| 27621 | _ACEOF |
| 27622 | |
| 27623 | fi |
| 27624 | |
| 27625 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27626 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27628 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27629 | 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] | 27630 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27632 | else |
| 27633 | ac_check_lib_save_LIBS=$LIBS |
| 27634 | LIBS="-lpthread $LIBS" |
| 27635 | cat >conftest.$ac_ext <<_ACEOF |
| 27636 | /* confdefs.h. */ |
| 27637 | _ACEOF |
| 27638 | cat confdefs.h >>conftest.$ac_ext |
| 27639 | cat >>conftest.$ac_ext <<_ACEOF |
| 27640 | /* end confdefs.h. */ |
| 27641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27642 | /* Override any GCC internal prototype to avoid an error. |
| 27643 | Use char because int might match the return type of a GCC |
| 27644 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27645 | #ifdef __cplusplus |
| 27646 | extern "C" |
| 27647 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27648 | char pthread_mutex_init (); |
| 27649 | int |
| 27650 | main () |
| 27651 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27652 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27653 | ; |
| 27654 | return 0; |
| 27655 | } |
| 27656 | _ACEOF |
| 27657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27658 | if { (ac_try="$ac_link" |
| 27659 | case "(($ac_try" in |
| 27660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27661 | *) ac_try_echo=$ac_try;; |
| 27662 | esac |
| 27663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27664 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27665 | ac_status=$? |
| 27666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27667 | rm -f conftest.er1 |
| 27668 | cat conftest.err >&5 |
| 27669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27670 | (exit $ac_status); } && |
| 27671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27672 | { (case "(($ac_try" in |
| 27673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27674 | *) ac_try_echo=$ac_try;; |
| 27675 | esac |
| 27676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27677 | (eval "$ac_try") 2>&5 |
| 27678 | ac_status=$? |
| 27679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27680 | (exit $ac_status); }; } && |
| 27681 | { ac_try='test -s conftest$ac_exeext' |
| 27682 | { (case "(($ac_try" in |
| 27683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27684 | *) ac_try_echo=$ac_try;; |
| 27685 | esac |
| 27686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27687 | (eval "$ac_try") 2>&5 |
| 27688 | ac_status=$? |
| 27689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27690 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27691 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27692 | else |
| 27693 | echo "$as_me: failed program was:" >&5 |
| 27694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27696 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27698 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27699 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27700 | conftest$ac_exeext conftest.$ac_ext |
| 27701 | LIBS=$ac_check_lib_save_LIBS |
| 27702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27703 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27704 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27705 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27706 | cat >>confdefs.h <<_ACEOF |
| 27707 | #define HAVE_LIBPTHREAD 1 |
| 27708 | _ACEOF |
| 27709 | |
| 27710 | LIBS="-lpthread $LIBS" |
| 27711 | |
| 27712 | fi |
| 27713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27714 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27715 | 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] | 27716 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27718 | else |
| 27719 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27720 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27721 | /* confdefs.h. */ |
| 27722 | _ACEOF |
| 27723 | cat confdefs.h >>conftest.$ac_ext |
| 27724 | cat >>conftest.$ac_ext <<_ACEOF |
| 27725 | /* end confdefs.h. */ |
| 27726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27727 | /* Override any GCC internal prototype to avoid an error. |
| 27728 | Use char because int might match the return type of a GCC |
| 27729 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27730 | #ifdef __cplusplus |
| 27731 | extern "C" |
| 27732 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27733 | char pthread_mutex_lock (); |
| 27734 | int |
| 27735 | main () |
| 27736 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27737 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27738 | ; |
| 27739 | return 0; |
| 27740 | } |
| 27741 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27742 | for ac_lib in '' pthread; do |
| 27743 | if test -z "$ac_lib"; then |
| 27744 | ac_res="none required" |
| 27745 | else |
| 27746 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27747 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27748 | fi |
| 27749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27750 | if { (ac_try="$ac_link" |
| 27751 | case "(($ac_try" in |
| 27752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27753 | *) ac_try_echo=$ac_try;; |
| 27754 | esac |
| 27755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27756 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27757 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27759 | rm -f conftest.er1 |
| 27760 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27762 | (exit $ac_status); } && |
| 27763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27764 | { (case "(($ac_try" in |
| 27765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27766 | *) ac_try_echo=$ac_try;; |
| 27767 | esac |
| 27768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27769 | (eval "$ac_try") 2>&5 |
| 27770 | ac_status=$? |
| 27771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27772 | (exit $ac_status); }; } && |
| 27773 | { ac_try='test -s conftest$ac_exeext' |
| 27774 | { (case "(($ac_try" in |
| 27775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27776 | *) ac_try_echo=$ac_try;; |
| 27777 | esac |
| 27778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27779 | (eval "$ac_try") 2>&5 |
| 27780 | ac_status=$? |
| 27781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27782 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27783 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27784 | else |
| 27785 | echo "$as_me: failed program was:" >&5 |
| 27786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27788 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27790 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27791 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27792 | conftest$ac_exeext |
| 27793 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27794 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27796 | done |
| 27797 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27798 | : |
| 27799 | else |
| 27800 | ac_cv_search_pthread_mutex_lock=no |
| 27801 | fi |
| 27802 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27803 | LIBS=$ac_func_search_save_LIBS |
| 27804 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27805 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27806 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27807 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27808 | if test "$ac_res" != no; then |
| 27809 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27810 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27811 | cat >>confdefs.h <<\_ACEOF |
| 27812 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27813 | _ACEOF |
| 27814 | |
| 27815 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27816 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27817 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27818 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27819 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27820 | # Check whether --with-udis86 was given. |
| 27821 | if test "${with_udis86+set}" = set; then |
| 27822 | withval=$with_udis86; |
| 27823 | USE_UDIS86=1 |
| 27824 | |
| 27825 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 27826 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27827 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 27828 | esac |
| 27829 | |
| 27830 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 27831 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 27832 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 27833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27834 | else |
| 27835 | ac_check_lib_save_LIBS=$LIBS |
| 27836 | LIBS="-ludis86 $LIBS" |
| 27837 | cat >conftest.$ac_ext <<_ACEOF |
| 27838 | /* confdefs.h. */ |
| 27839 | _ACEOF |
| 27840 | cat confdefs.h >>conftest.$ac_ext |
| 27841 | cat >>conftest.$ac_ext <<_ACEOF |
| 27842 | /* end confdefs.h. */ |
| 27843 | |
| 27844 | /* Override any GCC internal prototype to avoid an error. |
| 27845 | Use char because int might match the return type of a GCC |
| 27846 | builtin and then its argument prototype would still apply. */ |
| 27847 | #ifdef __cplusplus |
| 27848 | extern "C" |
| 27849 | #endif |
| 27850 | char ud_init (); |
| 27851 | int |
| 27852 | main () |
| 27853 | { |
| 27854 | return ud_init (); |
| 27855 | ; |
| 27856 | return 0; |
| 27857 | } |
| 27858 | _ACEOF |
| 27859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27860 | if { (ac_try="$ac_link" |
| 27861 | case "(($ac_try" in |
| 27862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27863 | *) ac_try_echo=$ac_try;; |
| 27864 | esac |
| 27865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27866 | (eval "$ac_link") 2>conftest.er1 |
| 27867 | ac_status=$? |
| 27868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27869 | rm -f conftest.er1 |
| 27870 | cat conftest.err >&5 |
| 27871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27872 | (exit $ac_status); } && |
| 27873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27874 | { (case "(($ac_try" in |
| 27875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27876 | *) ac_try_echo=$ac_try;; |
| 27877 | esac |
| 27878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27879 | (eval "$ac_try") 2>&5 |
| 27880 | ac_status=$? |
| 27881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27882 | (exit $ac_status); }; } && |
| 27883 | { ac_try='test -s conftest$ac_exeext' |
| 27884 | { (case "(($ac_try" in |
| 27885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27886 | *) ac_try_echo=$ac_try;; |
| 27887 | esac |
| 27888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27889 | (eval "$ac_try") 2>&5 |
| 27890 | ac_status=$? |
| 27891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27892 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27893 | ac_cv_lib_udis86_ud_init=yes |
| 27894 | else |
| 27895 | echo "$as_me: failed program was:" >&5 |
| 27896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27897 | |
| 27898 | ac_cv_lib_udis86_ud_init=no |
| 27899 | fi |
| 27900 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27901 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27902 | conftest$ac_exeext conftest.$ac_ext |
| 27903 | LIBS=$ac_check_lib_save_LIBS |
| 27904 | fi |
| 27905 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 27906 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 27907 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 27908 | cat >>confdefs.h <<_ACEOF |
| 27909 | #define HAVE_LIBUDIS86 1 |
| 27910 | _ACEOF |
| 27911 | |
| 27912 | LIBS="-ludis86 $LIBS" |
| 27913 | |
| 27914 | else |
| 27915 | |
| 27916 | echo "Error! You need to have libudis86 around." |
| 27917 | exit -1 |
| 27918 | |
| 27919 | fi |
| 27920 | |
| 27921 | |
| 27922 | else |
| 27923 | USE_UDIS86=0 |
| 27924 | |
| 27925 | fi |
| 27926 | |
| 27927 | |
| 27928 | cat >>confdefs.h <<_ACEOF |
| 27929 | #define USE_UDIS86 $USE_UDIS86 |
| 27930 | _ACEOF |
| 27931 | |
| 27932 | |
| 27933 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27934 | |
| 27935 | |
| 27936 | |
| 27937 | |
| 27938 | |
| 27939 | ac_header_dirent=no |
| 27940 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27941 | 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] | 27942 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27943 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27944 | 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] | 27945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27946 | else |
| 27947 | cat >conftest.$ac_ext <<_ACEOF |
| 27948 | /* confdefs.h. */ |
| 27949 | _ACEOF |
| 27950 | cat confdefs.h >>conftest.$ac_ext |
| 27951 | cat >>conftest.$ac_ext <<_ACEOF |
| 27952 | /* end confdefs.h. */ |
| 27953 | #include <sys/types.h> |
| 27954 | #include <$ac_hdr> |
| 27955 | |
| 27956 | int |
| 27957 | main () |
| 27958 | { |
| 27959 | if ((DIR *) 0) |
| 27960 | return 0; |
| 27961 | ; |
| 27962 | return 0; |
| 27963 | } |
| 27964 | _ACEOF |
| 27965 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27966 | if { (ac_try="$ac_compile" |
| 27967 | case "(($ac_try" in |
| 27968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27969 | *) ac_try_echo=$ac_try;; |
| 27970 | esac |
| 27971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27972 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27973 | ac_status=$? |
| 27974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27975 | rm -f conftest.er1 |
| 27976 | cat conftest.err >&5 |
| 27977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 27978 | (exit $ac_status); } && |
| 27979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27980 | { (case "(($ac_try" in |
| 27981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27982 | *) ac_try_echo=$ac_try;; |
| 27983 | esac |
| 27984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27985 | (eval "$ac_try") 2>&5 |
| 27986 | ac_status=$? |
| 27987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27988 | (exit $ac_status); }; } && |
| 27989 | { ac_try='test -s conftest.$ac_objext' |
| 27990 | { (case "(($ac_try" in |
| 27991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27992 | *) ac_try_echo=$ac_try;; |
| 27993 | esac |
| 27994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27995 | (eval "$ac_try") 2>&5 |
| 27996 | ac_status=$? |
| 27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27998 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27999 | eval "$as_ac_Header=yes" |
| 28000 | else |
| 28001 | echo "$as_me: failed program was:" >&5 |
| 28002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28004 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28006 | |
| 28007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28008 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28009 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28010 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28011 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28012 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28013 | cat >>confdefs.h <<_ACEOF |
| 28014 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 28015 | _ACEOF |
| 28016 | |
| 28017 | ac_header_dirent=$ac_hdr; break |
| 28018 | fi |
| 28019 | |
| 28020 | done |
| 28021 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 28022 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28023 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28024 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28025 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28027 | else |
| 28028 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28029 | cat >conftest.$ac_ext <<_ACEOF |
| 28030 | /* confdefs.h. */ |
| 28031 | _ACEOF |
| 28032 | cat confdefs.h >>conftest.$ac_ext |
| 28033 | cat >>conftest.$ac_ext <<_ACEOF |
| 28034 | /* end confdefs.h. */ |
| 28035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28036 | /* Override any GCC internal prototype to avoid an error. |
| 28037 | Use char because int might match the return type of a GCC |
| 28038 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28039 | #ifdef __cplusplus |
| 28040 | extern "C" |
| 28041 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28042 | char opendir (); |
| 28043 | int |
| 28044 | main () |
| 28045 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28046 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28047 | ; |
| 28048 | return 0; |
| 28049 | } |
| 28050 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28051 | for ac_lib in '' dir; do |
| 28052 | if test -z "$ac_lib"; then |
| 28053 | ac_res="none required" |
| 28054 | else |
| 28055 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28056 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28057 | fi |
| 28058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28059 | if { (ac_try="$ac_link" |
| 28060 | case "(($ac_try" in |
| 28061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28062 | *) ac_try_echo=$ac_try;; |
| 28063 | esac |
| 28064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28065 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28066 | ac_status=$? |
| 28067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28068 | rm -f conftest.er1 |
| 28069 | cat conftest.err >&5 |
| 28070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28071 | (exit $ac_status); } && |
| 28072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28073 | { (case "(($ac_try" in |
| 28074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28075 | *) ac_try_echo=$ac_try;; |
| 28076 | esac |
| 28077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28078 | (eval "$ac_try") 2>&5 |
| 28079 | ac_status=$? |
| 28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28081 | (exit $ac_status); }; } && |
| 28082 | { ac_try='test -s conftest$ac_exeext' |
| 28083 | { (case "(($ac_try" in |
| 28084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28085 | *) ac_try_echo=$ac_try;; |
| 28086 | esac |
| 28087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28088 | (eval "$ac_try") 2>&5 |
| 28089 | ac_status=$? |
| 28090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28091 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28092 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28093 | else |
| 28094 | echo "$as_me: failed program was:" >&5 |
| 28095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28097 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28099 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28100 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28101 | conftest$ac_exeext |
| 28102 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28103 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28104 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28105 | done |
| 28106 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28107 | : |
| 28108 | else |
| 28109 | ac_cv_search_opendir=no |
| 28110 | fi |
| 28111 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28112 | LIBS=$ac_func_search_save_LIBS |
| 28113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28114 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28115 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28116 | ac_res=$ac_cv_search_opendir |
| 28117 | if test "$ac_res" != no; then |
| 28118 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28119 | |
| 28120 | fi |
| 28121 | |
| 28122 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28123 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28124 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28125 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28127 | else |
| 28128 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28129 | cat >conftest.$ac_ext <<_ACEOF |
| 28130 | /* confdefs.h. */ |
| 28131 | _ACEOF |
| 28132 | cat confdefs.h >>conftest.$ac_ext |
| 28133 | cat >>conftest.$ac_ext <<_ACEOF |
| 28134 | /* end confdefs.h. */ |
| 28135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28136 | /* Override any GCC internal prototype to avoid an error. |
| 28137 | Use char because int might match the return type of a GCC |
| 28138 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28139 | #ifdef __cplusplus |
| 28140 | extern "C" |
| 28141 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28142 | char opendir (); |
| 28143 | int |
| 28144 | main () |
| 28145 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28146 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28147 | ; |
| 28148 | return 0; |
| 28149 | } |
| 28150 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28151 | for ac_lib in '' x; do |
| 28152 | if test -z "$ac_lib"; then |
| 28153 | ac_res="none required" |
| 28154 | else |
| 28155 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28156 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28157 | fi |
| 28158 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28159 | if { (ac_try="$ac_link" |
| 28160 | case "(($ac_try" in |
| 28161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28162 | *) ac_try_echo=$ac_try;; |
| 28163 | esac |
| 28164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28165 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28166 | ac_status=$? |
| 28167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28168 | rm -f conftest.er1 |
| 28169 | cat conftest.err >&5 |
| 28170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28171 | (exit $ac_status); } && |
| 28172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28173 | { (case "(($ac_try" in |
| 28174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28175 | *) ac_try_echo=$ac_try;; |
| 28176 | esac |
| 28177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28178 | (eval "$ac_try") 2>&5 |
| 28179 | ac_status=$? |
| 28180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28181 | (exit $ac_status); }; } && |
| 28182 | { ac_try='test -s conftest$ac_exeext' |
| 28183 | { (case "(($ac_try" in |
| 28184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28185 | *) ac_try_echo=$ac_try;; |
| 28186 | esac |
| 28187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28188 | (eval "$ac_try") 2>&5 |
| 28189 | ac_status=$? |
| 28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28191 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28192 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28193 | else |
| 28194 | echo "$as_me: failed program was:" >&5 |
| 28195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28197 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28198 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28199 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28200 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28201 | conftest$ac_exeext |
| 28202 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28203 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28204 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28205 | done |
| 28206 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28207 | : |
| 28208 | else |
| 28209 | ac_cv_search_opendir=no |
| 28210 | fi |
| 28211 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28212 | LIBS=$ac_func_search_save_LIBS |
| 28213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28214 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28215 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28216 | ac_res=$ac_cv_search_opendir |
| 28217 | if test "$ac_res" != no; then |
| 28218 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28219 | |
| 28220 | fi |
| 28221 | |
| 28222 | fi |
| 28223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28224 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 28225 | 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] | 28226 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 28227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28228 | else |
| 28229 | ac_ext=c |
| 28230 | ac_cpp='$CPP $CPPFLAGS' |
| 28231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28234 | |
| 28235 | cat >conftest.$ac_ext <<_ACEOF |
| 28236 | /* confdefs.h. */ |
| 28237 | _ACEOF |
| 28238 | cat confdefs.h >>conftest.$ac_ext |
| 28239 | cat >>conftest.$ac_ext <<_ACEOF |
| 28240 | /* end confdefs.h. */ |
| 28241 | #include <sys/mman.h> |
| 28242 | #include <unistd.h> |
| 28243 | #include <fcntl.h> |
| 28244 | int |
| 28245 | main () |
| 28246 | { |
| 28247 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28248 | ; |
| 28249 | return 0; |
| 28250 | } |
| 28251 | _ACEOF |
| 28252 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28253 | if { (ac_try="$ac_compile" |
| 28254 | case "(($ac_try" in |
| 28255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28256 | *) ac_try_echo=$ac_try;; |
| 28257 | esac |
| 28258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28259 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28260 | ac_status=$? |
| 28261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28262 | rm -f conftest.er1 |
| 28263 | cat conftest.err >&5 |
| 28264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28265 | (exit $ac_status); } && |
| 28266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28267 | { (case "(($ac_try" in |
| 28268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28269 | *) ac_try_echo=$ac_try;; |
| 28270 | esac |
| 28271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28272 | (eval "$ac_try") 2>&5 |
| 28273 | ac_status=$? |
| 28274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28275 | (exit $ac_status); }; } && |
| 28276 | { ac_try='test -s conftest.$ac_objext' |
| 28277 | { (case "(($ac_try" in |
| 28278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28279 | *) ac_try_echo=$ac_try;; |
| 28280 | esac |
| 28281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28282 | (eval "$ac_try") 2>&5 |
| 28283 | ac_status=$? |
| 28284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28285 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28286 | ac_cv_header_mmap_anon=yes |
| 28287 | else |
| 28288 | echo "$as_me: failed program was:" >&5 |
| 28289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28291 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28292 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28293 | |
| 28294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28295 | ac_ext=c |
| 28296 | ac_cpp='$CPP $CPPFLAGS' |
| 28297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28300 | |
| 28301 | |
| 28302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28303 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28304 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28305 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28306 | |
| 28307 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28308 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28309 | _ACEOF |
| 28310 | |
| 28311 | fi |
| 28312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28313 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28314 | 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] | 28315 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28317 | else |
| 28318 | cat >conftest.$ac_ext <<_ACEOF |
| 28319 | /* confdefs.h. */ |
| 28320 | _ACEOF |
| 28321 | cat confdefs.h >>conftest.$ac_ext |
| 28322 | cat >>conftest.$ac_ext <<_ACEOF |
| 28323 | /* end confdefs.h. */ |
| 28324 | #include <sys/types.h> |
| 28325 | #include <sys/stat.h> |
| 28326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28327 | #if defined S_ISBLK && defined S_IFDIR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28328 | # if S_ISBLK (S_IFDIR) |
| 28329 | You lose. |
| 28330 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28331 | #endif |
| 28332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28333 | #if defined S_ISBLK && defined S_IFCHR |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28334 | # if S_ISBLK (S_IFCHR) |
| 28335 | You lose. |
| 28336 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28337 | #endif |
| 28338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28339 | #if defined S_ISLNK && defined S_IFREG |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28340 | # if S_ISLNK (S_IFREG) |
| 28341 | You lose. |
| 28342 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28343 | #endif |
| 28344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28345 | #if defined S_ISSOCK && defined S_IFREG |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28346 | # if S_ISSOCK (S_IFREG) |
| 28347 | You lose. |
| 28348 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28349 | #endif |
| 28350 | |
| 28351 | _ACEOF |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28352 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28353 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28354 | ac_cv_header_stat_broken=yes |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28355 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28356 | ac_cv_header_stat_broken=no |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28357 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28358 | rm -f conftest* |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28359 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28360 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28361 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28362 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28363 | if test $ac_cv_header_stat_broken = yes; then |
| 28364 | |
| 28365 | cat >>confdefs.h <<\_ACEOF |
| 28366 | #define STAT_MACROS_BROKEN 1 |
| 28367 | _ACEOF |
| 28368 | |
| 28369 | fi |
| 28370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28371 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28372 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28373 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28375 | else |
| 28376 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28377 | /* confdefs.h. */ |
| 28378 | _ACEOF |
| 28379 | cat confdefs.h >>conftest.$ac_ext |
| 28380 | cat >>conftest.$ac_ext <<_ACEOF |
| 28381 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28382 | #include <stdlib.h> |
| 28383 | #include <stdarg.h> |
| 28384 | #include <string.h> |
| 28385 | #include <float.h> |
| 28386 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28387 | int |
| 28388 | main () |
| 28389 | { |
| 28390 | |
| 28391 | ; |
| 28392 | return 0; |
| 28393 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28394 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28395 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28396 | if { (ac_try="$ac_compile" |
| 28397 | case "(($ac_try" in |
| 28398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28399 | *) ac_try_echo=$ac_try;; |
| 28400 | esac |
| 28401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28402 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28403 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28405 | rm -f conftest.er1 |
| 28406 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28408 | (exit $ac_status); } && |
| 28409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28410 | { (case "(($ac_try" in |
| 28411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28412 | *) ac_try_echo=$ac_try;; |
| 28413 | esac |
| 28414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28415 | (eval "$ac_try") 2>&5 |
| 28416 | ac_status=$? |
| 28417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28418 | (exit $ac_status); }; } && |
| 28419 | { ac_try='test -s conftest.$ac_objext' |
| 28420 | { (case "(($ac_try" in |
| 28421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28422 | *) ac_try_echo=$ac_try;; |
| 28423 | esac |
| 28424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28425 | (eval "$ac_try") 2>&5 |
| 28426 | ac_status=$? |
| 28427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28428 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28429 | ac_cv_header_stdc=yes |
| 28430 | else |
| 28431 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28434 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28435 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28436 | |
| 28437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28438 | |
| 28439 | if test $ac_cv_header_stdc = yes; then |
| 28440 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28441 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28442 | /* confdefs.h. */ |
| 28443 | _ACEOF |
| 28444 | cat confdefs.h >>conftest.$ac_ext |
| 28445 | cat >>conftest.$ac_ext <<_ACEOF |
| 28446 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28447 | #include <string.h> |
| 28448 | |
| 28449 | _ACEOF |
| 28450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28451 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28452 | : |
| 28453 | else |
| 28454 | ac_cv_header_stdc=no |
| 28455 | fi |
| 28456 | rm -f conftest* |
| 28457 | |
| 28458 | fi |
| 28459 | |
| 28460 | if test $ac_cv_header_stdc = yes; then |
| 28461 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28462 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28463 | /* confdefs.h. */ |
| 28464 | _ACEOF |
| 28465 | cat confdefs.h >>conftest.$ac_ext |
| 28466 | cat >>conftest.$ac_ext <<_ACEOF |
| 28467 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28468 | #include <stdlib.h> |
| 28469 | |
| 28470 | _ACEOF |
| 28471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28472 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28473 | : |
| 28474 | else |
| 28475 | ac_cv_header_stdc=no |
| 28476 | fi |
| 28477 | rm -f conftest* |
| 28478 | |
| 28479 | fi |
| 28480 | |
| 28481 | if test $ac_cv_header_stdc = yes; then |
| 28482 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28483 | if test "$cross_compiling" = yes; then |
| 28484 | : |
| 28485 | else |
| 28486 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28487 | /* confdefs.h. */ |
| 28488 | _ACEOF |
| 28489 | cat confdefs.h >>conftest.$ac_ext |
| 28490 | cat >>conftest.$ac_ext <<_ACEOF |
| 28491 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28492 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28493 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28494 | #if ((' ' & 0x0FF) == 0x020) |
| 28495 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28496 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28497 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28498 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28499 | (('a' <= (c) && (c) <= 'i') \ |
| 28500 | || ('j' <= (c) && (c) <= 'r') \ |
| 28501 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28502 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28503 | #endif |
| 28504 | |
| 28505 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28506 | int |
| 28507 | main () |
| 28508 | { |
| 28509 | int i; |
| 28510 | for (i = 0; i < 256; i++) |
| 28511 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28512 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28513 | return 2; |
| 28514 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28515 | } |
| 28516 | _ACEOF |
| 28517 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28518 | if { (ac_try="$ac_link" |
| 28519 | case "(($ac_try" in |
| 28520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28521 | *) ac_try_echo=$ac_try;; |
| 28522 | esac |
| 28523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28524 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28525 | ac_status=$? |
| 28526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28528 | { (case "(($ac_try" in |
| 28529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28530 | *) ac_try_echo=$ac_try;; |
| 28531 | esac |
| 28532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28533 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28534 | ac_status=$? |
| 28535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28536 | (exit $ac_status); }; }; then |
| 28537 | : |
| 28538 | else |
| 28539 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28540 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28543 | ( exit $ac_status ) |
| 28544 | ac_cv_header_stdc=no |
| 28545 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28546 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28547 | fi |
| 28548 | |
| 28549 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28550 | fi |
| 28551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28552 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28553 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28554 | if test $ac_cv_header_stdc = yes; then |
| 28555 | |
| 28556 | cat >>confdefs.h <<\_ACEOF |
| 28557 | #define STDC_HEADERS 1 |
| 28558 | _ACEOF |
| 28559 | |
| 28560 | fi |
| 28561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28562 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28563 | 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] | 28564 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28566 | else |
| 28567 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28568 | /* confdefs.h. */ |
| 28569 | _ACEOF |
| 28570 | cat confdefs.h >>conftest.$ac_ext |
| 28571 | cat >>conftest.$ac_ext <<_ACEOF |
| 28572 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28573 | #include <sys/types.h> |
| 28574 | #include <sys/wait.h> |
| 28575 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28576 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28577 | #endif |
| 28578 | #ifndef WIFEXITED |
| 28579 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28580 | #endif |
| 28581 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28582 | int |
| 28583 | main () |
| 28584 | { |
| 28585 | int s; |
| 28586 | wait (&s); |
| 28587 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28588 | ; |
| 28589 | return 0; |
| 28590 | } |
| 28591 | _ACEOF |
| 28592 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28593 | if { (ac_try="$ac_compile" |
| 28594 | case "(($ac_try" in |
| 28595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28596 | *) ac_try_echo=$ac_try;; |
| 28597 | esac |
| 28598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28599 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28600 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28602 | rm -f conftest.er1 |
| 28603 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28605 | (exit $ac_status); } && |
| 28606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28607 | { (case "(($ac_try" in |
| 28608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28609 | *) ac_try_echo=$ac_try;; |
| 28610 | esac |
| 28611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28612 | (eval "$ac_try") 2>&5 |
| 28613 | ac_status=$? |
| 28614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28615 | (exit $ac_status); }; } && |
| 28616 | { ac_try='test -s conftest.$ac_objext' |
| 28617 | { (case "(($ac_try" in |
| 28618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28619 | *) ac_try_echo=$ac_try;; |
| 28620 | esac |
| 28621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28622 | (eval "$ac_try") 2>&5 |
| 28623 | ac_status=$? |
| 28624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28625 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28626 | ac_cv_header_sys_wait_h=yes |
| 28627 | else |
| 28628 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28631 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28632 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28633 | |
| 28634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28636 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28637 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28638 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28639 | |
| 28640 | cat >>confdefs.h <<\_ACEOF |
| 28641 | #define HAVE_SYS_WAIT_H 1 |
| 28642 | _ACEOF |
| 28643 | |
| 28644 | fi |
| 28645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28646 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28647 | 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] | 28648 | if test "${ac_cv_header_time+set}" = set; then |
| 28649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28650 | else |
| 28651 | cat >conftest.$ac_ext <<_ACEOF |
| 28652 | /* confdefs.h. */ |
| 28653 | _ACEOF |
| 28654 | cat confdefs.h >>conftest.$ac_ext |
| 28655 | cat >>conftest.$ac_ext <<_ACEOF |
| 28656 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28657 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28658 | #include <sys/time.h> |
| 28659 | #include <time.h> |
| 28660 | |
| 28661 | int |
| 28662 | main () |
| 28663 | { |
| 28664 | if ((struct tm *) 0) |
| 28665 | return 0; |
| 28666 | ; |
| 28667 | return 0; |
| 28668 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28669 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28670 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28671 | if { (ac_try="$ac_compile" |
| 28672 | case "(($ac_try" in |
| 28673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28674 | *) ac_try_echo=$ac_try;; |
| 28675 | esac |
| 28676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28677 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28678 | ac_status=$? |
| 28679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28680 | rm -f conftest.er1 |
| 28681 | cat conftest.err >&5 |
| 28682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28683 | (exit $ac_status); } && |
| 28684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28685 | { (case "(($ac_try" in |
| 28686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28687 | *) ac_try_echo=$ac_try;; |
| 28688 | esac |
| 28689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28690 | (eval "$ac_try") 2>&5 |
| 28691 | ac_status=$? |
| 28692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28693 | (exit $ac_status); }; } && |
| 28694 | { ac_try='test -s conftest.$ac_objext' |
| 28695 | { (case "(($ac_try" in |
| 28696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28697 | *) ac_try_echo=$ac_try;; |
| 28698 | esac |
| 28699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28700 | (eval "$ac_try") 2>&5 |
| 28701 | ac_status=$? |
| 28702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28703 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28704 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28705 | else |
| 28706 | echo "$as_me: failed program was:" >&5 |
| 28707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28709 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28711 | |
| 28712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28714 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28715 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28716 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28717 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28718 | cat >>confdefs.h <<\_ACEOF |
| 28719 | #define TIME_WITH_SYS_TIME 1 |
| 28720 | _ACEOF |
| 28721 | |
| 28722 | fi |
| 28723 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28724 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28725 | |
| 28726 | |
| 28727 | |
| 28728 | |
| 28729 | |
| 28730 | |
| 28731 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28732 | do |
| 28733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28735 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28737 | 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] | 28738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28739 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28740 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28742 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28743 | else |
| 28744 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28745 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28746 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28747 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28748 | /* confdefs.h. */ |
| 28749 | _ACEOF |
| 28750 | cat confdefs.h >>conftest.$ac_ext |
| 28751 | cat >>conftest.$ac_ext <<_ACEOF |
| 28752 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28753 | $ac_includes_default |
| 28754 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28755 | _ACEOF |
| 28756 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28757 | if { (ac_try="$ac_compile" |
| 28758 | case "(($ac_try" in |
| 28759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28760 | *) ac_try_echo=$ac_try;; |
| 28761 | esac |
| 28762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28763 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28764 | ac_status=$? |
| 28765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28766 | rm -f conftest.er1 |
| 28767 | cat conftest.err >&5 |
| 28768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28769 | (exit $ac_status); } && |
| 28770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28771 | { (case "(($ac_try" in |
| 28772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28773 | *) ac_try_echo=$ac_try;; |
| 28774 | esac |
| 28775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28776 | (eval "$ac_try") 2>&5 |
| 28777 | ac_status=$? |
| 28778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28779 | (exit $ac_status); }; } && |
| 28780 | { ac_try='test -s conftest.$ac_objext' |
| 28781 | { (case "(($ac_try" in |
| 28782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28783 | *) ac_try_echo=$ac_try;; |
| 28784 | esac |
| 28785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28786 | (eval "$ac_try") 2>&5 |
| 28787 | ac_status=$? |
| 28788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28789 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28790 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28791 | else |
| 28792 | echo "$as_me: failed program was:" >&5 |
| 28793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28795 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28797 | |
| 28798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28799 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28800 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28801 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28802 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28803 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28805 | cat >conftest.$ac_ext <<_ACEOF |
| 28806 | /* confdefs.h. */ |
| 28807 | _ACEOF |
| 28808 | cat confdefs.h >>conftest.$ac_ext |
| 28809 | cat >>conftest.$ac_ext <<_ACEOF |
| 28810 | /* end confdefs.h. */ |
| 28811 | #include <$ac_header> |
| 28812 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28813 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28814 | case "(($ac_try" in |
| 28815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28816 | *) ac_try_echo=$ac_try;; |
| 28817 | esac |
| 28818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28819 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28820 | ac_status=$? |
| 28821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28822 | rm -f conftest.er1 |
| 28823 | cat conftest.err >&5 |
| 28824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28825 | (exit $ac_status); } >/dev/null; then |
| 28826 | if test -s conftest.err; then |
| 28827 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28829 | else |
| 28830 | ac_cpp_err= |
| 28831 | fi |
| 28832 | else |
| 28833 | ac_cpp_err=yes |
| 28834 | fi |
| 28835 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28836 | ac_header_preproc=yes |
| 28837 | else |
| 28838 | echo "$as_me: failed program was:" >&5 |
| 28839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28840 | |
| 28841 | ac_header_preproc=no |
| 28842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28843 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28844 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28845 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28846 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28847 | |
| 28848 | # So? What about this header? |
| 28849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28850 | yes:no: ) |
| 28851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28854 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28855 | ac_header_preproc=yes |
| 28856 | ;; |
| 28857 | no:yes:* ) |
| 28858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28869 | 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] | 28870 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28871 | ## ----------------------------------- ## |
| 28872 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28873 | ## ----------------------------------- ## |
| 28874 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28875 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28876 | ;; |
| 28877 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28880 | 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] | 28881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28882 | else |
| 28883 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28884 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28887 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28888 | |
| 28889 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28891 | cat >>confdefs.h <<_ACEOF |
| 28892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28893 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28894 | |
| 28895 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28896 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28897 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28898 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28899 | |
| 28900 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28901 | |
| 28902 | |
| 28903 | |
| 28904 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28905 | 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] | 28906 | do |
| 28907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28909 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28910 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28911 | 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] | 28912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28913 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28914 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28916 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28917 | else |
| 28918 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28919 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28920 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28921 | cat >conftest.$ac_ext <<_ACEOF |
| 28922 | /* confdefs.h. */ |
| 28923 | _ACEOF |
| 28924 | cat confdefs.h >>conftest.$ac_ext |
| 28925 | cat >>conftest.$ac_ext <<_ACEOF |
| 28926 | /* end confdefs.h. */ |
| 28927 | $ac_includes_default |
| 28928 | #include <$ac_header> |
| 28929 | _ACEOF |
| 28930 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28931 | if { (ac_try="$ac_compile" |
| 28932 | case "(($ac_try" in |
| 28933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28934 | *) ac_try_echo=$ac_try;; |
| 28935 | esac |
| 28936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28937 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28938 | ac_status=$? |
| 28939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28940 | rm -f conftest.er1 |
| 28941 | cat conftest.err >&5 |
| 28942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28943 | (exit $ac_status); } && |
| 28944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28945 | { (case "(($ac_try" in |
| 28946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28947 | *) ac_try_echo=$ac_try;; |
| 28948 | esac |
| 28949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28950 | (eval "$ac_try") 2>&5 |
| 28951 | ac_status=$? |
| 28952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28953 | (exit $ac_status); }; } && |
| 28954 | { ac_try='test -s conftest.$ac_objext' |
| 28955 | { (case "(($ac_try" in |
| 28956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28957 | *) ac_try_echo=$ac_try;; |
| 28958 | esac |
| 28959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28960 | (eval "$ac_try") 2>&5 |
| 28961 | ac_status=$? |
| 28962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28963 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28964 | ac_header_compiler=yes |
| 28965 | else |
| 28966 | echo "$as_me: failed program was:" >&5 |
| 28967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28969 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28971 | |
| 28972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28973 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28974 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28975 | |
| 28976 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28977 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28978 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28979 | cat >conftest.$ac_ext <<_ACEOF |
| 28980 | /* confdefs.h. */ |
| 28981 | _ACEOF |
| 28982 | cat confdefs.h >>conftest.$ac_ext |
| 28983 | cat >>conftest.$ac_ext <<_ACEOF |
| 28984 | /* end confdefs.h. */ |
| 28985 | #include <$ac_header> |
| 28986 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28987 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28988 | case "(($ac_try" in |
| 28989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28990 | *) ac_try_echo=$ac_try;; |
| 28991 | esac |
| 28992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28993 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28994 | ac_status=$? |
| 28995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28996 | rm -f conftest.er1 |
| 28997 | cat conftest.err >&5 |
| 28998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 28999 | (exit $ac_status); } >/dev/null; then |
| 29000 | if test -s conftest.err; then |
| 29001 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29002 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29003 | else |
| 29004 | ac_cpp_err= |
| 29005 | fi |
| 29006 | else |
| 29007 | ac_cpp_err=yes |
| 29008 | fi |
| 29009 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29010 | ac_header_preproc=yes |
| 29011 | else |
| 29012 | echo "$as_me: failed program was:" >&5 |
| 29013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29014 | |
| 29015 | ac_header_preproc=no |
| 29016 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29017 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29018 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29019 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29020 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29021 | |
| 29022 | # So? What about this header? |
| 29023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29024 | yes:no: ) |
| 29025 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29026 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29028 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29029 | ac_header_preproc=yes |
| 29030 | ;; |
| 29031 | no:yes:* ) |
| 29032 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29033 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29034 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29035 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29036 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29037 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29038 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29039 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29041 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29042 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29043 | 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] | 29044 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29045 | ## ----------------------------------- ## |
| 29046 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29047 | ## ----------------------------------- ## |
| 29048 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29049 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29050 | ;; |
| 29051 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29054 | 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] | 29055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29056 | else |
| 29057 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29059 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29061 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29062 | |
| 29063 | fi |
| 29064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29065 | cat >>confdefs.h <<_ACEOF |
| 29066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29067 | _ACEOF |
| 29068 | |
| 29069 | fi |
| 29070 | |
| 29071 | done |
| 29072 | |
| 29073 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29074 | for ac_header in windows.h |
| 29075 | do |
| 29076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29078 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29080 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29082 | fi |
| 29083 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29084 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29085 | echo "${ECHO_T}$ac_res" >&6; } |
| 29086 | else |
| 29087 | # Is the header compilable? |
| 29088 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 29090 | cat >conftest.$ac_ext <<_ACEOF |
| 29091 | /* confdefs.h. */ |
| 29092 | _ACEOF |
| 29093 | cat confdefs.h >>conftest.$ac_ext |
| 29094 | cat >>conftest.$ac_ext <<_ACEOF |
| 29095 | /* end confdefs.h. */ |
| 29096 | $ac_includes_default |
| 29097 | #include <$ac_header> |
| 29098 | _ACEOF |
| 29099 | rm -f conftest.$ac_objext |
| 29100 | if { (ac_try="$ac_compile" |
| 29101 | case "(($ac_try" in |
| 29102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29103 | *) ac_try_echo=$ac_try;; |
| 29104 | esac |
| 29105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29106 | (eval "$ac_compile") 2>conftest.er1 |
| 29107 | ac_status=$? |
| 29108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29109 | rm -f conftest.er1 |
| 29110 | cat conftest.err >&5 |
| 29111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29112 | (exit $ac_status); } && |
| 29113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29114 | { (case "(($ac_try" in |
| 29115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29116 | *) ac_try_echo=$ac_try;; |
| 29117 | esac |
| 29118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29119 | (eval "$ac_try") 2>&5 |
| 29120 | ac_status=$? |
| 29121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29122 | (exit $ac_status); }; } && |
| 29123 | { ac_try='test -s conftest.$ac_objext' |
| 29124 | { (case "(($ac_try" in |
| 29125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29126 | *) ac_try_echo=$ac_try;; |
| 29127 | esac |
| 29128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29129 | (eval "$ac_try") 2>&5 |
| 29130 | ac_status=$? |
| 29131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29132 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29133 | ac_header_compiler=yes |
| 29134 | else |
| 29135 | echo "$as_me: failed program was:" >&5 |
| 29136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29137 | |
| 29138 | ac_header_compiler=no |
| 29139 | fi |
| 29140 | |
| 29141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29142 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29143 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 29144 | |
| 29145 | # Is the header present? |
| 29146 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 29148 | cat >conftest.$ac_ext <<_ACEOF |
| 29149 | /* confdefs.h. */ |
| 29150 | _ACEOF |
| 29151 | cat confdefs.h >>conftest.$ac_ext |
| 29152 | cat >>conftest.$ac_ext <<_ACEOF |
| 29153 | /* end confdefs.h. */ |
| 29154 | #include <$ac_header> |
| 29155 | _ACEOF |
| 29156 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29157 | case "(($ac_try" in |
| 29158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29159 | *) ac_try_echo=$ac_try;; |
| 29160 | esac |
| 29161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29162 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29163 | ac_status=$? |
| 29164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29165 | rm -f conftest.er1 |
| 29166 | cat conftest.err >&5 |
| 29167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29168 | (exit $ac_status); } >/dev/null; then |
| 29169 | if test -s conftest.err; then |
| 29170 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29172 | else |
| 29173 | ac_cpp_err= |
| 29174 | fi |
| 29175 | else |
| 29176 | ac_cpp_err=yes |
| 29177 | fi |
| 29178 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29179 | ac_header_preproc=yes |
| 29180 | else |
| 29181 | echo "$as_me: failed program was:" >&5 |
| 29182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29183 | |
| 29184 | ac_header_preproc=no |
| 29185 | fi |
| 29186 | |
| 29187 | rm -f conftest.err conftest.$ac_ext |
| 29188 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29189 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29190 | |
| 29191 | # So? What about this header? |
| 29192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29193 | yes:no: ) |
| 29194 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29195 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29197 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29198 | ac_header_preproc=yes |
| 29199 | ;; |
| 29200 | no:yes:* ) |
| 29201 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29202 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29203 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29204 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29205 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29206 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29207 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29208 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29209 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29210 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29211 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29212 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29213 | ( cat <<\_ASBOX |
| 29214 | ## ----------------------------------- ## |
| 29215 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29216 | ## ----------------------------------- ## |
| 29217 | _ASBOX |
| 29218 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29219 | ;; |
| 29220 | esac |
| 29221 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29225 | else |
| 29226 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29227 | fi |
| 29228 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29229 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29230 | echo "${ECHO_T}$ac_res" >&6; } |
| 29231 | |
| 29232 | fi |
| 29233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29234 | cat >>confdefs.h <<_ACEOF |
| 29235 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29236 | _ACEOF |
| 29237 | |
| 29238 | fi |
| 29239 | |
| 29240 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29241 | |
| 29242 | |
| 29243 | |
| 29244 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29245 | |
| 29246 | 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] | 29247 | do |
| 29248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29250 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29252 | 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] | 29253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29254 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29255 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29256 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29257 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29258 | else |
| 29259 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29260 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29261 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29262 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29263 | /* confdefs.h. */ |
| 29264 | _ACEOF |
| 29265 | cat confdefs.h >>conftest.$ac_ext |
| 29266 | cat >>conftest.$ac_ext <<_ACEOF |
| 29267 | /* end confdefs.h. */ |
| 29268 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29269 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29270 | _ACEOF |
| 29271 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29272 | if { (ac_try="$ac_compile" |
| 29273 | case "(($ac_try" in |
| 29274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29275 | *) ac_try_echo=$ac_try;; |
| 29276 | esac |
| 29277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29278 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29279 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29281 | rm -f conftest.er1 |
| 29282 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29284 | (exit $ac_status); } && |
| 29285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29286 | { (case "(($ac_try" in |
| 29287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29288 | *) ac_try_echo=$ac_try;; |
| 29289 | esac |
| 29290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29291 | (eval "$ac_try") 2>&5 |
| 29292 | ac_status=$? |
| 29293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29294 | (exit $ac_status); }; } && |
| 29295 | { ac_try='test -s conftest.$ac_objext' |
| 29296 | { (case "(($ac_try" in |
| 29297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29298 | *) ac_try_echo=$ac_try;; |
| 29299 | esac |
| 29300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29301 | (eval "$ac_try") 2>&5 |
| 29302 | ac_status=$? |
| 29303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29304 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29305 | ac_header_compiler=yes |
| 29306 | else |
| 29307 | echo "$as_me: failed program was:" >&5 |
| 29308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29310 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29311 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29312 | |
| 29313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29314 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29315 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29316 | |
| 29317 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29318 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29319 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29320 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29321 | /* confdefs.h. */ |
| 29322 | _ACEOF |
| 29323 | cat confdefs.h >>conftest.$ac_ext |
| 29324 | cat >>conftest.$ac_ext <<_ACEOF |
| 29325 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29326 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29327 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29329 | case "(($ac_try" in |
| 29330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29331 | *) ac_try_echo=$ac_try;; |
| 29332 | esac |
| 29333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29335 | ac_status=$? |
| 29336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29337 | rm -f conftest.er1 |
| 29338 | cat conftest.err >&5 |
| 29339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29340 | (exit $ac_status); } >/dev/null; then |
| 29341 | if test -s conftest.err; then |
| 29342 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29344 | else |
| 29345 | ac_cpp_err= |
| 29346 | fi |
| 29347 | else |
| 29348 | ac_cpp_err=yes |
| 29349 | fi |
| 29350 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29351 | ac_header_preproc=yes |
| 29352 | else |
| 29353 | echo "$as_me: failed program was:" >&5 |
| 29354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29355 | |
| 29356 | ac_header_preproc=no |
| 29357 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29358 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29359 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29360 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29361 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29362 | |
| 29363 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29365 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29366 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29367 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29369 | 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] | 29370 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29371 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29372 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29373 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29374 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29375 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29376 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29377 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29378 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29379 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29380 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29382 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29383 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29384 | 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] | 29385 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29386 | ## ----------------------------------- ## |
| 29387 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29388 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29389 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29390 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29391 | ;; |
| 29392 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29395 | 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] | 29396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29397 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29398 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29399 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29400 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29401 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29402 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29403 | |
| 29404 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29406 | cat >>confdefs.h <<_ACEOF |
| 29407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29408 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29409 | |
| 29410 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29411 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29412 | done |
| 29413 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29414 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29415 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29416 | |
| 29417 | 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] | 29418 | do |
| 29419 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29421 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29423 | 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] | 29424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29425 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29426 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29427 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29428 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29429 | else |
| 29430 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29431 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29432 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29433 | cat >conftest.$ac_ext <<_ACEOF |
| 29434 | /* confdefs.h. */ |
| 29435 | _ACEOF |
| 29436 | cat confdefs.h >>conftest.$ac_ext |
| 29437 | cat >>conftest.$ac_ext <<_ACEOF |
| 29438 | /* end confdefs.h. */ |
| 29439 | $ac_includes_default |
| 29440 | #include <$ac_header> |
| 29441 | _ACEOF |
| 29442 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29443 | if { (ac_try="$ac_compile" |
| 29444 | case "(($ac_try" in |
| 29445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29446 | *) ac_try_echo=$ac_try;; |
| 29447 | esac |
| 29448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29449 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29450 | ac_status=$? |
| 29451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29452 | rm -f conftest.er1 |
| 29453 | cat conftest.err >&5 |
| 29454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29455 | (exit $ac_status); } && |
| 29456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29457 | { (case "(($ac_try" in |
| 29458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29459 | *) ac_try_echo=$ac_try;; |
| 29460 | esac |
| 29461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29462 | (eval "$ac_try") 2>&5 |
| 29463 | ac_status=$? |
| 29464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29465 | (exit $ac_status); }; } && |
| 29466 | { ac_try='test -s conftest.$ac_objext' |
| 29467 | { (case "(($ac_try" in |
| 29468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29469 | *) ac_try_echo=$ac_try;; |
| 29470 | esac |
| 29471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29472 | (eval "$ac_try") 2>&5 |
| 29473 | ac_status=$? |
| 29474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29475 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29476 | ac_header_compiler=yes |
| 29477 | else |
| 29478 | echo "$as_me: failed program was:" >&5 |
| 29479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29481 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29482 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29483 | |
| 29484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29485 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29486 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29487 | |
| 29488 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29489 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29491 | cat >conftest.$ac_ext <<_ACEOF |
| 29492 | /* confdefs.h. */ |
| 29493 | _ACEOF |
| 29494 | cat confdefs.h >>conftest.$ac_ext |
| 29495 | cat >>conftest.$ac_ext <<_ACEOF |
| 29496 | /* end confdefs.h. */ |
| 29497 | #include <$ac_header> |
| 29498 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29499 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29500 | case "(($ac_try" in |
| 29501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29502 | *) ac_try_echo=$ac_try;; |
| 29503 | esac |
| 29504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29505 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29506 | ac_status=$? |
| 29507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29508 | rm -f conftest.er1 |
| 29509 | cat conftest.err >&5 |
| 29510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29511 | (exit $ac_status); } >/dev/null; then |
| 29512 | if test -s conftest.err; then |
| 29513 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29514 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29515 | else |
| 29516 | ac_cpp_err= |
| 29517 | fi |
| 29518 | else |
| 29519 | ac_cpp_err=yes |
| 29520 | fi |
| 29521 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29522 | ac_header_preproc=yes |
| 29523 | else |
| 29524 | echo "$as_me: failed program was:" >&5 |
| 29525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29526 | |
| 29527 | ac_header_preproc=no |
| 29528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29529 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29530 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29531 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29532 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29533 | |
| 29534 | # So? What about this header? |
| 29535 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29536 | yes:no: ) |
| 29537 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29538 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29540 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29541 | ac_header_preproc=yes |
| 29542 | ;; |
| 29543 | no:yes:* ) |
| 29544 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29545 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29546 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29547 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29548 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29549 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29550 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29551 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29552 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29553 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29554 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29555 | 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] | 29556 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29557 | ## ----------------------------------- ## |
| 29558 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29559 | ## ----------------------------------- ## |
| 29560 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29561 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29562 | ;; |
| 29563 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29564 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29566 | 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] | 29567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29568 | else |
| 29569 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29570 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29571 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29572 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29573 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29574 | |
| 29575 | fi |
| 29576 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29577 | cat >>confdefs.h <<_ACEOF |
| 29578 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29579 | _ACEOF |
| 29580 | |
| 29581 | fi |
| 29582 | |
| 29583 | done |
| 29584 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29585 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29586 | |
| 29587 | for ac_header in pthread.h |
| 29588 | do |
| 29589 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29591 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29593 | 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] | 29594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29595 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29596 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29597 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29598 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29599 | else |
| 29600 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29601 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29602 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29603 | cat >conftest.$ac_ext <<_ACEOF |
| 29604 | /* confdefs.h. */ |
| 29605 | _ACEOF |
| 29606 | cat confdefs.h >>conftest.$ac_ext |
| 29607 | cat >>conftest.$ac_ext <<_ACEOF |
| 29608 | /* end confdefs.h. */ |
| 29609 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29610 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29611 | _ACEOF |
| 29612 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29613 | if { (ac_try="$ac_compile" |
| 29614 | case "(($ac_try" in |
| 29615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29616 | *) ac_try_echo=$ac_try;; |
| 29617 | esac |
| 29618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29619 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29620 | ac_status=$? |
| 29621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29622 | rm -f conftest.er1 |
| 29623 | cat conftest.err >&5 |
| 29624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29625 | (exit $ac_status); } && |
| 29626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29627 | { (case "(($ac_try" in |
| 29628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29629 | *) ac_try_echo=$ac_try;; |
| 29630 | esac |
| 29631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29632 | (eval "$ac_try") 2>&5 |
| 29633 | ac_status=$? |
| 29634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29635 | (exit $ac_status); }; } && |
| 29636 | { ac_try='test -s conftest.$ac_objext' |
| 29637 | { (case "(($ac_try" in |
| 29638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29639 | *) ac_try_echo=$ac_try;; |
| 29640 | esac |
| 29641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29642 | (eval "$ac_try") 2>&5 |
| 29643 | ac_status=$? |
| 29644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29645 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29646 | ac_header_compiler=yes |
| 29647 | else |
| 29648 | echo "$as_me: failed program was:" >&5 |
| 29649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29651 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29652 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29653 | |
| 29654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29655 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29656 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29657 | |
| 29658 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29659 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29660 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29661 | cat >conftest.$ac_ext <<_ACEOF |
| 29662 | /* confdefs.h. */ |
| 29663 | _ACEOF |
| 29664 | cat confdefs.h >>conftest.$ac_ext |
| 29665 | cat >>conftest.$ac_ext <<_ACEOF |
| 29666 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29667 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29668 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29670 | case "(($ac_try" in |
| 29671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29672 | *) ac_try_echo=$ac_try;; |
| 29673 | esac |
| 29674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29676 | ac_status=$? |
| 29677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29678 | rm -f conftest.er1 |
| 29679 | cat conftest.err >&5 |
| 29680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29681 | (exit $ac_status); } >/dev/null; then |
| 29682 | if test -s conftest.err; then |
| 29683 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29684 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29685 | else |
| 29686 | ac_cpp_err= |
| 29687 | fi |
| 29688 | else |
| 29689 | ac_cpp_err=yes |
| 29690 | fi |
| 29691 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29692 | ac_header_preproc=yes |
| 29693 | else |
| 29694 | echo "$as_me: failed program was:" >&5 |
| 29695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29696 | |
| 29697 | ac_header_preproc=no |
| 29698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29699 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29700 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29701 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29702 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29703 | |
| 29704 | # So? What about this header? |
| 29705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29706 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29707 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29708 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29710 | 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] | 29711 | ac_header_preproc=yes |
| 29712 | ;; |
| 29713 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29718 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29719 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29720 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29721 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29723 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29724 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29725 | 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] | 29726 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29727 | ## ----------------------------------- ## |
| 29728 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29729 | ## ----------------------------------- ## |
| 29730 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29731 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29732 | ;; |
| 29733 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29736 | 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] | 29737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29738 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29739 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29740 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29741 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29743 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29744 | |
| 29745 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29747 | cat >>confdefs.h <<_ACEOF |
| 29748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29749 | _ACEOF |
| 29750 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29751 | |
| 29752 | else |
| 29753 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29754 | |
| 29755 | fi |
| 29756 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29757 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29758 | |
| 29759 | else |
| 29760 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29761 | |
| 29762 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29763 | |
| 29764 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29765 | |
| 29766 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29767 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29768 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29770 | else |
| 29771 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29772 | ac_ext=cpp |
| 29773 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29774 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29775 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29776 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29777 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29778 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29779 | if test "$cross_compiling" = yes; then |
| 29780 | ac_cv_huge_val_sanity=yes |
| 29781 | else |
| 29782 | cat >conftest.$ac_ext <<_ACEOF |
| 29783 | /* confdefs.h. */ |
| 29784 | _ACEOF |
| 29785 | cat confdefs.h >>conftest.$ac_ext |
| 29786 | cat >>conftest.$ac_ext <<_ACEOF |
| 29787 | /* end confdefs.h. */ |
| 29788 | #include <math.h> |
| 29789 | int |
| 29790 | main () |
| 29791 | { |
| 29792 | double x = HUGE_VAL; return x != x; |
| 29793 | ; |
| 29794 | return 0; |
| 29795 | } |
| 29796 | _ACEOF |
| 29797 | rm -f conftest$ac_exeext |
| 29798 | if { (ac_try="$ac_link" |
| 29799 | case "(($ac_try" in |
| 29800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29801 | *) ac_try_echo=$ac_try;; |
| 29802 | esac |
| 29803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29804 | (eval "$ac_link") 2>&5 |
| 29805 | ac_status=$? |
| 29806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29808 | { (case "(($ac_try" in |
| 29809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29810 | *) ac_try_echo=$ac_try;; |
| 29811 | esac |
| 29812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29813 | (eval "$ac_try") 2>&5 |
| 29814 | ac_status=$? |
| 29815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29816 | (exit $ac_status); }; }; then |
| 29817 | ac_cv_huge_val_sanity=yes |
| 29818 | else |
| 29819 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29820 | echo "$as_me: failed program was:" >&5 |
| 29821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29822 | |
| 29823 | ( exit $ac_status ) |
| 29824 | ac_cv_huge_val_sanity=no |
| 29825 | fi |
| 29826 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29827 | fi |
| 29828 | |
| 29829 | |
| 29830 | ac_ext=c |
| 29831 | ac_cpp='$CPP $CPPFLAGS' |
| 29832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29835 | |
| 29836 | |
| 29837 | fi |
| 29838 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 29839 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 29840 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 29841 | |
| 29842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29843 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29844 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29845 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29847 | else |
| 29848 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29849 | /* confdefs.h. */ |
| 29850 | _ACEOF |
| 29851 | cat confdefs.h >>conftest.$ac_ext |
| 29852 | cat >>conftest.$ac_ext <<_ACEOF |
| 29853 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29854 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29855 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29856 | int |
| 29857 | main () |
| 29858 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29859 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29860 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29861 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29862 | return 0; |
| 29863 | ; |
| 29864 | return 0; |
| 29865 | } |
| 29866 | _ACEOF |
| 29867 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29868 | if { (ac_try="$ac_compile" |
| 29869 | case "(($ac_try" in |
| 29870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29871 | *) ac_try_echo=$ac_try;; |
| 29872 | esac |
| 29873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29874 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29875 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29877 | rm -f conftest.er1 |
| 29878 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29880 | (exit $ac_status); } && |
| 29881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29882 | { (case "(($ac_try" in |
| 29883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29884 | *) ac_try_echo=$ac_try;; |
| 29885 | esac |
| 29886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29887 | (eval "$ac_try") 2>&5 |
| 29888 | ac_status=$? |
| 29889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29890 | (exit $ac_status); }; } && |
| 29891 | { ac_try='test -s conftest.$ac_objext' |
| 29892 | { (case "(($ac_try" in |
| 29893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29894 | *) ac_try_echo=$ac_try;; |
| 29895 | esac |
| 29896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29897 | (eval "$ac_try") 2>&5 |
| 29898 | ac_status=$? |
| 29899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29900 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29901 | ac_cv_type_pid_t=yes |
| 29902 | else |
| 29903 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29906 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29908 | |
| 29909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29910 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29911 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29912 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29913 | if test $ac_cv_type_pid_t = yes; then |
| 29914 | : |
| 29915 | else |
| 29916 | |
| 29917 | cat >>confdefs.h <<_ACEOF |
| 29918 | #define pid_t int |
| 29919 | _ACEOF |
| 29920 | |
| 29921 | fi |
| 29922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29923 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29924 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29925 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29927 | else |
| 29928 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29929 | /* confdefs.h. */ |
| 29930 | _ACEOF |
| 29931 | cat confdefs.h >>conftest.$ac_ext |
| 29932 | cat >>conftest.$ac_ext <<_ACEOF |
| 29933 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29934 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29935 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29936 | int |
| 29937 | main () |
| 29938 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29939 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29940 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29941 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29942 | return 0; |
| 29943 | ; |
| 29944 | return 0; |
| 29945 | } |
| 29946 | _ACEOF |
| 29947 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29948 | if { (ac_try="$ac_compile" |
| 29949 | case "(($ac_try" in |
| 29950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29951 | *) ac_try_echo=$ac_try;; |
| 29952 | esac |
| 29953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29954 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29955 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29957 | rm -f conftest.er1 |
| 29958 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 29960 | (exit $ac_status); } && |
| 29961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29962 | { (case "(($ac_try" in |
| 29963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29964 | *) ac_try_echo=$ac_try;; |
| 29965 | esac |
| 29966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29967 | (eval "$ac_try") 2>&5 |
| 29968 | ac_status=$? |
| 29969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29970 | (exit $ac_status); }; } && |
| 29971 | { ac_try='test -s conftest.$ac_objext' |
| 29972 | { (case "(($ac_try" in |
| 29973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29974 | *) ac_try_echo=$ac_try;; |
| 29975 | esac |
| 29976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29977 | (eval "$ac_try") 2>&5 |
| 29978 | ac_status=$? |
| 29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29980 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29981 | ac_cv_type_size_t=yes |
| 29982 | else |
| 29983 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29986 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29988 | |
| 29989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29990 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29991 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 29992 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29993 | if test $ac_cv_type_size_t = yes; then |
| 29994 | : |
| 29995 | else |
| 29996 | |
| 29997 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29998 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29999 | _ACEOF |
| 30000 | |
| 30001 | fi |
| 30002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30003 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 30004 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30005 | if test "${ac_cv_type_signal+set}" = set; then |
| 30006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30007 | else |
| 30008 | cat >conftest.$ac_ext <<_ACEOF |
| 30009 | /* confdefs.h. */ |
| 30010 | _ACEOF |
| 30011 | cat confdefs.h >>conftest.$ac_ext |
| 30012 | cat >>conftest.$ac_ext <<_ACEOF |
| 30013 | /* end confdefs.h. */ |
| 30014 | #include <sys/types.h> |
| 30015 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30016 | |
| 30017 | int |
| 30018 | main () |
| 30019 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30020 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30021 | ; |
| 30022 | return 0; |
| 30023 | } |
| 30024 | _ACEOF |
| 30025 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30026 | if { (ac_try="$ac_compile" |
| 30027 | case "(($ac_try" in |
| 30028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30029 | *) ac_try_echo=$ac_try;; |
| 30030 | esac |
| 30031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30032 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30033 | ac_status=$? |
| 30034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30035 | rm -f conftest.er1 |
| 30036 | cat conftest.err >&5 |
| 30037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30038 | (exit $ac_status); } && |
| 30039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30040 | { (case "(($ac_try" in |
| 30041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30042 | *) ac_try_echo=$ac_try;; |
| 30043 | esac |
| 30044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30045 | (eval "$ac_try") 2>&5 |
| 30046 | ac_status=$? |
| 30047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30048 | (exit $ac_status); }; } && |
| 30049 | { ac_try='test -s conftest.$ac_objext' |
| 30050 | { (case "(($ac_try" in |
| 30051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30052 | *) ac_try_echo=$ac_try;; |
| 30053 | esac |
| 30054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30055 | (eval "$ac_try") 2>&5 |
| 30056 | ac_status=$? |
| 30057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30058 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30059 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30060 | else |
| 30061 | echo "$as_me: failed program was:" >&5 |
| 30062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30064 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30065 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30066 | |
| 30067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30068 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30069 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 30070 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30071 | |
| 30072 | cat >>confdefs.h <<_ACEOF |
| 30073 | #define RETSIGTYPE $ac_cv_type_signal |
| 30074 | _ACEOF |
| 30075 | |
| 30076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30077 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 30078 | 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] | 30079 | if test "${ac_cv_struct_tm+set}" = set; then |
| 30080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30081 | else |
| 30082 | cat >conftest.$ac_ext <<_ACEOF |
| 30083 | /* confdefs.h. */ |
| 30084 | _ACEOF |
| 30085 | cat confdefs.h >>conftest.$ac_ext |
| 30086 | cat >>conftest.$ac_ext <<_ACEOF |
| 30087 | /* end confdefs.h. */ |
| 30088 | #include <sys/types.h> |
| 30089 | #include <time.h> |
| 30090 | |
| 30091 | int |
| 30092 | main () |
| 30093 | { |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30094 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30095 | ; |
| 30096 | return 0; |
| 30097 | } |
| 30098 | _ACEOF |
| 30099 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30100 | if { (ac_try="$ac_compile" |
| 30101 | case "(($ac_try" in |
| 30102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30103 | *) ac_try_echo=$ac_try;; |
| 30104 | esac |
| 30105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30106 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30107 | ac_status=$? |
| 30108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30109 | rm -f conftest.er1 |
| 30110 | cat conftest.err >&5 |
| 30111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30112 | (exit $ac_status); } && |
| 30113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30114 | { (case "(($ac_try" in |
| 30115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30116 | *) ac_try_echo=$ac_try;; |
| 30117 | esac |
| 30118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30119 | (eval "$ac_try") 2>&5 |
| 30120 | ac_status=$? |
| 30121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30122 | (exit $ac_status); }; } && |
| 30123 | { ac_try='test -s conftest.$ac_objext' |
| 30124 | { (case "(($ac_try" in |
| 30125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30126 | *) ac_try_echo=$ac_try;; |
| 30127 | esac |
| 30128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30129 | (eval "$ac_try") 2>&5 |
| 30130 | ac_status=$? |
| 30131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30132 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30133 | ac_cv_struct_tm=time.h |
| 30134 | else |
| 30135 | echo "$as_me: failed program was:" >&5 |
| 30136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30138 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30139 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30140 | |
| 30141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30142 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30143 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 30144 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30145 | if test $ac_cv_struct_tm = sys/time.h; then |
| 30146 | |
| 30147 | cat >>confdefs.h <<\_ACEOF |
| 30148 | #define TM_IN_SYS_TIME 1 |
| 30149 | _ACEOF |
| 30150 | |
| 30151 | fi |
| 30152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30153 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 30154 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30155 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 30156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30157 | else |
| 30158 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30159 | /* confdefs.h. */ |
| 30160 | _ACEOF |
| 30161 | cat confdefs.h >>conftest.$ac_ext |
| 30162 | cat >>conftest.$ac_ext <<_ACEOF |
| 30163 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30164 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30165 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30166 | int |
| 30167 | main () |
| 30168 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30169 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30170 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30171 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30172 | return 0; |
| 30173 | ; |
| 30174 | return 0; |
| 30175 | } |
| 30176 | _ACEOF |
| 30177 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30178 | if { (ac_try="$ac_compile" |
| 30179 | case "(($ac_try" in |
| 30180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30181 | *) ac_try_echo=$ac_try;; |
| 30182 | esac |
| 30183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30184 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30185 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30187 | rm -f conftest.er1 |
| 30188 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30190 | (exit $ac_status); } && |
| 30191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30192 | { (case "(($ac_try" in |
| 30193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30194 | *) ac_try_echo=$ac_try;; |
| 30195 | esac |
| 30196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30197 | (eval "$ac_try") 2>&5 |
| 30198 | ac_status=$? |
| 30199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30200 | (exit $ac_status); }; } && |
| 30201 | { ac_try='test -s conftest.$ac_objext' |
| 30202 | { (case "(($ac_try" in |
| 30203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30204 | *) ac_try_echo=$ac_try;; |
| 30205 | esac |
| 30206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30207 | (eval "$ac_try") 2>&5 |
| 30208 | ac_status=$? |
| 30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30210 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30211 | ac_cv_type_int64_t=yes |
| 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_type_int64_t=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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30221 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 30222 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30223 | if test $ac_cv_type_int64_t = yes; then |
| 30224 | |
| 30225 | cat >>confdefs.h <<_ACEOF |
| 30226 | #define HAVE_INT64_T 1 |
| 30227 | _ACEOF |
| 30228 | |
| 30229 | |
| 30230 | else |
| 30231 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 30232 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 30233 | { (exit 1); exit 1; }; } |
| 30234 | fi |
| 30235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30236 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 30237 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30238 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 30239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30240 | else |
| 30241 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30242 | /* confdefs.h. */ |
| 30243 | _ACEOF |
| 30244 | cat confdefs.h >>conftest.$ac_ext |
| 30245 | cat >>conftest.$ac_ext <<_ACEOF |
| 30246 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30247 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30248 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30249 | int |
| 30250 | main () |
| 30251 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30252 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30253 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30254 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30255 | return 0; |
| 30256 | ; |
| 30257 | return 0; |
| 30258 | } |
| 30259 | _ACEOF |
| 30260 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30261 | if { (ac_try="$ac_compile" |
| 30262 | case "(($ac_try" in |
| 30263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30264 | *) ac_try_echo=$ac_try;; |
| 30265 | esac |
| 30266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30267 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30268 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30270 | rm -f conftest.er1 |
| 30271 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30273 | (exit $ac_status); } && |
| 30274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30275 | { (case "(($ac_try" in |
| 30276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30277 | *) ac_try_echo=$ac_try;; |
| 30278 | esac |
| 30279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30280 | (eval "$ac_try") 2>&5 |
| 30281 | ac_status=$? |
| 30282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30283 | (exit $ac_status); }; } && |
| 30284 | { ac_try='test -s conftest.$ac_objext' |
| 30285 | { (case "(($ac_try" in |
| 30286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30287 | *) ac_try_echo=$ac_try;; |
| 30288 | esac |
| 30289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30290 | (eval "$ac_try") 2>&5 |
| 30291 | ac_status=$? |
| 30292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30293 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30294 | ac_cv_type_uint64_t=yes |
| 30295 | else |
| 30296 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30299 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30300 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30301 | |
| 30302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30303 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30304 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 30305 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30306 | if test $ac_cv_type_uint64_t = yes; then |
| 30307 | |
| 30308 | cat >>confdefs.h <<_ACEOF |
| 30309 | #define HAVE_UINT64_T 1 |
| 30310 | _ACEOF |
| 30311 | |
| 30312 | |
| 30313 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30314 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 30315 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30316 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 30317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30318 | else |
| 30319 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30320 | /* confdefs.h. */ |
| 30321 | _ACEOF |
| 30322 | cat confdefs.h >>conftest.$ac_ext |
| 30323 | cat >>conftest.$ac_ext <<_ACEOF |
| 30324 | /* end confdefs.h. */ |
| 30325 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30326 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30327 | int |
| 30328 | main () |
| 30329 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30330 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30331 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30332 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30333 | return 0; |
| 30334 | ; |
| 30335 | return 0; |
| 30336 | } |
| 30337 | _ACEOF |
| 30338 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30339 | if { (ac_try="$ac_compile" |
| 30340 | case "(($ac_try" in |
| 30341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30342 | *) ac_try_echo=$ac_try;; |
| 30343 | esac |
| 30344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30345 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30346 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30348 | rm -f conftest.er1 |
| 30349 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30351 | (exit $ac_status); } && |
| 30352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 30359 | ac_status=$? |
| 30360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30361 | (exit $ac_status); }; } && |
| 30362 | { ac_try='test -s conftest.$ac_objext' |
| 30363 | { (case "(($ac_try" in |
| 30364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30365 | *) ac_try_echo=$ac_try;; |
| 30366 | esac |
| 30367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30368 | (eval "$ac_try") 2>&5 |
| 30369 | ac_status=$? |
| 30370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30371 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30372 | ac_cv_type_u_int64_t=yes |
| 30373 | else |
| 30374 | echo "$as_me: failed program was:" >&5 |
| 30375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30377 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30378 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30379 | |
| 30380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30381 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30382 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 30383 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30384 | if test $ac_cv_type_u_int64_t = yes; then |
| 30385 | |
| 30386 | cat >>confdefs.h <<_ACEOF |
| 30387 | #define HAVE_U_INT64_T 1 |
| 30388 | _ACEOF |
| 30389 | |
| 30390 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 30391 | else |
| 30392 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 30393 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 30394 | { (exit 1); exit 1; }; } |
| 30395 | fi |
| 30396 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30397 | fi |
| 30398 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30399 | |
| 30400 | |
| 30401 | |
| 30402 | |
| 30403 | |
| 30404 | |
| 30405 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 30406 | |
| 30407 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30408 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30409 | do |
| 30410 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30411 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30412 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30413 | 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] | 30414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30415 | else |
| 30416 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30417 | /* confdefs.h. */ |
| 30418 | _ACEOF |
| 30419 | cat confdefs.h >>conftest.$ac_ext |
| 30420 | cat >>conftest.$ac_ext <<_ACEOF |
| 30421 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30424 | #define $ac_func innocuous_$ac_func |
| 30425 | |
| 30426 | /* System header to define __stub macros and hopefully few prototypes, |
| 30427 | which can conflict with char $ac_func (); below. |
| 30428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30429 | <limits.h> exists even on freestanding compilers. */ |
| 30430 | |
| 30431 | #ifdef __STDC__ |
| 30432 | # include <limits.h> |
| 30433 | #else |
| 30434 | # include <assert.h> |
| 30435 | #endif |
| 30436 | |
| 30437 | #undef $ac_func |
| 30438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30439 | /* Override any GCC internal prototype to avoid an error. |
| 30440 | Use char because int might match the return type of a GCC |
| 30441 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30442 | #ifdef __cplusplus |
| 30443 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30444 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30445 | char $ac_func (); |
| 30446 | /* The GNU C library defines this for functions which it implements |
| 30447 | to always fail with ENOSYS. Some functions are actually named |
| 30448 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30449 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30450 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30451 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30452 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30453 | int |
| 30454 | main () |
| 30455 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30456 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30457 | ; |
| 30458 | return 0; |
| 30459 | } |
| 30460 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30462 | if { (ac_try="$ac_link" |
| 30463 | case "(($ac_try" in |
| 30464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30465 | *) ac_try_echo=$ac_try;; |
| 30466 | esac |
| 30467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30468 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30469 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30471 | rm -f conftest.er1 |
| 30472 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30474 | (exit $ac_status); } && |
| 30475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30476 | { (case "(($ac_try" in |
| 30477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30478 | *) ac_try_echo=$ac_try;; |
| 30479 | esac |
| 30480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30481 | (eval "$ac_try") 2>&5 |
| 30482 | ac_status=$? |
| 30483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30484 | (exit $ac_status); }; } && |
| 30485 | { ac_try='test -s conftest$ac_exeext' |
| 30486 | { (case "(($ac_try" in |
| 30487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30488 | *) ac_try_echo=$ac_try;; |
| 30489 | esac |
| 30490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30491 | (eval "$ac_try") 2>&5 |
| 30492 | ac_status=$? |
| 30493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30494 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30495 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30496 | else |
| 30497 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30500 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30501 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30502 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30503 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30504 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30506 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30508 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30509 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30510 | cat >>confdefs.h <<_ACEOF |
| 30511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30512 | _ACEOF |
| 30513 | |
| 30514 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30515 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30516 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30517 | |
| 30518 | |
| 30519 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30520 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30521 | for ac_func in powf fmodf strtof round |
| 30522 | do |
| 30523 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30524 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30525 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30526 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30528 | else |
| 30529 | cat >conftest.$ac_ext <<_ACEOF |
| 30530 | /* confdefs.h. */ |
| 30531 | _ACEOF |
| 30532 | cat confdefs.h >>conftest.$ac_ext |
| 30533 | cat >>conftest.$ac_ext <<_ACEOF |
| 30534 | /* end confdefs.h. */ |
| 30535 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30537 | #define $ac_func innocuous_$ac_func |
| 30538 | |
| 30539 | /* System header to define __stub macros and hopefully few prototypes, |
| 30540 | which can conflict with char $ac_func (); below. |
| 30541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30542 | <limits.h> exists even on freestanding compilers. */ |
| 30543 | |
| 30544 | #ifdef __STDC__ |
| 30545 | # include <limits.h> |
| 30546 | #else |
| 30547 | # include <assert.h> |
| 30548 | #endif |
| 30549 | |
| 30550 | #undef $ac_func |
| 30551 | |
| 30552 | /* Override any GCC internal prototype to avoid an error. |
| 30553 | Use char because int might match the return type of a GCC |
| 30554 | builtin and then its argument prototype would still apply. */ |
| 30555 | #ifdef __cplusplus |
| 30556 | extern "C" |
| 30557 | #endif |
| 30558 | char $ac_func (); |
| 30559 | /* The GNU C library defines this for functions which it implements |
| 30560 | to always fail with ENOSYS. Some functions are actually named |
| 30561 | something starting with __ and the normal name is an alias. */ |
| 30562 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30563 | choke me |
| 30564 | #endif |
| 30565 | |
| 30566 | int |
| 30567 | main () |
| 30568 | { |
| 30569 | return $ac_func (); |
| 30570 | ; |
| 30571 | return 0; |
| 30572 | } |
| 30573 | _ACEOF |
| 30574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30575 | if { (ac_try="$ac_link" |
| 30576 | case "(($ac_try" in |
| 30577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30578 | *) ac_try_echo=$ac_try;; |
| 30579 | esac |
| 30580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30581 | (eval "$ac_link") 2>conftest.er1 |
| 30582 | ac_status=$? |
| 30583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30584 | rm -f conftest.er1 |
| 30585 | cat conftest.err >&5 |
| 30586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30587 | (exit $ac_status); } && |
| 30588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30589 | { (case "(($ac_try" in |
| 30590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30591 | *) ac_try_echo=$ac_try;; |
| 30592 | esac |
| 30593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30594 | (eval "$ac_try") 2>&5 |
| 30595 | ac_status=$? |
| 30596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30597 | (exit $ac_status); }; } && |
| 30598 | { ac_try='test -s conftest$ac_exeext' |
| 30599 | { (case "(($ac_try" in |
| 30600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30601 | *) ac_try_echo=$ac_try;; |
| 30602 | esac |
| 30603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30604 | (eval "$ac_try") 2>&5 |
| 30605 | ac_status=$? |
| 30606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30607 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30608 | eval "$as_ac_var=yes" |
| 30609 | else |
| 30610 | echo "$as_me: failed program was:" >&5 |
| 30611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30612 | |
| 30613 | eval "$as_ac_var=no" |
| 30614 | fi |
| 30615 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30616 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30617 | conftest$ac_exeext conftest.$ac_ext |
| 30618 | fi |
| 30619 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30621 | echo "${ECHO_T}$ac_res" >&6; } |
| 30622 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30623 | cat >>confdefs.h <<_ACEOF |
| 30624 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30625 | _ACEOF |
| 30626 | |
| 30627 | fi |
| 30628 | done |
| 30629 | |
| 30630 | |
| 30631 | |
| 30632 | |
| 30633 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30634 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30635 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 30636 | do |
| 30637 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30638 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30639 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30640 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30642 | else |
| 30643 | cat >conftest.$ac_ext <<_ACEOF |
| 30644 | /* confdefs.h. */ |
| 30645 | _ACEOF |
| 30646 | cat confdefs.h >>conftest.$ac_ext |
| 30647 | cat >>conftest.$ac_ext <<_ACEOF |
| 30648 | /* end confdefs.h. */ |
| 30649 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30651 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30652 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30653 | /* System header to define __stub macros and hopefully few prototypes, |
| 30654 | which can conflict with char $ac_func (); below. |
| 30655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30656 | <limits.h> exists even on freestanding compilers. */ |
| 30657 | |
| 30658 | #ifdef __STDC__ |
| 30659 | # include <limits.h> |
| 30660 | #else |
| 30661 | # include <assert.h> |
| 30662 | #endif |
| 30663 | |
| 30664 | #undef $ac_func |
| 30665 | |
| 30666 | /* Override any GCC internal prototype to avoid an error. |
| 30667 | Use char because int might match the return type of a GCC |
| 30668 | builtin and then its argument prototype would still apply. */ |
| 30669 | #ifdef __cplusplus |
| 30670 | extern "C" |
| 30671 | #endif |
| 30672 | char $ac_func (); |
| 30673 | /* The GNU C library defines this for functions which it implements |
| 30674 | to always fail with ENOSYS. Some functions are actually named |
| 30675 | something starting with __ and the normal name is an alias. */ |
| 30676 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30677 | choke me |
| 30678 | #endif |
| 30679 | |
| 30680 | int |
| 30681 | main () |
| 30682 | { |
| 30683 | return $ac_func (); |
| 30684 | ; |
| 30685 | return 0; |
| 30686 | } |
| 30687 | _ACEOF |
| 30688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30689 | if { (ac_try="$ac_link" |
| 30690 | case "(($ac_try" in |
| 30691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30692 | *) ac_try_echo=$ac_try;; |
| 30693 | esac |
| 30694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30695 | (eval "$ac_link") 2>conftest.er1 |
| 30696 | ac_status=$? |
| 30697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30698 | rm -f conftest.er1 |
| 30699 | cat conftest.err >&5 |
| 30700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30701 | (exit $ac_status); } && |
| 30702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30703 | { (case "(($ac_try" in |
| 30704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30705 | *) ac_try_echo=$ac_try;; |
| 30706 | esac |
| 30707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30708 | (eval "$ac_try") 2>&5 |
| 30709 | ac_status=$? |
| 30710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30711 | (exit $ac_status); }; } && |
| 30712 | { ac_try='test -s conftest$ac_exeext' |
| 30713 | { (case "(($ac_try" in |
| 30714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30715 | *) ac_try_echo=$ac_try;; |
| 30716 | esac |
| 30717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30718 | (eval "$ac_try") 2>&5 |
| 30719 | ac_status=$? |
| 30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30721 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30722 | eval "$as_ac_var=yes" |
| 30723 | else |
| 30724 | echo "$as_me: failed program was:" >&5 |
| 30725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30726 | |
| 30727 | eval "$as_ac_var=no" |
| 30728 | fi |
| 30729 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30730 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30731 | conftest$ac_exeext conftest.$ac_ext |
| 30732 | fi |
| 30733 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30734 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30735 | echo "${ECHO_T}$ac_res" >&6; } |
| 30736 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30737 | cat >>confdefs.h <<_ACEOF |
| 30738 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30739 | _ACEOF |
| 30740 | |
| 30741 | fi |
| 30742 | done |
| 30743 | |
| 30744 | |
| 30745 | |
| 30746 | |
| 30747 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30748 | do |
| 30749 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30750 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30751 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30752 | 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] | 30753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30754 | else |
| 30755 | cat >conftest.$ac_ext <<_ACEOF |
| 30756 | /* confdefs.h. */ |
| 30757 | _ACEOF |
| 30758 | cat confdefs.h >>conftest.$ac_ext |
| 30759 | cat >>conftest.$ac_ext <<_ACEOF |
| 30760 | /* end confdefs.h. */ |
| 30761 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30762 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30763 | #define $ac_func innocuous_$ac_func |
| 30764 | |
| 30765 | /* System header to define __stub macros and hopefully few prototypes, |
| 30766 | which can conflict with char $ac_func (); below. |
| 30767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30768 | <limits.h> exists even on freestanding compilers. */ |
| 30769 | |
| 30770 | #ifdef __STDC__ |
| 30771 | # include <limits.h> |
| 30772 | #else |
| 30773 | # include <assert.h> |
| 30774 | #endif |
| 30775 | |
| 30776 | #undef $ac_func |
| 30777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30778 | /* Override any GCC internal prototype to avoid an error. |
| 30779 | Use char because int might match the return type of a GCC |
| 30780 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30781 | #ifdef __cplusplus |
| 30782 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30783 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30784 | char $ac_func (); |
| 30785 | /* The GNU C library defines this for functions which it implements |
| 30786 | to always fail with ENOSYS. Some functions are actually named |
| 30787 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30788 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30789 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30790 | #endif |
| 30791 | |
| 30792 | int |
| 30793 | main () |
| 30794 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30795 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30796 | ; |
| 30797 | return 0; |
| 30798 | } |
| 30799 | _ACEOF |
| 30800 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30801 | if { (ac_try="$ac_link" |
| 30802 | case "(($ac_try" in |
| 30803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30804 | *) ac_try_echo=$ac_try;; |
| 30805 | esac |
| 30806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30807 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30808 | ac_status=$? |
| 30809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30810 | rm -f conftest.er1 |
| 30811 | cat conftest.err >&5 |
| 30812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30813 | (exit $ac_status); } && |
| 30814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30815 | { (case "(($ac_try" in |
| 30816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30817 | *) ac_try_echo=$ac_try;; |
| 30818 | esac |
| 30819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30820 | (eval "$ac_try") 2>&5 |
| 30821 | ac_status=$? |
| 30822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30823 | (exit $ac_status); }; } && |
| 30824 | { ac_try='test -s conftest$ac_exeext' |
| 30825 | { (case "(($ac_try" in |
| 30826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30827 | *) ac_try_echo=$ac_try;; |
| 30828 | esac |
| 30829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30830 | (eval "$ac_try") 2>&5 |
| 30831 | ac_status=$? |
| 30832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30833 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30834 | eval "$as_ac_var=yes" |
| 30835 | else |
| 30836 | echo "$as_me: failed program was:" >&5 |
| 30837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30839 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30841 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30842 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30843 | conftest$ac_exeext conftest.$ac_ext |
| 30844 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30845 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30846 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30847 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30848 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30849 | cat >>confdefs.h <<_ACEOF |
| 30850 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30851 | _ACEOF |
| 30852 | |
| 30853 | fi |
| 30854 | done |
| 30855 | |
| 30856 | |
| 30857 | |
| 30858 | |
| 30859 | |
| 30860 | |
| 30861 | |
| 30862 | |
| 30863 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30864 | do |
| 30865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30866 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30868 | 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] | 30869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30870 | else |
| 30871 | cat >conftest.$ac_ext <<_ACEOF |
| 30872 | /* confdefs.h. */ |
| 30873 | _ACEOF |
| 30874 | cat confdefs.h >>conftest.$ac_ext |
| 30875 | cat >>conftest.$ac_ext <<_ACEOF |
| 30876 | /* end confdefs.h. */ |
| 30877 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30879 | #define $ac_func innocuous_$ac_func |
| 30880 | |
| 30881 | /* System header to define __stub macros and hopefully few prototypes, |
| 30882 | which can conflict with char $ac_func (); below. |
| 30883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30884 | <limits.h> exists even on freestanding compilers. */ |
| 30885 | |
| 30886 | #ifdef __STDC__ |
| 30887 | # include <limits.h> |
| 30888 | #else |
| 30889 | # include <assert.h> |
| 30890 | #endif |
| 30891 | |
| 30892 | #undef $ac_func |
| 30893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30894 | /* Override any GCC internal prototype to avoid an error. |
| 30895 | Use char because int might match the return type of a GCC |
| 30896 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30897 | #ifdef __cplusplus |
| 30898 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30899 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30900 | char $ac_func (); |
| 30901 | /* The GNU C library defines this for functions which it implements |
| 30902 | to always fail with ENOSYS. Some functions are actually named |
| 30903 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30904 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30905 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30906 | #endif |
| 30907 | |
| 30908 | int |
| 30909 | main () |
| 30910 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30911 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30912 | ; |
| 30913 | return 0; |
| 30914 | } |
| 30915 | _ACEOF |
| 30916 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30917 | if { (ac_try="$ac_link" |
| 30918 | case "(($ac_try" in |
| 30919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30920 | *) ac_try_echo=$ac_try;; |
| 30921 | esac |
| 30922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30923 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30924 | ac_status=$? |
| 30925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30926 | rm -f conftest.er1 |
| 30927 | cat conftest.err >&5 |
| 30928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30929 | (exit $ac_status); } && |
| 30930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30931 | { (case "(($ac_try" in |
| 30932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30933 | *) ac_try_echo=$ac_try;; |
| 30934 | esac |
| 30935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30936 | (eval "$ac_try") 2>&5 |
| 30937 | ac_status=$? |
| 30938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30939 | (exit $ac_status); }; } && |
| 30940 | { ac_try='test -s conftest$ac_exeext' |
| 30941 | { (case "(($ac_try" in |
| 30942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30943 | *) ac_try_echo=$ac_try;; |
| 30944 | esac |
| 30945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30946 | (eval "$ac_try") 2>&5 |
| 30947 | ac_status=$? |
| 30948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30949 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30950 | eval "$as_ac_var=yes" |
| 30951 | else |
| 30952 | echo "$as_me: failed program was:" >&5 |
| 30953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30955 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30956 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30957 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 30958 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30959 | conftest$ac_exeext conftest.$ac_ext |
| 30960 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30961 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30963 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30964 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30965 | cat >>confdefs.h <<_ACEOF |
| 30966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30967 | _ACEOF |
| 30968 | |
| 30969 | fi |
| 30970 | done |
| 30971 | |
| 30972 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30973 | |
| 30974 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30975 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30976 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30977 | do |
| 30978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30979 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30981 | 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] | 30982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30983 | else |
| 30984 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30985 | /* confdefs.h. */ |
| 30986 | _ACEOF |
| 30987 | cat confdefs.h >>conftest.$ac_ext |
| 30988 | cat >>conftest.$ac_ext <<_ACEOF |
| 30989 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30992 | #define $ac_func innocuous_$ac_func |
| 30993 | |
| 30994 | /* System header to define __stub macros and hopefully few prototypes, |
| 30995 | which can conflict with char $ac_func (); below. |
| 30996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30997 | <limits.h> exists even on freestanding compilers. */ |
| 30998 | |
| 30999 | #ifdef __STDC__ |
| 31000 | # include <limits.h> |
| 31001 | #else |
| 31002 | # include <assert.h> |
| 31003 | #endif |
| 31004 | |
| 31005 | #undef $ac_func |
| 31006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31007 | /* Override any GCC internal prototype to avoid an error. |
| 31008 | Use char because int might match the return type of a GCC |
| 31009 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31010 | #ifdef __cplusplus |
| 31011 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31012 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31013 | char $ac_func (); |
| 31014 | /* The GNU C library defines this for functions which it implements |
| 31015 | to always fail with ENOSYS. Some functions are actually named |
| 31016 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31017 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31018 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31019 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31020 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31021 | int |
| 31022 | main () |
| 31023 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31024 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31025 | ; |
| 31026 | return 0; |
| 31027 | } |
| 31028 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31029 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31030 | if { (ac_try="$ac_link" |
| 31031 | case "(($ac_try" in |
| 31032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31033 | *) ac_try_echo=$ac_try;; |
| 31034 | esac |
| 31035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31036 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31037 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31039 | rm -f conftest.er1 |
| 31040 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31042 | (exit $ac_status); } && |
| 31043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31044 | { (case "(($ac_try" in |
| 31045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31046 | *) ac_try_echo=$ac_try;; |
| 31047 | esac |
| 31048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31049 | (eval "$ac_try") 2>&5 |
| 31050 | ac_status=$? |
| 31051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31052 | (exit $ac_status); }; } && |
| 31053 | { ac_try='test -s conftest$ac_exeext' |
| 31054 | { (case "(($ac_try" in |
| 31055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31056 | *) ac_try_echo=$ac_try;; |
| 31057 | esac |
| 31058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31059 | (eval "$ac_try") 2>&5 |
| 31060 | ac_status=$? |
| 31061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31062 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31063 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31064 | else |
| 31065 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31068 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31069 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31070 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31071 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31072 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31074 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31076 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31077 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31078 | cat >>confdefs.h <<_ACEOF |
| 31079 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31080 | _ACEOF |
| 31081 | |
| 31082 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31083 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31084 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31085 | |
| 31086 | |
| 31087 | |
| 31088 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 31089 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31090 | do |
| 31091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31092 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31094 | 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] | 31095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31096 | else |
| 31097 | cat >conftest.$ac_ext <<_ACEOF |
| 31098 | /* confdefs.h. */ |
| 31099 | _ACEOF |
| 31100 | cat confdefs.h >>conftest.$ac_ext |
| 31101 | cat >>conftest.$ac_ext <<_ACEOF |
| 31102 | /* end confdefs.h. */ |
| 31103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31105 | #define $ac_func innocuous_$ac_func |
| 31106 | |
| 31107 | /* System header to define __stub macros and hopefully few prototypes, |
| 31108 | which can conflict with char $ac_func (); below. |
| 31109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31110 | <limits.h> exists even on freestanding compilers. */ |
| 31111 | |
| 31112 | #ifdef __STDC__ |
| 31113 | # include <limits.h> |
| 31114 | #else |
| 31115 | # include <assert.h> |
| 31116 | #endif |
| 31117 | |
| 31118 | #undef $ac_func |
| 31119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31120 | /* Override any GCC internal prototype to avoid an error. |
| 31121 | Use char because int might match the return type of a GCC |
| 31122 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31123 | #ifdef __cplusplus |
| 31124 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31125 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31126 | char $ac_func (); |
| 31127 | /* The GNU C library defines this for functions which it implements |
| 31128 | to always fail with ENOSYS. Some functions are actually named |
| 31129 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31130 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31131 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31132 | #endif |
| 31133 | |
| 31134 | int |
| 31135 | main () |
| 31136 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31137 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31138 | ; |
| 31139 | return 0; |
| 31140 | } |
| 31141 | _ACEOF |
| 31142 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31143 | if { (ac_try="$ac_link" |
| 31144 | case "(($ac_try" in |
| 31145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31146 | *) ac_try_echo=$ac_try;; |
| 31147 | esac |
| 31148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31149 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31150 | ac_status=$? |
| 31151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31152 | rm -f conftest.er1 |
| 31153 | cat conftest.err >&5 |
| 31154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31155 | (exit $ac_status); } && |
| 31156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31157 | { (case "(($ac_try" in |
| 31158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31159 | *) ac_try_echo=$ac_try;; |
| 31160 | esac |
| 31161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31162 | (eval "$ac_try") 2>&5 |
| 31163 | ac_status=$? |
| 31164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31165 | (exit $ac_status); }; } && |
| 31166 | { ac_try='test -s conftest$ac_exeext' |
| 31167 | { (case "(($ac_try" in |
| 31168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31169 | *) ac_try_echo=$ac_try;; |
| 31170 | esac |
| 31171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31172 | (eval "$ac_try") 2>&5 |
| 31173 | ac_status=$? |
| 31174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31175 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31176 | eval "$as_ac_var=yes" |
| 31177 | else |
| 31178 | echo "$as_me: failed program was:" >&5 |
| 31179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31181 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31183 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31184 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31185 | conftest$ac_exeext conftest.$ac_ext |
| 31186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31187 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31189 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31190 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31191 | cat >>confdefs.h <<_ACEOF |
| 31192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31193 | _ACEOF |
| 31194 | |
| 31195 | fi |
| 31196 | done |
| 31197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31198 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 31199 | 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] | 31200 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31202 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31203 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31204 | ac_cpp='$CPP $CPPFLAGS' |
| 31205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31208 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31209 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31210 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31211 | else |
| 31212 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31213 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31214 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31215 | _ACEOF |
| 31216 | cat confdefs.h >>conftest.$ac_ext |
| 31217 | cat >>conftest.$ac_ext <<_ACEOF |
| 31218 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31219 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31220 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31221 | #include <stdlib.h> |
| 31222 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31223 | int |
| 31224 | main () |
| 31225 | { |
| 31226 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31227 | volatile double A, B; |
| 31228 | char Buffer[100]; |
| 31229 | A = 1; |
| 31230 | A /= 10.0; |
| 31231 | sprintf(Buffer, "%a", A); |
| 31232 | B = atof(Buffer); |
| 31233 | if (A != B) |
| 31234 | return (1); |
| 31235 | if (A != 0x1.999999999999ap-4) |
| 31236 | return (1); |
| 31237 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31238 | ; |
| 31239 | return 0; |
| 31240 | } |
| 31241 | _ACEOF |
| 31242 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31243 | if { (ac_try="$ac_link" |
| 31244 | case "(($ac_try" in |
| 31245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31246 | *) ac_try_echo=$ac_try;; |
| 31247 | esac |
| 31248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31249 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31250 | ac_status=$? |
| 31251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31252 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31253 | { (case "(($ac_try" in |
| 31254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31255 | *) ac_try_echo=$ac_try;; |
| 31256 | esac |
| 31257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31258 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31259 | ac_status=$? |
| 31260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31261 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31262 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31263 | else |
| 31264 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31265 | echo "$as_me: failed program was:" >&5 |
| 31266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31267 | |
| 31268 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31269 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31271 | 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] | 31272 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31273 | |
| 31274 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31275 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31276 | ac_cpp='$CPP $CPPFLAGS' |
| 31277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31280 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31282 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 31283 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31284 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31285 | |
| 31286 | cat >>confdefs.h <<\_ACEOF |
| 31287 | #define HAVE_PRINTF_A 1 |
| 31288 | _ACEOF |
| 31289 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31290 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31291 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31292 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 31293 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31294 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 31295 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31296 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31298 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31299 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31300 | /* confdefs.h. */ |
| 31301 | _ACEOF |
| 31302 | cat confdefs.h >>conftest.$ac_ext |
| 31303 | cat >>conftest.$ac_ext <<_ACEOF |
| 31304 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31305 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31306 | int |
| 31307 | main () |
| 31308 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31309 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31310 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31311 | ; |
| 31312 | return 0; |
| 31313 | } |
| 31314 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31315 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31316 | if { (ac_try="$ac_link" |
| 31317 | case "(($ac_try" in |
| 31318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31319 | *) ac_try_echo=$ac_try;; |
| 31320 | esac |
| 31321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31322 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31323 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31325 | rm -f conftest.er1 |
| 31326 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31328 | (exit $ac_status); } && |
| 31329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31330 | { (case "(($ac_try" in |
| 31331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31332 | *) ac_try_echo=$ac_try;; |
| 31333 | esac |
| 31334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31335 | (eval "$ac_try") 2>&5 |
| 31336 | ac_status=$? |
| 31337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31338 | (exit $ac_status); }; } && |
| 31339 | { ac_try='test -s conftest$ac_exeext' |
| 31340 | { (case "(($ac_try" in |
| 31341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31342 | *) ac_try_echo=$ac_try;; |
| 31343 | esac |
| 31344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31345 | (eval "$ac_try") 2>&5 |
| 31346 | ac_status=$? |
| 31347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31348 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31349 | ac_cv_working_alloca_h=yes |
| 31350 | else |
| 31351 | echo "$as_me: failed program was:" >&5 |
| 31352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31354 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31356 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31357 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31358 | conftest$ac_exeext conftest.$ac_ext |
| 31359 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31360 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 31361 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31362 | if test $ac_cv_working_alloca_h = yes; then |
| 31363 | |
| 31364 | cat >>confdefs.h <<\_ACEOF |
| 31365 | #define HAVE_ALLOCA_H 1 |
| 31366 | _ACEOF |
| 31367 | |
| 31368 | fi |
| 31369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31370 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 31371 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31372 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 31373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31374 | else |
| 31375 | cat >conftest.$ac_ext <<_ACEOF |
| 31376 | /* confdefs.h. */ |
| 31377 | _ACEOF |
| 31378 | cat confdefs.h >>conftest.$ac_ext |
| 31379 | cat >>conftest.$ac_ext <<_ACEOF |
| 31380 | /* end confdefs.h. */ |
| 31381 | #ifdef __GNUC__ |
| 31382 | # define alloca __builtin_alloca |
| 31383 | #else |
| 31384 | # ifdef _MSC_VER |
| 31385 | # include <malloc.h> |
| 31386 | # define alloca _alloca |
| 31387 | # else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31388 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31389 | # include <alloca.h> |
| 31390 | # else |
| 31391 | # ifdef _AIX |
| 31392 | #pragma alloca |
| 31393 | # else |
| 31394 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 31395 | char *alloca (); |
| 31396 | # endif |
| 31397 | # endif |
| 31398 | # endif |
| 31399 | # endif |
| 31400 | #endif |
| 31401 | |
| 31402 | int |
| 31403 | main () |
| 31404 | { |
| 31405 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31406 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31407 | ; |
| 31408 | return 0; |
| 31409 | } |
| 31410 | _ACEOF |
| 31411 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31412 | if { (ac_try="$ac_link" |
| 31413 | case "(($ac_try" in |
| 31414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31415 | *) ac_try_echo=$ac_try;; |
| 31416 | esac |
| 31417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31418 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31419 | ac_status=$? |
| 31420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31421 | rm -f conftest.er1 |
| 31422 | cat conftest.err >&5 |
| 31423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31424 | (exit $ac_status); } && |
| 31425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31426 | { (case "(($ac_try" in |
| 31427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31428 | *) ac_try_echo=$ac_try;; |
| 31429 | esac |
| 31430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31431 | (eval "$ac_try") 2>&5 |
| 31432 | ac_status=$? |
| 31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31434 | (exit $ac_status); }; } && |
| 31435 | { ac_try='test -s conftest$ac_exeext' |
| 31436 | { (case "(($ac_try" in |
| 31437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31438 | *) ac_try_echo=$ac_try;; |
| 31439 | esac |
| 31440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31441 | (eval "$ac_try") 2>&5 |
| 31442 | ac_status=$? |
| 31443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31444 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31445 | ac_cv_func_alloca_works=yes |
| 31446 | else |
| 31447 | echo "$as_me: failed program was:" >&5 |
| 31448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31450 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31451 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31452 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31453 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31454 | conftest$ac_exeext conftest.$ac_ext |
| 31455 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31456 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 31457 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31458 | |
| 31459 | if test $ac_cv_func_alloca_works = yes; then |
| 31460 | |
| 31461 | cat >>confdefs.h <<\_ACEOF |
| 31462 | #define HAVE_ALLOCA 1 |
| 31463 | _ACEOF |
| 31464 | |
| 31465 | else |
| 31466 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 31467 | # that cause trouble. Some versions do not even contain alloca or |
| 31468 | # contain a buggy version. If you still want to use their alloca, |
| 31469 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 31470 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31471 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31472 | |
| 31473 | cat >>confdefs.h <<\_ACEOF |
| 31474 | #define C_ALLOCA 1 |
| 31475 | _ACEOF |
| 31476 | |
| 31477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31478 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 31479 | 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] | 31480 | if test "${ac_cv_os_cray+set}" = set; then |
| 31481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31482 | else |
| 31483 | cat >conftest.$ac_ext <<_ACEOF |
| 31484 | /* confdefs.h. */ |
| 31485 | _ACEOF |
| 31486 | cat confdefs.h >>conftest.$ac_ext |
| 31487 | cat >>conftest.$ac_ext <<_ACEOF |
| 31488 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31489 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31490 | webecray |
| 31491 | #else |
| 31492 | wenotbecray |
| 31493 | #endif |
| 31494 | |
| 31495 | _ACEOF |
| 31496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31497 | $EGREP "webecray" >/dev/null 2>&1; then |
| 31498 | ac_cv_os_cray=yes |
| 31499 | else |
| 31500 | ac_cv_os_cray=no |
| 31501 | fi |
| 31502 | rm -f conftest* |
| 31503 | |
| 31504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31505 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 31506 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31507 | if test $ac_cv_os_cray = yes; then |
| 31508 | for ac_func in _getb67 GETB67 getb67; do |
| 31509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31510 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31512 | 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] | 31513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31514 | else |
| 31515 | cat >conftest.$ac_ext <<_ACEOF |
| 31516 | /* confdefs.h. */ |
| 31517 | _ACEOF |
| 31518 | cat confdefs.h >>conftest.$ac_ext |
| 31519 | cat >>conftest.$ac_ext <<_ACEOF |
| 31520 | /* end confdefs.h. */ |
| 31521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31523 | #define $ac_func innocuous_$ac_func |
| 31524 | |
| 31525 | /* System header to define __stub macros and hopefully few prototypes, |
| 31526 | which can conflict with char $ac_func (); below. |
| 31527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31528 | <limits.h> exists even on freestanding compilers. */ |
| 31529 | |
| 31530 | #ifdef __STDC__ |
| 31531 | # include <limits.h> |
| 31532 | #else |
| 31533 | # include <assert.h> |
| 31534 | #endif |
| 31535 | |
| 31536 | #undef $ac_func |
| 31537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31538 | /* Override any GCC internal prototype to avoid an error. |
| 31539 | Use char because int might match the return type of a GCC |
| 31540 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31541 | #ifdef __cplusplus |
| 31542 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31543 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31544 | char $ac_func (); |
| 31545 | /* The GNU C library defines this for functions which it implements |
| 31546 | to always fail with ENOSYS. Some functions are actually named |
| 31547 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31548 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31549 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31550 | #endif |
| 31551 | |
| 31552 | int |
| 31553 | main () |
| 31554 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31555 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31556 | ; |
| 31557 | return 0; |
| 31558 | } |
| 31559 | _ACEOF |
| 31560 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31561 | if { (ac_try="$ac_link" |
| 31562 | case "(($ac_try" in |
| 31563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31564 | *) ac_try_echo=$ac_try;; |
| 31565 | esac |
| 31566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31567 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31568 | ac_status=$? |
| 31569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31570 | rm -f conftest.er1 |
| 31571 | cat conftest.err >&5 |
| 31572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31573 | (exit $ac_status); } && |
| 31574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31575 | { (case "(($ac_try" in |
| 31576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31577 | *) ac_try_echo=$ac_try;; |
| 31578 | esac |
| 31579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31580 | (eval "$ac_try") 2>&5 |
| 31581 | ac_status=$? |
| 31582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31583 | (exit $ac_status); }; } && |
| 31584 | { ac_try='test -s conftest$ac_exeext' |
| 31585 | { (case "(($ac_try" in |
| 31586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31587 | *) ac_try_echo=$ac_try;; |
| 31588 | esac |
| 31589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31590 | (eval "$ac_try") 2>&5 |
| 31591 | ac_status=$? |
| 31592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31593 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31594 | eval "$as_ac_var=yes" |
| 31595 | else |
| 31596 | echo "$as_me: failed program was:" >&5 |
| 31597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31599 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31600 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31601 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31602 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31603 | conftest$ac_exeext conftest.$ac_ext |
| 31604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31605 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31606 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31607 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31608 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31609 | |
| 31610 | cat >>confdefs.h <<_ACEOF |
| 31611 | #define CRAY_STACKSEG_END $ac_func |
| 31612 | _ACEOF |
| 31613 | |
| 31614 | break |
| 31615 | fi |
| 31616 | |
| 31617 | done |
| 31618 | fi |
| 31619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31620 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 31621 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31622 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 31623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31624 | else |
| 31625 | if test "$cross_compiling" = yes; then |
| 31626 | ac_cv_c_stack_direction=0 |
| 31627 | else |
| 31628 | cat >conftest.$ac_ext <<_ACEOF |
| 31629 | /* confdefs.h. */ |
| 31630 | _ACEOF |
| 31631 | cat confdefs.h >>conftest.$ac_ext |
| 31632 | cat >>conftest.$ac_ext <<_ACEOF |
| 31633 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31634 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31635 | int |
| 31636 | find_stack_direction () |
| 31637 | { |
| 31638 | static char *addr = 0; |
| 31639 | auto char dummy; |
| 31640 | if (addr == 0) |
| 31641 | { |
| 31642 | addr = &dummy; |
| 31643 | return find_stack_direction (); |
| 31644 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31645 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31646 | return (&dummy > addr) ? 1 : -1; |
| 31647 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31648 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31649 | int |
| 31650 | main () |
| 31651 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31652 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31653 | } |
| 31654 | _ACEOF |
| 31655 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31656 | if { (ac_try="$ac_link" |
| 31657 | case "(($ac_try" in |
| 31658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31659 | *) ac_try_echo=$ac_try;; |
| 31660 | esac |
| 31661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31662 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31663 | ac_status=$? |
| 31664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31666 | { (case "(($ac_try" in |
| 31667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31668 | *) ac_try_echo=$ac_try;; |
| 31669 | esac |
| 31670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31671 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31672 | ac_status=$? |
| 31673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31674 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31675 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31676 | else |
| 31677 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31678 | echo "$as_me: failed program was:" >&5 |
| 31679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31680 | |
| 31681 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31682 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31683 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31684 | 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] | 31685 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31686 | |
| 31687 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31689 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31690 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31691 | |
| 31692 | cat >>confdefs.h <<_ACEOF |
| 31693 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31694 | _ACEOF |
| 31695 | |
| 31696 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31697 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31698 | |
| 31699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31700 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31701 | 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] | 31702 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31704 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31705 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31706 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31707 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31708 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31709 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31710 | |
| 31711 | cat >conftest.$ac_ext <<_ACEOF |
| 31712 | /* confdefs.h. */ |
| 31713 | _ACEOF |
| 31714 | cat confdefs.h >>conftest.$ac_ext |
| 31715 | cat >>conftest.$ac_ext <<_ACEOF |
| 31716 | /* end confdefs.h. */ |
| 31717 | #include <stdlib.h> |
| 31718 | int |
| 31719 | main () |
| 31720 | { |
| 31721 | srand48(0);lrand48();drand48(); |
| 31722 | ; |
| 31723 | return 0; |
| 31724 | } |
| 31725 | _ACEOF |
| 31726 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31727 | if { (ac_try="$ac_compile" |
| 31728 | case "(($ac_try" in |
| 31729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31730 | *) ac_try_echo=$ac_try;; |
| 31731 | esac |
| 31732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31733 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31734 | ac_status=$? |
| 31735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31736 | rm -f conftest.er1 |
| 31737 | cat conftest.err >&5 |
| 31738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31739 | (exit $ac_status); } && |
| 31740 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31741 | { (case "(($ac_try" in |
| 31742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31743 | *) ac_try_echo=$ac_try;; |
| 31744 | esac |
| 31745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31746 | (eval "$ac_try") 2>&5 |
| 31747 | ac_status=$? |
| 31748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31749 | (exit $ac_status); }; } && |
| 31750 | { ac_try='test -s conftest.$ac_objext' |
| 31751 | { (case "(($ac_try" in |
| 31752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31753 | *) ac_try_echo=$ac_try;; |
| 31754 | esac |
| 31755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31756 | (eval "$ac_try") 2>&5 |
| 31757 | ac_status=$? |
| 31758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31759 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31760 | ac_cv_func_rand48=yes |
| 31761 | else |
| 31762 | echo "$as_me: failed program was:" >&5 |
| 31763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31765 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31767 | |
| 31768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31769 | ac_ext=c |
| 31770 | ac_cpp='$CPP $CPPFLAGS' |
| 31771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31774 | |
| 31775 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31776 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31777 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31778 | |
| 31779 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31780 | |
| 31781 | cat >>confdefs.h <<\_ACEOF |
| 31782 | #define HAVE_RAND48 1 |
| 31783 | _ACEOF |
| 31784 | |
| 31785 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31786 | |
| 31787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31788 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31789 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31790 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31792 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31793 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31794 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31795 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31796 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31797 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31798 | |
| 31799 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31800 | /* confdefs.h. */ |
| 31801 | _ACEOF |
| 31802 | cat confdefs.h >>conftest.$ac_ext |
| 31803 | cat >>conftest.$ac_ext <<_ACEOF |
| 31804 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31805 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31806 | int |
| 31807 | main () |
| 31808 | { |
| 31809 | using namespace Outer::Inner; return i; |
| 31810 | ; |
| 31811 | return 0; |
| 31812 | } |
| 31813 | _ACEOF |
| 31814 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31815 | if { (ac_try="$ac_compile" |
| 31816 | case "(($ac_try" in |
| 31817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31818 | *) ac_try_echo=$ac_try;; |
| 31819 | esac |
| 31820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31821 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31822 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31824 | rm -f conftest.er1 |
| 31825 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31827 | (exit $ac_status); } && |
| 31828 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31829 | { (case "(($ac_try" in |
| 31830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31831 | *) ac_try_echo=$ac_try;; |
| 31832 | esac |
| 31833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31834 | (eval "$ac_try") 2>&5 |
| 31835 | ac_status=$? |
| 31836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31837 | (exit $ac_status); }; } && |
| 31838 | { ac_try='test -s conftest.$ac_objext' |
| 31839 | { (case "(($ac_try" in |
| 31840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31841 | *) ac_try_echo=$ac_try;; |
| 31842 | esac |
| 31843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31844 | (eval "$ac_try") 2>&5 |
| 31845 | ac_status=$? |
| 31846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31847 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31848 | ac_cv_cxx_namespaces=yes |
| 31849 | else |
| 31850 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31853 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31854 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31855 | |
| 31856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31857 | ac_ext=c |
| 31858 | ac_cpp='$CPP $CPPFLAGS' |
| 31859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31862 | |
| 31863 | |
| 31864 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31865 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31866 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31867 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31868 | |
| 31869 | cat >>confdefs.h <<\_ACEOF |
| 31870 | #define HAVE_NAMESPACES |
| 31871 | _ACEOF |
| 31872 | |
| 31873 | fi |
| 31874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31875 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31876 | 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] | 31877 | 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] | 31878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31879 | else |
| 31880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31881 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31882 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31886 | |
| 31887 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31888 | /* confdefs.h. */ |
| 31889 | _ACEOF |
| 31890 | cat confdefs.h >>conftest.$ac_ext |
| 31891 | cat >>conftest.$ac_ext <<_ACEOF |
| 31892 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31893 | #include <ext/hash_map> |
| 31894 | #ifdef HAVE_NAMESPACES |
| 31895 | using namespace std; |
| 31896 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31897 | int |
| 31898 | main () |
| 31899 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31900 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31901 | ; |
| 31902 | return 0; |
| 31903 | } |
| 31904 | _ACEOF |
| 31905 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31906 | if { (ac_try="$ac_compile" |
| 31907 | case "(($ac_try" in |
| 31908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31909 | *) ac_try_echo=$ac_try;; |
| 31910 | esac |
| 31911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31912 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31913 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31915 | rm -f conftest.er1 |
| 31916 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 31918 | (exit $ac_status); } && |
| 31919 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31920 | { (case "(($ac_try" in |
| 31921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31922 | *) ac_try_echo=$ac_try;; |
| 31923 | esac |
| 31924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31925 | (eval "$ac_try") 2>&5 |
| 31926 | ac_status=$? |
| 31927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31928 | (exit $ac_status); }; } && |
| 31929 | { ac_try='test -s conftest.$ac_objext' |
| 31930 | { (case "(($ac_try" in |
| 31931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31932 | *) ac_try_echo=$ac_try;; |
| 31933 | esac |
| 31934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31935 | (eval "$ac_try") 2>&5 |
| 31936 | ac_status=$? |
| 31937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31938 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31939 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31940 | else |
| 31941 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31944 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31945 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31946 | |
| 31947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31948 | ac_ext=c |
| 31949 | ac_cpp='$CPP $CPPFLAGS' |
| 31950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31953 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31955 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31956 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31957 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31958 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31959 | |
| 31960 | cat >>confdefs.h <<\_ACEOF |
| 31961 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31962 | _ACEOF |
| 31963 | |
| 31964 | else |
| 31965 | |
| 31966 | cat >>confdefs.h <<\_ACEOF |
| 31967 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31968 | _ACEOF |
| 31969 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31970 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31972 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31973 | 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] | 31974 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31976 | else |
| 31977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31978 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31979 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31980 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31981 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31982 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31983 | |
| 31984 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31985 | /* confdefs.h. */ |
| 31986 | _ACEOF |
| 31987 | cat confdefs.h >>conftest.$ac_ext |
| 31988 | cat >>conftest.$ac_ext <<_ACEOF |
| 31989 | /* end confdefs.h. */ |
| 31990 | #include <ext/hash_map> |
| 31991 | #ifdef HAVE_NAMESPACES |
| 31992 | using namespace __gnu_cxx; |
| 31993 | #endif |
| 31994 | int |
| 31995 | main () |
| 31996 | { |
| 31997 | hash_map<int,int> t; |
| 31998 | ; |
| 31999 | return 0; |
| 32000 | } |
| 32001 | _ACEOF |
| 32002 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32003 | if { (ac_try="$ac_compile" |
| 32004 | case "(($ac_try" in |
| 32005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32006 | *) ac_try_echo=$ac_try;; |
| 32007 | esac |
| 32008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32009 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32010 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32012 | rm -f conftest.er1 |
| 32013 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32015 | (exit $ac_status); } && |
| 32016 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32017 | { (case "(($ac_try" in |
| 32018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32019 | *) ac_try_echo=$ac_try;; |
| 32020 | esac |
| 32021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32022 | (eval "$ac_try") 2>&5 |
| 32023 | ac_status=$? |
| 32024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32025 | (exit $ac_status); }; } && |
| 32026 | { ac_try='test -s conftest.$ac_objext' |
| 32027 | { (case "(($ac_try" in |
| 32028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32029 | *) ac_try_echo=$ac_try;; |
| 32030 | esac |
| 32031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32032 | (eval "$ac_try") 2>&5 |
| 32033 | ac_status=$? |
| 32034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32035 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32036 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 32037 | else |
| 32038 | echo "$as_me: failed program was:" >&5 |
| 32039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32041 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32042 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32043 | |
| 32044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32045 | ac_ext=c |
| 32046 | ac_cpp='$CPP $CPPFLAGS' |
| 32047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32050 | |
| 32051 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32052 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 32053 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32054 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 32055 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32056 | |
| 32057 | cat >>confdefs.h <<\_ACEOF |
| 32058 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 32059 | _ACEOF |
| 32060 | |
| 32061 | else |
| 32062 | |
| 32063 | cat >>confdefs.h <<\_ACEOF |
| 32064 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 32065 | _ACEOF |
| 32066 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32067 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32068 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32069 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 32070 | 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] | 32071 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 32072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32073 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32075 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32076 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32077 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32078 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32079 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32080 | |
| 32081 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32082 | /* confdefs.h. */ |
| 32083 | _ACEOF |
| 32084 | cat confdefs.h >>conftest.$ac_ext |
| 32085 | cat >>conftest.$ac_ext <<_ACEOF |
| 32086 | /* end confdefs.h. */ |
| 32087 | #include <hash_map> |
| 32088 | int |
| 32089 | main () |
| 32090 | { |
| 32091 | hash_map<int,int> t; |
| 32092 | ; |
| 32093 | return 0; |
| 32094 | } |
| 32095 | _ACEOF |
| 32096 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32097 | if { (ac_try="$ac_compile" |
| 32098 | case "(($ac_try" in |
| 32099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32100 | *) ac_try_echo=$ac_try;; |
| 32101 | esac |
| 32102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32103 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32104 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32106 | rm -f conftest.er1 |
| 32107 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32109 | (exit $ac_status); } && |
| 32110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32111 | { (case "(($ac_try" in |
| 32112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32113 | *) ac_try_echo=$ac_try;; |
| 32114 | esac |
| 32115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32116 | (eval "$ac_try") 2>&5 |
| 32117 | ac_status=$? |
| 32118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32119 | (exit $ac_status); }; } && |
| 32120 | { ac_try='test -s conftest.$ac_objext' |
| 32121 | { (case "(($ac_try" in |
| 32122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32123 | *) ac_try_echo=$ac_try;; |
| 32124 | esac |
| 32125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32126 | (eval "$ac_try") 2>&5 |
| 32127 | ac_status=$? |
| 32128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32129 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32130 | ac_cv_cxx_have_global_hash_map=yes |
| 32131 | else |
| 32132 | echo "$as_me: failed program was:" >&5 |
| 32133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32135 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32137 | |
| 32138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32139 | ac_ext=c |
| 32140 | ac_cpp='$CPP $CPPFLAGS' |
| 32141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32144 | |
| 32145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32146 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 32147 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32148 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 32149 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32150 | |
| 32151 | cat >>confdefs.h <<\_ACEOF |
| 32152 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 32153 | _ACEOF |
| 32154 | |
| 32155 | else |
| 32156 | |
| 32157 | cat >>confdefs.h <<\_ACEOF |
| 32158 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 32159 | _ACEOF |
| 32160 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32161 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32163 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 32164 | 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] | 32165 | 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] | 32166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32167 | else |
| 32168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32169 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32170 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32171 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32172 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32173 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32174 | |
| 32175 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32176 | /* confdefs.h. */ |
| 32177 | _ACEOF |
| 32178 | cat confdefs.h >>conftest.$ac_ext |
| 32179 | cat >>conftest.$ac_ext <<_ACEOF |
| 32180 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32181 | #include <ext/hash_set> |
| 32182 | #ifdef HAVE_NAMESPACES |
| 32183 | using namespace std; |
| 32184 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32185 | int |
| 32186 | main () |
| 32187 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32188 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32189 | ; |
| 32190 | return 0; |
| 32191 | } |
| 32192 | _ACEOF |
| 32193 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32194 | if { (ac_try="$ac_compile" |
| 32195 | case "(($ac_try" in |
| 32196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32197 | *) ac_try_echo=$ac_try;; |
| 32198 | esac |
| 32199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32200 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32201 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32203 | rm -f conftest.er1 |
| 32204 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32206 | (exit $ac_status); } && |
| 32207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32208 | { (case "(($ac_try" in |
| 32209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32210 | *) ac_try_echo=$ac_try;; |
| 32211 | esac |
| 32212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32213 | (eval "$ac_try") 2>&5 |
| 32214 | ac_status=$? |
| 32215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32216 | (exit $ac_status); }; } && |
| 32217 | { ac_try='test -s conftest.$ac_objext' |
| 32218 | { (case "(($ac_try" in |
| 32219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32220 | *) ac_try_echo=$ac_try;; |
| 32221 | esac |
| 32222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32223 | (eval "$ac_try") 2>&5 |
| 32224 | ac_status=$? |
| 32225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32226 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32227 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32228 | else |
| 32229 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32232 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32234 | |
| 32235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32236 | ac_ext=c |
| 32237 | ac_cpp='$CPP $CPPFLAGS' |
| 32238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32241 | |
| 32242 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32243 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 32244 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32245 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 32246 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32247 | |
| 32248 | cat >>confdefs.h <<\_ACEOF |
| 32249 | #define HAVE_STD_EXT_HASH_SET 1 |
| 32250 | _ACEOF |
| 32251 | |
| 32252 | else |
| 32253 | |
| 32254 | cat >>confdefs.h <<\_ACEOF |
| 32255 | #define HAVE_STD_EXT_HASH_SET 0 |
| 32256 | _ACEOF |
| 32257 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32258 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32260 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 32261 | 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] | 32262 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 32263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32264 | else |
| 32265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32266 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32267 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32268 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32269 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32270 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32271 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32272 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32273 | /* confdefs.h. */ |
| 32274 | _ACEOF |
| 32275 | cat confdefs.h >>conftest.$ac_ext |
| 32276 | cat >>conftest.$ac_ext <<_ACEOF |
| 32277 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32278 | #include <ext/hash_set> |
| 32279 | #ifdef HAVE_NAMESPACES |
| 32280 | using namespace __gnu_cxx; |
| 32281 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32282 | int |
| 32283 | main () |
| 32284 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32285 | hash_set<int> t; |
| 32286 | ; |
| 32287 | return 0; |
| 32288 | } |
| 32289 | _ACEOF |
| 32290 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32291 | if { (ac_try="$ac_compile" |
| 32292 | case "(($ac_try" in |
| 32293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32294 | *) ac_try_echo=$ac_try;; |
| 32295 | esac |
| 32296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32297 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32298 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32300 | rm -f conftest.er1 |
| 32301 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32303 | (exit $ac_status); } && |
| 32304 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32305 | { (case "(($ac_try" in |
| 32306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32307 | *) ac_try_echo=$ac_try;; |
| 32308 | esac |
| 32309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32310 | (eval "$ac_try") 2>&5 |
| 32311 | ac_status=$? |
| 32312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32313 | (exit $ac_status); }; } && |
| 32314 | { ac_try='test -s conftest.$ac_objext' |
| 32315 | { (case "(($ac_try" in |
| 32316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32317 | *) ac_try_echo=$ac_try;; |
| 32318 | esac |
| 32319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32320 | (eval "$ac_try") 2>&5 |
| 32321 | ac_status=$? |
| 32322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32323 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32324 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 32325 | else |
| 32326 | echo "$as_me: failed program was:" >&5 |
| 32327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32329 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32331 | |
| 32332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32333 | ac_ext=c |
| 32334 | ac_cpp='$CPP $CPPFLAGS' |
| 32335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32338 | |
| 32339 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32340 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 32341 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32342 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 32343 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32344 | |
| 32345 | cat >>confdefs.h <<\_ACEOF |
| 32346 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 32347 | _ACEOF |
| 32348 | |
| 32349 | else |
| 32350 | |
| 32351 | cat >>confdefs.h <<\_ACEOF |
| 32352 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 32353 | _ACEOF |
| 32354 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32355 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32357 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 32358 | 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] | 32359 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 32360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32361 | else |
| 32362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32363 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32364 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32368 | |
| 32369 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32370 | /* confdefs.h. */ |
| 32371 | _ACEOF |
| 32372 | cat confdefs.h >>conftest.$ac_ext |
| 32373 | cat >>conftest.$ac_ext <<_ACEOF |
| 32374 | /* end confdefs.h. */ |
| 32375 | #include <hash_set> |
| 32376 | int |
| 32377 | main () |
| 32378 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32379 | hash_set<int> t; return 0; |
| 32380 | ; |
| 32381 | return 0; |
| 32382 | } |
| 32383 | _ACEOF |
| 32384 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32385 | if { (ac_try="$ac_compile" |
| 32386 | case "(($ac_try" in |
| 32387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32388 | *) ac_try_echo=$ac_try;; |
| 32389 | esac |
| 32390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32391 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32392 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32394 | rm -f conftest.er1 |
| 32395 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32397 | (exit $ac_status); } && |
| 32398 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32399 | { (case "(($ac_try" in |
| 32400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32401 | *) ac_try_echo=$ac_try;; |
| 32402 | esac |
| 32403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32404 | (eval "$ac_try") 2>&5 |
| 32405 | ac_status=$? |
| 32406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32407 | (exit $ac_status); }; } && |
| 32408 | { ac_try='test -s conftest.$ac_objext' |
| 32409 | { (case "(($ac_try" in |
| 32410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32411 | *) ac_try_echo=$ac_try;; |
| 32412 | esac |
| 32413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32414 | (eval "$ac_try") 2>&5 |
| 32415 | ac_status=$? |
| 32416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32417 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32418 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32419 | else |
| 32420 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32423 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32424 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32425 | |
| 32426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32427 | ac_ext=c |
| 32428 | ac_cpp='$CPP $CPPFLAGS' |
| 32429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32432 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32433 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32434 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 32435 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32436 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 32437 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32438 | |
| 32439 | cat >>confdefs.h <<\_ACEOF |
| 32440 | #define HAVE_GLOBAL_HASH_SET 1 |
| 32441 | _ACEOF |
| 32442 | |
| 32443 | else |
| 32444 | |
| 32445 | cat >>confdefs.h <<\_ACEOF |
| 32446 | #define HAVE_GLOBAL_HASH_SET 0 |
| 32447 | _ACEOF |
| 32448 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32449 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32451 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 32452 | 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] | 32453 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 32454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32455 | else |
| 32456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32457 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32458 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32459 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32460 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32461 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32462 | |
| 32463 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32464 | /* confdefs.h. */ |
| 32465 | _ACEOF |
| 32466 | cat confdefs.h >>conftest.$ac_ext |
| 32467 | cat >>conftest.$ac_ext <<_ACEOF |
| 32468 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32469 | #include <iterator> |
| 32470 | #ifdef HAVE_NAMESPACES |
| 32471 | using namespace std; |
| 32472 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32473 | int |
| 32474 | main () |
| 32475 | { |
| 32476 | iterator<int,int,int> t; return 0; |
| 32477 | ; |
| 32478 | return 0; |
| 32479 | } |
| 32480 | _ACEOF |
| 32481 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32482 | if { (ac_try="$ac_compile" |
| 32483 | case "(($ac_try" in |
| 32484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32485 | *) ac_try_echo=$ac_try;; |
| 32486 | esac |
| 32487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32488 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32489 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32491 | rm -f conftest.er1 |
| 32492 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32494 | (exit $ac_status); } && |
| 32495 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32496 | { (case "(($ac_try" in |
| 32497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32498 | *) ac_try_echo=$ac_try;; |
| 32499 | esac |
| 32500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32501 | (eval "$ac_try") 2>&5 |
| 32502 | ac_status=$? |
| 32503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32504 | (exit $ac_status); }; } && |
| 32505 | { ac_try='test -s conftest.$ac_objext' |
| 32506 | { (case "(($ac_try" in |
| 32507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32508 | *) ac_try_echo=$ac_try;; |
| 32509 | esac |
| 32510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32511 | (eval "$ac_try") 2>&5 |
| 32512 | ac_status=$? |
| 32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32514 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32515 | ac_cv_cxx_have_std_iterator=yes |
| 32516 | else |
| 32517 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32520 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32521 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32522 | |
| 32523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32524 | ac_ext=c |
| 32525 | ac_cpp='$CPP $CPPFLAGS' |
| 32526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32529 | |
| 32530 | |
| 32531 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32532 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 32533 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32534 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 32535 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32536 | |
| 32537 | cat >>confdefs.h <<\_ACEOF |
| 32538 | #define HAVE_STD_ITERATOR 1 |
| 32539 | _ACEOF |
| 32540 | |
| 32541 | else |
| 32542 | |
| 32543 | cat >>confdefs.h <<\_ACEOF |
| 32544 | #define HAVE_STD_ITERATOR 0 |
| 32545 | _ACEOF |
| 32546 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32547 | fi |
| 32548 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32549 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 32550 | 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] | 32551 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 32552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32553 | else |
| 32554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32555 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32556 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32557 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32558 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32559 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32560 | |
| 32561 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32562 | /* confdefs.h. */ |
| 32563 | _ACEOF |
| 32564 | cat confdefs.h >>conftest.$ac_ext |
| 32565 | cat >>conftest.$ac_ext <<_ACEOF |
| 32566 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32567 | #include <iterator> |
| 32568 | #ifdef HAVE_NAMESPACES |
| 32569 | using namespace std; |
| 32570 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32571 | int |
| 32572 | main () |
| 32573 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32574 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32575 | ; |
| 32576 | return 0; |
| 32577 | } |
| 32578 | _ACEOF |
| 32579 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32580 | if { (ac_try="$ac_compile" |
| 32581 | case "(($ac_try" in |
| 32582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32583 | *) ac_try_echo=$ac_try;; |
| 32584 | esac |
| 32585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32586 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32587 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32589 | rm -f conftest.er1 |
| 32590 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32592 | (exit $ac_status); } && |
| 32593 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32594 | { (case "(($ac_try" in |
| 32595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32596 | *) ac_try_echo=$ac_try;; |
| 32597 | esac |
| 32598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32599 | (eval "$ac_try") 2>&5 |
| 32600 | ac_status=$? |
| 32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32602 | (exit $ac_status); }; } && |
| 32603 | { ac_try='test -s conftest.$ac_objext' |
| 32604 | { (case "(($ac_try" in |
| 32605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32606 | *) ac_try_echo=$ac_try;; |
| 32607 | esac |
| 32608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32609 | (eval "$ac_try") 2>&5 |
| 32610 | ac_status=$? |
| 32611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32612 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32613 | ac_cv_cxx_have_bi_iterator=yes |
| 32614 | else |
| 32615 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32618 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32619 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32620 | |
| 32621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32622 | ac_ext=c |
| 32623 | ac_cpp='$CPP $CPPFLAGS' |
| 32624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32627 | |
| 32628 | |
| 32629 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32630 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 32631 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32632 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 32633 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32634 | |
| 32635 | cat >>confdefs.h <<\_ACEOF |
| 32636 | #define HAVE_BI_ITERATOR 1 |
| 32637 | _ACEOF |
| 32638 | |
| 32639 | else |
| 32640 | |
| 32641 | cat >>confdefs.h <<\_ACEOF |
| 32642 | #define HAVE_BI_ITERATOR 0 |
| 32643 | _ACEOF |
| 32644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32645 | fi |
| 32646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32647 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32648 | 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] | 32649 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32651 | else |
| 32652 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32653 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32654 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32655 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32656 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32657 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32658 | |
| 32659 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32660 | /* confdefs.h. */ |
| 32661 | _ACEOF |
| 32662 | cat confdefs.h >>conftest.$ac_ext |
| 32663 | cat >>conftest.$ac_ext <<_ACEOF |
| 32664 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32665 | #include <iterator> |
| 32666 | #ifdef HAVE_NAMESPACES |
| 32667 | using namespace std; |
| 32668 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32669 | int |
| 32670 | main () |
| 32671 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32672 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32673 | ; |
| 32674 | return 0; |
| 32675 | } |
| 32676 | _ACEOF |
| 32677 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32678 | if { (ac_try="$ac_compile" |
| 32679 | case "(($ac_try" in |
| 32680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32681 | *) ac_try_echo=$ac_try;; |
| 32682 | esac |
| 32683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32684 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32685 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32687 | rm -f conftest.er1 |
| 32688 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32690 | (exit $ac_status); } && |
| 32691 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32692 | { (case "(($ac_try" in |
| 32693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32694 | *) ac_try_echo=$ac_try;; |
| 32695 | esac |
| 32696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32697 | (eval "$ac_try") 2>&5 |
| 32698 | ac_status=$? |
| 32699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32700 | (exit $ac_status); }; } && |
| 32701 | { ac_try='test -s conftest.$ac_objext' |
| 32702 | { (case "(($ac_try" in |
| 32703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32704 | *) ac_try_echo=$ac_try;; |
| 32705 | esac |
| 32706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32707 | (eval "$ac_try") 2>&5 |
| 32708 | ac_status=$? |
| 32709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32710 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32711 | ac_cv_cxx_have_fwd_iterator=yes |
| 32712 | else |
| 32713 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32716 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32717 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32718 | |
| 32719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32720 | ac_ext=c |
| 32721 | ac_cpp='$CPP $CPPFLAGS' |
| 32722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32725 | |
| 32726 | |
| 32727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32728 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32729 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32730 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32731 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32732 | |
| 32733 | cat >>confdefs.h <<\_ACEOF |
| 32734 | #define HAVE_FWD_ITERATOR 1 |
| 32735 | _ACEOF |
| 32736 | |
| 32737 | else |
| 32738 | |
| 32739 | cat >>confdefs.h <<\_ACEOF |
| 32740 | #define HAVE_FWD_ITERATOR 0 |
| 32741 | _ACEOF |
| 32742 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32743 | fi |
| 32744 | |
| 32745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32746 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32747 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32748 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32750 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32751 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32752 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32756 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32757 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32758 | /* confdefs.h. */ |
| 32759 | _ACEOF |
| 32760 | cat confdefs.h >>conftest.$ac_ext |
| 32761 | cat >>conftest.$ac_ext <<_ACEOF |
| 32762 | /* end confdefs.h. */ |
| 32763 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32764 | int |
| 32765 | main () |
| 32766 | { |
| 32767 | float f; isnan(f); |
| 32768 | ; |
| 32769 | return 0; |
| 32770 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32771 | _ACEOF |
| 32772 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32773 | if { (ac_try="$ac_compile" |
| 32774 | case "(($ac_try" in |
| 32775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32776 | *) ac_try_echo=$ac_try;; |
| 32777 | esac |
| 32778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32779 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32780 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32782 | rm -f conftest.er1 |
| 32783 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32785 | (exit $ac_status); } && |
| 32786 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32787 | { (case "(($ac_try" in |
| 32788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32789 | *) ac_try_echo=$ac_try;; |
| 32790 | esac |
| 32791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32792 | (eval "$ac_try") 2>&5 |
| 32793 | ac_status=$? |
| 32794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32795 | (exit $ac_status); }; } && |
| 32796 | { ac_try='test -s conftest.$ac_objext' |
| 32797 | { (case "(($ac_try" in |
| 32798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32799 | *) ac_try_echo=$ac_try;; |
| 32800 | esac |
| 32801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32802 | (eval "$ac_try") 2>&5 |
| 32803 | ac_status=$? |
| 32804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32805 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32806 | ac_cv_func_isnan_in_math_h=yes |
| 32807 | else |
| 32808 | echo "$as_me: failed program was:" >&5 |
| 32809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32811 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32813 | |
| 32814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32815 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32816 | ac_cpp='$CPP $CPPFLAGS' |
| 32817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32820 | |
| 32821 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32822 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32823 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32824 | |
| 32825 | |
| 32826 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32827 | |
| 32828 | cat >>confdefs.h <<\_ACEOF |
| 32829 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32830 | _ACEOF |
| 32831 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32832 | fi |
| 32833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32834 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32835 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32836 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32838 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32839 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32840 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32841 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32842 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32843 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32844 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32845 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32846 | /* confdefs.h. */ |
| 32847 | _ACEOF |
| 32848 | cat confdefs.h >>conftest.$ac_ext |
| 32849 | cat >>conftest.$ac_ext <<_ACEOF |
| 32850 | /* end confdefs.h. */ |
| 32851 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32852 | int |
| 32853 | main () |
| 32854 | { |
| 32855 | float f; isnan(f); |
| 32856 | ; |
| 32857 | return 0; |
| 32858 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32859 | _ACEOF |
| 32860 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32861 | if { (ac_try="$ac_compile" |
| 32862 | case "(($ac_try" in |
| 32863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32864 | *) ac_try_echo=$ac_try;; |
| 32865 | esac |
| 32866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32867 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32868 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32870 | rm -f conftest.er1 |
| 32871 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32873 | (exit $ac_status); } && |
| 32874 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32875 | { (case "(($ac_try" in |
| 32876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32877 | *) ac_try_echo=$ac_try;; |
| 32878 | esac |
| 32879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32880 | (eval "$ac_try") 2>&5 |
| 32881 | ac_status=$? |
| 32882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32883 | (exit $ac_status); }; } && |
| 32884 | { ac_try='test -s conftest.$ac_objext' |
| 32885 | { (case "(($ac_try" in |
| 32886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32887 | *) ac_try_echo=$ac_try;; |
| 32888 | esac |
| 32889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32890 | (eval "$ac_try") 2>&5 |
| 32891 | ac_status=$? |
| 32892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32893 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32894 | ac_cv_func_isnan_in_cmath=yes |
| 32895 | else |
| 32896 | echo "$as_me: failed program was:" >&5 |
| 32897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32899 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32900 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32901 | |
| 32902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32903 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32904 | ac_cpp='$CPP $CPPFLAGS' |
| 32905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32908 | |
| 32909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32910 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32911 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32912 | |
| 32913 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32914 | |
| 32915 | cat >>confdefs.h <<\_ACEOF |
| 32916 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32917 | _ACEOF |
| 32918 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32919 | fi |
| 32920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32921 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32922 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32923 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32925 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32926 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32927 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32928 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32929 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32930 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32931 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32932 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32933 | /* confdefs.h. */ |
| 32934 | _ACEOF |
| 32935 | cat confdefs.h >>conftest.$ac_ext |
| 32936 | cat >>conftest.$ac_ext <<_ACEOF |
| 32937 | /* end confdefs.h. */ |
| 32938 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32939 | int |
| 32940 | main () |
| 32941 | { |
| 32942 | float f; std::isnan(f); |
| 32943 | ; |
| 32944 | return 0; |
| 32945 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32946 | _ACEOF |
| 32947 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32948 | if { (ac_try="$ac_compile" |
| 32949 | case "(($ac_try" in |
| 32950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32951 | *) ac_try_echo=$ac_try;; |
| 32952 | esac |
| 32953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32954 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32955 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32957 | rm -f conftest.er1 |
| 32958 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 32960 | (exit $ac_status); } && |
| 32961 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32962 | { (case "(($ac_try" in |
| 32963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32964 | *) ac_try_echo=$ac_try;; |
| 32965 | esac |
| 32966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32967 | (eval "$ac_try") 2>&5 |
| 32968 | ac_status=$? |
| 32969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32970 | (exit $ac_status); }; } && |
| 32971 | { ac_try='test -s conftest.$ac_objext' |
| 32972 | { (case "(($ac_try" in |
| 32973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32974 | *) ac_try_echo=$ac_try;; |
| 32975 | esac |
| 32976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32977 | (eval "$ac_try") 2>&5 |
| 32978 | ac_status=$? |
| 32979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32980 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32981 | ac_cv_func_std_isnan_in_cmath=yes |
| 32982 | else |
| 32983 | echo "$as_me: failed program was:" >&5 |
| 32984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32986 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32988 | |
| 32989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32990 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32991 | ac_cpp='$CPP $CPPFLAGS' |
| 32992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32995 | |
| 32996 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32997 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32998 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32999 | |
| 33000 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33001 | |
| 33002 | cat >>confdefs.h <<\_ACEOF |
| 33003 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33004 | _ACEOF |
| 33005 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33006 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33007 | |
| 33008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33009 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33010 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33011 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33013 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33014 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33015 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33016 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33017 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33018 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33019 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33020 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33021 | /* confdefs.h. */ |
| 33022 | _ACEOF |
| 33023 | cat confdefs.h >>conftest.$ac_ext |
| 33024 | cat >>conftest.$ac_ext <<_ACEOF |
| 33025 | /* end confdefs.h. */ |
| 33026 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33027 | int |
| 33028 | main () |
| 33029 | { |
| 33030 | float f; isinf(f); |
| 33031 | ; |
| 33032 | return 0; |
| 33033 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33034 | _ACEOF |
| 33035 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33036 | if { (ac_try="$ac_compile" |
| 33037 | case "(($ac_try" in |
| 33038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33039 | *) ac_try_echo=$ac_try;; |
| 33040 | esac |
| 33041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33042 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33043 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33045 | rm -f conftest.er1 |
| 33046 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33048 | (exit $ac_status); } && |
| 33049 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33050 | { (case "(($ac_try" in |
| 33051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33052 | *) ac_try_echo=$ac_try;; |
| 33053 | esac |
| 33054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33055 | (eval "$ac_try") 2>&5 |
| 33056 | ac_status=$? |
| 33057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33058 | (exit $ac_status); }; } && |
| 33059 | { ac_try='test -s conftest.$ac_objext' |
| 33060 | { (case "(($ac_try" in |
| 33061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33062 | *) ac_try_echo=$ac_try;; |
| 33063 | esac |
| 33064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33065 | (eval "$ac_try") 2>&5 |
| 33066 | ac_status=$? |
| 33067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33068 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33069 | ac_cv_func_isinf_in_math_h=yes |
| 33070 | else |
| 33071 | echo "$as_me: failed program was:" >&5 |
| 33072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33074 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33075 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33076 | |
| 33077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33078 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33079 | ac_cpp='$CPP $CPPFLAGS' |
| 33080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33083 | |
| 33084 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33085 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33086 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33087 | |
| 33088 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33089 | |
| 33090 | cat >>confdefs.h <<\_ACEOF |
| 33091 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33092 | _ACEOF |
| 33093 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33094 | fi |
| 33095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33096 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33097 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33098 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33100 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33101 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33102 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33106 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33107 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33108 | /* confdefs.h. */ |
| 33109 | _ACEOF |
| 33110 | cat confdefs.h >>conftest.$ac_ext |
| 33111 | cat >>conftest.$ac_ext <<_ACEOF |
| 33112 | /* end confdefs.h. */ |
| 33113 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33114 | int |
| 33115 | main () |
| 33116 | { |
| 33117 | float f; isinf(f); |
| 33118 | ; |
| 33119 | return 0; |
| 33120 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33121 | _ACEOF |
| 33122 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33123 | if { (ac_try="$ac_compile" |
| 33124 | case "(($ac_try" in |
| 33125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33126 | *) ac_try_echo=$ac_try;; |
| 33127 | esac |
| 33128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33129 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33130 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33132 | rm -f conftest.er1 |
| 33133 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33135 | (exit $ac_status); } && |
| 33136 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33137 | { (case "(($ac_try" in |
| 33138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33139 | *) ac_try_echo=$ac_try;; |
| 33140 | esac |
| 33141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33142 | (eval "$ac_try") 2>&5 |
| 33143 | ac_status=$? |
| 33144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33145 | (exit $ac_status); }; } && |
| 33146 | { ac_try='test -s conftest.$ac_objext' |
| 33147 | { (case "(($ac_try" in |
| 33148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33149 | *) ac_try_echo=$ac_try;; |
| 33150 | esac |
| 33151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33152 | (eval "$ac_try") 2>&5 |
| 33153 | ac_status=$? |
| 33154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33155 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33156 | ac_cv_func_isinf_in_cmath=yes |
| 33157 | else |
| 33158 | echo "$as_me: failed program was:" >&5 |
| 33159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33161 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33163 | |
| 33164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33165 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33166 | ac_cpp='$CPP $CPPFLAGS' |
| 33167 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33168 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33169 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33170 | |
| 33171 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33172 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 33173 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33174 | |
| 33175 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33176 | |
| 33177 | cat >>confdefs.h <<\_ACEOF |
| 33178 | #define HAVE_ISINF_IN_CMATH 1 |
| 33179 | _ACEOF |
| 33180 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33181 | fi |
| 33182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33183 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 33184 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33185 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 33186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33187 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33188 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33189 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33193 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33194 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33195 | /* confdefs.h. */ |
| 33196 | _ACEOF |
| 33197 | cat confdefs.h >>conftest.$ac_ext |
| 33198 | cat >>conftest.$ac_ext <<_ACEOF |
| 33199 | /* end confdefs.h. */ |
| 33200 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33201 | int |
| 33202 | main () |
| 33203 | { |
| 33204 | float f; std::isinf(f)} |
| 33205 | ; |
| 33206 | return 0; |
| 33207 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33208 | _ACEOF |
| 33209 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33210 | if { (ac_try="$ac_compile" |
| 33211 | case "(($ac_try" in |
| 33212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33213 | *) ac_try_echo=$ac_try;; |
| 33214 | esac |
| 33215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33216 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33217 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33219 | rm -f conftest.er1 |
| 33220 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33222 | (exit $ac_status); } && |
| 33223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33224 | { (case "(($ac_try" in |
| 33225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33226 | *) ac_try_echo=$ac_try;; |
| 33227 | esac |
| 33228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33229 | (eval "$ac_try") 2>&5 |
| 33230 | ac_status=$? |
| 33231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33232 | (exit $ac_status); }; } && |
| 33233 | { ac_try='test -s conftest.$ac_objext' |
| 33234 | { (case "(($ac_try" in |
| 33235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33236 | *) ac_try_echo=$ac_try;; |
| 33237 | esac |
| 33238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33239 | (eval "$ac_try") 2>&5 |
| 33240 | ac_status=$? |
| 33241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33242 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33243 | ac_cv_func_std_isinf_in_cmath=yes |
| 33244 | else |
| 33245 | echo "$as_me: failed program was:" >&5 |
| 33246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33248 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33249 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33250 | |
| 33251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33252 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33253 | ac_cpp='$CPP $CPPFLAGS' |
| 33254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33257 | |
| 33258 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33259 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 33260 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33261 | |
| 33262 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33263 | |
| 33264 | cat >>confdefs.h <<\_ACEOF |
| 33265 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 33266 | _ACEOF |
| 33267 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33268 | fi |
| 33269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33270 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 33271 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33272 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 33273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33274 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33275 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33276 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33280 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33281 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33282 | /* confdefs.h. */ |
| 33283 | _ACEOF |
| 33284 | cat confdefs.h >>conftest.$ac_ext |
| 33285 | cat >>conftest.$ac_ext <<_ACEOF |
| 33286 | /* end confdefs.h. */ |
| 33287 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33288 | int |
| 33289 | main () |
| 33290 | { |
| 33291 | float f; finite(f); |
| 33292 | ; |
| 33293 | return 0; |
| 33294 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33295 | _ACEOF |
| 33296 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33297 | if { (ac_try="$ac_compile" |
| 33298 | case "(($ac_try" in |
| 33299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33300 | *) ac_try_echo=$ac_try;; |
| 33301 | esac |
| 33302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33303 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33304 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33306 | rm -f conftest.er1 |
| 33307 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33309 | (exit $ac_status); } && |
| 33310 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33311 | { (case "(($ac_try" in |
| 33312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33313 | *) ac_try_echo=$ac_try;; |
| 33314 | esac |
| 33315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33316 | (eval "$ac_try") 2>&5 |
| 33317 | ac_status=$? |
| 33318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33319 | (exit $ac_status); }; } && |
| 33320 | { ac_try='test -s conftest.$ac_objext' |
| 33321 | { (case "(($ac_try" in |
| 33322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33323 | *) ac_try_echo=$ac_try;; |
| 33324 | esac |
| 33325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33326 | (eval "$ac_try") 2>&5 |
| 33327 | ac_status=$? |
| 33328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33329 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33330 | ac_cv_func_finite_in_ieeefp_h=yes |
| 33331 | else |
| 33332 | echo "$as_me: failed program was:" >&5 |
| 33333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33335 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33336 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33337 | |
| 33338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33339 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33340 | ac_cpp='$CPP $CPPFLAGS' |
| 33341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33344 | |
| 33345 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33346 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 33347 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33348 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33349 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33350 | |
| 33351 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33352 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33353 | _ACEOF |
| 33354 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33355 | fi |
| 33356 | |
| 33357 | |
| 33358 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33359 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33360 | |
| 33361 | |
| 33362 | for ac_header in stdlib.h unistd.h |
| 33363 | do |
| 33364 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33365 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33366 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33368 | 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] | 33369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33371 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33372 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33373 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33374 | else |
| 33375 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33376 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 33377 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33378 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33379 | /* confdefs.h. */ |
| 33380 | _ACEOF |
| 33381 | cat confdefs.h >>conftest.$ac_ext |
| 33382 | cat >>conftest.$ac_ext <<_ACEOF |
| 33383 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33384 | $ac_includes_default |
| 33385 | #include <$ac_header> |
| 33386 | _ACEOF |
| 33387 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33388 | if { (ac_try="$ac_compile" |
| 33389 | case "(($ac_try" in |
| 33390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33391 | *) ac_try_echo=$ac_try;; |
| 33392 | esac |
| 33393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33394 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33395 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33397 | rm -f conftest.er1 |
| 33398 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33400 | (exit $ac_status); } && |
| 33401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33402 | { (case "(($ac_try" in |
| 33403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33404 | *) ac_try_echo=$ac_try;; |
| 33405 | esac |
| 33406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33407 | (eval "$ac_try") 2>&5 |
| 33408 | ac_status=$? |
| 33409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33410 | (exit $ac_status); }; } && |
| 33411 | { ac_try='test -s conftest.$ac_objext' |
| 33412 | { (case "(($ac_try" in |
| 33413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33414 | *) ac_try_echo=$ac_try;; |
| 33415 | esac |
| 33416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33417 | (eval "$ac_try") 2>&5 |
| 33418 | ac_status=$? |
| 33419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33420 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33421 | ac_header_compiler=yes |
| 33422 | else |
| 33423 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33426 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33427 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33428 | |
| 33429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33430 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 33431 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33432 | |
| 33433 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33434 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 33435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33436 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33437 | /* confdefs.h. */ |
| 33438 | _ACEOF |
| 33439 | cat confdefs.h >>conftest.$ac_ext |
| 33440 | cat >>conftest.$ac_ext <<_ACEOF |
| 33441 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33442 | #include <$ac_header> |
| 33443 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33444 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33445 | case "(($ac_try" in |
| 33446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33447 | *) ac_try_echo=$ac_try;; |
| 33448 | esac |
| 33449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33450 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33451 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33452 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33453 | rm -f conftest.er1 |
| 33454 | cat conftest.err >&5 |
| 33455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33456 | (exit $ac_status); } >/dev/null; then |
| 33457 | if test -s conftest.err; then |
| 33458 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 33459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 33460 | else |
| 33461 | ac_cpp_err= |
| 33462 | fi |
| 33463 | else |
| 33464 | ac_cpp_err=yes |
| 33465 | fi |
| 33466 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33467 | ac_header_preproc=yes |
| 33468 | else |
| 33469 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33471 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33472 | ac_header_preproc=no |
| 33473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33474 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33475 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33476 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 33477 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33478 | |
| 33479 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 33481 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 33483 | 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] | 33484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 33485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 33486 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33487 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33488 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 33490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 33492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 33493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 33494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 33495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 33496 | 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] | 33497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 33498 | 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] | 33499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 33500 | 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] | 33501 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33502 | ## ----------------------------------- ## |
| 33503 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 33504 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33505 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33506 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33507 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33508 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33509 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33511 | 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] | 33512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33513 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33514 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33515 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33516 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33518 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33519 | |
| 33520 | fi |
| 33521 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 33522 | cat >>confdefs.h <<_ACEOF |
| 33523 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 33524 | _ACEOF |
| 33525 | |
| 33526 | fi |
| 33527 | |
| 33528 | done |
| 33529 | |
| 33530 | |
| 33531 | for ac_func in getpagesize |
| 33532 | do |
| 33533 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33534 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33535 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33536 | 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] | 33537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33538 | else |
| 33539 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33540 | /* confdefs.h. */ |
| 33541 | _ACEOF |
| 33542 | cat confdefs.h >>conftest.$ac_ext |
| 33543 | cat >>conftest.$ac_ext <<_ACEOF |
| 33544 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33545 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33546 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33547 | #define $ac_func innocuous_$ac_func |
| 33548 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33549 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33550 | which can conflict with char $ac_func (); below. |
| 33551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33552 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33553 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33554 | #ifdef __STDC__ |
| 33555 | # include <limits.h> |
| 33556 | #else |
| 33557 | # include <assert.h> |
| 33558 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33559 | |
| 33560 | #undef $ac_func |
| 33561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33562 | /* Override any GCC internal prototype to avoid an error. |
| 33563 | Use char because int might match the return type of a GCC |
| 33564 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33565 | #ifdef __cplusplus |
| 33566 | extern "C" |
| 33567 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33568 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33569 | /* The GNU C library defines this for functions which it implements |
| 33570 | to always fail with ENOSYS. Some functions are actually named |
| 33571 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33572 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33573 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33574 | #endif |
| 33575 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33576 | int |
| 33577 | main () |
| 33578 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33579 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33580 | ; |
| 33581 | return 0; |
| 33582 | } |
| 33583 | _ACEOF |
| 33584 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33585 | if { (ac_try="$ac_link" |
| 33586 | case "(($ac_try" in |
| 33587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33588 | *) ac_try_echo=$ac_try;; |
| 33589 | esac |
| 33590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33591 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33592 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33594 | rm -f conftest.er1 |
| 33595 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33597 | (exit $ac_status); } && |
| 33598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33599 | { (case "(($ac_try" in |
| 33600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33601 | *) ac_try_echo=$ac_try;; |
| 33602 | esac |
| 33603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33604 | (eval "$ac_try") 2>&5 |
| 33605 | ac_status=$? |
| 33606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33607 | (exit $ac_status); }; } && |
| 33608 | { ac_try='test -s conftest$ac_exeext' |
| 33609 | { (case "(($ac_try" in |
| 33610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33611 | *) ac_try_echo=$ac_try;; |
| 33612 | esac |
| 33613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33614 | (eval "$ac_try") 2>&5 |
| 33615 | ac_status=$? |
| 33616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33617 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33618 | eval "$as_ac_var=yes" |
| 33619 | else |
| 33620 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33623 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33624 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33625 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33626 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33627 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33628 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33629 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33630 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33631 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33632 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33633 | cat >>confdefs.h <<_ACEOF |
| 33634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33635 | _ACEOF |
| 33636 | |
| 33637 | fi |
| 33638 | done |
| 33639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33640 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33641 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33642 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33644 | else |
| 33645 | if test "$cross_compiling" = yes; then |
| 33646 | ac_cv_func_mmap_fixed_mapped=no |
| 33647 | else |
| 33648 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33649 | /* confdefs.h. */ |
| 33650 | _ACEOF |
| 33651 | cat confdefs.h >>conftest.$ac_ext |
| 33652 | cat >>conftest.$ac_ext <<_ACEOF |
| 33653 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33654 | $ac_includes_default |
| 33655 | /* malloc might have been renamed as rpl_malloc. */ |
| 33656 | #undef malloc |
| 33657 | |
| 33658 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33659 | Here is a matrix of mmap possibilities: |
| 33660 | mmap private not fixed |
| 33661 | mmap private fixed at somewhere currently unmapped |
| 33662 | mmap private fixed at somewhere already mapped |
| 33663 | mmap shared not fixed |
| 33664 | mmap shared fixed at somewhere currently unmapped |
| 33665 | mmap shared fixed at somewhere already mapped |
| 33666 | For private mappings, we should verify that changes cannot be read() |
| 33667 | back from the file, nor mmap's back from the file at a different |
| 33668 | address. (There have been systems where private was not correctly |
| 33669 | implemented like the infamous i386 svr4.0, and systems where the |
| 33670 | VM page cache was not coherent with the file system buffer cache |
| 33671 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33672 | For shared mappings, we should conversely verify that changes get |
| 33673 | propagated back to all the places they're supposed to be. |
| 33674 | |
| 33675 | Grep wants private fixed already mapped. |
| 33676 | The main things grep needs to know about mmap are: |
| 33677 | * does it exist and is it safe to write into the mmap'd area |
| 33678 | * how to use it (BSD variants) */ |
| 33679 | |
| 33680 | #include <fcntl.h> |
| 33681 | #include <sys/mman.h> |
| 33682 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33683 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33684 | char *malloc (); |
| 33685 | #endif |
| 33686 | |
| 33687 | /* This mess was copied from the GNU getpagesize.h. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33688 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33689 | /* Assume that all systems that can run configure have sys/param.h. */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33690 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33691 | # define HAVE_SYS_PARAM_H 1 |
| 33692 | # endif |
| 33693 | |
| 33694 | # ifdef _SC_PAGESIZE |
| 33695 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33696 | # else /* no _SC_PAGESIZE */ |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 33697 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33698 | # include <sys/param.h> |
| 33699 | # ifdef EXEC_PAGESIZE |
| 33700 | # define getpagesize() EXEC_PAGESIZE |
| 33701 | # else /* no EXEC_PAGESIZE */ |
| 33702 | # ifdef NBPG |
| 33703 | # define getpagesize() NBPG * CLSIZE |
| 33704 | # ifndef CLSIZE |
| 33705 | # define CLSIZE 1 |
| 33706 | # endif /* no CLSIZE */ |
| 33707 | # else /* no NBPG */ |
| 33708 | # ifdef NBPC |
| 33709 | # define getpagesize() NBPC |
| 33710 | # else /* no NBPC */ |
| 33711 | # ifdef PAGESIZE |
| 33712 | # define getpagesize() PAGESIZE |
| 33713 | # endif /* PAGESIZE */ |
| 33714 | # endif /* no NBPC */ |
| 33715 | # endif /* no NBPG */ |
| 33716 | # endif /* no EXEC_PAGESIZE */ |
| 33717 | # else /* no HAVE_SYS_PARAM_H */ |
| 33718 | # define getpagesize() 8192 /* punt totally */ |
| 33719 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33720 | # endif /* no _SC_PAGESIZE */ |
| 33721 | |
| 33722 | #endif /* no HAVE_GETPAGESIZE */ |
| 33723 | |
| 33724 | int |
| 33725 | main () |
| 33726 | { |
| 33727 | char *data, *data2, *data3; |
| 33728 | int i, pagesize; |
| 33729 | int fd; |
| 33730 | |
| 33731 | pagesize = getpagesize (); |
| 33732 | |
| 33733 | /* First, make a file with some known garbage in it. */ |
| 33734 | data = (char *) malloc (pagesize); |
| 33735 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33736 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33737 | for (i = 0; i < pagesize; ++i) |
| 33738 | *(data + i) = rand (); |
| 33739 | umask (0); |
| 33740 | fd = creat ("conftest.mmap", 0600); |
| 33741 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33742 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33743 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33744 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33745 | close (fd); |
| 33746 | |
| 33747 | /* Next, try to mmap the file at a fixed address which already has |
| 33748 | something else allocated at it. If we can, also make sure that |
| 33749 | we see the same garbage. */ |
| 33750 | fd = open ("conftest.mmap", O_RDWR); |
| 33751 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33752 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33753 | data2 = (char *) malloc (2 * pagesize); |
| 33754 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33755 | return 1; |
| 33756 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33757 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33758 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33759 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33760 | for (i = 0; i < pagesize; ++i) |
| 33761 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33762 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33763 | |
| 33764 | /* Finally, make sure that changes to the mapped area do not |
| 33765 | percolate back to the file as seen by read(). (This is a bug on |
| 33766 | some variants of i386 svr4.0.) */ |
| 33767 | for (i = 0; i < pagesize; ++i) |
| 33768 | *(data2 + i) = *(data2 + i) + 1; |
| 33769 | data3 = (char *) malloc (pagesize); |
| 33770 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33771 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33772 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33773 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33774 | for (i = 0; i < pagesize; ++i) |
| 33775 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33776 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33777 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33778 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33779 | } |
| 33780 | _ACEOF |
| 33781 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33782 | if { (ac_try="$ac_link" |
| 33783 | case "(($ac_try" in |
| 33784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33785 | *) ac_try_echo=$ac_try;; |
| 33786 | esac |
| 33787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33788 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33789 | ac_status=$? |
| 33790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33792 | { (case "(($ac_try" in |
| 33793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33794 | *) ac_try_echo=$ac_try;; |
| 33795 | esac |
| 33796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33797 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33798 | ac_status=$? |
| 33799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33800 | (exit $ac_status); }; }; then |
| 33801 | ac_cv_func_mmap_fixed_mapped=yes |
| 33802 | else |
| 33803 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33804 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33806 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33807 | ( exit $ac_status ) |
| 33808 | ac_cv_func_mmap_fixed_mapped=no |
| 33809 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33810 | 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] | 33811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33812 | |
| 33813 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33814 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33815 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33816 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33817 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33818 | |
| 33819 | cat >>confdefs.h <<\_ACEOF |
| 33820 | #define HAVE_MMAP 1 |
| 33821 | _ACEOF |
| 33822 | |
| 33823 | fi |
| 33824 | rm -f conftest.mmap |
| 33825 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33826 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33827 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33828 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33830 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33831 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33832 | ac_cpp='$CPP $CPPFLAGS' |
| 33833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33836 | |
| 33837 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33838 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33839 | else |
| 33840 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33841 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33842 | /* confdefs.h. */ |
| 33843 | _ACEOF |
| 33844 | cat confdefs.h >>conftest.$ac_ext |
| 33845 | cat >>conftest.$ac_ext <<_ACEOF |
| 33846 | /* end confdefs.h. */ |
| 33847 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33848 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33849 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33850 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33851 | |
| 33852 | int |
| 33853 | main () |
| 33854 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33855 | |
| 33856 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33857 | fd = creat ("foo",0777); |
| 33858 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33859 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33860 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33861 | ; |
| 33862 | return 0; |
| 33863 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33864 | _ACEOF |
| 33865 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33866 | if { (ac_try="$ac_link" |
| 33867 | case "(($ac_try" in |
| 33868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33869 | *) ac_try_echo=$ac_try;; |
| 33870 | esac |
| 33871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33872 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33873 | ac_status=$? |
| 33874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33876 | { (case "(($ac_try" in |
| 33877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33878 | *) ac_try_echo=$ac_try;; |
| 33879 | esac |
| 33880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33881 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33882 | ac_status=$? |
| 33883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33884 | (exit $ac_status); }; }; then |
| 33885 | ac_cv_func_mmap_file=yes |
| 33886 | else |
| 33887 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33888 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33890 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33891 | ( exit $ac_status ) |
| 33892 | ac_cv_func_mmap_file=no |
| 33893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33894 | 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] | 33895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33896 | |
| 33897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33898 | ac_ext=c |
| 33899 | ac_cpp='$CPP $CPPFLAGS' |
| 33900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33903 | |
| 33904 | |
| 33905 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33906 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33907 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33908 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33909 | |
| 33910 | cat >>confdefs.h <<\_ACEOF |
| 33911 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33912 | _ACEOF |
| 33913 | |
| 33914 | MMAP_FILE=yes |
| 33915 | |
| 33916 | fi |
| 33917 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33918 | { 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] | 33919 | 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] | 33920 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33922 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33923 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33924 | ac_cv_need_dev_zero_for_mmap=yes |
| 33925 | else |
| 33926 | ac_cv_need_dev_zero_for_mmap=no |
| 33927 | fi |
| 33928 | |
| 33929 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33930 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33931 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33932 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33933 | |
| 33934 | cat >>confdefs.h <<\_ACEOF |
| 33935 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33936 | _ACEOF |
| 33937 | |
| 33938 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33939 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33940 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 33941 | then |
| 33942 | { 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] | 33943 | 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] | 33944 | fi |
| 33945 | if test "$ac_cv_func_mmap_file" = "no" |
| 33946 | then |
| 33947 | { 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] | 33948 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33949 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33950 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33951 | |
| 33952 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 33953 | |
| 33954 | for ac_func in __dso_handle |
| 33955 | do |
| 33956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 33957 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33959 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33961 | else |
| 33962 | cat >conftest.$ac_ext <<_ACEOF |
| 33963 | /* confdefs.h. */ |
| 33964 | _ACEOF |
| 33965 | cat confdefs.h >>conftest.$ac_ext |
| 33966 | cat >>conftest.$ac_ext <<_ACEOF |
| 33967 | /* end confdefs.h. */ |
| 33968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33970 | #define $ac_func innocuous_$ac_func |
| 33971 | |
| 33972 | /* System header to define __stub macros and hopefully few prototypes, |
| 33973 | which can conflict with char $ac_func (); below. |
| 33974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33975 | <limits.h> exists even on freestanding compilers. */ |
| 33976 | |
| 33977 | #ifdef __STDC__ |
| 33978 | # include <limits.h> |
| 33979 | #else |
| 33980 | # include <assert.h> |
| 33981 | #endif |
| 33982 | |
| 33983 | #undef $ac_func |
| 33984 | |
| 33985 | /* Override any GCC internal prototype to avoid an error. |
| 33986 | Use char because int might match the return type of a GCC |
| 33987 | builtin and then its argument prototype would still apply. */ |
| 33988 | #ifdef __cplusplus |
| 33989 | extern "C" |
| 33990 | #endif |
| 33991 | char $ac_func (); |
| 33992 | /* The GNU C library defines this for functions which it implements |
| 33993 | to always fail with ENOSYS. Some functions are actually named |
| 33994 | something starting with __ and the normal name is an alias. */ |
| 33995 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 33996 | choke me |
| 33997 | #endif |
| 33998 | |
| 33999 | int |
| 34000 | main () |
| 34001 | { |
| 34002 | return $ac_func (); |
| 34003 | ; |
| 34004 | return 0; |
| 34005 | } |
| 34006 | _ACEOF |
| 34007 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34008 | if { (ac_try="$ac_link" |
| 34009 | case "(($ac_try" in |
| 34010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34011 | *) ac_try_echo=$ac_try;; |
| 34012 | esac |
| 34013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34014 | (eval "$ac_link") 2>conftest.er1 |
| 34015 | ac_status=$? |
| 34016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34017 | rm -f conftest.er1 |
| 34018 | cat conftest.err >&5 |
| 34019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34020 | (exit $ac_status); } && |
| 34021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34022 | { (case "(($ac_try" in |
| 34023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34024 | *) ac_try_echo=$ac_try;; |
| 34025 | esac |
| 34026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34027 | (eval "$ac_try") 2>&5 |
| 34028 | ac_status=$? |
| 34029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34030 | (exit $ac_status); }; } && |
| 34031 | { ac_try='test -s conftest$ac_exeext' |
| 34032 | { (case "(($ac_try" in |
| 34033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34034 | *) ac_try_echo=$ac_try;; |
| 34035 | esac |
| 34036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34037 | (eval "$ac_try") 2>&5 |
| 34038 | ac_status=$? |
| 34039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34040 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34041 | eval "$as_ac_var=yes" |
| 34042 | else |
| 34043 | echo "$as_me: failed program was:" >&5 |
| 34044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34045 | |
| 34046 | eval "$as_ac_var=no" |
| 34047 | fi |
| 34048 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34049 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34050 | conftest$ac_exeext conftest.$ac_ext |
| 34051 | fi |
| 34052 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34054 | echo "${ECHO_T}$ac_res" >&6; } |
| 34055 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34056 | cat >>confdefs.h <<_ACEOF |
| 34057 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34058 | _ACEOF |
| 34059 | |
| 34060 | fi |
| 34061 | done |
| 34062 | |
| 34063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34064 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34065 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34066 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34068 | else |
| 34069 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34070 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34071 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 34072 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 34073 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34074 | if test $? -eq 0 ; then |
| 34075 | llvm_cv_llvmgcc_sanity="yes" |
| 34076 | fi |
| 34077 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34078 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34080 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 34081 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34082 | |
| 34083 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34084 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 34085 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34086 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34087 | LLVMCC1=$llvmcc1path |
| 34088 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34089 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34090 | LLVMCC1PLUS=$llvmcc1pluspath |
| 34091 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34092 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 34093 | LLVMGCCDIR=$llvmgccdir |
| 34094 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34095 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 34096 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 34097 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 34098 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 34099 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 34100 | LLVMGCC_VERSION=$llvmgccversion |
| 34101 | |
| 34102 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 34103 | |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34104 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'` |
| 34105 | LLVMGCC_LANGS=$llvmgcclangs |
| 34106 | |
| 34107 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 34108 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34109 | fi |
| 34110 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34111 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 34112 | |
| 34113 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34114 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34115 | # information into substitutions that will end up in Makefile.config.in |
| 34116 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 34117 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 34118 | prefix="/usr/local" |
| 34119 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34120 | eval LLVM_PREFIX="${prefix}"; |
| 34121 | eval LLVM_BINDIR="${prefix}/bin"; |
| 34122 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34123 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 34124 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 34125 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34126 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 34127 | eval LLVM_INFODIR="${prefix}/info"; |
| 34128 | eval LLVM_MANDIR="${prefix}/man"; |
| 34129 | LLVM_CONFIGTIME=`date` |
| 34130 | |
| 34131 | |
| 34132 | |
| 34133 | |
| 34134 | |
| 34135 | |
| 34136 | |
| 34137 | |
| 34138 | |
| 34139 | |
| 34140 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34141 | # Place the various directores into the config.h file as #defines so that we |
| 34142 | # can know about the installation paths within LLVM. |
| 34143 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34144 | cat >>confdefs.h <<_ACEOF |
| 34145 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 34146 | _ACEOF |
| 34147 | |
| 34148 | |
| 34149 | cat >>confdefs.h <<_ACEOF |
| 34150 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 34151 | _ACEOF |
| 34152 | |
| 34153 | |
| 34154 | cat >>confdefs.h <<_ACEOF |
| 34155 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 34156 | _ACEOF |
| 34157 | |
| 34158 | |
| 34159 | cat >>confdefs.h <<_ACEOF |
| 34160 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 34161 | _ACEOF |
| 34162 | |
| 34163 | |
| 34164 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 34165 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34166 | _ACEOF |
| 34167 | |
| 34168 | |
| 34169 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 34170 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34171 | _ACEOF |
| 34172 | |
| 34173 | |
| 34174 | cat >>confdefs.h <<_ACEOF |
| 34175 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 34176 | _ACEOF |
| 34177 | |
| 34178 | |
| 34179 | cat >>confdefs.h <<_ACEOF |
| 34180 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 34181 | _ACEOF |
| 34182 | |
| 34183 | |
| 34184 | cat >>confdefs.h <<_ACEOF |
| 34185 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 34186 | _ACEOF |
| 34187 | |
| 34188 | |
| 34189 | cat >>confdefs.h <<_ACEOF |
| 34190 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 34191 | _ACEOF |
| 34192 | |
| 34193 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 34194 | cat >>confdefs.h <<_ACEOF |
| 34195 | #define LLVM_HOSTTRIPLE "$host" |
| 34196 | _ACEOF |
| 34197 | |
| 34198 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 34199 | # Determine which bindings to build. |
| 34200 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 34201 | BINDINGS_TO_BUILD="" |
| 34202 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 34203 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 34204 | fi |
| 34205 | fi |
| 34206 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 34207 | |
| 34208 | |
| 34209 | # This isn't really configurey, but it avoids having to repeat the list in |
| 34210 | # other files. |
| 34211 | ALL_BINDINGS=ocaml |
| 34212 | |
| 34213 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 34214 | # Do any work necessary to ensure that bindings have what they need. |
| 34215 | binding_prereqs_failed=0 |
| 34216 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 34217 | case "$a_binding" in |
| 34218 | ocaml) |
| 34219 | if test "x$OCAMLC" = x ; then |
| 34220 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 34221 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 34222 | binding_prereqs_failed=1 |
| 34223 | fi |
| 34224 | if test "x$OCAMLDEP" = x ; then |
| 34225 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 34226 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 34227 | binding_prereqs_failed=1 |
| 34228 | fi |
| 34229 | if test "x$OCAMLOPT" = x ; then |
| 34230 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 34231 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 34232 | fi |
| 34233 | if test "x$with_ocaml_libdir" != xauto ; then |
| 34234 | OCAML_LIBDIR=$with_ocaml_libdir |
| 34235 | |
| 34236 | else |
| 34237 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 34238 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 34239 | then |
| 34240 | # ocaml stdlib is beneath our prefix; use stdlib |
| 34241 | OCAML_LIBDIR=$ocaml_stdlib |
| 34242 | |
| 34243 | else |
| 34244 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 34245 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 34246 | |
| 34247 | fi |
| 34248 | fi |
| 34249 | ;; |
| 34250 | esac |
| 34251 | done |
| 34252 | if test "$binding_prereqs_failed" = 1 ; then |
| 34253 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 34254 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 34255 | { (exit 1); exit 1; }; } |
| 34256 | fi |
| 34257 | |
| 34258 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34260 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34262 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34264 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34266 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34268 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34269 | |
| 34270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34271 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34272 | |
| 34273 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34274 | ac_config_files="$ac_config_files llvm.spec" |
| 34275 | |
| 34276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34277 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34278 | |
| 34279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34280 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 34281 | |
| 34282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34283 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34285 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34286 | |
| 34287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34288 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34289 | |
| 34290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34291 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34292 | |
| 34293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34294 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34295 | |
| 34296 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34297 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 34298 | |
| 34299 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34300 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34301 | |
| 34302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34303 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34304 | |
| 34305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34306 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34307 | |
| 34308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34309 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34310 | |
| 34311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34312 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34313 | |
| 34314 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34315 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 34316 | |
| 34317 | |
| 34318 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 34319 | |
| 34320 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34321 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34322 | cat >confcache <<\_ACEOF |
| 34323 | # This file is a shell script that caches the results of configure |
| 34324 | # tests run on this system so they can be shared between configure |
| 34325 | # scripts and configure runs, see configure's option --config-cache. |
| 34326 | # It is not useful on other systems. If it contains results you don't |
| 34327 | # want to keep, you may remove or edit it. |
| 34328 | # |
| 34329 | # config.status only pays attention to the cache file if you give it |
| 34330 | # the --recheck option to rerun configure. |
| 34331 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34332 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34333 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34334 | # following values. |
| 34335 | |
| 34336 | _ACEOF |
| 34337 | |
| 34338 | # The following way of writing the cache mishandles newlines in values, |
| 34339 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34340 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34341 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 34342 | # 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] | 34343 | ( |
| 34344 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34345 | eval ac_val=\$$ac_var |
| 34346 | case $ac_val in #( |
| 34347 | *${as_nl}*) |
| 34348 | case $ac_var in #( |
| 34349 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 34350 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 34351 | esac |
| 34352 | case $ac_var in #( |
| 34353 | _ | IFS | as_nl) ;; #( |
| 34354 | *) $as_unset $ac_var ;; |
| 34355 | esac ;; |
| 34356 | esac |
| 34357 | done |
| 34358 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34359 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34360 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34361 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34362 | # `set' does not quote correctly, so add quotes (double-quote |
| 34363 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 34364 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34365 | "s/'/'\\\\''/g; |
| 34366 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34367 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34368 | *) |
| 34369 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34370 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34371 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34372 | esac | |
| 34373 | sort |
| 34374 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34375 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34376 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34377 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34378 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34379 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 34380 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34381 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34382 | :end' >>confcache |
| 34383 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34384 | if test -w "$cache_file"; then |
| 34385 | test "x$cache_file" != "x/dev/null" && |
| 34386 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 34387 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34388 | cat confcache >$cache_file |
| 34389 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34390 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 34391 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34392 | fi |
| 34393 | fi |
| 34394 | rm -f confcache |
| 34395 | |
| 34396 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34397 | # Let make expand exec_prefix. |
| 34398 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34400 | DEFS=-DHAVE_CONFIG_H |
| 34401 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34402 | ac_libobjs= |
| 34403 | ac_ltlibobjs= |
| 34404 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34405 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34406 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34407 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 34408 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34409 | # will be set to the directory where LIBOBJS objects are built. |
| 34410 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34411 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34412 | done |
| 34413 | LIBOBJS=$ac_libobjs |
| 34414 | |
| 34415 | LTLIBOBJS=$ac_ltlibobjs |
| 34416 | |
| 34417 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34418 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 34419 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34420 | Usually this means the macro was only invoked conditionally." >&5 |
| 34421 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34422 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34423 | { (exit 1); exit 1; }; } |
| 34424 | fi |
| 34425 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 34426 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34427 | Usually this means the macro was only invoked conditionally." >&5 |
| 34428 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34429 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34430 | { (exit 1); exit 1; }; } |
| 34431 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34432 | |
| 34433 | : ${CONFIG_STATUS=./config.status} |
| 34434 | ac_clean_files_save=$ac_clean_files |
| 34435 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 34436 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 34437 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 34438 | cat >$CONFIG_STATUS <<_ACEOF |
| 34439 | #! $SHELL |
| 34440 | # Generated by $as_me. |
| 34441 | # Run this file to recreate the current configuration. |
| 34442 | # Compiler output produced by configure, useful for debugging |
| 34443 | # configure, is in config.log if it exists. |
| 34444 | |
| 34445 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34446 | ac_cs_recheck=false |
| 34447 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34448 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 34449 | _ACEOF |
| 34450 | |
| 34451 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34452 | ## --------------------- ## |
| 34453 | ## M4sh Initialization. ## |
| 34454 | ## --------------------- ## |
| 34455 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34456 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34457 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 34458 | emulate sh |
| 34459 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34460 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 34461 | # is contrary to our usage. Disable this feature. |
| 34462 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34463 | setopt NO_GLOB_SUBST |
| 34464 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34465 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34466 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34467 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 34468 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34469 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34470 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34471 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34472 | # Avoid depending upon Character Ranges. |
| 34473 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 34474 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34475 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 34476 | as_cr_digits='0123456789' |
| 34477 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 34478 | |
| 34479 | # The user is always right. |
| 34480 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34481 | echo "#! /bin/sh" >conf$$.sh |
| 34482 | echo "exit 0" >>conf$$.sh |
| 34483 | chmod +x conf$$.sh |
| 34484 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34485 | PATH_SEPARATOR=';' |
| 34486 | else |
| 34487 | PATH_SEPARATOR=: |
| 34488 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34489 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34490 | fi |
| 34491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34492 | # Support unset when possible. |
| 34493 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 34494 | as_unset=unset |
| 34495 | else |
| 34496 | as_unset=false |
| 34497 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34499 | |
| 34500 | # IFS |
| 34501 | # We need space, tab and new line, in precisely that order. Quoting is |
| 34502 | # there to prevent editors from complaining about space-tab. |
| 34503 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 34504 | # splitting by setting IFS to empty value.) |
| 34505 | as_nl=' |
| 34506 | ' |
| 34507 | IFS=" "" $as_nl" |
| 34508 | |
| 34509 | # Find who we are. Look in the path if we contain no directory separator. |
| 34510 | case $0 in |
| 34511 | *[\\/]* ) as_myself=$0 ;; |
| 34512 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34513 | for as_dir in $PATH |
| 34514 | do |
| 34515 | IFS=$as_save_IFS |
| 34516 | test -z "$as_dir" && as_dir=. |
| 34517 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 34518 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34519 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34521 | ;; |
| 34522 | esac |
| 34523 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 34524 | # in which case we are not to be found in the path. |
| 34525 | if test "x$as_myself" = x; then |
| 34526 | as_myself=$0 |
| 34527 | fi |
| 34528 | if test ! -f "$as_myself"; then |
| 34529 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 34530 | { (exit 1); exit 1; } |
| 34531 | fi |
| 34532 | |
| 34533 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34534 | for as_var in ENV MAIL MAILPATH |
| 34535 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34536 | done |
| 34537 | PS1='$ ' |
| 34538 | PS2='> ' |
| 34539 | PS4='+ ' |
| 34540 | |
| 34541 | # NLS nuisances. |
| 34542 | for as_var in \ |
| 34543 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 34544 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 34545 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34546 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34547 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 34548 | eval $as_var=C; export $as_var |
| 34549 | else |
| 34550 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34551 | fi |
| 34552 | done |
| 34553 | |
| 34554 | # Required to use basename. |
| 34555 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34556 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 34557 | as_expr=expr |
| 34558 | else |
| 34559 | as_expr=false |
| 34560 | fi |
| 34561 | |
| 34562 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 34563 | as_basename=basename |
| 34564 | else |
| 34565 | as_basename=false |
| 34566 | fi |
| 34567 | |
| 34568 | |
| 34569 | # Name of the executable. |
| 34570 | as_me=`$as_basename -- "$0" || |
| 34571 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 34572 | X"$0" : 'X\(//\)$' \| \ |
| 34573 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 34574 | echo X/"$0" | |
| 34575 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 34576 | s//\1/ |
| 34577 | q |
| 34578 | } |
| 34579 | /^X\/\(\/\/\)$/{ |
| 34580 | s//\1/ |
| 34581 | q |
| 34582 | } |
| 34583 | /^X\/\(\/\).*/{ |
| 34584 | s//\1/ |
| 34585 | q |
| 34586 | } |
| 34587 | s/.*/./; q'` |
| 34588 | |
| 34589 | # CDPATH. |
| 34590 | $as_unset CDPATH |
| 34591 | |
| 34592 | |
| 34593 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34594 | as_lineno_1=$LINENO |
| 34595 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34596 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34597 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34598 | |
| 34599 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 34600 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34601 | # line-number line after each line using $LINENO; the second 'sed' |
| 34602 | # does the real work. The second script uses 'N' to pair each |
| 34603 | # line-number line with the line containing $LINENO, and appends |
| 34604 | # trailing '-' during substitution so that $LINENO is not a special |
| 34605 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34606 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34607 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 34608 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 34609 | sed -n ' |
| 34610 | p |
| 34611 | /[$]LINENO/= |
| 34612 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34613 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34614 | s/[$]LINENO.*/&-/ |
| 34615 | t lineno |
| 34616 | b |
| 34617 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34618 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34619 | :loop |
| 34620 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34621 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34622 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34623 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34624 | chmod +x "$as_me.lineno" || |
| 34625 | { 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] | 34626 | { (exit 1); exit 1; }; } |
| 34627 | |
| 34628 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 34629 | # (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] | 34630 | # original and so on. Autoconf is especially sensitive to this). |
| 34631 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34632 | # Exit status is that of the last command. |
| 34633 | exit |
| 34634 | } |
| 34635 | |
| 34636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34637 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 34638 | as_dirname=dirname |
| 34639 | else |
| 34640 | as_dirname=false |
| 34641 | fi |
| 34642 | |
| 34643 | ECHO_C= ECHO_N= ECHO_T= |
| 34644 | case `echo -n x` in |
| 34645 | -n*) |
| 34646 | case `echo 'x\c'` in |
| 34647 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 34648 | *) ECHO_C='\c';; |
| 34649 | esac;; |
| 34650 | *) |
| 34651 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34652 | esac |
| 34653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34654 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34655 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34656 | as_expr=expr |
| 34657 | else |
| 34658 | as_expr=false |
| 34659 | fi |
| 34660 | |
| 34661 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34662 | if test -d conf$$.dir; then |
| 34663 | rm -f conf$$.dir/conf$$.file |
| 34664 | else |
| 34665 | rm -f conf$$.dir |
| 34666 | mkdir conf$$.dir |
| 34667 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34668 | echo >conf$$.file |
| 34669 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34670 | as_ln_s='ln -s' |
| 34671 | # ... but there are two gotchas: |
| 34672 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 34673 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 34674 | # In both cases, we have to default to `cp -p'. |
| 34675 | 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] | 34676 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34677 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 34678 | as_ln_s=ln |
| 34679 | else |
| 34680 | as_ln_s='cp -p' |
| 34681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34682 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 34683 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34684 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34685 | if mkdir -p . 2>/dev/null; then |
| 34686 | as_mkdir_p=: |
| 34687 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34688 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34689 | as_mkdir_p=false |
| 34690 | fi |
| 34691 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34692 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 34693 | # systems may use methods other than mode bits to determine executability. |
| 34694 | cat >conf$$.file <<_ASEOF |
| 34695 | #! /bin/sh |
| 34696 | exit 0 |
| 34697 | _ASEOF |
| 34698 | chmod +x conf$$.file |
| 34699 | if test -x conf$$.file >/dev/null 2>&1; then |
| 34700 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34701 | else |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34702 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34703 | fi |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34704 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34705 | |
| 34706 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34707 | 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] | 34708 | |
| 34709 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34710 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34711 | |
| 34712 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34713 | exec 6>&1 |
| 34714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34715 | # 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] | 34716 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34717 | # values after options handling. |
| 34718 | ac_log=" |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 34719 | This file was extended by llvm $as_me 2.4svn, which was |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34720 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34721 | |
| 34722 | CONFIG_FILES = $CONFIG_FILES |
| 34723 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 34724 | CONFIG_LINKS = $CONFIG_LINKS |
| 34725 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 34726 | $ $0 $@ |
| 34727 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34728 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 34729 | " |
| 34730 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34731 | _ACEOF |
| 34732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34733 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34734 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34735 | config_files="$ac_config_files" |
| 34736 | config_headers="$ac_config_headers" |
| 34737 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34739 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34740 | |
| 34741 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34742 | ac_cs_usage="\ |
| 34743 | \`$as_me' instantiates files from templates according to the |
| 34744 | current configuration. |
| 34745 | |
| 34746 | Usage: $0 [OPTIONS] [FILE]... |
| 34747 | |
| 34748 | -h, --help print this help, then exit |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34749 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34750 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34751 | -d, --debug don't remove temporary files |
| 34752 | --recheck update $as_me by reconfiguring in the same conditions |
| 34753 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34754 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34755 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34756 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34757 | |
| 34758 | Configuration files: |
| 34759 | $config_files |
| 34760 | |
| 34761 | Configuration headers: |
| 34762 | $config_headers |
| 34763 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34764 | Configuration commands: |
| 34765 | $config_commands |
| 34766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34767 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34769 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34770 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34771 | ac_cs_version="\\ |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 34772 | llvm config.status 2.4svn |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 34773 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34774 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34776 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34777 | This config.status script is free software; the Free Software Foundation |
| 34778 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34779 | |
| 34780 | ac_pwd='$ac_pwd' |
| 34781 | srcdir='$srcdir' |
| 34782 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34783 | _ACEOF |
| 34784 | |
| 34785 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34786 | # If no file are specified by the user, then we need to provide default |
| 34787 | # value. By we need to know if files were specified by the user. |
| 34788 | ac_need_defaults=: |
| 34789 | while test $# != 0 |
| 34790 | do |
| 34791 | case $1 in |
| 34792 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34793 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 34794 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34795 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34796 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34797 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34798 | ac_option=$1 |
| 34799 | ac_optarg=$2 |
| 34800 | ac_shift=shift |
| 34801 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34802 | esac |
| 34803 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34804 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34805 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34806 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 34807 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34808 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 34809 | echo "$ac_cs_version"; exit ;; |
| 34810 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34811 | debug=: ;; |
| 34812 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34813 | $ac_shift |
| 34814 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34815 | ac_need_defaults=false;; |
| 34816 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34817 | $ac_shift |
| 34818 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34819 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34820 | --he | --h) |
| 34821 | # Conflict between --help and --header |
| 34822 | { echo "$as_me: error: ambiguous option: $1 |
| 34823 | Try \`$0 --help' for more information." >&2 |
| 34824 | { (exit 1); exit 1; }; };; |
| 34825 | --help | --hel | -h ) |
| 34826 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34827 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 34828 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 34829 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34830 | |
| 34831 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34832 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 34833 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34834 | { (exit 1); exit 1; }; } ;; |
| 34835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34836 | *) ac_config_targets="$ac_config_targets $1" |
| 34837 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34838 | |
| 34839 | esac |
| 34840 | shift |
| 34841 | done |
| 34842 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34843 | ac_configure_extra_args= |
| 34844 | |
| 34845 | if $ac_cs_silent; then |
| 34846 | exec 6>/dev/null |
| 34847 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 34848 | fi |
| 34849 | |
| 34850 | _ACEOF |
| 34851 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34852 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34853 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 34854 | CONFIG_SHELL=$SHELL |
| 34855 | export CONFIG_SHELL |
| 34856 | 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] | 34857 | fi |
| 34858 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34859 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34860 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34861 | exec 5>>config.log |
| 34862 | { |
| 34863 | echo |
| 34864 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 34865 | ## Running $as_me. ## |
| 34866 | _ASBOX |
| 34867 | echo "$ac_log" |
| 34868 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34870 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34871 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34872 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34873 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34874 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34875 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34876 | |
| 34877 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34878 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34879 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34880 | |
| 34881 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34882 | for ac_config_target in $ac_config_targets |
| 34883 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34884 | case $ac_config_target in |
| 34885 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 34886 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 34887 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 34888 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 34889 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 34890 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34891 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34892 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 34893 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 34894 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 34895 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 34896 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 34897 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34898 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34899 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34900 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34901 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 34902 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34903 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34904 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34905 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 34906 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34908 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34909 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34910 | { (exit 1); exit 1; }; };; |
| 34911 | esac |
| 34912 | done |
| 34913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34914 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34915 | # If the user did not use the arguments to specify the items to instantiate, |
| 34916 | # then the envvar interface is used. Set only those that are not. |
| 34917 | # We use the long form for the default assignment because of an extremely |
| 34918 | # bizarre bug on SunOS 4.1.3. |
| 34919 | if $ac_need_defaults; then |
| 34920 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34921 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34922 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34923 | fi |
| 34924 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34925 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34926 | # 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] | 34927 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34928 | # Hook for its removal unless debugging. |
| 34929 | # Note that there is a small window in which the directory will not be cleaned: |
| 34930 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34931 | $debug || |
| 34932 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34933 | tmp= |
| 34934 | trap 'exit_status=$? |
| 34935 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34936 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34937 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34938 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34939 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34940 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34941 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34942 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34943 | test -n "$tmp" && test -d "$tmp" |
| 34944 | } || |
| 34945 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34946 | tmp=./conf$$-$RANDOM |
| 34947 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34948 | } || |
| 34949 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34950 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34951 | { (exit 1); exit 1; } |
| 34952 | } |
| 34953 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34954 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34955 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34956 | # |
| 34957 | |
| 34958 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34959 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34960 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34961 | |
| 34962 | _ACEOF |
| 34963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34964 | |
| 34965 | |
| 34966 | ac_delim='%!_!# ' |
| 34967 | for ac_last_try in false false false false false :; do |
| 34968 | cat >conf$$subs.sed <<_ACEOF |
| 34969 | SHELL!$SHELL$ac_delim |
| 34970 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34971 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34972 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34973 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34974 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34975 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34976 | exec_prefix!$exec_prefix$ac_delim |
| 34977 | prefix!$prefix$ac_delim |
| 34978 | program_transform_name!$program_transform_name$ac_delim |
| 34979 | bindir!$bindir$ac_delim |
| 34980 | sbindir!$sbindir$ac_delim |
| 34981 | libexecdir!$libexecdir$ac_delim |
| 34982 | datarootdir!$datarootdir$ac_delim |
| 34983 | datadir!$datadir$ac_delim |
| 34984 | sysconfdir!$sysconfdir$ac_delim |
| 34985 | sharedstatedir!$sharedstatedir$ac_delim |
| 34986 | localstatedir!$localstatedir$ac_delim |
| 34987 | includedir!$includedir$ac_delim |
| 34988 | oldincludedir!$oldincludedir$ac_delim |
| 34989 | docdir!$docdir$ac_delim |
| 34990 | infodir!$infodir$ac_delim |
| 34991 | htmldir!$htmldir$ac_delim |
| 34992 | dvidir!$dvidir$ac_delim |
| 34993 | pdfdir!$pdfdir$ac_delim |
| 34994 | psdir!$psdir$ac_delim |
| 34995 | libdir!$libdir$ac_delim |
| 34996 | localedir!$localedir$ac_delim |
| 34997 | mandir!$mandir$ac_delim |
| 34998 | DEFS!$DEFS$ac_delim |
| 34999 | ECHO_C!$ECHO_C$ac_delim |
| 35000 | ECHO_N!$ECHO_N$ac_delim |
| 35001 | ECHO_T!$ECHO_T$ac_delim |
| 35002 | LIBS!$LIBS$ac_delim |
| 35003 | build_alias!$build_alias$ac_delim |
| 35004 | host_alias!$host_alias$ac_delim |
| 35005 | target_alias!$target_alias$ac_delim |
| 35006 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 35007 | subdirs!$subdirs$ac_delim |
| 35008 | build!$build$ac_delim |
| 35009 | build_cpu!$build_cpu$ac_delim |
| 35010 | build_vendor!$build_vendor$ac_delim |
| 35011 | build_os!$build_os$ac_delim |
| 35012 | host!$host$ac_delim |
| 35013 | host_cpu!$host_cpu$ac_delim |
| 35014 | host_vendor!$host_vendor$ac_delim |
| 35015 | host_os!$host_os$ac_delim |
| 35016 | target!$target$ac_delim |
| 35017 | target_cpu!$target_cpu$ac_delim |
| 35018 | target_vendor!$target_vendor$ac_delim |
| 35019 | target_os!$target_os$ac_delim |
| 35020 | OS!$OS$ac_delim |
| 35021 | LINKALL!$LINKALL$ac_delim |
| 35022 | NOLINKALL!$NOLINKALL$ac_delim |
| 35023 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 35024 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 35025 | ARCH!$ARCH$ac_delim |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 35026 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35027 | CC!$CC$ac_delim |
| 35028 | CFLAGS!$CFLAGS$ac_delim |
| 35029 | LDFLAGS!$LDFLAGS$ac_delim |
| 35030 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 35031 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 35032 | EXEEXT!$EXEEXT$ac_delim |
| 35033 | OBJEXT!$OBJEXT$ac_delim |
| 35034 | CPP!$CPP$ac_delim |
| 35035 | GREP!$GREP$ac_delim |
| 35036 | EGREP!$EGREP$ac_delim |
| 35037 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 35038 | BUILD_CC!$BUILD_CC$ac_delim |
| 35039 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 35040 | CVSBUILD!$CVSBUILD$ac_delim |
| 35041 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 35042 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35043 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 35044 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35045 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35046 | JIT!$JIT$ac_delim |
| 35047 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 35048 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 35049 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35050 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35051 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 35052 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35053 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 35054 | CXX!$CXX$ac_delim |
| 35055 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 35056 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 35057 | LEX!$LEX$ac_delim |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 35058 | LEXLIB!$LEXLIB$ac_delim |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 35059 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35060 | FLEX!$FLEX$ac_delim |
| 35061 | YACC!$YACC$ac_delim |
| 35062 | YFLAGS!$YFLAGS$ac_delim |
| 35063 | BISON!$BISON$ac_delim |
| 35064 | NM!$NM$ac_delim |
| 35065 | ifGNUmake!$ifGNUmake$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35066 | _ACEOF |
| 35067 | |
| 35068 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 35069 | break |
| 35070 | elif $ac_last_try; then |
| 35071 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35072 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35073 | { (exit 1); exit 1; }; } |
| 35074 | else |
| 35075 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35076 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35077 | done |
| 35078 | |
| 35079 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35080 | if test -n "$ac_eof"; then |
| 35081 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35082 | ac_eof=`expr $ac_eof + 1` |
| 35083 | fi |
| 35084 | |
| 35085 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35086 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 35087 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 35088 | _ACEOF |
| 35089 | sed ' |
| 35090 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35091 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35092 | :n |
| 35093 | t n |
| 35094 | s/'"$ac_delim"'$/,g/; t |
| 35095 | s/$/\\/; p |
| 35096 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35097 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35098 | rm -f conf$$subs.sed |
| 35099 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35100 | CEOF$ac_eof |
| 35101 | _ACEOF |
| 35102 | |
| 35103 | |
| 35104 | ac_delim='%!_!# ' |
| 35105 | for ac_last_try in false false false false false :; do |
| 35106 | cat >conf$$subs.sed <<_ACEOF |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35107 | LN_S!$LN_S$ac_delim |
| 35108 | CMP!$CMP$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35109 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35110 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35111 | FIND!$FIND$ac_delim |
| 35112 | MKDIR!$MKDIR$ac_delim |
| 35113 | MV!$MV$ac_delim |
| 35114 | RANLIB!$RANLIB$ac_delim |
| 35115 | RM!$RM$ac_delim |
| 35116 | SED!$SED$ac_delim |
| 35117 | TAR!$TAR$ac_delim |
| 35118 | BINPWD!$BINPWD$ac_delim |
| 35119 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 35120 | DOT!$DOT$ac_delim |
| 35121 | GV!$GV$ac_delim |
| 35122 | DOTTY!$DOTTY$ac_delim |
| 35123 | PERL!$PERL$ac_delim |
| 35124 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 35125 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 35126 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 35127 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 35128 | BZIP2!$BZIP2$ac_delim |
| 35129 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35130 | GROFF!$GROFF$ac_delim |
| 35131 | GZIP!$GZIP$ac_delim |
| 35132 | POD2HTML!$POD2HTML$ac_delim |
| 35133 | POD2MAN!$POD2MAN$ac_delim |
| 35134 | RUNTEST!$RUNTEST$ac_delim |
| 35135 | TCLSH!$TCLSH$ac_delim |
| 35136 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 35137 | OCAMLC!$OCAMLC$ac_delim |
| 35138 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 35139 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 35140 | OCAMLDOC!$OCAMLDOC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35141 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 35142 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 35143 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 35144 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 35145 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 35146 | ECHO!$ECHO$ac_delim |
| 35147 | AR!$AR$ac_delim |
| 35148 | STRIP!$STRIP$ac_delim |
| 35149 | CXXCPP!$CXXCPP$ac_delim |
| 35150 | F77!$F77$ac_delim |
| 35151 | FFLAGS!$FFLAGS$ac_delim |
| 35152 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 35153 | LIBTOOL!$LIBTOOL$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35154 | LLVMGCC!$LLVMGCC$ac_delim |
| 35155 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 35156 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 35157 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 35158 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35159 | ALLOCA!$ALLOCA$ac_delim |
| 35160 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 35161 | LLVMCC1!$LLVMCC1$ac_delim |
| 35162 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 35163 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35164 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35165 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 35166 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35167 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35168 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 35169 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 35170 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 35171 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 35172 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 35173 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 35174 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 35175 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 35176 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 35177 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 35178 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35179 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 35180 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35181 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35182 | LIBOBJS!$LIBOBJS$ac_delim |
| 35183 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 35184 | _ACEOF |
| 35185 | |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 35186 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35187 | break |
| 35188 | elif $ac_last_try; then |
| 35189 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35190 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35191 | { (exit 1); exit 1; }; } |
| 35192 | else |
| 35193 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 35194 | fi |
| 35195 | done |
| 35196 | |
| 35197 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35198 | if test -n "$ac_eof"; then |
| 35199 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35200 | ac_eof=`expr $ac_eof + 1` |
| 35201 | fi |
| 35202 | |
| 35203 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35204 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 35205 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 35206 | _ACEOF |
| 35207 | sed ' |
| 35208 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35209 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35210 | :n |
| 35211 | t n |
| 35212 | s/'"$ac_delim"'$/,g/; t |
| 35213 | s/$/\\/; p |
| 35214 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35215 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35216 | rm -f conf$$subs.sed |
| 35217 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35218 | :end |
| 35219 | s/|#_!!_#|//g |
| 35220 | CEOF$ac_eof |
| 35221 | _ACEOF |
| 35222 | |
| 35223 | |
| 35224 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 35225 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 35226 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 35227 | # (actually we leave an empty line to preserve line numbers). |
| 35228 | if test "x$srcdir" = x.; then |
| 35229 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 35230 | s/:*\$(srcdir):*/:/ |
| 35231 | s/:*\${srcdir}:*/:/ |
| 35232 | s/:*@srcdir@:*/:/ |
| 35233 | s/^\([^=]*=[ ]*\):*/\1/ |
| 35234 | s/:*$// |
| 35235 | s/^[^=]*=[ ]*$// |
| 35236 | }' |
| 35237 | fi |
| 35238 | |
| 35239 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35240 | fi # test -n "$CONFIG_FILES" |
| 35241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35242 | |
| 35243 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 35244 | do |
| 35245 | case $ac_tag in |
| 35246 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 35247 | esac |
| 35248 | case $ac_mode$ac_tag in |
| 35249 | :[FHL]*:*);; |
| 35250 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 35251 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 35252 | { (exit 1); exit 1; }; };; |
| 35253 | :[FH]-) ac_tag=-:-;; |
| 35254 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 35255 | esac |
| 35256 | ac_save_IFS=$IFS |
| 35257 | IFS=: |
| 35258 | set x $ac_tag |
| 35259 | IFS=$ac_save_IFS |
| 35260 | shift |
| 35261 | ac_file=$1 |
| 35262 | shift |
| 35263 | |
| 35264 | case $ac_mode in |
| 35265 | :L) ac_source=$1;; |
| 35266 | :[FH]) |
| 35267 | ac_file_inputs= |
| 35268 | for ac_f |
| 35269 | do |
| 35270 | case $ac_f in |
| 35271 | -) ac_f="$tmp/stdin";; |
| 35272 | *) # Look for the file first in the build tree, then in the source tree |
| 35273 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 35274 | # because $ac_f cannot contain `:'. |
| 35275 | test -f "$ac_f" || |
| 35276 | case $ac_f in |
| 35277 | [\\/$]*) false;; |
| 35278 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 35279 | esac || |
| 35280 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 35281 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 35282 | { (exit 1); exit 1; }; };; |
| 35283 | esac |
| 35284 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 35285 | done |
| 35286 | |
| 35287 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 35288 | # use $as_me), people would be surprised to read: |
| 35289 | # /* config.h. Generated by config.status. */ |
| 35290 | configure_input="Generated from "`IFS=: |
| 35291 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 35292 | if test x"$ac_file" != x-; then |
| 35293 | configure_input="$ac_file. $configure_input" |
| 35294 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 35295 | echo "$as_me: creating $ac_file" >&6;} |
| 35296 | fi |
| 35297 | |
| 35298 | case $ac_tag in |
| 35299 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 35300 | esac |
| 35301 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35302 | esac |
| 35303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35304 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35305 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35306 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 35307 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35308 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35309 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35311 | s//\1/ |
| 35312 | q |
| 35313 | } |
| 35314 | /^X\(\/\/\)[^/].*/{ |
| 35315 | s//\1/ |
| 35316 | q |
| 35317 | } |
| 35318 | /^X\(\/\/\)$/{ |
| 35319 | s//\1/ |
| 35320 | q |
| 35321 | } |
| 35322 | /^X\(\/\).*/{ |
| 35323 | s//\1/ |
| 35324 | q |
| 35325 | } |
| 35326 | s/.*/./; q'` |
| 35327 | { as_dir="$ac_dir" |
| 35328 | case $as_dir in #( |
| 35329 | -*) as_dir=./$as_dir;; |
| 35330 | esac |
| 35331 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35332 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35333 | while :; do |
| 35334 | case $as_dir in #( |
| 35335 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35336 | *) as_qdir=$as_dir;; |
| 35337 | esac |
| 35338 | as_dirs="'$as_qdir' $as_dirs" |
| 35339 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35341 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35342 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35344 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35346 | s//\1/ |
| 35347 | q |
| 35348 | } |
| 35349 | /^X\(\/\/\)[^/].*/{ |
| 35350 | s//\1/ |
| 35351 | q |
| 35352 | } |
| 35353 | /^X\(\/\/\)$/{ |
| 35354 | s//\1/ |
| 35355 | q |
| 35356 | } |
| 35357 | /^X\(\/\).*/{ |
| 35358 | s//\1/ |
| 35359 | q |
| 35360 | } |
| 35361 | s/.*/./; q'` |
| 35362 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35363 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35364 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35365 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35366 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35367 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35368 | ac_builddir=. |
| 35369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35370 | case "$ac_dir" in |
| 35371 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35372 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35373 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35374 | # A ".." for each directory in $ac_dir_suffix. |
| 35375 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35376 | case $ac_top_builddir_sub in |
| 35377 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35378 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35379 | esac ;; |
| 35380 | esac |
| 35381 | ac_abs_top_builddir=$ac_pwd |
| 35382 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35383 | # for backward compatibility: |
| 35384 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35385 | |
| 35386 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35387 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35388 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35389 | ac_top_srcdir=$ac_top_builddir_sub |
| 35390 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35391 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35392 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35393 | ac_top_srcdir=$srcdir |
| 35394 | ac_abs_top_srcdir=$srcdir ;; |
| 35395 | *) # Relative name. |
| 35396 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35397 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35398 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35399 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35400 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35401 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35403 | case $ac_mode in |
| 35404 | :F) |
| 35405 | # |
| 35406 | # CONFIG_FILE |
| 35407 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35408 | |
| 35409 | case $INSTALL in |
| 35410 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35411 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35412 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35413 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35414 | |
| 35415 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35416 | # If the template does not know about datarootdir, expand it. |
| 35417 | # FIXME: This hack should be removed a few years after 2.60. |
| 35418 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 35419 | |
| 35420 | case `sed -n '/datarootdir/ { |
| 35421 | p |
| 35422 | q |
| 35423 | } |
| 35424 | /@datadir@/p |
| 35425 | /@docdir@/p |
| 35426 | /@infodir@/p |
| 35427 | /@localedir@/p |
| 35428 | /@mandir@/p |
| 35429 | ' $ac_file_inputs` in |
| 35430 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 35431 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 35432 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 35433 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 35434 | _ACEOF |
| 35435 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35436 | ac_datarootdir_hack=' |
| 35437 | s&@datadir@&$datadir&g |
| 35438 | s&@docdir@&$docdir&g |
| 35439 | s&@infodir@&$infodir&g |
| 35440 | s&@localedir@&$localedir&g |
| 35441 | s&@mandir@&$mandir&g |
| 35442 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 35443 | esac |
| 35444 | _ACEOF |
| 35445 | |
| 35446 | # Neutralize VPATH when `$srcdir' = `.'. |
| 35447 | # Shell code in configure.ac might set extrasub. |
| 35448 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35449 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35450 | sed "$ac_vpsub |
| 35451 | $extrasub |
| 35452 | _ACEOF |
| 35453 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35454 | :t |
| 35455 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35456 | s&@configure_input@&$configure_input&;t t |
| 35457 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 35458 | s&@srcdir@&$ac_srcdir&;t t |
| 35459 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 35460 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 35461 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 35462 | s&@builddir@&$ac_builddir&;t t |
| 35463 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 35464 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 35465 | s&@INSTALL@&$ac_INSTALL&;t t |
| 35466 | $ac_datarootdir_hack |
| 35467 | " $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] | 35468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35469 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 35470 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 35471 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 35472 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35473 | which seems to be undefined. Please make sure it is defined." >&5 |
| 35474 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35475 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35477 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35478 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35479 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 35480 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35481 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35482 | ;; |
| 35483 | :H) |
| 35484 | # |
| 35485 | # CONFIG_HEADER |
| 35486 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35487 | _ACEOF |
| 35488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35489 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 35490 | # substitutes the proper values into config.h.in to produce config.h. |
| 35491 | rm -f conftest.defines conftest.tail |
| 35492 | # First, append a space to every undef/define line, to ease matching. |
| 35493 | echo 's/$/ /' >conftest.defines |
| 35494 | # Then, protect against being on the right side of a sed subst, or in |
| 35495 | # an unquoted here document, in config.status. If some macros were |
| 35496 | # called several times there might be several #defines for the same |
| 35497 | # symbol, which is useless. But do not sort them, since the last |
| 35498 | # AC_DEFINE must be honored. |
| 35499 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 35500 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 35501 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 35502 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 35503 | # just an empty string. |
| 35504 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 35505 | ac_dB='\\)[ (].*,\\1define\\2' |
| 35506 | ac_dC=' ' |
| 35507 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35509 | uniq confdefs.h | |
| 35510 | sed -n ' |
| 35511 | t rset |
| 35512 | :rset |
| 35513 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 35514 | t ok |
| 35515 | d |
| 35516 | :ok |
| 35517 | s/[\\&,]/\\&/g |
| 35518 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 35519 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 35520 | ' >>conftest.defines |
| 35521 | |
| 35522 | # Remove the space that was appended to ease matching. |
| 35523 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35524 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 35525 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35526 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 35527 | echo 's/ $// |
| 35528 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35530 | # Break up conftest.defines: |
| 35531 | ac_max_sed_lines=50 |
| 35532 | |
| 35533 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 35534 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 35535 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 35536 | # et cetera. |
| 35537 | ac_in='$ac_file_inputs' |
| 35538 | ac_out='"$tmp/out1"' |
| 35539 | ac_nxt='"$tmp/out2"' |
| 35540 | |
| 35541 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35542 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35543 | # Write a here document: |
| 35544 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35545 | # First, check the format of the line: |
| 35546 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 35547 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 35548 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 35549 | b |
| 35550 | :def |
| 35551 | _ACEOF |
| 35552 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35553 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35554 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 35555 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 35556 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 35557 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35558 | rm -f conftest.defines |
| 35559 | mv conftest.tail conftest.defines |
| 35560 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35561 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35563 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35564 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35565 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35566 | echo "/* $configure_input */" >"$tmp/config.h" |
| 35567 | cat "$ac_result" >>"$tmp/config.h" |
| 35568 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35569 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 35570 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 35571 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35572 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35573 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35574 | fi |
| 35575 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35576 | echo "/* $configure_input */" |
| 35577 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35578 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35579 | rm -f "$tmp/out12" |
| 35580 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35582 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 35583 | echo "$as_me: executing $ac_file commands" >&6;} |
| 35584 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35585 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35587 | |
| 35588 | case $ac_file$ac_mode in |
| 35589 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 35590 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 35591 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 35592 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 35593 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 35594 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 35595 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 35596 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35597 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 35598 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35599 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 35600 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 35601 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 35602 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 35603 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 35604 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 35605 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 35606 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 35607 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 35608 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35609 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 35610 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 35611 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 35612 | ${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] | 35613 | |
| 35614 | esac |
| 35615 | done # for ac_tag |
| 35616 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35617 | |
| 35618 | { (exit 0); exit 0; } |
| 35619 | _ACEOF |
| 35620 | chmod +x $CONFIG_STATUS |
| 35621 | ac_clean_files=$ac_clean_files_save |
| 35622 | |
| 35623 | |
| 35624 | # configure is writing to config.log, and then calls config.status. |
| 35625 | # config.status does its own redirection, appending to config.log. |
| 35626 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 35627 | # by configure, so config.status won't be able to write to it; its |
| 35628 | # output is simply discarded. So we exec the FD to /dev/null, |
| 35629 | # effectively closing config.log, so it can be properly (re)opened and |
| 35630 | # appended to by config.status. When coming back to configure, we |
| 35631 | # need to make the FD available again. |
| 35632 | if test "$no_create" != yes; then |
| 35633 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35634 | ac_config_status_args= |
| 35635 | test "$silent" = yes && |
| 35636 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35637 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35638 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35639 | exec 5>>config.log |
| 35640 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 35641 | # would make configure fail if this is the last instruction. |
| 35642 | $ac_cs_success || { (exit 1); exit 1; } |
| 35643 | fi |
| 35644 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35645 | # |
| 35646 | # CONFIG_SUBDIRS section. |
| 35647 | # |
| 35648 | if test "$no_recursion" != yes; then |
| 35649 | |
| 35650 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 35651 | ac_sub_configure_args= |
| 35652 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35653 | eval "set x $ac_configure_args" |
| 35654 | shift |
| 35655 | for ac_arg |
| 35656 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35657 | if test -n "$ac_prev"; then |
| 35658 | ac_prev= |
| 35659 | continue |
| 35660 | fi |
| 35661 | case $ac_arg in |
| 35662 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 35663 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 35664 | ac_prev=cache_file ;; |
| 35665 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 35666 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 35667 | | --c=*) |
| 35668 | ;; |
| 35669 | --config-cache | -C) |
| 35670 | ;; |
| 35671 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 35672 | ac_prev=srcdir ;; |
| 35673 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 35674 | ;; |
| 35675 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 35676 | ac_prev=prefix ;; |
| 35677 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 35678 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35679 | *) |
| 35680 | case $ac_arg in |
| 35681 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35682 | esac |
| 35683 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35684 | esac |
| 35685 | done |
| 35686 | |
| 35687 | # Always prepend --prefix to ensure using the same prefix |
| 35688 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35689 | ac_arg="--prefix=$prefix" |
| 35690 | case $ac_arg in |
| 35691 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35692 | esac |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 35693 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35694 | |
| 35695 | ac_popdir=`pwd` |
| 35696 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 35697 | |
| 35698 | # Do not complain, so a configure script can configure whichever |
| 35699 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35700 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35702 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 35703 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 35704 | echo "$ac_msg" >&6 |
| 35705 | { as_dir="$ac_dir" |
| 35706 | case $as_dir in #( |
| 35707 | -*) as_dir=./$as_dir;; |
| 35708 | esac |
| 35709 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35710 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35711 | while :; do |
| 35712 | case $as_dir in #( |
| 35713 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35714 | *) as_qdir=$as_dir;; |
| 35715 | esac |
| 35716 | as_dirs="'$as_qdir' $as_dirs" |
| 35717 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35718 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35719 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35720 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35721 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35722 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35724 | s//\1/ |
| 35725 | q |
| 35726 | } |
| 35727 | /^X\(\/\/\)[^/].*/{ |
| 35728 | s//\1/ |
| 35729 | q |
| 35730 | } |
| 35731 | /^X\(\/\/\)$/{ |
| 35732 | s//\1/ |
| 35733 | q |
| 35734 | } |
| 35735 | /^X\(\/\).*/{ |
| 35736 | s//\1/ |
| 35737 | q |
| 35738 | } |
| 35739 | s/.*/./; q'` |
| 35740 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35741 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35742 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35743 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35744 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35745 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35746 | ac_builddir=. |
| 35747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35748 | case "$ac_dir" in |
| 35749 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35750 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35751 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35752 | # A ".." for each directory in $ac_dir_suffix. |
| 35753 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35754 | case $ac_top_builddir_sub in |
| 35755 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35756 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35757 | esac ;; |
| 35758 | esac |
| 35759 | ac_abs_top_builddir=$ac_pwd |
| 35760 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35761 | # for backward compatibility: |
| 35762 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35763 | |
| 35764 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35765 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35766 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35767 | ac_top_srcdir=$ac_top_builddir_sub |
| 35768 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35769 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35770 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35771 | ac_top_srcdir=$srcdir |
| 35772 | ac_abs_top_srcdir=$srcdir ;; |
| 35773 | *) # Relative name. |
| 35774 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35775 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35776 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35777 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35778 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35779 | |
| 35780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35781 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35782 | |
| 35783 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35784 | if test -f "$ac_srcdir/configure.gnu"; then |
| 35785 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 35786 | elif test -f "$ac_srcdir/configure"; then |
| 35787 | ac_sub_configure=$ac_srcdir/configure |
| 35788 | elif test -f "$ac_srcdir/configure.in"; then |
| 35789 | # This should be Cygnus configure. |
| 35790 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35791 | else |
| 35792 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 35793 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 35794 | ac_sub_configure= |
| 35795 | fi |
| 35796 | |
| 35797 | # The recursion is here. |
| 35798 | if test -n "$ac_sub_configure"; then |
| 35799 | # Make the cache file name correct relative to the subdirectory. |
| 35800 | case $cache_file in |
| 35801 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35802 | *) # Relative name. |
| 35803 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35804 | esac |
| 35805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35806 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 35807 | 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] | 35808 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35809 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 35810 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35811 | { { 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] | 35812 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 35813 | { (exit 1); exit 1; }; } |
| 35814 | fi |
| 35815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35816 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35817 | done |
| 35818 | fi |
| 35819 | |