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. |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.5svn. |
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 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.5svn' |
| 719 | PACKAGE_STRING='llvm 2.5svn' |
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> |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 830 | BUILD_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 831 | CVSBUILD |
| 832 | ENABLE_OPTIMIZED |
| 833 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 834 | ENABLE_EXPENSIVE_CHECKS |
| 835 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 836 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 837 | JIT |
| 838 | TARGET_HAS_JIT |
| 839 | ENABLE_DOXYGEN |
| 840 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 841 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 842 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 843 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 844 | EXTRA_OPTIONS |
| 845 | CXX |
| 846 | CXXFLAGS |
| 847 | ac_ct_CXX |
| 848 | LEX |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 849 | LEXLIB |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 850 | LEX_OUTPUT_ROOT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 851 | FLEX |
| 852 | YACC |
| 853 | YFLAGS |
| 854 | BISON |
| 855 | NM |
| 856 | ifGNUmake |
| 857 | LN_S |
| 858 | CMP |
| 859 | CP |
| 860 | DATE |
| 861 | FIND |
| 862 | MKDIR |
| 863 | MV |
| 864 | RANLIB |
| 865 | RM |
| 866 | SED |
| 867 | TAR |
| 868 | BINPWD |
| 869 | GRAPHVIZ |
| 870 | DOT |
| 871 | GV |
| 872 | DOTTY |
| 873 | PERL |
| 874 | HAVE_PERL |
| 875 | INSTALL_PROGRAM |
| 876 | INSTALL_SCRIPT |
| 877 | INSTALL_DATA |
| 878 | BZIP2 |
| 879 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 880 | GROFF |
| 881 | GZIP |
| 882 | POD2HTML |
| 883 | POD2MAN |
| 884 | RUNTEST |
| 885 | TCLSH |
| 886 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 887 | OCAMLC |
| 888 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 889 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 890 | OCAMLDOC |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 891 | GAS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 892 | INSTALL_LTDL_TRUE |
| 893 | INSTALL_LTDL_FALSE |
| 894 | CONVENIENCE_LTDL_TRUE |
| 895 | CONVENIENCE_LTDL_FALSE |
| 896 | LIBADD_DL |
| 897 | ECHO |
| 898 | AR |
| 899 | STRIP |
| 900 | CXXCPP |
| 901 | F77 |
| 902 | FFLAGS |
| 903 | ac_ct_F77 |
| 904 | LIBTOOL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 905 | LLVMGCC |
| 906 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 907 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 908 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 909 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | ALLOCA |
| 911 | MMAP_FILE |
| 912 | LLVMCC1 |
| 913 | LLVMCC1PLUS |
| 914 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 915 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 916 | LLVMGCC_VERSION |
| 917 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 918 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 919 | SHLIBEXT |
| 920 | LLVM_PREFIX |
| 921 | LLVM_BINDIR |
| 922 | LLVM_LIBDIR |
| 923 | LLVM_DATADIR |
| 924 | LLVM_DOCSDIR |
| 925 | LLVM_ETCDIR |
| 926 | LLVM_INCLUDEDIR |
| 927 | LLVM_INFODIR |
| 928 | LLVM_MANDIR |
| 929 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 930 | BINDINGS_TO_BUILD |
| 931 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 932 | OCAML_LIBDIR |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 933 | ENABLE_VISIBILITY_INLINES_HIDDEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 934 | LIBOBJS |
| 935 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 936 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 937 | ac_precious_vars='build_alias |
| 938 | host_alias |
| 939 | target_alias |
| 940 | CC |
| 941 | CFLAGS |
| 942 | LDFLAGS |
| 943 | CPPFLAGS |
| 944 | CPP |
| 945 | CXX |
| 946 | CXXFLAGS |
| 947 | CCC |
| 948 | YACC |
| 949 | YFLAGS |
| 950 | CXXCPP |
| 951 | F77 |
| 952 | FFLAGS' |
| 953 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 954 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 955 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 956 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 957 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 958 | projects/llvm-reopt |
| 959 | projects/llvm-gcc |
| 960 | projects/llvm-java |
| 961 | projects/llvm-tv |
| 962 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 963 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 964 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 965 | |
| 966 | # Initialize some variables set by options. |
| 967 | ac_init_help= |
| 968 | ac_init_version=false |
| 969 | # The variables have the same names as the options, with |
| 970 | # dashes changed to underlines. |
| 971 | cache_file=/dev/null |
| 972 | exec_prefix=NONE |
| 973 | no_create= |
| 974 | no_recursion= |
| 975 | prefix=NONE |
| 976 | program_prefix=NONE |
| 977 | program_suffix=NONE |
| 978 | program_transform_name=s,x,x, |
| 979 | silent= |
| 980 | site= |
| 981 | srcdir= |
| 982 | verbose= |
| 983 | x_includes=NONE |
| 984 | x_libraries=NONE |
| 985 | |
| 986 | # Installation directory options. |
| 987 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 988 | # and all the variables that are supposed to be based on exec_prefix |
| 989 | # by default will actually change. |
| 990 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 991 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 992 | bindir='${exec_prefix}/bin' |
| 993 | sbindir='${exec_prefix}/sbin' |
| 994 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 995 | datarootdir='${prefix}/share' |
| 996 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 997 | sysconfdir='${prefix}/etc' |
| 998 | sharedstatedir='${prefix}/com' |
| 999 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1000 | includedir='${prefix}/include' |
| 1001 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1002 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1003 | infodir='${datarootdir}/info' |
| 1004 | htmldir='${docdir}' |
| 1005 | dvidir='${docdir}' |
| 1006 | pdfdir='${docdir}' |
| 1007 | psdir='${docdir}' |
| 1008 | libdir='${exec_prefix}/lib' |
| 1009 | localedir='${datarootdir}/locale' |
| 1010 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | |
| 1012 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | for ac_option |
| 1015 | do |
| 1016 | # If the previous option needs an argument, assign it. |
| 1017 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1018 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1019 | ac_prev= |
| 1020 | continue |
| 1021 | fi |
| 1022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1023 | case $ac_option in |
| 1024 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1025 | *) ac_optarg=yes ;; |
| 1026 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1027 | |
| 1028 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1030 | case $ac_dashdash$ac_option in |
| 1031 | --) |
| 1032 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 | |
| 1034 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1035 | ac_prev=bindir ;; |
| 1036 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1037 | bindir=$ac_optarg ;; |
| 1038 | |
| 1039 | -build | --build | --buil | --bui | --bu) |
| 1040 | ac_prev=build_alias ;; |
| 1041 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1042 | build_alias=$ac_optarg ;; |
| 1043 | |
| 1044 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1045 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1046 | ac_prev=cache_file ;; |
| 1047 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1048 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1049 | cache_file=$ac_optarg ;; |
| 1050 | |
| 1051 | --config-cache | -C) |
| 1052 | cache_file=config.cache ;; |
| 1053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1054 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1055 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1056 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1057 | datadir=$ac_optarg ;; |
| 1058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1059 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1060 | | --dataroo | --dataro | --datar) |
| 1061 | ac_prev=datarootdir ;; |
| 1062 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1063 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1064 | datarootdir=$ac_optarg ;; |
| 1065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1066 | -disable-* | --disable-*) |
| 1067 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1068 | # Reject names that are not valid shell variable names. |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1069 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1070 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1071 | { (exit 1); exit 1; }; } |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1072 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1073 | eval enable_$ac_feature=no ;; |
| 1074 | |
| 1075 | -docdir | --docdir | --docdi | --doc | --do) |
| 1076 | ac_prev=docdir ;; |
| 1077 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1078 | docdir=$ac_optarg ;; |
| 1079 | |
| 1080 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1081 | ac_prev=dvidir ;; |
| 1082 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1083 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1084 | |
| 1085 | -enable-* | --enable-*) |
| 1086 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1087 | # Reject names that are not valid shell variable names. |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1088 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1089 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1090 | { (exit 1); exit 1; }; } |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1091 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1092 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1093 | |
| 1094 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1095 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1096 | | --exec | --exe | --ex) |
| 1097 | ac_prev=exec_prefix ;; |
| 1098 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1099 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1100 | | --exec=* | --exe=* | --ex=*) |
| 1101 | exec_prefix=$ac_optarg ;; |
| 1102 | |
| 1103 | -gas | --gas | --ga | --g) |
| 1104 | # Obsolete; use --with-gas. |
| 1105 | with_gas=yes ;; |
| 1106 | |
| 1107 | -help | --help | --hel | --he | -h) |
| 1108 | ac_init_help=long ;; |
| 1109 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1110 | ac_init_help=recursive ;; |
| 1111 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1112 | ac_init_help=short ;; |
| 1113 | |
| 1114 | -host | --host | --hos | --ho) |
| 1115 | ac_prev=host_alias ;; |
| 1116 | -host=* | --host=* | --hos=* | --ho=*) |
| 1117 | host_alias=$ac_optarg ;; |
| 1118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1119 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1120 | ac_prev=htmldir ;; |
| 1121 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1122 | | --ht=*) |
| 1123 | htmldir=$ac_optarg ;; |
| 1124 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1125 | -includedir | --includedir | --includedi | --included | --include \ |
| 1126 | | --includ | --inclu | --incl | --inc) |
| 1127 | ac_prev=includedir ;; |
| 1128 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1129 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1130 | includedir=$ac_optarg ;; |
| 1131 | |
| 1132 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1133 | ac_prev=infodir ;; |
| 1134 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1135 | infodir=$ac_optarg ;; |
| 1136 | |
| 1137 | -libdir | --libdir | --libdi | --libd) |
| 1138 | ac_prev=libdir ;; |
| 1139 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1140 | libdir=$ac_optarg ;; |
| 1141 | |
| 1142 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1143 | | --libexe | --libex | --libe) |
| 1144 | ac_prev=libexecdir ;; |
| 1145 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1146 | | --libexe=* | --libex=* | --libe=*) |
| 1147 | libexecdir=$ac_optarg ;; |
| 1148 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1149 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1150 | ac_prev=localedir ;; |
| 1151 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1152 | localedir=$ac_optarg ;; |
| 1153 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1155 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | ac_prev=localstatedir ;; |
| 1157 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1158 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1159 | localstatedir=$ac_optarg ;; |
| 1160 | |
| 1161 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1162 | ac_prev=mandir ;; |
| 1163 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1164 | mandir=$ac_optarg ;; |
| 1165 | |
| 1166 | -nfp | --nfp | --nf) |
| 1167 | # Obsolete; use --without-fp. |
| 1168 | with_fp=no ;; |
| 1169 | |
| 1170 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1171 | | --no-cr | --no-c | -n) |
| 1172 | no_create=yes ;; |
| 1173 | |
| 1174 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1175 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1176 | no_recursion=yes ;; |
| 1177 | |
| 1178 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1179 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1180 | | --oldin | --oldi | --old | --ol | --o) |
| 1181 | ac_prev=oldincludedir ;; |
| 1182 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1183 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1184 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1185 | oldincludedir=$ac_optarg ;; |
| 1186 | |
| 1187 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1188 | ac_prev=prefix ;; |
| 1189 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1190 | prefix=$ac_optarg ;; |
| 1191 | |
| 1192 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1193 | | --program-pre | --program-pr | --program-p) |
| 1194 | ac_prev=program_prefix ;; |
| 1195 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1196 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1197 | program_prefix=$ac_optarg ;; |
| 1198 | |
| 1199 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1200 | | --program-suf | --program-su | --program-s) |
| 1201 | ac_prev=program_suffix ;; |
| 1202 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1203 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1204 | program_suffix=$ac_optarg ;; |
| 1205 | |
| 1206 | -program-transform-name | --program-transform-name \ |
| 1207 | | --program-transform-nam | --program-transform-na \ |
| 1208 | | --program-transform-n | --program-transform- \ |
| 1209 | | --program-transform | --program-transfor \ |
| 1210 | | --program-transfo | --program-transf \ |
| 1211 | | --program-trans | --program-tran \ |
| 1212 | | --progr-tra | --program-tr | --program-t) |
| 1213 | ac_prev=program_transform_name ;; |
| 1214 | -program-transform-name=* | --program-transform-name=* \ |
| 1215 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1216 | | --program-transform-n=* | --program-transform-=* \ |
| 1217 | | --program-transform=* | --program-transfor=* \ |
| 1218 | | --program-transfo=* | --program-transf=* \ |
| 1219 | | --program-trans=* | --program-tran=* \ |
| 1220 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1221 | program_transform_name=$ac_optarg ;; |
| 1222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1223 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1224 | ac_prev=pdfdir ;; |
| 1225 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1226 | pdfdir=$ac_optarg ;; |
| 1227 | |
| 1228 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1229 | ac_prev=psdir ;; |
| 1230 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1231 | psdir=$ac_optarg ;; |
| 1232 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1233 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1234 | | -silent | --silent | --silen | --sile | --sil) |
| 1235 | silent=yes ;; |
| 1236 | |
| 1237 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1238 | ac_prev=sbindir ;; |
| 1239 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1240 | | --sbi=* | --sb=*) |
| 1241 | sbindir=$ac_optarg ;; |
| 1242 | |
| 1243 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1244 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1245 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1246 | | --sha | --sh) |
| 1247 | ac_prev=sharedstatedir ;; |
| 1248 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1249 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1250 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1251 | | --sha=* | --sh=*) |
| 1252 | sharedstatedir=$ac_optarg ;; |
| 1253 | |
| 1254 | -site | --site | --sit) |
| 1255 | ac_prev=site ;; |
| 1256 | -site=* | --site=* | --sit=*) |
| 1257 | site=$ac_optarg ;; |
| 1258 | |
| 1259 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1260 | ac_prev=srcdir ;; |
| 1261 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1262 | srcdir=$ac_optarg ;; |
| 1263 | |
| 1264 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1265 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1266 | ac_prev=sysconfdir ;; |
| 1267 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1268 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1269 | sysconfdir=$ac_optarg ;; |
| 1270 | |
| 1271 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1272 | ac_prev=target_alias ;; |
| 1273 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1274 | target_alias=$ac_optarg ;; |
| 1275 | |
| 1276 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1277 | verbose=yes ;; |
| 1278 | |
| 1279 | -version | --version | --versio | --versi | --vers | -V) |
| 1280 | ac_init_version=: ;; |
| 1281 | |
| 1282 | -with-* | --with-*) |
| 1283 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1284 | # Reject names that are not valid shell variable names. |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1285 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1286 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1287 | { (exit 1); exit 1; }; } |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1288 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1289 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1290 | |
| 1291 | -without-* | --without-*) |
| 1292 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1293 | # Reject names that are not valid shell variable names. |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1294 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1295 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1296 | { (exit 1); exit 1; }; } |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1297 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1298 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1299 | |
| 1300 | --x) |
| 1301 | # Obsolete; use --with-x. |
| 1302 | with_x=yes ;; |
| 1303 | |
| 1304 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1305 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1306 | ac_prev=x_includes ;; |
| 1307 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1308 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1309 | x_includes=$ac_optarg ;; |
| 1310 | |
| 1311 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1312 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1313 | ac_prev=x_libraries ;; |
| 1314 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1315 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1316 | x_libraries=$ac_optarg ;; |
| 1317 | |
| 1318 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1319 | Try \`$0 --help' for more information." >&2 |
| 1320 | { (exit 1); exit 1; }; } |
| 1321 | ;; |
| 1322 | |
| 1323 | *=*) |
| 1324 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1325 | # Reject names that are not valid shell variable names. |
| 1326 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1327 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1328 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1329 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1330 | export $ac_envvar ;; |
| 1331 | |
| 1332 | *) |
| 1333 | # FIXME: should be removed in autoconf 3.0. |
| 1334 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1335 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1336 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1337 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1338 | ;; |
| 1339 | |
| 1340 | esac |
| 1341 | done |
| 1342 | |
| 1343 | if test -n "$ac_prev"; then |
| 1344 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1345 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1346 | { (exit 1); exit 1; }; } |
| 1347 | fi |
| 1348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1349 | # Be sure to have absolute directory names. |
| 1350 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1351 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1352 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1353 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1354 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1355 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1356 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1357 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1358 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1359 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1360 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1361 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1362 | done |
| 1363 | |
| 1364 | # There might be people who depend on the old broken behavior: `$host' |
| 1365 | # used to hold the argument of --host etc. |
| 1366 | # FIXME: To remove some day. |
| 1367 | build=$build_alias |
| 1368 | host=$host_alias |
| 1369 | target=$target_alias |
| 1370 | |
| 1371 | # FIXME: To remove some day. |
| 1372 | if test "x$host_alias" != x; then |
| 1373 | if test "x$build_alias" = x; then |
| 1374 | cross_compiling=maybe |
| 1375 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1376 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1377 | elif test "x$build_alias" != "x$host_alias"; then |
| 1378 | cross_compiling=yes |
| 1379 | fi |
| 1380 | fi |
| 1381 | |
| 1382 | ac_tool_prefix= |
| 1383 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1384 | |
| 1385 | test "$silent" = yes && exec 6>/dev/null |
| 1386 | |
| 1387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1388 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1389 | ac_ls_di=`ls -di .` && |
| 1390 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1391 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1392 | { (exit 1); exit 1; }; } |
| 1393 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1394 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1395 | { (exit 1); exit 1; }; } |
| 1396 | |
| 1397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1398 | # Find the source files, if location was not specified. |
| 1399 | if test -z "$srcdir"; then |
| 1400 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1401 | # Try the directory containing this script, then the parent directory. |
| 1402 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1403 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1404 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1405 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1406 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1407 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1408 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1409 | s//\1/ |
| 1410 | q |
| 1411 | } |
| 1412 | /^X\(\/\/\)[^/].*/{ |
| 1413 | s//\1/ |
| 1414 | q |
| 1415 | } |
| 1416 | /^X\(\/\/\)$/{ |
| 1417 | s//\1/ |
| 1418 | q |
| 1419 | } |
| 1420 | /^X\(\/\).*/{ |
| 1421 | s//\1/ |
| 1422 | q |
| 1423 | } |
| 1424 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1425 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1426 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1427 | srcdir=.. |
| 1428 | fi |
| 1429 | else |
| 1430 | ac_srcdir_defaulted=no |
| 1431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1432 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1433 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1434 | { 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] | 1435 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1437 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1438 | ac_abs_confdir=`( |
| 1439 | 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] | 1440 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1441 | pwd)` |
| 1442 | # When building in place, set srcdir=. |
| 1443 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1444 | srcdir=. |
| 1445 | fi |
| 1446 | # Remove unnecessary trailing slashes from srcdir. |
| 1447 | # Double slashes in file names in object file debugging info |
| 1448 | # mess up M-x gdb in Emacs. |
| 1449 | case $srcdir in |
| 1450 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1451 | esac |
| 1452 | for ac_var in $ac_precious_vars; do |
| 1453 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1454 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1455 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1456 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1457 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1458 | |
| 1459 | # |
| 1460 | # Report the --help message. |
| 1461 | # |
| 1462 | if test "$ac_init_help" = "long"; then |
| 1463 | # Omit some internal or obsolete options to make the list less imposing. |
| 1464 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1465 | cat <<_ACEOF |
Tanya Lattner | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 1466 | \`configure' configures llvm 2.5svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | |
| 1468 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1469 | |
| 1470 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1471 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1472 | |
| 1473 | Defaults for the options are specified in brackets. |
| 1474 | |
| 1475 | Configuration: |
| 1476 | -h, --help display this help and exit |
| 1477 | --help=short display options specific to this package |
| 1478 | --help=recursive display the short help of all the included packages |
| 1479 | -V, --version display version information and exit |
| 1480 | -q, --quiet, --silent do not print \`checking...' messages |
| 1481 | --cache-file=FILE cache test results in FILE [disabled] |
| 1482 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1483 | -n, --no-create do not create output files |
| 1484 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1485 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | Installation directories: |
| 1487 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1488 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1489 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1490 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1491 | |
| 1492 | By default, \`make install' will install all the files in |
| 1493 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1494 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1495 | for instance \`--prefix=\$HOME'. |
| 1496 | |
| 1497 | For better control, use the options below. |
| 1498 | |
| 1499 | Fine tuning of the installation directories: |
| 1500 | --bindir=DIR user executables [EPREFIX/bin] |
| 1501 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1502 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1503 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1504 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1505 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1506 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1507 | --includedir=DIR C header files [PREFIX/include] |
| 1508 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1510 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1511 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1512 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1513 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1514 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1515 | --htmldir=DIR html documentation [DOCDIR] |
| 1516 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1517 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1518 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1519 | _ACEOF |
| 1520 | |
| 1521 | cat <<\_ACEOF |
| 1522 | |
| 1523 | System types: |
| 1524 | --build=BUILD configure for building on BUILD [guessed] |
| 1525 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1526 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1527 | _ACEOF |
| 1528 | fi |
| 1529 | |
| 1530 | if test -n "$ac_init_help"; then |
| 1531 | case $ac_init_help in |
Tanya Lattner | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 1532 | short | recursive ) echo "Configuration of llvm 2.5svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | esac |
| 1534 | cat <<\_ACEOF |
| 1535 | |
| 1536 | Optional Features: |
| 1537 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1538 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1539 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1540 | --enable-assertions |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1541 | --enable-expensive-checks |
| 1542 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1543 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1544 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1545 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1546 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1547 | --enable-pic Build LLVM with Position Independent Code (default |
| 1548 | is NO) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1549 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1550 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1551 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1552 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1553 | --enable-bindings Build specific language bindings: |
| 1554 | all,auto,none,{binding-name} (default=auto) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1555 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1556 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1557 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1559 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1560 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1561 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1562 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1563 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1564 | |
| 1565 | Optional Packages: |
| 1566 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1567 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1568 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1569 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1570 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1571 | searches PATH) |
| 1572 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1573 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1574 | --with-extra-options Specify addtional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1575 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1576 | is stdlib) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1577 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1578 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1579 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1580 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1581 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1582 | --with-udis86=<path> Use udis86 external x86 disassembler library |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1583 | |
| 1584 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1585 | CC C compiler command |
| 1586 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1587 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1588 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1589 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1590 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1591 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1592 | CXX C++ compiler command |
| 1593 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1594 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1595 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1596 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1597 | This script will default YFLAGS to the empty string to avoid a |
| 1598 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1599 | CXXCPP C++ preprocessor |
| 1600 | F77 Fortran 77 compiler command |
| 1601 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1602 | |
| 1603 | Use these variables to override the choices made by `configure' or to help |
| 1604 | it to find libraries and programs with nonstandard names/locations. |
| 1605 | |
| 1606 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1607 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1608 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1609 | fi |
| 1610 | |
| 1611 | if test "$ac_init_help" = "recursive"; then |
| 1612 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1613 | 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] | 1614 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | ac_builddir=. |
| 1616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1617 | case "$ac_dir" in |
| 1618 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1619 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1620 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1621 | # A ".." for each directory in $ac_dir_suffix. |
| 1622 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1623 | case $ac_top_builddir_sub in |
| 1624 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1625 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1626 | esac ;; |
| 1627 | esac |
| 1628 | ac_abs_top_builddir=$ac_pwd |
| 1629 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1630 | # for backward compatibility: |
| 1631 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1632 | |
| 1633 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1634 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1636 | ac_top_srcdir=$ac_top_builddir_sub |
| 1637 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1638 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1639 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1640 | ac_top_srcdir=$srcdir |
| 1641 | ac_abs_top_srcdir=$srcdir ;; |
| 1642 | *) # Relative name. |
| 1643 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1644 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1645 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1646 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1647 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1649 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1650 | # Check for guested configure. |
| 1651 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1652 | echo && |
| 1653 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1654 | elif test -f "$ac_srcdir/configure"; then |
| 1655 | echo && |
| 1656 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1657 | else |
| 1658 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1659 | fi || ac_status=$? |
| 1660 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1661 | done |
| 1662 | fi |
| 1663 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1664 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1665 | if $ac_init_version; then |
| 1666 | cat <<\_ACEOF |
Tanya Lattner | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 1667 | llvm configure 2.5svn |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1668 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1670 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1671 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1672 | This configure script is free software; the Free Software Foundation |
| 1673 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1674 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 1675 | Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1676 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1678 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1679 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | This file contains any messages produced by compilers while |
| 1681 | running configure, to aid debugging if configure makes a mistake. |
| 1682 | |
Tanya Lattner | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 1683 | It was created by llvm $as_me 2.5svn, which was |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 1684 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | |
| 1686 | $ $0 $@ |
| 1687 | |
| 1688 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1690 | { |
| 1691 | cat <<_ASUNAME |
| 1692 | ## --------- ## |
| 1693 | ## Platform. ## |
| 1694 | ## --------- ## |
| 1695 | |
| 1696 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1697 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1698 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1699 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1700 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1701 | |
| 1702 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1703 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1704 | |
| 1705 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1706 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1707 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1709 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1710 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1711 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1712 | |
| 1713 | _ASUNAME |
| 1714 | |
| 1715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1716 | for as_dir in $PATH |
| 1717 | do |
| 1718 | IFS=$as_save_IFS |
| 1719 | test -z "$as_dir" && as_dir=. |
| 1720 | echo "PATH: $as_dir" |
| 1721 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1722 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1723 | |
| 1724 | } >&5 |
| 1725 | |
| 1726 | cat >&5 <<_ACEOF |
| 1727 | |
| 1728 | |
| 1729 | ## ----------- ## |
| 1730 | ## Core tests. ## |
| 1731 | ## ----------- ## |
| 1732 | |
| 1733 | _ACEOF |
| 1734 | |
| 1735 | |
| 1736 | # Keep a trace of the command line. |
| 1737 | # 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] | 1738 | # 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] | 1739 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1740 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1741 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1742 | ac_configure_args0= |
| 1743 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1744 | ac_must_keep_next=false |
| 1745 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1747 | for ac_arg |
| 1748 | do |
| 1749 | case $ac_arg in |
| 1750 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1751 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1752 | | -silent | --silent | --silen | --sile | --sil) |
| 1753 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1754 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1755 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1756 | esac |
| 1757 | case $ac_pass in |
| 1758 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1759 | 2) |
| 1760 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1761 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1762 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1763 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1764 | case $ac_arg in |
| 1765 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1766 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1767 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1768 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1769 | case "$ac_configure_args0 " in |
| 1770 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1771 | esac |
| 1772 | ;; |
| 1773 | -* ) ac_must_keep_next=true ;; |
| 1774 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1775 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1776 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1777 | ;; |
| 1778 | esac |
| 1779 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1780 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1781 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1782 | $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] | 1783 | |
| 1784 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1785 | # config.log. We remove comments because anyway the quotes in there |
| 1786 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1787 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1788 | # 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] | 1789 | trap 'exit_status=$? |
| 1790 | # Save into config.log some information that might help in debugging. |
| 1791 | { |
| 1792 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1793 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | cat <<\_ASBOX |
| 1795 | ## ---------------- ## |
| 1796 | ## Cache variables. ## |
| 1797 | ## ---------------- ## |
| 1798 | _ASBOX |
| 1799 | echo |
| 1800 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1801 | ( |
| 1802 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1803 | eval ac_val=\$$ac_var |
| 1804 | case $ac_val in #( |
| 1805 | *${as_nl}*) |
| 1806 | case $ac_var in #( |
| 1807 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1808 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1809 | esac |
| 1810 | case $ac_var in #( |
| 1811 | _ | IFS | as_nl) ;; #( |
| 1812 | *) $as_unset $ac_var ;; |
| 1813 | esac ;; |
| 1814 | esac |
| 1815 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1817 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1818 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1819 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1820 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1821 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1822 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1823 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1824 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1825 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1826 | esac | |
| 1827 | sort |
| 1828 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1830 | |
| 1831 | cat <<\_ASBOX |
| 1832 | ## ----------------- ## |
| 1833 | ## Output variables. ## |
| 1834 | ## ----------------- ## |
| 1835 | _ASBOX |
| 1836 | echo |
| 1837 | for ac_var in $ac_subst_vars |
| 1838 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1839 | eval ac_val=\$$ac_var |
| 1840 | case $ac_val in |
| 1841 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1842 | esac |
| 1843 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1844 | done | sort |
| 1845 | echo |
| 1846 | |
| 1847 | if test -n "$ac_subst_files"; then |
| 1848 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1849 | ## ------------------- ## |
| 1850 | ## File substitutions. ## |
| 1851 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1852 | _ASBOX |
| 1853 | echo |
| 1854 | for ac_var in $ac_subst_files |
| 1855 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1856 | eval ac_val=\$$ac_var |
| 1857 | case $ac_val in |
| 1858 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1859 | esac |
| 1860 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1861 | done | sort |
| 1862 | echo |
| 1863 | fi |
| 1864 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1865 | if test -s confdefs.h; then |
| 1866 | cat <<\_ASBOX |
| 1867 | ## ----------- ## |
| 1868 | ## confdefs.h. ## |
| 1869 | ## ----------- ## |
| 1870 | _ASBOX |
| 1871 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1872 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1873 | echo |
| 1874 | fi |
| 1875 | test "$ac_signal" != 0 && |
| 1876 | echo "$as_me: caught signal $ac_signal" |
| 1877 | echo "$as_me: exit $exit_status" |
| 1878 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1879 | rm -f core *.core core.conftest.* && |
| 1880 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1881 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1882 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1883 | for ac_signal in 1 2 13 15; do |
| 1884 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1885 | done |
| 1886 | ac_signal=0 |
| 1887 | |
| 1888 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1889 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1890 | |
| 1891 | # Predefined preprocessor variables. |
| 1892 | |
| 1893 | cat >>confdefs.h <<_ACEOF |
| 1894 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1895 | _ACEOF |
| 1896 | |
| 1897 | |
| 1898 | cat >>confdefs.h <<_ACEOF |
| 1899 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1900 | _ACEOF |
| 1901 | |
| 1902 | |
| 1903 | cat >>confdefs.h <<_ACEOF |
| 1904 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1905 | _ACEOF |
| 1906 | |
| 1907 | |
| 1908 | cat >>confdefs.h <<_ACEOF |
| 1909 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1910 | _ACEOF |
| 1911 | |
| 1912 | |
| 1913 | cat >>confdefs.h <<_ACEOF |
| 1914 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1915 | _ACEOF |
| 1916 | |
| 1917 | |
| 1918 | # Let the site file select an alternate cache file if it wants to. |
| 1919 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1920 | if test -n "$CONFIG_SITE"; then |
| 1921 | set x "$CONFIG_SITE" |
| 1922 | elif test "x$prefix" != xNONE; then |
| 1923 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1924 | else |
| 1925 | set x "$ac_default_prefix/share/config.site" \ |
| 1926 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1928 | shift |
| 1929 | for ac_site_file |
| 1930 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1931 | if test -r "$ac_site_file"; then |
| 1932 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1933 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1934 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1935 | . "$ac_site_file" |
| 1936 | fi |
| 1937 | done |
| 1938 | |
| 1939 | if test -r "$cache_file"; then |
| 1940 | # Some versions of bash will fail to source /dev/null (special |
| 1941 | # files actually), so we avoid doing that. |
| 1942 | if test -f "$cache_file"; then |
| 1943 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1944 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1945 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1946 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1947 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1948 | esac |
| 1949 | fi |
| 1950 | else |
| 1951 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1952 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1953 | >$cache_file |
| 1954 | fi |
| 1955 | |
| 1956 | # Check that the precious variables saved in the cache have kept the same |
| 1957 | # value. |
| 1958 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1959 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1960 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1961 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1962 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1963 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1964 | case $ac_old_set,$ac_new_set in |
| 1965 | set,) |
| 1966 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1967 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1968 | ac_cache_corrupted=: ;; |
| 1969 | ,set) |
| 1970 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1971 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1972 | ac_cache_corrupted=: ;; |
| 1973 | ,);; |
| 1974 | *) |
| 1975 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1976 | { 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] | 1977 | 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] | 1978 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1979 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1980 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1981 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1982 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1983 | fi;; |
| 1984 | esac |
| 1985 | # Pass precious variables to config.status. |
| 1986 | if test "$ac_new_set" = set; then |
| 1987 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1988 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1989 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1990 | esac |
| 1991 | case " $ac_configure_args " in |
| 1992 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1993 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1994 | esac |
| 1995 | fi |
| 1996 | done |
| 1997 | if $ac_cache_corrupted; then |
| 1998 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1999 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2000 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2001 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2002 | { (exit 1); exit 1; }; } |
| 2003 | fi |
| 2004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2029 | ac_ext=c |
| 2030 | ac_cpp='$CPP $CPPFLAGS' |
| 2031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2034 | |
| 2035 | |
| 2036 | |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 2037 | LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2046 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2047 | if 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/install.sh"; 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/install.sh -c" |
| 2054 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2055 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2056 | ac_aux_dir=$ac_dir |
| 2057 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2058 | break |
| 2059 | fi |
| 2060 | done |
| 2061 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2063 | 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] | 2064 | { (exit 1); exit 1; }; } |
| 2065 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | |
| 2067 | # These three variables are undocumented and unsupported, |
| 2068 | # and are intended to be withdrawn in a future Autoconf release. |
| 2069 | # They can cause serious problems if a builder's source tree is in a directory |
| 2070 | # whose full name contains unusual characters. |
| 2071 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2072 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2073 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2074 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2076 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2077 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2078 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2079 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2080 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2081 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2082 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2083 | fi |
| 2084 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2085 | for i in `ls ${srcdir}/projects` |
| 2086 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2087 | if test -d ${srcdir}/projects/${i} ; then |
| 2088 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2089 | CVS) ;; |
| 2090 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2091 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2092 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2093 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2094 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2095 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2096 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2097 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2098 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2099 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2100 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2101 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2102 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2103 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2104 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2105 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2106 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2107 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2108 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2109 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2110 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2111 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2112 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2113 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2114 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2115 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2116 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2117 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2118 | 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] | 2119 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2120 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2121 | fi |
| 2122 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2123 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2124 | |
| 2125 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2126 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2127 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2128 | 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] | 2129 | { (exit 1); exit 1; }; } |
| 2130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2131 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2132 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2133 | if test "${ac_cv_build+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2135 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2136 | ac_build_alias=$build_alias |
| 2137 | test "x$ac_build_alias" = x && |
| 2138 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2139 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2140 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2141 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2142 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2143 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2144 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2145 | 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] | 2146 | { (exit 1); exit 1; }; } |
| 2147 | |
| 2148 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2149 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2150 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2151 | case $ac_cv_build in |
| 2152 | *-*-*) ;; |
| 2153 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2154 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2155 | { (exit 1); exit 1; }; };; |
| 2156 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2157 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2158 | ac_save_IFS=$IFS; IFS='-' |
| 2159 | set x $ac_cv_build |
| 2160 | shift |
| 2161 | build_cpu=$1 |
| 2162 | build_vendor=$2 |
| 2163 | shift; shift |
| 2164 | # Remember, the first character of IFS is used to create $*, |
| 2165 | # except with old shells: |
| 2166 | build_os=$* |
| 2167 | IFS=$ac_save_IFS |
| 2168 | 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] | 2169 | |
| 2170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2171 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2172 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2173 | if test "${ac_cv_host+set}" = set; then |
| 2174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2175 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2176 | if test "x$host_alias" = x; then |
| 2177 | ac_cv_host=$ac_cv_build |
| 2178 | else |
| 2179 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2180 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2181 | 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] | 2182 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2183 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2184 | |
| 2185 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2187 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2188 | case $ac_cv_host in |
| 2189 | *-*-*) ;; |
| 2190 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2191 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2192 | { (exit 1); exit 1; }; };; |
| 2193 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2195 | ac_save_IFS=$IFS; IFS='-' |
| 2196 | set x $ac_cv_host |
| 2197 | shift |
| 2198 | host_cpu=$1 |
| 2199 | host_vendor=$2 |
| 2200 | shift; shift |
| 2201 | # Remember, the first character of IFS is used to create $*, |
| 2202 | # except with old shells: |
| 2203 | host_os=$* |
| 2204 | IFS=$ac_save_IFS |
| 2205 | 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] | 2206 | |
| 2207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2208 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2209 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2210 | if test "${ac_cv_target+set}" = set; then |
| 2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2212 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2213 | if test "x$target_alias" = x; then |
| 2214 | ac_cv_target=$ac_cv_host |
| 2215 | else |
| 2216 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2217 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2218 | 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] | 2219 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2220 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2221 | |
| 2222 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2223 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2224 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2225 | case $ac_cv_target in |
| 2226 | *-*-*) ;; |
| 2227 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2228 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2229 | { (exit 1); exit 1; }; };; |
| 2230 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2231 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2232 | ac_save_IFS=$IFS; IFS='-' |
| 2233 | set x $ac_cv_target |
| 2234 | shift |
| 2235 | target_cpu=$1 |
| 2236 | target_vendor=$2 |
| 2237 | shift; shift |
| 2238 | # Remember, the first character of IFS is used to create $*, |
| 2239 | # except with old shells: |
| 2240 | target_os=$* |
| 2241 | IFS=$ac_save_IFS |
| 2242 | 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] | 2243 | |
| 2244 | |
| 2245 | # The aliases save the names the user supplied, while $host etc. |
| 2246 | # will get canonicalized. |
| 2247 | test -n "$target_alias" && |
| 2248 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2249 | NONENONEs,x,x, && |
| 2250 | program_prefix=${target_alias}- |
| 2251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2252 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2253 | 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] | 2254 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2256 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2257 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2258 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2260 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2261 | llvm_cv_os_type="AIX" |
| 2262 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2263 | *-*-irix*) |
| 2264 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2265 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2266 | llvm_cv_os_type="IRIX" |
| 2267 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2268 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2269 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2270 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2271 | llvm_cv_os_type="Cygwin" |
| 2272 | llvm_cv_platform_type="Unix" ;; |
| 2273 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2275 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | llvm_cv_os_type="Darwin" |
| 2277 | llvm_cv_platform_type="Unix" ;; |
| 2278 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2279 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2280 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2281 | llvm_cv_os_type="FreeBSD" |
| 2282 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2283 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2284 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2285 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2286 | llvm_cv_os_type="OpenBSD" |
| 2287 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2288 | *-*-netbsd*) |
| 2289 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2290 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2291 | llvm_cv_os_type="NetBSD" |
| 2292 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2293 | *-*-dragonfly*) |
| 2294 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2295 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2296 | llvm_cv_os_type="DragonFly" |
| 2297 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2298 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2299 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2300 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2301 | llvm_cv_os_type="HP-UX" |
| 2302 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2303 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2304 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2305 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2306 | llvm_cv_os_type="Interix" |
| 2307 | llvm_cv_platform_type="Unix" ;; |
| 2308 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2309 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2310 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2311 | llvm_cv_os_type="Linux" |
| 2312 | llvm_cv_platform_type="Unix" ;; |
| 2313 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2314 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2315 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2316 | llvm_cv_os_type="SunOS" |
| 2317 | llvm_cv_platform_type="Unix" ;; |
| 2318 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2319 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2320 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2321 | llvm_cv_os_type="Win32" |
| 2322 | llvm_cv_platform_type="Win32" ;; |
| 2323 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2324 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2325 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2326 | llvm_cv_os_type="MingW" |
| 2327 | llvm_cv_platform_type="Win32" ;; |
| 2328 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2329 | llvm_cv_link_all_option="" |
| 2330 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | llvm_cv_os_type="Unknown" |
| 2332 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2333 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2334 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2335 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2336 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2337 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2338 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2339 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2340 | 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] | 2341 | { (exit 1); exit 1; }; } |
| 2342 | fi |
| 2343 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2344 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2345 | |
| 2346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2347 | LINKALL=$llvm_cv_link_all_option |
| 2348 | |
| 2349 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2350 | |
| 2351 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2352 | case $llvm_cv_platform_type in |
| 2353 | Unix) |
| 2354 | |
| 2355 | cat >>confdefs.h <<\_ACEOF |
| 2356 | #define LLVM_ON_UNIX 1 |
| 2357 | _ACEOF |
| 2358 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2359 | LLVM_ON_UNIX=1 |
| 2360 | |
| 2361 | LLVM_ON_WIN32=0 |
| 2362 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2363 | ;; |
| 2364 | Win32) |
| 2365 | |
| 2366 | cat >>confdefs.h <<\_ACEOF |
| 2367 | #define LLVM_ON_WIN32 1 |
| 2368 | _ACEOF |
| 2369 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2370 | LLVM_ON_UNIX=0 |
| 2371 | |
| 2372 | LLVM_ON_WIN32=1 |
| 2373 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2374 | ;; |
| 2375 | esac |
| 2376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2377 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2378 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2379 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2381 | else |
| 2382 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2383 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2384 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2385 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2386 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2387 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2388 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2389 | arm-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2390 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2391 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 2392 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2393 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2394 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2396 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2397 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2398 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2399 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2400 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2401 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2402 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2403 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2404 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2405 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2406 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2407 | ac_ext=c |
| 2408 | ac_cpp='$CPP $CPPFLAGS' |
| 2409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2412 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2413 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2414 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2415 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2419 | else |
| 2420 | if test -n "$CC"; then |
| 2421 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2422 | else |
| 2423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2424 | for as_dir in $PATH |
| 2425 | do |
| 2426 | IFS=$as_save_IFS |
| 2427 | test -z "$as_dir" && as_dir=. |
| 2428 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2429 | 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] | 2430 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2432 | break 2 |
| 2433 | fi |
| 2434 | done |
| 2435 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2436 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2437 | |
| 2438 | fi |
| 2439 | fi |
| 2440 | CC=$ac_cv_prog_CC |
| 2441 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2442 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2443 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2444 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2445 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2446 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2447 | fi |
| 2448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2449 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2450 | fi |
| 2451 | if test -z "$ac_cv_prog_CC"; then |
| 2452 | ac_ct_CC=$CC |
| 2453 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2454 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2455 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2457 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2459 | else |
| 2460 | if test -n "$ac_ct_CC"; then |
| 2461 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2462 | else |
| 2463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2464 | for as_dir in $PATH |
| 2465 | do |
| 2466 | IFS=$as_save_IFS |
| 2467 | test -z "$as_dir" && as_dir=. |
| 2468 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2469 | 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] | 2470 | ac_cv_prog_ac_ct_CC="gcc" |
| 2471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2472 | break 2 |
| 2473 | fi |
| 2474 | done |
| 2475 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2476 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2477 | |
| 2478 | fi |
| 2479 | fi |
| 2480 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2481 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2482 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2483 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2484 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2485 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2486 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2487 | fi |
| 2488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2489 | if test "x$ac_ct_CC" = x; then |
| 2490 | CC="" |
| 2491 | else |
| 2492 | case $cross_compiling:$ac_tool_warned in |
| 2493 | yes:) |
| 2494 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2495 | whose name does not start with the host triplet. If you think this |
| 2496 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2497 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2498 | whose name does not start with the host triplet. If you think this |
| 2499 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2500 | ac_tool_warned=yes ;; |
| 2501 | esac |
| 2502 | CC=$ac_ct_CC |
| 2503 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2504 | else |
| 2505 | CC="$ac_cv_prog_CC" |
| 2506 | fi |
| 2507 | |
| 2508 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2509 | if test -n "$ac_tool_prefix"; then |
| 2510 | # 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] | 2511 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2514 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2516 | else |
| 2517 | if test -n "$CC"; then |
| 2518 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2519 | else |
| 2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2521 | for as_dir in $PATH |
| 2522 | do |
| 2523 | IFS=$as_save_IFS |
| 2524 | test -z "$as_dir" && as_dir=. |
| 2525 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2526 | 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] | 2527 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2529 | break 2 |
| 2530 | fi |
| 2531 | done |
| 2532 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2533 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | |
| 2535 | fi |
| 2536 | fi |
| 2537 | CC=$ac_cv_prog_CC |
| 2538 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2539 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2540 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2541 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2542 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2543 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2544 | fi |
| 2545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2546 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2547 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2548 | fi |
| 2549 | if test -z "$CC"; then |
| 2550 | # Extract the first word of "cc", so it can be a program name with args. |
| 2551 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2554 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2556 | else |
| 2557 | if test -n "$CC"; then |
| 2558 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2559 | else |
| 2560 | ac_prog_rejected=no |
| 2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2562 | for as_dir in $PATH |
| 2563 | do |
| 2564 | IFS=$as_save_IFS |
| 2565 | test -z "$as_dir" && as_dir=. |
| 2566 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2567 | 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] | 2568 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2569 | ac_prog_rejected=yes |
| 2570 | continue |
| 2571 | fi |
| 2572 | ac_cv_prog_CC="cc" |
| 2573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2574 | break 2 |
| 2575 | fi |
| 2576 | done |
| 2577 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2578 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2579 | |
| 2580 | if test $ac_prog_rejected = yes; then |
| 2581 | # We found a bogon in the path, so make sure we never use it. |
| 2582 | set dummy $ac_cv_prog_CC |
| 2583 | shift |
| 2584 | if test $# != 0; then |
| 2585 | # We chose a different compiler from the bogus one. |
| 2586 | # However, it has the same basename, so the bogon will be chosen |
| 2587 | # first if we set CC to just the basename; use the full file name. |
| 2588 | shift |
| 2589 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2590 | fi |
| 2591 | fi |
| 2592 | fi |
| 2593 | fi |
| 2594 | CC=$ac_cv_prog_CC |
| 2595 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2596 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2597 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2598 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2599 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2600 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2601 | fi |
| 2602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2604 | fi |
| 2605 | if test -z "$CC"; then |
| 2606 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2607 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2608 | do |
| 2609 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2610 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2613 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2615 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | if test -n "$CC"; then |
| 2617 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | else |
| 2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2620 | for as_dir in $PATH |
| 2621 | do |
| 2622 | IFS=$as_save_IFS |
| 2623 | test -z "$as_dir" && as_dir=. |
| 2624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2628 | break 2 |
| 2629 | fi |
| 2630 | done |
| 2631 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2632 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | |
| 2634 | fi |
| 2635 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2636 | CC=$ac_cv_prog_CC |
| 2637 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2638 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2639 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2640 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2642 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 | fi |
| 2644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2645 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2646 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2647 | done |
| 2648 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2649 | if test -z "$CC"; then |
| 2650 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2651 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2652 | do |
| 2653 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2654 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2655 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2657 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2659 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2660 | if test -n "$ac_ct_CC"; then |
| 2661 | 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] | 2662 | else |
| 2663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2664 | for as_dir in $PATH |
| 2665 | do |
| 2666 | IFS=$as_save_IFS |
| 2667 | test -z "$as_dir" && as_dir=. |
| 2668 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2669 | 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] | 2670 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2672 | break 2 |
| 2673 | fi |
| 2674 | done |
| 2675 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2676 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | |
| 2678 | fi |
| 2679 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2680 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2681 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2683 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2684 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2685 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2686 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2687 | fi |
| 2688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2689 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2690 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2691 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2693 | if test "x$ac_ct_CC" = x; then |
| 2694 | CC="" |
| 2695 | else |
| 2696 | case $cross_compiling:$ac_tool_warned in |
| 2697 | yes:) |
| 2698 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2699 | whose name does not start with the host triplet. If you think this |
| 2700 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2701 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2702 | whose name does not start with the host triplet. If you think this |
| 2703 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2704 | ac_tool_warned=yes ;; |
| 2705 | esac |
| 2706 | CC=$ac_ct_CC |
| 2707 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2708 | fi |
| 2709 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | fi |
| 2711 | |
| 2712 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2713 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2714 | See \`config.log' for more details." >&5 |
| 2715 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2716 | See \`config.log' for more details." >&2;} |
| 2717 | { (exit 1); exit 1; }; } |
| 2718 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2719 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2720 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2721 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2722 | { (ac_try="$ac_compiler --version >&5" |
| 2723 | case "(($ac_try" in |
| 2724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2725 | *) ac_try_echo=$ac_try;; |
| 2726 | esac |
| 2727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2728 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2729 | ac_status=$? |
| 2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2731 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2732 | { (ac_try="$ac_compiler -v >&5" |
| 2733 | case "(($ac_try" in |
| 2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2735 | *) ac_try_echo=$ac_try;; |
| 2736 | esac |
| 2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2738 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2739 | ac_status=$? |
| 2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2741 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2742 | { (ac_try="$ac_compiler -V >&5" |
| 2743 | case "(($ac_try" in |
| 2744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2745 | *) ac_try_echo=$ac_try;; |
| 2746 | esac |
| 2747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2748 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2749 | ac_status=$? |
| 2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2751 | (exit $ac_status); } |
| 2752 | |
| 2753 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2754 | /* confdefs.h. */ |
| 2755 | _ACEOF |
| 2756 | cat confdefs.h >>conftest.$ac_ext |
| 2757 | cat >>conftest.$ac_ext <<_ACEOF |
| 2758 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2759 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2760 | int |
| 2761 | main () |
| 2762 | { |
| 2763 | |
| 2764 | ; |
| 2765 | return 0; |
| 2766 | } |
| 2767 | _ACEOF |
| 2768 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2769 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2770 | # Try to create an executable without -o first, disregard a.out. |
| 2771 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2772 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2773 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2774 | 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] | 2775 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2776 | # |
| 2777 | # List of possible output files, starting from the most likely. |
| 2778 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2779 | # only as a last resort. b.out is created by i960 compilers. |
| 2780 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2781 | # |
| 2782 | # The IRIX 6 linker writes into existing files which may not be |
| 2783 | # executable, retaining their permissions. Remove them first so a |
| 2784 | # subsequent execution test works. |
| 2785 | ac_rmfiles= |
| 2786 | for ac_file in $ac_files |
| 2787 | do |
| 2788 | case $ac_file in |
| 2789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2790 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2791 | esac |
| 2792 | done |
| 2793 | rm -f $ac_rmfiles |
| 2794 | |
| 2795 | if { (ac_try="$ac_link_default" |
| 2796 | case "(($ac_try" in |
| 2797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2798 | *) ac_try_echo=$ac_try;; |
| 2799 | esac |
| 2800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2801 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2802 | ac_status=$? |
| 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2804 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2805 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2806 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2807 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2808 | # so that the user can short-circuit this test for compilers unknown to |
| 2809 | # Autoconf. |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2810 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2811 | do |
| 2812 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2813 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2814 | *.$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] | 2815 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2816 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2817 | # We found the default executable, but exeext='' is most |
| 2818 | # certainly right. |
| 2819 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2820 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2821 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2822 | then :; else |
| 2823 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2824 | fi |
| 2825 | # We set ac_cv_exeext here because the later test for it is not |
| 2826 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2827 | # argument, so we may need to know it at that point already. |
| 2828 | # Even if this section looks crufty: it has the advantage of |
| 2829 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2830 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2831 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2832 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2833 | esac |
| 2834 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2835 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2836 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2837 | else |
| 2838 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2840 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2841 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2842 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2843 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2844 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | { (exit 77); exit 77; }; } |
| 2846 | fi |
| 2847 | |
| 2848 | ac_exeext=$ac_cv_exeext |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 2849 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2850 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2852 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2853 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2854 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2855 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2856 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2857 | # If not cross compiling, check that we can run a simple program. |
| 2858 | if test "$cross_compiling" != yes; then |
| 2859 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2860 | { (case "(($ac_try" in |
| 2861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2862 | *) ac_try_echo=$ac_try;; |
| 2863 | esac |
| 2864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2865 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2866 | ac_status=$? |
| 2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2868 | (exit $ac_status); }; }; then |
| 2869 | cross_compiling=no |
| 2870 | else |
| 2871 | if test "$cross_compiling" = maybe; then |
| 2872 | cross_compiling=yes |
| 2873 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2874 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2875 | If you meant to cross compile, use \`--host'. |
| 2876 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2877 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2878 | If you meant to cross compile, use \`--host'. |
| 2879 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2880 | { (exit 1); exit 1; }; } |
| 2881 | fi |
| 2882 | fi |
| 2883 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2884 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2885 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2886 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2887 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2888 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2889 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2890 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2891 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2892 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2893 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2894 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2896 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2897 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2898 | if { (ac_try="$ac_link" |
| 2899 | case "(($ac_try" in |
| 2900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2901 | *) ac_try_echo=$ac_try;; |
| 2902 | esac |
| 2903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2904 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 | ac_status=$? |
| 2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2907 | (exit $ac_status); }; then |
| 2908 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2909 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2910 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2911 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2912 | for ac_file in conftest.exe conftest conftest.*; do |
| 2913 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2915 | *.$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] | 2916 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2917 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2918 | * ) break;; |
| 2919 | esac |
| 2920 | done |
| 2921 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2922 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2923 | See \`config.log' for more details." >&5 |
| 2924 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2925 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | { (exit 1); exit 1; }; } |
| 2927 | fi |
| 2928 | |
| 2929 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2930 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2931 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2932 | |
| 2933 | rm -f conftest.$ac_ext |
| 2934 | EXEEXT=$ac_cv_exeext |
| 2935 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2936 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2937 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2938 | if test "${ac_cv_objext+set}" = set; then |
| 2939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2940 | else |
| 2941 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2942 | /* confdefs.h. */ |
| 2943 | _ACEOF |
| 2944 | cat confdefs.h >>conftest.$ac_ext |
| 2945 | cat >>conftest.$ac_ext <<_ACEOF |
| 2946 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2947 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2948 | int |
| 2949 | main () |
| 2950 | { |
| 2951 | |
| 2952 | ; |
| 2953 | return 0; |
| 2954 | } |
| 2955 | _ACEOF |
| 2956 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2957 | if { (ac_try="$ac_compile" |
| 2958 | case "(($ac_try" in |
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2960 | *) ac_try_echo=$ac_try;; |
| 2961 | esac |
| 2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2963 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2964 | ac_status=$? |
| 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2966 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2967 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2968 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2970 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2972 | break;; |
| 2973 | esac |
| 2974 | done |
| 2975 | else |
| 2976 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2978 | |
| 2979 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2980 | See \`config.log' for more details." >&5 |
| 2981 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2982 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2983 | { (exit 1); exit 1; }; } |
| 2984 | fi |
| 2985 | |
| 2986 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2988 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2989 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2990 | OBJEXT=$ac_cv_objext |
| 2991 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2992 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2993 | 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] | 2994 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2996 | else |
| 2997 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2998 | /* confdefs.h. */ |
| 2999 | _ACEOF |
| 3000 | cat confdefs.h >>conftest.$ac_ext |
| 3001 | cat >>conftest.$ac_ext <<_ACEOF |
| 3002 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3003 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3004 | int |
| 3005 | main () |
| 3006 | { |
| 3007 | #ifndef __GNUC__ |
| 3008 | choke me |
| 3009 | #endif |
| 3010 | |
| 3011 | ; |
| 3012 | return 0; |
| 3013 | } |
| 3014 | _ACEOF |
| 3015 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3016 | if { (ac_try="$ac_compile" |
| 3017 | case "(($ac_try" in |
| 3018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3019 | *) ac_try_echo=$ac_try;; |
| 3020 | esac |
| 3021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3022 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3023 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3025 | rm -f conftest.er1 |
| 3026 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3028 | (exit $ac_status); } && |
| 3029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3030 | { (case "(($ac_try" in |
| 3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3032 | *) ac_try_echo=$ac_try;; |
| 3033 | esac |
| 3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3035 | (eval "$ac_try") 2>&5 |
| 3036 | ac_status=$? |
| 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3038 | (exit $ac_status); }; } && |
| 3039 | { ac_try='test -s conftest.$ac_objext' |
| 3040 | { (case "(($ac_try" in |
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3042 | *) ac_try_echo=$ac_try;; |
| 3043 | esac |
| 3044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3045 | (eval "$ac_try") 2>&5 |
| 3046 | ac_status=$? |
| 3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3048 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3049 | ac_compiler_gnu=yes |
| 3050 | else |
| 3051 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3054 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3055 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3056 | |
| 3057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3058 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3059 | |
| 3060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3061 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3062 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3063 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3064 | ac_test_CFLAGS=${CFLAGS+set} |
| 3065 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3066 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3067 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3068 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3070 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3071 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3072 | ac_c_werror_flag=yes |
| 3073 | ac_cv_prog_cc_g=no |
| 3074 | CFLAGS="-g" |
| 3075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3076 | /* confdefs.h. */ |
| 3077 | _ACEOF |
| 3078 | cat confdefs.h >>conftest.$ac_ext |
| 3079 | cat >>conftest.$ac_ext <<_ACEOF |
| 3080 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3081 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3082 | int |
| 3083 | main () |
| 3084 | { |
| 3085 | |
| 3086 | ; |
| 3087 | return 0; |
| 3088 | } |
| 3089 | _ACEOF |
| 3090 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3091 | if { (ac_try="$ac_compile" |
| 3092 | case "(($ac_try" in |
| 3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3094 | *) ac_try_echo=$ac_try;; |
| 3095 | esac |
| 3096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3097 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3098 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3100 | rm -f conftest.er1 |
| 3101 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3103 | (exit $ac_status); } && |
| 3104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3105 | { (case "(($ac_try" in |
| 3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3107 | *) ac_try_echo=$ac_try;; |
| 3108 | esac |
| 3109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3110 | (eval "$ac_try") 2>&5 |
| 3111 | ac_status=$? |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); }; } && |
| 3114 | { ac_try='test -s conftest.$ac_objext' |
| 3115 | { (case "(($ac_try" in |
| 3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3117 | *) ac_try_echo=$ac_try;; |
| 3118 | esac |
| 3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3120 | (eval "$ac_try") 2>&5 |
| 3121 | ac_status=$? |
| 3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3123 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3124 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3125 | else |
| 3126 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3129 | CFLAGS="" |
| 3130 | cat >conftest.$ac_ext <<_ACEOF |
| 3131 | /* confdefs.h. */ |
| 3132 | _ACEOF |
| 3133 | cat confdefs.h >>conftest.$ac_ext |
| 3134 | cat >>conftest.$ac_ext <<_ACEOF |
| 3135 | /* end confdefs.h. */ |
| 3136 | |
| 3137 | int |
| 3138 | main () |
| 3139 | { |
| 3140 | |
| 3141 | ; |
| 3142 | return 0; |
| 3143 | } |
| 3144 | _ACEOF |
| 3145 | rm -f conftest.$ac_objext |
| 3146 | if { (ac_try="$ac_compile" |
| 3147 | case "(($ac_try" in |
| 3148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3149 | *) ac_try_echo=$ac_try;; |
| 3150 | esac |
| 3151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3152 | (eval "$ac_compile") 2>conftest.er1 |
| 3153 | ac_status=$? |
| 3154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3155 | rm -f conftest.er1 |
| 3156 | cat conftest.err >&5 |
| 3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3158 | (exit $ac_status); } && |
| 3159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3160 | { (case "(($ac_try" in |
| 3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3162 | *) ac_try_echo=$ac_try;; |
| 3163 | esac |
| 3164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3165 | (eval "$ac_try") 2>&5 |
| 3166 | ac_status=$? |
| 3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3168 | (exit $ac_status); }; } && |
| 3169 | { ac_try='test -s conftest.$ac_objext' |
| 3170 | { (case "(($ac_try" in |
| 3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3172 | *) ac_try_echo=$ac_try;; |
| 3173 | esac |
| 3174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3175 | (eval "$ac_try") 2>&5 |
| 3176 | ac_status=$? |
| 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3178 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3179 | : |
| 3180 | else |
| 3181 | echo "$as_me: failed program was:" >&5 |
| 3182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3183 | |
| 3184 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3185 | CFLAGS="-g" |
| 3186 | cat >conftest.$ac_ext <<_ACEOF |
| 3187 | /* confdefs.h. */ |
| 3188 | _ACEOF |
| 3189 | cat confdefs.h >>conftest.$ac_ext |
| 3190 | cat >>conftest.$ac_ext <<_ACEOF |
| 3191 | /* end confdefs.h. */ |
| 3192 | |
| 3193 | int |
| 3194 | main () |
| 3195 | { |
| 3196 | |
| 3197 | ; |
| 3198 | return 0; |
| 3199 | } |
| 3200 | _ACEOF |
| 3201 | rm -f conftest.$ac_objext |
| 3202 | if { (ac_try="$ac_compile" |
| 3203 | case "(($ac_try" in |
| 3204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3205 | *) ac_try_echo=$ac_try;; |
| 3206 | esac |
| 3207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3208 | (eval "$ac_compile") 2>conftest.er1 |
| 3209 | ac_status=$? |
| 3210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3211 | rm -f conftest.er1 |
| 3212 | cat conftest.err >&5 |
| 3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3214 | (exit $ac_status); } && |
| 3215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3216 | { (case "(($ac_try" in |
| 3217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3218 | *) ac_try_echo=$ac_try;; |
| 3219 | esac |
| 3220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3221 | (eval "$ac_try") 2>&5 |
| 3222 | ac_status=$? |
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3224 | (exit $ac_status); }; } && |
| 3225 | { ac_try='test -s conftest.$ac_objext' |
| 3226 | { (case "(($ac_try" in |
| 3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3228 | *) ac_try_echo=$ac_try;; |
| 3229 | esac |
| 3230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3231 | (eval "$ac_try") 2>&5 |
| 3232 | ac_status=$? |
| 3233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3234 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3235 | ac_cv_prog_cc_g=yes |
| 3236 | else |
| 3237 | echo "$as_me: failed program was:" >&5 |
| 3238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3239 | |
| 3240 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3241 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3242 | |
| 3243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3244 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3245 | |
| 3246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3247 | fi |
| 3248 | |
| 3249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3250 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3251 | fi |
| 3252 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3253 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3254 | if test "$ac_test_CFLAGS" = set; then |
| 3255 | CFLAGS=$ac_save_CFLAGS |
| 3256 | elif test $ac_cv_prog_cc_g = yes; then |
| 3257 | if test "$GCC" = yes; then |
| 3258 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3259 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3260 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3261 | fi |
| 3262 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3263 | if test "$GCC" = yes; then |
| 3264 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3265 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3266 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3267 | fi |
| 3268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3269 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3270 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3271 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3273 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3274 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3275 | ac_save_CC=$CC |
| 3276 | cat >conftest.$ac_ext <<_ACEOF |
| 3277 | /* confdefs.h. */ |
| 3278 | _ACEOF |
| 3279 | cat confdefs.h >>conftest.$ac_ext |
| 3280 | cat >>conftest.$ac_ext <<_ACEOF |
| 3281 | /* end confdefs.h. */ |
| 3282 | #include <stdarg.h> |
| 3283 | #include <stdio.h> |
| 3284 | #include <sys/types.h> |
| 3285 | #include <sys/stat.h> |
| 3286 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3287 | struct buf { int x; }; |
| 3288 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3289 | static char *e (p, i) |
| 3290 | char **p; |
| 3291 | int i; |
| 3292 | { |
| 3293 | return p[i]; |
| 3294 | } |
| 3295 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3296 | { |
| 3297 | char *s; |
| 3298 | va_list v; |
| 3299 | va_start (v,p); |
| 3300 | s = g (p, va_arg (v,int)); |
| 3301 | va_end (v); |
| 3302 | return s; |
| 3303 | } |
| 3304 | |
| 3305 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3306 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3307 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3308 | 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] | 3309 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3310 | 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] | 3311 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3312 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3314 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3315 | inside strings and character constants. */ |
| 3316 | #define FOO(x) 'x' |
| 3317 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3318 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3319 | int test (int i, double x); |
| 3320 | struct s1 {int (*f) (int a);}; |
| 3321 | struct s2 {int (*f) (double a);}; |
| 3322 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3323 | int argc; |
| 3324 | char **argv; |
| 3325 | int |
| 3326 | main () |
| 3327 | { |
| 3328 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3329 | ; |
| 3330 | return 0; |
| 3331 | } |
| 3332 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3333 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3334 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3335 | do |
| 3336 | CC="$ac_save_CC $ac_arg" |
| 3337 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3338 | if { (ac_try="$ac_compile" |
| 3339 | case "(($ac_try" in |
| 3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3341 | *) ac_try_echo=$ac_try;; |
| 3342 | esac |
| 3343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3344 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3345 | ac_status=$? |
| 3346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3347 | rm -f conftest.er1 |
| 3348 | cat conftest.err >&5 |
| 3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3350 | (exit $ac_status); } && |
| 3351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3352 | { (case "(($ac_try" in |
| 3353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3354 | *) ac_try_echo=$ac_try;; |
| 3355 | esac |
| 3356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3357 | (eval "$ac_try") 2>&5 |
| 3358 | ac_status=$? |
| 3359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3360 | (exit $ac_status); }; } && |
| 3361 | { ac_try='test -s conftest.$ac_objext' |
| 3362 | { (case "(($ac_try" in |
| 3363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3364 | *) ac_try_echo=$ac_try;; |
| 3365 | esac |
| 3366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3367 | (eval "$ac_try") 2>&5 |
| 3368 | ac_status=$? |
| 3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3370 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3371 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3372 | else |
| 3373 | echo "$as_me: failed program was:" >&5 |
| 3374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3376 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3378 | |
| 3379 | rm -f core conftest.err conftest.$ac_objext |
| 3380 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3381 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3382 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3383 | CC=$ac_save_CC |
| 3384 | |
| 3385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3386 | # AC_CACHE_VAL |
| 3387 | case "x$ac_cv_prog_cc_c89" in |
| 3388 | x) |
| 3389 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3390 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3391 | xno) |
| 3392 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3393 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3394 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3395 | CC="$CC $ac_cv_prog_cc_c89" |
| 3396 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3397 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3398 | esac |
| 3399 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3400 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3401 | ac_ext=c |
| 3402 | ac_cpp='$CPP $CPPFLAGS' |
| 3403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3406 | |
| 3407 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3408 | ac_ext=c |
| 3409 | ac_cpp='$CPP $CPPFLAGS' |
| 3410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3413 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3414 | 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] | 3415 | # On Suns, sometimes $CPP names a directory. |
| 3416 | if test -n "$CPP" && test -d "$CPP"; then |
| 3417 | CPP= |
| 3418 | fi |
| 3419 | if test -z "$CPP"; then |
| 3420 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3422 | else |
| 3423 | # Double quotes because CPP needs to be expanded |
| 3424 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3425 | do |
| 3426 | ac_preproc_ok=false |
| 3427 | for ac_c_preproc_warn_flag in '' yes |
| 3428 | do |
| 3429 | # Use a header file that comes with gcc, so configuring glibc |
| 3430 | # with a fresh cross-compiler works. |
| 3431 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3432 | # <limits.h> exists even on freestanding compilers. |
| 3433 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3434 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3435 | cat >conftest.$ac_ext <<_ACEOF |
| 3436 | /* confdefs.h. */ |
| 3437 | _ACEOF |
| 3438 | cat confdefs.h >>conftest.$ac_ext |
| 3439 | cat >>conftest.$ac_ext <<_ACEOF |
| 3440 | /* end confdefs.h. */ |
| 3441 | #ifdef __STDC__ |
| 3442 | # include <limits.h> |
| 3443 | #else |
| 3444 | # include <assert.h> |
| 3445 | #endif |
| 3446 | Syntax error |
| 3447 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3448 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3449 | case "(($ac_try" in |
| 3450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3451 | *) ac_try_echo=$ac_try;; |
| 3452 | esac |
| 3453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3455 | ac_status=$? |
| 3456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3457 | rm -f conftest.er1 |
| 3458 | cat conftest.err >&5 |
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3460 | (exit $ac_status); } >/dev/null; then |
| 3461 | if test -s conftest.err; then |
| 3462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3464 | else |
| 3465 | ac_cpp_err= |
| 3466 | fi |
| 3467 | else |
| 3468 | ac_cpp_err=yes |
| 3469 | fi |
| 3470 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3471 | : |
| 3472 | else |
| 3473 | echo "$as_me: failed program was:" >&5 |
| 3474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3475 | |
| 3476 | # Broken: fails on valid input. |
| 3477 | continue |
| 3478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3479 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3480 | rm -f conftest.err conftest.$ac_ext |
| 3481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3482 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3483 | # can be detected and how. |
| 3484 | cat >conftest.$ac_ext <<_ACEOF |
| 3485 | /* confdefs.h. */ |
| 3486 | _ACEOF |
| 3487 | cat confdefs.h >>conftest.$ac_ext |
| 3488 | cat >>conftest.$ac_ext <<_ACEOF |
| 3489 | /* end confdefs.h. */ |
| 3490 | #include <ac_nonexistent.h> |
| 3491 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3492 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3493 | case "(($ac_try" in |
| 3494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3495 | *) ac_try_echo=$ac_try;; |
| 3496 | esac |
| 3497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3498 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | ac_status=$? |
| 3500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3501 | rm -f conftest.er1 |
| 3502 | cat conftest.err >&5 |
| 3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3504 | (exit $ac_status); } >/dev/null; then |
| 3505 | if test -s conftest.err; then |
| 3506 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3508 | else |
| 3509 | ac_cpp_err= |
| 3510 | fi |
| 3511 | else |
| 3512 | ac_cpp_err=yes |
| 3513 | fi |
| 3514 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3515 | # Broken: success on invalid input. |
| 3516 | continue |
| 3517 | else |
| 3518 | echo "$as_me: failed program was:" >&5 |
| 3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3520 | |
| 3521 | # Passes both tests. |
| 3522 | ac_preproc_ok=: |
| 3523 | break |
| 3524 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3525 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3526 | rm -f conftest.err conftest.$ac_ext |
| 3527 | |
| 3528 | done |
| 3529 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3530 | rm -f conftest.err conftest.$ac_ext |
| 3531 | if $ac_preproc_ok; then |
| 3532 | break |
| 3533 | fi |
| 3534 | |
| 3535 | done |
| 3536 | ac_cv_prog_CPP=$CPP |
| 3537 | |
| 3538 | fi |
| 3539 | CPP=$ac_cv_prog_CPP |
| 3540 | else |
| 3541 | ac_cv_prog_CPP=$CPP |
| 3542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3543 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3544 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3545 | ac_preproc_ok=false |
| 3546 | for ac_c_preproc_warn_flag in '' yes |
| 3547 | do |
| 3548 | # Use a header file that comes with gcc, so configuring glibc |
| 3549 | # with a fresh cross-compiler works. |
| 3550 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3551 | # <limits.h> exists even on freestanding compilers. |
| 3552 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3553 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3554 | cat >conftest.$ac_ext <<_ACEOF |
| 3555 | /* confdefs.h. */ |
| 3556 | _ACEOF |
| 3557 | cat confdefs.h >>conftest.$ac_ext |
| 3558 | cat >>conftest.$ac_ext <<_ACEOF |
| 3559 | /* end confdefs.h. */ |
| 3560 | #ifdef __STDC__ |
| 3561 | # include <limits.h> |
| 3562 | #else |
| 3563 | # include <assert.h> |
| 3564 | #endif |
| 3565 | Syntax error |
| 3566 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3567 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3568 | case "(($ac_try" in |
| 3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3570 | *) ac_try_echo=$ac_try;; |
| 3571 | esac |
| 3572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3574 | ac_status=$? |
| 3575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3576 | rm -f conftest.er1 |
| 3577 | cat conftest.err >&5 |
| 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3579 | (exit $ac_status); } >/dev/null; then |
| 3580 | if test -s conftest.err; then |
| 3581 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3583 | else |
| 3584 | ac_cpp_err= |
| 3585 | fi |
| 3586 | else |
| 3587 | ac_cpp_err=yes |
| 3588 | fi |
| 3589 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3590 | : |
| 3591 | else |
| 3592 | echo "$as_me: failed program was:" >&5 |
| 3593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3594 | |
| 3595 | # Broken: fails on valid input. |
| 3596 | continue |
| 3597 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3598 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3599 | rm -f conftest.err conftest.$ac_ext |
| 3600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3601 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3602 | # can be detected and how. |
| 3603 | cat >conftest.$ac_ext <<_ACEOF |
| 3604 | /* confdefs.h. */ |
| 3605 | _ACEOF |
| 3606 | cat confdefs.h >>conftest.$ac_ext |
| 3607 | cat >>conftest.$ac_ext <<_ACEOF |
| 3608 | /* end confdefs.h. */ |
| 3609 | #include <ac_nonexistent.h> |
| 3610 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3611 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3612 | case "(($ac_try" in |
| 3613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3614 | *) ac_try_echo=$ac_try;; |
| 3615 | esac |
| 3616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3617 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3618 | ac_status=$? |
| 3619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3620 | rm -f conftest.er1 |
| 3621 | cat conftest.err >&5 |
| 3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3623 | (exit $ac_status); } >/dev/null; then |
| 3624 | if test -s conftest.err; then |
| 3625 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3626 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3627 | else |
| 3628 | ac_cpp_err= |
| 3629 | fi |
| 3630 | else |
| 3631 | ac_cpp_err=yes |
| 3632 | fi |
| 3633 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3634 | # Broken: success on invalid input. |
| 3635 | continue |
| 3636 | else |
| 3637 | echo "$as_me: failed program was:" >&5 |
| 3638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3639 | |
| 3640 | # Passes both tests. |
| 3641 | ac_preproc_ok=: |
| 3642 | break |
| 3643 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3644 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3645 | rm -f conftest.err conftest.$ac_ext |
| 3646 | |
| 3647 | done |
| 3648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3649 | rm -f conftest.err conftest.$ac_ext |
| 3650 | if $ac_preproc_ok; then |
| 3651 | : |
| 3652 | else |
| 3653 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3654 | See \`config.log' for more details." >&5 |
| 3655 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3656 | See \`config.log' for more details." >&2;} |
| 3657 | { (exit 1); exit 1; }; } |
| 3658 | fi |
| 3659 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3660 | ac_ext=c |
| 3661 | ac_cpp='$CPP $CPPFLAGS' |
| 3662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3665 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3667 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3668 | 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] | 3669 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3671 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3672 | # Extract the first word of "grep ggrep" to use in msg output |
| 3673 | if test -z "$GREP"; then |
| 3674 | set dummy grep ggrep; ac_prog_name=$2 |
| 3675 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3677 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3678 | ac_path_GREP_found=false |
| 3679 | # 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] | 3680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3682 | do |
| 3683 | IFS=$as_save_IFS |
| 3684 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3685 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3686 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3687 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3688 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3689 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3690 | # Check for GNU $ac_path_GREP |
| 3691 | case `"$ac_path_GREP" --version 2>&1` in |
| 3692 | *GNU*) |
| 3693 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3694 | *) |
| 3695 | ac_count=0 |
| 3696 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3697 | while : |
| 3698 | do |
| 3699 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3700 | mv "conftest.tmp" "conftest.in" |
| 3701 | cp "conftest.in" "conftest.nl" |
| 3702 | echo 'GREP' >> "conftest.nl" |
| 3703 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3704 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3705 | ac_count=`expr $ac_count + 1` |
| 3706 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3707 | # Best one so far, save it but keep looking for a better one |
| 3708 | ac_cv_path_GREP="$ac_path_GREP" |
| 3709 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3711 | # 10*(2^10) chars as input seems more than enough |
| 3712 | test $ac_count -gt 10 && break |
| 3713 | done |
| 3714 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3715 | esac |
| 3716 | |
| 3717 | |
| 3718 | $ac_path_GREP_found && break 3 |
| 3719 | done |
| 3720 | done |
| 3721 | |
| 3722 | done |
| 3723 | IFS=$as_save_IFS |
| 3724 | |
| 3725 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3726 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3727 | |
| 3728 | GREP="$ac_cv_path_GREP" |
| 3729 | if test -z "$GREP"; then |
| 3730 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3731 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3732 | { (exit 1); exit 1; }; } |
| 3733 | fi |
| 3734 | |
| 3735 | else |
| 3736 | ac_cv_path_GREP=$GREP |
| 3737 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3738 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3740 | fi |
| 3741 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3742 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3743 | GREP="$ac_cv_path_GREP" |
| 3744 | |
| 3745 | |
| 3746 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3747 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3748 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3750 | else |
| 3751 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3752 | then ac_cv_path_EGREP="$GREP -E" |
| 3753 | else |
| 3754 | # Extract the first word of "egrep" to use in msg output |
| 3755 | if test -z "$EGREP"; then |
| 3756 | set dummy egrep; ac_prog_name=$2 |
| 3757 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3759 | else |
| 3760 | ac_path_EGREP_found=false |
| 3761 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3763 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3764 | do |
| 3765 | IFS=$as_save_IFS |
| 3766 | test -z "$as_dir" && as_dir=. |
| 3767 | for ac_prog in egrep; do |
| 3768 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3769 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3770 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3771 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3772 | # Check for GNU $ac_path_EGREP |
| 3773 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3774 | *GNU*) |
| 3775 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3776 | *) |
| 3777 | ac_count=0 |
| 3778 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3779 | while : |
| 3780 | do |
| 3781 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3782 | mv "conftest.tmp" "conftest.in" |
| 3783 | cp "conftest.in" "conftest.nl" |
| 3784 | echo 'EGREP' >> "conftest.nl" |
| 3785 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3786 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3787 | ac_count=`expr $ac_count + 1` |
| 3788 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3789 | # Best one so far, save it but keep looking for a better one |
| 3790 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3791 | ac_path_EGREP_max=$ac_count |
| 3792 | fi |
| 3793 | # 10*(2^10) chars as input seems more than enough |
| 3794 | test $ac_count -gt 10 && break |
| 3795 | done |
| 3796 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3797 | esac |
| 3798 | |
| 3799 | |
| 3800 | $ac_path_EGREP_found && break 3 |
| 3801 | done |
| 3802 | done |
| 3803 | |
| 3804 | done |
| 3805 | IFS=$as_save_IFS |
| 3806 | |
| 3807 | |
| 3808 | fi |
| 3809 | |
| 3810 | EGREP="$ac_cv_path_EGREP" |
| 3811 | if test -z "$EGREP"; then |
| 3812 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3813 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3814 | { (exit 1); exit 1; }; } |
| 3815 | fi |
| 3816 | |
| 3817 | else |
| 3818 | ac_cv_path_EGREP=$EGREP |
| 3819 | fi |
| 3820 | |
| 3821 | |
| 3822 | fi |
| 3823 | fi |
| 3824 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3825 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3826 | EGREP="$ac_cv_path_EGREP" |
| 3827 | |
| 3828 | |
| 3829 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3830 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3831 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3833 | else |
| 3834 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3835 | /* confdefs.h. */ |
| 3836 | _ACEOF |
| 3837 | cat confdefs.h >>conftest.$ac_ext |
| 3838 | cat >>conftest.$ac_ext <<_ACEOF |
| 3839 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3840 | #include <stdlib.h> |
| 3841 | #include <stdarg.h> |
| 3842 | #include <string.h> |
| 3843 | #include <float.h> |
| 3844 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3845 | int |
| 3846 | main () |
| 3847 | { |
| 3848 | |
| 3849 | ; |
| 3850 | return 0; |
| 3851 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3852 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3853 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3854 | if { (ac_try="$ac_compile" |
| 3855 | case "(($ac_try" in |
| 3856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3857 | *) ac_try_echo=$ac_try;; |
| 3858 | esac |
| 3859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3860 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3861 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3863 | rm -f conftest.er1 |
| 3864 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 3866 | (exit $ac_status); } && |
| 3867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3868 | { (case "(($ac_try" in |
| 3869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3870 | *) ac_try_echo=$ac_try;; |
| 3871 | esac |
| 3872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3873 | (eval "$ac_try") 2>&5 |
| 3874 | ac_status=$? |
| 3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3876 | (exit $ac_status); }; } && |
| 3877 | { ac_try='test -s conftest.$ac_objext' |
| 3878 | { (case "(($ac_try" in |
| 3879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3880 | *) ac_try_echo=$ac_try;; |
| 3881 | esac |
| 3882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3883 | (eval "$ac_try") 2>&5 |
| 3884 | ac_status=$? |
| 3885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3886 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | ac_cv_header_stdc=yes |
| 3888 | else |
| 3889 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3892 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3894 | |
| 3895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3896 | |
| 3897 | if test $ac_cv_header_stdc = yes; then |
| 3898 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3899 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3900 | /* confdefs.h. */ |
| 3901 | _ACEOF |
| 3902 | cat confdefs.h >>conftest.$ac_ext |
| 3903 | cat >>conftest.$ac_ext <<_ACEOF |
| 3904 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3905 | #include <string.h> |
| 3906 | |
| 3907 | _ACEOF |
| 3908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3909 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3910 | : |
| 3911 | else |
| 3912 | ac_cv_header_stdc=no |
| 3913 | fi |
| 3914 | rm -f conftest* |
| 3915 | |
| 3916 | fi |
| 3917 | |
| 3918 | if test $ac_cv_header_stdc = yes; then |
| 3919 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3920 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3921 | /* confdefs.h. */ |
| 3922 | _ACEOF |
| 3923 | cat confdefs.h >>conftest.$ac_ext |
| 3924 | cat >>conftest.$ac_ext <<_ACEOF |
| 3925 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3926 | #include <stdlib.h> |
| 3927 | |
| 3928 | _ACEOF |
| 3929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3930 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3931 | : |
| 3932 | else |
| 3933 | ac_cv_header_stdc=no |
| 3934 | fi |
| 3935 | rm -f conftest* |
| 3936 | |
| 3937 | fi |
| 3938 | |
| 3939 | if test $ac_cv_header_stdc = yes; then |
| 3940 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3941 | if test "$cross_compiling" = yes; then |
| 3942 | : |
| 3943 | else |
| 3944 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3945 | /* confdefs.h. */ |
| 3946 | _ACEOF |
| 3947 | cat confdefs.h >>conftest.$ac_ext |
| 3948 | cat >>conftest.$ac_ext <<_ACEOF |
| 3949 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3950 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3951 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3952 | #if ((' ' & 0x0FF) == 0x020) |
| 3953 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3954 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3955 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3956 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3957 | (('a' <= (c) && (c) <= 'i') \ |
| 3958 | || ('j' <= (c) && (c) <= 'r') \ |
| 3959 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3960 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3961 | #endif |
| 3962 | |
| 3963 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3964 | int |
| 3965 | main () |
| 3966 | { |
| 3967 | int i; |
| 3968 | for (i = 0; i < 256; i++) |
| 3969 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3970 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3971 | return 2; |
| 3972 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3973 | } |
| 3974 | _ACEOF |
| 3975 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3976 | if { (ac_try="$ac_link" |
| 3977 | case "(($ac_try" in |
| 3978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3979 | *) ac_try_echo=$ac_try;; |
| 3980 | esac |
| 3981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3982 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3983 | ac_status=$? |
| 3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3986 | { (case "(($ac_try" in |
| 3987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3988 | *) ac_try_echo=$ac_try;; |
| 3989 | esac |
| 3990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3991 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); }; }; then |
| 3995 | : |
| 3996 | else |
| 3997 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3998 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4000 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4001 | ( exit $ac_status ) |
| 4002 | ac_cv_header_stdc=no |
| 4003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4005 | fi |
| 4006 | |
| 4007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4008 | fi |
| 4009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4010 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4011 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4012 | if test $ac_cv_header_stdc = yes; then |
| 4013 | |
| 4014 | cat >>confdefs.h <<\_ACEOF |
| 4015 | #define STDC_HEADERS 1 |
| 4016 | _ACEOF |
| 4017 | |
| 4018 | fi |
| 4019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4020 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4021 | |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4031 | inttypes.h stdint.h unistd.h |
| 4032 | do |
| 4033 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4034 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4038 | else |
| 4039 | cat >conftest.$ac_ext <<_ACEOF |
| 4040 | /* confdefs.h. */ |
| 4041 | _ACEOF |
| 4042 | cat confdefs.h >>conftest.$ac_ext |
| 4043 | cat >>conftest.$ac_ext <<_ACEOF |
| 4044 | /* end confdefs.h. */ |
| 4045 | $ac_includes_default |
| 4046 | |
| 4047 | #include <$ac_header> |
| 4048 | _ACEOF |
| 4049 | rm -f conftest.$ac_objext |
| 4050 | if { (ac_try="$ac_compile" |
| 4051 | case "(($ac_try" in |
| 4052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4053 | *) ac_try_echo=$ac_try;; |
| 4054 | esac |
| 4055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4056 | (eval "$ac_compile") 2>conftest.er1 |
| 4057 | ac_status=$? |
| 4058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4059 | rm -f conftest.er1 |
| 4060 | cat conftest.err >&5 |
| 4061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4062 | (exit $ac_status); } && |
| 4063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4064 | { (case "(($ac_try" in |
| 4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4066 | *) ac_try_echo=$ac_try;; |
| 4067 | esac |
| 4068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4069 | (eval "$ac_try") 2>&5 |
| 4070 | ac_status=$? |
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4072 | (exit $ac_status); }; } && |
| 4073 | { ac_try='test -s conftest.$ac_objext' |
| 4074 | { (case "(($ac_try" in |
| 4075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4076 | *) ac_try_echo=$ac_try;; |
| 4077 | esac |
| 4078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4079 | (eval "$ac_try") 2>&5 |
| 4080 | ac_status=$? |
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4082 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4083 | eval "$as_ac_Header=yes" |
| 4084 | else |
| 4085 | echo "$as_me: failed program was:" >&5 |
| 4086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4087 | |
| 4088 | eval "$as_ac_Header=no" |
| 4089 | fi |
| 4090 | |
| 4091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4092 | fi |
| 4093 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4094 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4095 | echo "${ECHO_T}$ac_res" >&6; } |
| 4096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4097 | cat >>confdefs.h <<_ACEOF |
| 4098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4099 | _ACEOF |
| 4100 | |
| 4101 | fi |
| 4102 | |
| 4103 | done |
| 4104 | |
| 4105 | |
| 4106 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4107 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4108 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4110 | else |
| 4111 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4112 | cat >conftest.$ac_ext <<_ACEOF |
| 4113 | /* confdefs.h. */ |
| 4114 | _ACEOF |
| 4115 | cat confdefs.h >>conftest.$ac_ext |
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
| 4117 | /* end confdefs.h. */ |
| 4118 | #include <sys/types.h> |
| 4119 | #include <sys/param.h> |
| 4120 | |
| 4121 | int |
| 4122 | main () |
| 4123 | { |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4124 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4125 | bogus endian macros |
| 4126 | #endif |
| 4127 | |
| 4128 | ; |
| 4129 | return 0; |
| 4130 | } |
| 4131 | _ACEOF |
| 4132 | rm -f conftest.$ac_objext |
| 4133 | if { (ac_try="$ac_compile" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4139 | (eval "$ac_compile") 2>conftest.er1 |
| 4140 | ac_status=$? |
| 4141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4142 | rm -f conftest.er1 |
| 4143 | cat conftest.err >&5 |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4145 | (exit $ac_status); } && |
| 4146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4147 | { (case "(($ac_try" in |
| 4148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4149 | *) ac_try_echo=$ac_try;; |
| 4150 | esac |
| 4151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4152 | (eval "$ac_try") 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; } && |
| 4156 | { ac_try='test -s conftest.$ac_objext' |
| 4157 | { (case "(($ac_try" in |
| 4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4159 | *) ac_try_echo=$ac_try;; |
| 4160 | esac |
| 4161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4162 | (eval "$ac_try") 2>&5 |
| 4163 | ac_status=$? |
| 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4165 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4166 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4167 | cat >conftest.$ac_ext <<_ACEOF |
| 4168 | /* confdefs.h. */ |
| 4169 | _ACEOF |
| 4170 | cat confdefs.h >>conftest.$ac_ext |
| 4171 | cat >>conftest.$ac_ext <<_ACEOF |
| 4172 | /* end confdefs.h. */ |
| 4173 | #include <sys/types.h> |
| 4174 | #include <sys/param.h> |
| 4175 | |
| 4176 | int |
| 4177 | main () |
| 4178 | { |
| 4179 | #if BYTE_ORDER != BIG_ENDIAN |
| 4180 | not big endian |
| 4181 | #endif |
| 4182 | |
| 4183 | ; |
| 4184 | return 0; |
| 4185 | } |
| 4186 | _ACEOF |
| 4187 | rm -f conftest.$ac_objext |
| 4188 | if { (ac_try="$ac_compile" |
| 4189 | case "(($ac_try" in |
| 4190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4191 | *) ac_try_echo=$ac_try;; |
| 4192 | esac |
| 4193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4194 | (eval "$ac_compile") 2>conftest.er1 |
| 4195 | ac_status=$? |
| 4196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4197 | rm -f conftest.er1 |
| 4198 | cat conftest.err >&5 |
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4200 | (exit $ac_status); } && |
| 4201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4202 | { (case "(($ac_try" in |
| 4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4204 | *) ac_try_echo=$ac_try;; |
| 4205 | esac |
| 4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4207 | (eval "$ac_try") 2>&5 |
| 4208 | ac_status=$? |
| 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4210 | (exit $ac_status); }; } && |
| 4211 | { ac_try='test -s conftest.$ac_objext' |
| 4212 | { (case "(($ac_try" in |
| 4213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4214 | *) ac_try_echo=$ac_try;; |
| 4215 | esac |
| 4216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4217 | (eval "$ac_try") 2>&5 |
| 4218 | ac_status=$? |
| 4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4220 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4221 | ac_cv_c_bigendian=yes |
| 4222 | else |
| 4223 | echo "$as_me: failed program was:" >&5 |
| 4224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4225 | |
| 4226 | ac_cv_c_bigendian=no |
| 4227 | fi |
| 4228 | |
| 4229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4230 | else |
| 4231 | echo "$as_me: failed program was:" >&5 |
| 4232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4233 | |
| 4234 | # It does not; compile a test program. |
| 4235 | if test "$cross_compiling" = yes; then |
| 4236 | # try to guess the endianness by grepping values into an object file |
| 4237 | ac_cv_c_bigendian=unknown |
| 4238 | cat >conftest.$ac_ext <<_ACEOF |
| 4239 | /* confdefs.h. */ |
| 4240 | _ACEOF |
| 4241 | cat confdefs.h >>conftest.$ac_ext |
| 4242 | cat >>conftest.$ac_ext <<_ACEOF |
| 4243 | /* end confdefs.h. */ |
| 4244 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4245 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4246 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4247 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4248 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4249 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4250 | int |
| 4251 | main () |
| 4252 | { |
| 4253 | _ascii (); _ebcdic (); |
| 4254 | ; |
| 4255 | return 0; |
| 4256 | } |
| 4257 | _ACEOF |
| 4258 | rm -f conftest.$ac_objext |
| 4259 | if { (ac_try="$ac_compile" |
| 4260 | case "(($ac_try" in |
| 4261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4262 | *) ac_try_echo=$ac_try;; |
| 4263 | esac |
| 4264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4265 | (eval "$ac_compile") 2>conftest.er1 |
| 4266 | ac_status=$? |
| 4267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4268 | rm -f conftest.er1 |
| 4269 | cat conftest.err >&5 |
| 4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4271 | (exit $ac_status); } && |
| 4272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4273 | { (case "(($ac_try" in |
| 4274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4275 | *) ac_try_echo=$ac_try;; |
| 4276 | esac |
| 4277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4278 | (eval "$ac_try") 2>&5 |
| 4279 | ac_status=$? |
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4281 | (exit $ac_status); }; } && |
| 4282 | { ac_try='test -s conftest.$ac_objext' |
| 4283 | { (case "(($ac_try" in |
| 4284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4285 | *) ac_try_echo=$ac_try;; |
| 4286 | esac |
| 4287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4288 | (eval "$ac_try") 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4292 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4293 | ac_cv_c_bigendian=yes |
| 4294 | fi |
| 4295 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4296 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4297 | ac_cv_c_bigendian=no |
| 4298 | else |
| 4299 | # finding both strings is unlikely to happen, but who knows? |
| 4300 | ac_cv_c_bigendian=unknown |
| 4301 | fi |
| 4302 | fi |
| 4303 | else |
| 4304 | echo "$as_me: failed program was:" >&5 |
| 4305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4306 | |
| 4307 | |
| 4308 | fi |
| 4309 | |
| 4310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4311 | else |
| 4312 | cat >conftest.$ac_ext <<_ACEOF |
| 4313 | /* confdefs.h. */ |
| 4314 | _ACEOF |
| 4315 | cat confdefs.h >>conftest.$ac_ext |
| 4316 | cat >>conftest.$ac_ext <<_ACEOF |
| 4317 | /* end confdefs.h. */ |
| 4318 | $ac_includes_default |
| 4319 | int |
| 4320 | main () |
| 4321 | { |
| 4322 | |
| 4323 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4324 | union |
| 4325 | { |
| 4326 | long int l; |
| 4327 | char c[sizeof (long int)]; |
| 4328 | } u; |
| 4329 | u.l = 1; |
| 4330 | return u.c[sizeof (long int) - 1] == 1; |
| 4331 | |
| 4332 | ; |
| 4333 | return 0; |
| 4334 | } |
| 4335 | _ACEOF |
| 4336 | rm -f conftest$ac_exeext |
| 4337 | if { (ac_try="$ac_link" |
| 4338 | case "(($ac_try" in |
| 4339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4340 | *) ac_try_echo=$ac_try;; |
| 4341 | esac |
| 4342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4343 | (eval "$ac_link") 2>&5 |
| 4344 | ac_status=$? |
| 4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4347 | { (case "(($ac_try" in |
| 4348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4349 | *) ac_try_echo=$ac_try;; |
| 4350 | esac |
| 4351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4352 | (eval "$ac_try") 2>&5 |
| 4353 | ac_status=$? |
| 4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4355 | (exit $ac_status); }; }; then |
| 4356 | ac_cv_c_bigendian=no |
| 4357 | else |
| 4358 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4359 | echo "$as_me: failed program was:" >&5 |
| 4360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4361 | |
| 4362 | ( exit $ac_status ) |
| 4363 | ac_cv_c_bigendian=yes |
| 4364 | fi |
| 4365 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4366 | fi |
| 4367 | |
| 4368 | |
| 4369 | fi |
| 4370 | |
| 4371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4372 | fi |
| 4373 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4374 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4375 | case $ac_cv_c_bigendian in |
| 4376 | yes) |
| 4377 | ENDIAN=big |
| 4378 | ;; |
| 4379 | no) |
| 4380 | ENDIAN=little |
| 4381 | ;; |
| 4382 | *) |
| 4383 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4384 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4385 | echo "$as_me: error: unknown endianness |
| 4386 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4387 | { (exit 1); exit 1; }; } ;; |
| 4388 | esac |
| 4389 | |
| 4390 | |
| 4391 | if test "$cross_compiling" = yes; then |
| 4392 | LLVM_CROSS_COMPILING=1 |
| 4393 | |
| 4394 | |
| 4395 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4396 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4397 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4399 | else |
| 4400 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4401 | ac_cv_build_exeext=.exe |
| 4402 | else |
| 4403 | ac_build_prefix=${build_alias}- |
| 4404 | |
| 4405 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4406 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4409 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4411 | else |
| 4412 | if test -n "$BUILD_CC"; then |
| 4413 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4414 | else |
| 4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4416 | for as_dir in $PATH |
| 4417 | do |
| 4418 | IFS=$as_save_IFS |
| 4419 | test -z "$as_dir" && as_dir=. |
| 4420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4421 | 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] | 4422 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4424 | break 2 |
| 4425 | fi |
| 4426 | done |
| 4427 | done |
| 4428 | IFS=$as_save_IFS |
| 4429 | |
| 4430 | fi |
| 4431 | fi |
| 4432 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4433 | if test -n "$BUILD_CC"; then |
| 4434 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4435 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4436 | else |
| 4437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4438 | echo "${ECHO_T}no" >&6; } |
| 4439 | fi |
| 4440 | |
| 4441 | |
| 4442 | if test -z "$BUILD_CC"; then |
| 4443 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4444 | set dummy gcc; ac_word=$2 |
| 4445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4447 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4449 | else |
| 4450 | if test -n "$BUILD_CC"; then |
| 4451 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4452 | else |
| 4453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4454 | for as_dir in $PATH |
| 4455 | do |
| 4456 | IFS=$as_save_IFS |
| 4457 | test -z "$as_dir" && as_dir=. |
| 4458 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4459 | 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] | 4460 | ac_cv_prog_BUILD_CC="gcc" |
| 4461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4462 | break 2 |
| 4463 | fi |
| 4464 | done |
| 4465 | done |
| 4466 | IFS=$as_save_IFS |
| 4467 | |
| 4468 | fi |
| 4469 | fi |
| 4470 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4471 | if test -n "$BUILD_CC"; then |
| 4472 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4473 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4474 | else |
| 4475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4476 | echo "${ECHO_T}no" >&6; } |
| 4477 | fi |
| 4478 | |
| 4479 | |
| 4480 | if test -z "$BUILD_CC"; then |
| 4481 | # Extract the first word of "cc", so it can be a program name with args. |
| 4482 | set dummy cc; ac_word=$2 |
| 4483 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4485 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4487 | else |
| 4488 | if test -n "$BUILD_CC"; then |
| 4489 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4490 | else |
| 4491 | ac_prog_rejected=no |
| 4492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4493 | for as_dir in $PATH |
| 4494 | do |
| 4495 | IFS=$as_save_IFS |
| 4496 | test -z "$as_dir" && as_dir=. |
| 4497 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4498 | 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] | 4499 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4500 | ac_prog_rejected=yes |
| 4501 | continue |
| 4502 | fi |
| 4503 | ac_cv_prog_BUILD_CC="cc" |
| 4504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4505 | break 2 |
| 4506 | fi |
| 4507 | done |
| 4508 | done |
| 4509 | IFS=$as_save_IFS |
| 4510 | |
| 4511 | if test $ac_prog_rejected = yes; then |
| 4512 | # We found a bogon in the path, so make sure we never use it. |
| 4513 | set dummy $ac_cv_prog_BUILD_CC |
| 4514 | shift |
| 4515 | if test $# != 0; then |
| 4516 | # We chose a different compiler from the bogus one. |
| 4517 | # However, it has the same basename, so the bogon will be chosen |
| 4518 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4519 | shift |
| 4520 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4521 | fi |
| 4522 | fi |
| 4523 | fi |
| 4524 | fi |
| 4525 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4526 | if test -n "$BUILD_CC"; then |
| 4527 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4528 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4529 | else |
| 4530 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4531 | echo "${ECHO_T}no" >&6; } |
| 4532 | fi |
| 4533 | |
| 4534 | |
| 4535 | fi |
| 4536 | fi |
| 4537 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4538 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4539 | { (exit 1); exit 1; }; } |
| 4540 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4541 | rm -f conftest* |
| 4542 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4543 | ac_cv_build_exeext= |
| 4544 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4545 | (eval $ac_build_link) 2>&5 |
| 4546 | ac_status=$? |
| 4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4548 | (exit $ac_status); }; then |
| 4549 | for file in conftest.*; do |
| 4550 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4551 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4552 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4553 | esac |
| 4554 | done |
| 4555 | else |
| 4556 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4557 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4558 | { (exit 1); exit 1; }; } |
| 4559 | fi |
| 4560 | rm -f conftest* |
| 4561 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4562 | fi |
| 4563 | fi |
| 4564 | |
| 4565 | BUILD_EXEEXT="" |
| 4566 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4567 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4568 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4569 | ac_build_exeext=$BUILD_EXEEXT |
| 4570 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4571 | ac_build_prefix=${build_alias}- |
| 4572 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4573 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4576 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4578 | else |
| 4579 | if test -n "$BUILD_CXX"; then |
| 4580 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4581 | else |
| 4582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4583 | for as_dir in $PATH |
| 4584 | do |
| 4585 | IFS=$as_save_IFS |
| 4586 | test -z "$as_dir" && as_dir=. |
| 4587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4589 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4591 | break 2 |
| 4592 | fi |
| 4593 | done |
| 4594 | done |
| 4595 | IFS=$as_save_IFS |
| 4596 | |
| 4597 | fi |
| 4598 | fi |
| 4599 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4600 | if test -n "$BUILD_CXX"; then |
| 4601 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4602 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4603 | else |
| 4604 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4605 | echo "${ECHO_T}no" >&6; } |
| 4606 | fi |
| 4607 | |
| 4608 | |
| 4609 | if test -z "$BUILD_CXX"; then |
| 4610 | # Extract the first word of "g++", so it can be a program name with args. |
| 4611 | set dummy g++; ac_word=$2 |
| 4612 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4614 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4616 | else |
| 4617 | if test -n "$BUILD_CXX"; then |
| 4618 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4619 | else |
| 4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4621 | for as_dir in $PATH |
| 4622 | do |
| 4623 | IFS=$as_save_IFS |
| 4624 | test -z "$as_dir" && as_dir=. |
| 4625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4627 | ac_cv_prog_BUILD_CXX="g++" |
| 4628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4629 | break 2 |
| 4630 | fi |
| 4631 | done |
| 4632 | done |
| 4633 | IFS=$as_save_IFS |
| 4634 | |
| 4635 | fi |
| 4636 | fi |
| 4637 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4638 | if test -n "$BUILD_CXX"; then |
| 4639 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4640 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4641 | else |
| 4642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4643 | echo "${ECHO_T}no" >&6; } |
| 4644 | fi |
| 4645 | |
| 4646 | |
| 4647 | if test -z "$BUILD_CXX"; then |
| 4648 | # Extract the first word of "c++", so it can be a program name with args. |
| 4649 | set dummy c++; ac_word=$2 |
| 4650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4652 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4654 | else |
| 4655 | if test -n "$BUILD_CXX"; then |
| 4656 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4657 | else |
| 4658 | ac_prog_rejected=no |
| 4659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4660 | for as_dir in $PATH |
| 4661 | do |
| 4662 | IFS=$as_save_IFS |
| 4663 | test -z "$as_dir" && as_dir=. |
| 4664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 4665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4666 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4667 | ac_prog_rejected=yes |
| 4668 | continue |
| 4669 | fi |
| 4670 | ac_cv_prog_BUILD_CXX="c++" |
| 4671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4672 | break 2 |
| 4673 | fi |
| 4674 | done |
| 4675 | done |
| 4676 | IFS=$as_save_IFS |
| 4677 | |
| 4678 | if test $ac_prog_rejected = yes; then |
| 4679 | # We found a bogon in the path, so make sure we never use it. |
| 4680 | set dummy $ac_cv_prog_BUILD_CXX |
| 4681 | shift |
| 4682 | if test $# != 0; then |
| 4683 | # We chose a different compiler from the bogus one. |
| 4684 | # However, it has the same basename, so the bogon will be chosen |
| 4685 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4686 | shift |
| 4687 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4688 | fi |
| 4689 | fi |
| 4690 | fi |
| 4691 | fi |
| 4692 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4693 | if test -n "$BUILD_CXX"; then |
| 4694 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4695 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4696 | else |
| 4697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4698 | echo "${ECHO_T}no" >&6; } |
| 4699 | fi |
| 4700 | |
| 4701 | |
| 4702 | fi |
| 4703 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4704 | else |
| 4705 | LLVM_CROSS_COMPILING=0 |
| 4706 | |
| 4707 | fi |
| 4708 | |
Reid Spencer | 0b1e466 | 2007-04-02 15:41:39 +0000 | [diff] [blame] | 4709 | 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] | 4710 | cvsbuild="yes" |
| 4711 | optimize="no" |
| 4712 | CVSBUILD=CVSBUILD=1 |
| 4713 | |
| 4714 | else |
| 4715 | cvsbuild="no" |
| 4716 | optimize="yes" |
| 4717 | fi |
| 4718 | |
| 4719 | |
| 4720 | # Check whether --enable-optimized was given. |
| 4721 | if test "${enable_optimized+set}" = set; then |
| 4722 | enableval=$enable_optimized; |
| 4723 | else |
| 4724 | enableval=$optimize |
| 4725 | fi |
| 4726 | |
| 4727 | if test ${enableval} = "no" ; then |
| 4728 | ENABLE_OPTIMIZED= |
| 4729 | |
| 4730 | else |
| 4731 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4732 | |
| 4733 | fi |
| 4734 | |
| 4735 | # Check whether --enable-assertions was given. |
| 4736 | if test "${enable_assertions+set}" = set; then |
| 4737 | enableval=$enable_assertions; |
| 4738 | else |
| 4739 | enableval="yes" |
| 4740 | fi |
| 4741 | |
| 4742 | if test ${enableval} = "yes" ; then |
| 4743 | DISABLE_ASSERTIONS= |
| 4744 | |
| 4745 | else |
| 4746 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4747 | |
| 4748 | fi |
| 4749 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4750 | # Check whether --enable-expensive-checks was given. |
| 4751 | if test "${enable_expensive_checks+set}" = set; then |
| 4752 | enableval=$enable_expensive_checks; |
| 4753 | else |
| 4754 | enableval="no" |
| 4755 | fi |
| 4756 | |
| 4757 | if test ${enableval} = "yes" ; then |
| 4758 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4759 | |
| 4760 | EXPENSIVE_CHECKS=yes |
| 4761 | |
| 4762 | else |
| 4763 | ENABLE_EXPENSIVE_CHECKS= |
| 4764 | |
| 4765 | EXPENSIVE_CHECKS=no |
| 4766 | |
| 4767 | fi |
| 4768 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4769 | # Check whether --enable-debug-runtime was given. |
| 4770 | if test "${enable_debug_runtime+set}" = set; then |
| 4771 | enableval=$enable_debug_runtime; |
| 4772 | else |
| 4773 | enableval=no |
| 4774 | fi |
| 4775 | |
| 4776 | if test ${enableval} = "no" ; then |
| 4777 | DEBUG_RUNTIME= |
| 4778 | |
| 4779 | else |
| 4780 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4781 | |
| 4782 | fi |
| 4783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4784 | # Check whether --enable-jit was given. |
| 4785 | if test "${enable_jit+set}" = set; then |
| 4786 | enableval=$enable_jit; |
| 4787 | else |
| 4788 | enableval=default |
| 4789 | fi |
| 4790 | |
| 4791 | if test ${enableval} = "no" |
| 4792 | then |
| 4793 | JIT= |
| 4794 | |
| 4795 | else |
| 4796 | case "$llvm_cv_target_arch" in |
| 4797 | x86) TARGET_HAS_JIT=1 |
| 4798 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4799 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4800 | ;; |
| 4801 | PowerPC) TARGET_HAS_JIT=1 |
| 4802 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4803 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4804 | ;; |
| 4805 | Alpha) TARGET_HAS_JIT=1 |
| 4806 | ;; |
| 4807 | IA64) TARGET_HAS_JIT=0 |
| 4808 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4809 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4810 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4811 | Mips) TARGET_HAS_JIT=0 |
| 4812 | ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4813 | PIC16) TARGET_HAS_JIT=0 |
| 4814 | ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 4815 | XCore) TARGET_HAS_JIT=0 |
| 4816 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4817 | *) TARGET_HAS_JIT=0 |
| 4818 | ;; |
| 4819 | esac |
| 4820 | fi |
| 4821 | |
| 4822 | # Check whether --enable-doxygen was given. |
| 4823 | if test "${enable_doxygen+set}" = set; then |
| 4824 | enableval=$enable_doxygen; |
| 4825 | else |
| 4826 | enableval=default |
| 4827 | fi |
| 4828 | |
| 4829 | case "$enableval" in |
| 4830 | yes) ENABLE_DOXYGEN=1 |
| 4831 | ;; |
| 4832 | no) ENABLE_DOXYGEN=0 |
| 4833 | ;; |
| 4834 | default) ENABLE_DOXYGEN=0 |
| 4835 | ;; |
| 4836 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4837 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4838 | { (exit 1); exit 1; }; } ;; |
| 4839 | esac |
| 4840 | |
| 4841 | # Check whether --enable-threads was given. |
| 4842 | if test "${enable_threads+set}" = set; then |
| 4843 | enableval=$enable_threads; |
| 4844 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4845 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4846 | fi |
| 4847 | |
| 4848 | case "$enableval" in |
| 4849 | yes) ENABLE_THREADS=1 |
| 4850 | ;; |
| 4851 | no) ENABLE_THREADS=0 |
| 4852 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4853 | default) ENABLE_THREADS=1 |
| 4854 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4855 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4856 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4857 | { (exit 1); exit 1; }; } ;; |
| 4858 | esac |
| 4859 | |
| 4860 | cat >>confdefs.h <<_ACEOF |
| 4861 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4862 | _ACEOF |
| 4863 | |
| 4864 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4865 | # Check whether --enable-pic was given. |
| 4866 | if test "${enable_pic+set}" = set; then |
| 4867 | enableval=$enable_pic; |
| 4868 | else |
| 4869 | enableval=default |
| 4870 | fi |
| 4871 | |
| 4872 | case "$enableval" in |
| 4873 | yes) ENABLE_PIC=1 |
| 4874 | ;; |
| 4875 | no) ENABLE_PIC=0 |
| 4876 | ;; |
| 4877 | default) ENABLE_PIC=0 |
| 4878 | ;; |
| 4879 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4880 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4881 | { (exit 1); exit 1; }; } ;; |
| 4882 | esac |
| 4883 | |
| 4884 | cat >>confdefs.h <<_ACEOF |
| 4885 | #define ENABLE_PIC $ENABLE_PIC |
| 4886 | _ACEOF |
| 4887 | |
| 4888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4889 | TARGETS_TO_BUILD="" |
| 4890 | # Check whether --enable-targets was given. |
| 4891 | if test "${enable_targets+set}" = set; then |
| 4892 | enableval=$enable_targets; |
| 4893 | else |
| 4894 | enableval=all |
| 4895 | fi |
| 4896 | |
| 4897 | case "$enableval" in |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 4898 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4899 | host-only) |
| 4900 | case "$llvm_cv_target_arch" in |
| 4901 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4902 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4903 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4904 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4905 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4906 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4907 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4908 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4909 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4910 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 4911 | XCore) TARGETS_TO_BUILD="XCore" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4912 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4913 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4914 | { (exit 1); exit 1; }; } ;; |
| 4915 | esac |
| 4916 | ;; |
| 4917 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4918 | case "$a_target" in |
| 4919 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4920 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4921 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4922 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4923 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4924 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4925 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4926 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4927 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4928 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 4929 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4930 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4931 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 4932 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4933 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4934 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4935 | { (exit 1); exit 1; }; } ;; |
| 4936 | esac |
| 4937 | done |
| 4938 | ;; |
| 4939 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4940 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4941 | |
| 4942 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4943 | # Check whether --enable-cbe-printf-a was given. |
| 4944 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4945 | enableval=$enable_cbe_printf_a; |
| 4946 | else |
| 4947 | enableval=default |
| 4948 | fi |
| 4949 | |
| 4950 | case "$enableval" in |
| 4951 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4952 | ;; |
| 4953 | no) ENABLE_CBE_PRINTF_A=0 |
| 4954 | ;; |
| 4955 | default) ENABLE_CBE_PRINTF_A=1 |
| 4956 | ;; |
| 4957 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4958 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4959 | { (exit 1); exit 1; }; } ;; |
| 4960 | esac |
| 4961 | |
| 4962 | cat >>confdefs.h <<_ACEOF |
| 4963 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4964 | _ACEOF |
| 4965 | |
| 4966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4967 | |
| 4968 | # Check whether --with-llvmgccdir was given. |
| 4969 | if test "${with_llvmgccdir+set}" = set; then |
| 4970 | withval=$with_llvmgccdir; |
| 4971 | else |
| 4972 | withval=default |
| 4973 | fi |
| 4974 | |
| 4975 | case "$withval" in |
| 4976 | default) WITH_LLVMGCCDIR=default ;; |
| 4977 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4978 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4979 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4980 | { (exit 1); exit 1; }; } ;; |
| 4981 | esac |
| 4982 | |
| 4983 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4984 | # Check whether --with-llvmgcc was given. |
| 4985 | if test "${with_llvmgcc+set}" = set; then |
| 4986 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4987 | WITH_LLVMGCCDIR="" |
| 4988 | fi |
| 4989 | |
| 4990 | |
| 4991 | |
| 4992 | # Check whether --with-llvmgxx was given. |
| 4993 | if test "${with_llvmgxx+set}" = set; then |
| 4994 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4995 | WITH_LLVMGCCDIR="" |
| 4996 | fi |
| 4997 | |
| 4998 | |
| 4999 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 5000 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5001 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5002 | { (exit 1); exit 1; }; }; |
| 5003 | fi |
| 5004 | |
| 5005 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 5006 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5007 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5008 | { (exit 1); exit 1; }; }; |
| 5009 | fi |
| 5010 | |
| 5011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5012 | # Check whether --with-extra-options was given. |
| 5013 | if test "${with_extra_options+set}" = set; then |
| 5014 | withval=$with_extra_options; |
| 5015 | else |
| 5016 | withval=default |
| 5017 | fi |
| 5018 | |
| 5019 | case "$withval" in |
| 5020 | default) EXTRA_OPTIONS= ;; |
| 5021 | *) EXTRA_OPTIONS=$withval ;; |
| 5022 | esac |
| 5023 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5024 | |
| 5025 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5026 | # Check whether --enable-bindings was given. |
| 5027 | if test "${enable_bindings+set}" = set; then |
| 5028 | enableval=$enable_bindings; |
| 5029 | else |
| 5030 | enableval=default |
| 5031 | fi |
| 5032 | |
| 5033 | BINDINGS_TO_BUILD="" |
| 5034 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5035 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5036 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5037 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5038 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5039 | case "$a_binding" in |
| 5040 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5041 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5042 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5043 | { (exit 1); exit 1; }; } ;; |
| 5044 | esac |
| 5045 | done |
| 5046 | ;; |
| 5047 | esac |
| 5048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5049 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5050 | # Check whether --with-ocaml-libdir was given. |
| 5051 | if test "${with_ocaml_libdir+set}" = set; then |
| 5052 | withval=$with_ocaml_libdir; |
| 5053 | else |
| 5054 | withval=auto |
| 5055 | fi |
| 5056 | |
| 5057 | case "$withval" in |
| 5058 | auto) with_ocaml_libdir="$withval" ;; |
| 5059 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5060 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5061 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5062 | { (exit 1); exit 1; }; } ;; |
| 5063 | esac |
| 5064 | |
| 5065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5066 | ac_ext=c |
| 5067 | ac_cpp='$CPP $CPPFLAGS' |
| 5068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5071 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5072 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5073 | # On Suns, sometimes $CPP names a directory. |
| 5074 | if test -n "$CPP" && test -d "$CPP"; then |
| 5075 | CPP= |
| 5076 | fi |
| 5077 | if test -z "$CPP"; then |
| 5078 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5080 | else |
| 5081 | # Double quotes because CPP needs to be expanded |
| 5082 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5083 | do |
| 5084 | ac_preproc_ok=false |
| 5085 | for ac_c_preproc_warn_flag in '' yes |
| 5086 | do |
| 5087 | # Use a header file that comes with gcc, so configuring glibc |
| 5088 | # with a fresh cross-compiler works. |
| 5089 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5090 | # <limits.h> exists even on freestanding compilers. |
| 5091 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5092 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5093 | cat >conftest.$ac_ext <<_ACEOF |
| 5094 | /* confdefs.h. */ |
| 5095 | _ACEOF |
| 5096 | cat confdefs.h >>conftest.$ac_ext |
| 5097 | cat >>conftest.$ac_ext <<_ACEOF |
| 5098 | /* end confdefs.h. */ |
| 5099 | #ifdef __STDC__ |
| 5100 | # include <limits.h> |
| 5101 | #else |
| 5102 | # include <assert.h> |
| 5103 | #endif |
| 5104 | Syntax error |
| 5105 | _ACEOF |
| 5106 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5107 | case "(($ac_try" in |
| 5108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5109 | *) ac_try_echo=$ac_try;; |
| 5110 | esac |
| 5111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5112 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5113 | ac_status=$? |
| 5114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5115 | rm -f conftest.er1 |
| 5116 | cat conftest.err >&5 |
| 5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5118 | (exit $ac_status); } >/dev/null; then |
| 5119 | if test -s conftest.err; then |
| 5120 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5122 | else |
| 5123 | ac_cpp_err= |
| 5124 | fi |
| 5125 | else |
| 5126 | ac_cpp_err=yes |
| 5127 | fi |
| 5128 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5129 | : |
| 5130 | else |
| 5131 | echo "$as_me: failed program was:" >&5 |
| 5132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5133 | |
| 5134 | # Broken: fails on valid input. |
| 5135 | continue |
| 5136 | fi |
| 5137 | |
| 5138 | rm -f conftest.err conftest.$ac_ext |
| 5139 | |
| 5140 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5141 | # can be detected and how. |
| 5142 | cat >conftest.$ac_ext <<_ACEOF |
| 5143 | /* confdefs.h. */ |
| 5144 | _ACEOF |
| 5145 | cat confdefs.h >>conftest.$ac_ext |
| 5146 | cat >>conftest.$ac_ext <<_ACEOF |
| 5147 | /* end confdefs.h. */ |
| 5148 | #include <ac_nonexistent.h> |
| 5149 | _ACEOF |
| 5150 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5151 | case "(($ac_try" in |
| 5152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5153 | *) ac_try_echo=$ac_try;; |
| 5154 | esac |
| 5155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5156 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5157 | ac_status=$? |
| 5158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5159 | rm -f conftest.er1 |
| 5160 | cat conftest.err >&5 |
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5162 | (exit $ac_status); } >/dev/null; then |
| 5163 | if test -s conftest.err; then |
| 5164 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5165 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5166 | else |
| 5167 | ac_cpp_err= |
| 5168 | fi |
| 5169 | else |
| 5170 | ac_cpp_err=yes |
| 5171 | fi |
| 5172 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5173 | # Broken: success on invalid input. |
| 5174 | continue |
| 5175 | else |
| 5176 | echo "$as_me: failed program was:" >&5 |
| 5177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5178 | |
| 5179 | # Passes both tests. |
| 5180 | ac_preproc_ok=: |
| 5181 | break |
| 5182 | fi |
| 5183 | |
| 5184 | rm -f conftest.err conftest.$ac_ext |
| 5185 | |
| 5186 | done |
| 5187 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5188 | rm -f conftest.err conftest.$ac_ext |
| 5189 | if $ac_preproc_ok; then |
| 5190 | break |
| 5191 | fi |
| 5192 | |
| 5193 | done |
| 5194 | ac_cv_prog_CPP=$CPP |
| 5195 | |
| 5196 | fi |
| 5197 | CPP=$ac_cv_prog_CPP |
| 5198 | else |
| 5199 | ac_cv_prog_CPP=$CPP |
| 5200 | fi |
| 5201 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5202 | echo "${ECHO_T}$CPP" >&6; } |
| 5203 | ac_preproc_ok=false |
| 5204 | for ac_c_preproc_warn_flag in '' yes |
| 5205 | do |
| 5206 | # Use a header file that comes with gcc, so configuring glibc |
| 5207 | # with a fresh cross-compiler works. |
| 5208 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5209 | # <limits.h> exists even on freestanding compilers. |
| 5210 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5211 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5212 | cat >conftest.$ac_ext <<_ACEOF |
| 5213 | /* confdefs.h. */ |
| 5214 | _ACEOF |
| 5215 | cat confdefs.h >>conftest.$ac_ext |
| 5216 | cat >>conftest.$ac_ext <<_ACEOF |
| 5217 | /* end confdefs.h. */ |
| 5218 | #ifdef __STDC__ |
| 5219 | # include <limits.h> |
| 5220 | #else |
| 5221 | # include <assert.h> |
| 5222 | #endif |
| 5223 | Syntax error |
| 5224 | _ACEOF |
| 5225 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5226 | case "(($ac_try" in |
| 5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5228 | *) ac_try_echo=$ac_try;; |
| 5229 | esac |
| 5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5231 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5232 | ac_status=$? |
| 5233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5234 | rm -f conftest.er1 |
| 5235 | cat conftest.err >&5 |
| 5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5237 | (exit $ac_status); } >/dev/null; then |
| 5238 | if test -s conftest.err; then |
| 5239 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5240 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5241 | else |
| 5242 | ac_cpp_err= |
| 5243 | fi |
| 5244 | else |
| 5245 | ac_cpp_err=yes |
| 5246 | fi |
| 5247 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5248 | : |
| 5249 | else |
| 5250 | echo "$as_me: failed program was:" >&5 |
| 5251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5252 | |
| 5253 | # Broken: fails on valid input. |
| 5254 | continue |
| 5255 | fi |
| 5256 | |
| 5257 | rm -f conftest.err conftest.$ac_ext |
| 5258 | |
| 5259 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5260 | # can be detected and how. |
| 5261 | cat >conftest.$ac_ext <<_ACEOF |
| 5262 | /* confdefs.h. */ |
| 5263 | _ACEOF |
| 5264 | cat confdefs.h >>conftest.$ac_ext |
| 5265 | cat >>conftest.$ac_ext <<_ACEOF |
| 5266 | /* end confdefs.h. */ |
| 5267 | #include <ac_nonexistent.h> |
| 5268 | _ACEOF |
| 5269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5270 | case "(($ac_try" in |
| 5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5272 | *) ac_try_echo=$ac_try;; |
| 5273 | esac |
| 5274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5276 | ac_status=$? |
| 5277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5278 | rm -f conftest.er1 |
| 5279 | cat conftest.err >&5 |
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5281 | (exit $ac_status); } >/dev/null; then |
| 5282 | if test -s conftest.err; then |
| 5283 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5285 | else |
| 5286 | ac_cpp_err= |
| 5287 | fi |
| 5288 | else |
| 5289 | ac_cpp_err=yes |
| 5290 | fi |
| 5291 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5292 | # Broken: success on invalid input. |
| 5293 | continue |
| 5294 | else |
| 5295 | echo "$as_me: failed program was:" >&5 |
| 5296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5297 | |
| 5298 | # Passes both tests. |
| 5299 | ac_preproc_ok=: |
| 5300 | break |
| 5301 | fi |
| 5302 | |
| 5303 | rm -f conftest.err conftest.$ac_ext |
| 5304 | |
| 5305 | done |
| 5306 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5307 | rm -f conftest.err conftest.$ac_ext |
| 5308 | if $ac_preproc_ok; then |
| 5309 | : |
| 5310 | else |
| 5311 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5312 | See \`config.log' for more details." >&5 |
| 5313 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5314 | See \`config.log' for more details." >&2;} |
| 5315 | { (exit 1); exit 1; }; } |
| 5316 | fi |
| 5317 | |
| 5318 | ac_ext=c |
| 5319 | ac_cpp='$CPP $CPPFLAGS' |
| 5320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5323 | |
| 5324 | ac_ext=c |
| 5325 | ac_cpp='$CPP $CPPFLAGS' |
| 5326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5329 | if test -n "$ac_tool_prefix"; then |
| 5330 | for ac_prog in gcc |
| 5331 | do |
| 5332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5336 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5338 | else |
| 5339 | if test -n "$CC"; then |
| 5340 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5341 | else |
| 5342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5343 | for as_dir in $PATH |
| 5344 | do |
| 5345 | IFS=$as_save_IFS |
| 5346 | test -z "$as_dir" && as_dir=. |
| 5347 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5348 | 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] | 5349 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5351 | break 2 |
| 5352 | fi |
| 5353 | done |
| 5354 | done |
| 5355 | IFS=$as_save_IFS |
| 5356 | |
| 5357 | fi |
| 5358 | fi |
| 5359 | CC=$ac_cv_prog_CC |
| 5360 | if test -n "$CC"; then |
| 5361 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5362 | echo "${ECHO_T}$CC" >&6; } |
| 5363 | else |
| 5364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5365 | echo "${ECHO_T}no" >&6; } |
| 5366 | fi |
| 5367 | |
| 5368 | |
| 5369 | test -n "$CC" && break |
| 5370 | done |
| 5371 | fi |
| 5372 | if test -z "$CC"; then |
| 5373 | ac_ct_CC=$CC |
| 5374 | for ac_prog in gcc |
| 5375 | do |
| 5376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5377 | set dummy $ac_prog; ac_word=$2 |
| 5378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5380 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | if test -n "$ac_ct_CC"; then |
| 5384 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5385 | else |
| 5386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5387 | for as_dir in $PATH |
| 5388 | do |
| 5389 | IFS=$as_save_IFS |
| 5390 | test -z "$as_dir" && as_dir=. |
| 5391 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5392 | 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] | 5393 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5395 | break 2 |
| 5396 | fi |
| 5397 | done |
| 5398 | done |
| 5399 | IFS=$as_save_IFS |
| 5400 | |
| 5401 | fi |
| 5402 | fi |
| 5403 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5404 | if test -n "$ac_ct_CC"; then |
| 5405 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5406 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5407 | else |
| 5408 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5409 | echo "${ECHO_T}no" >&6; } |
| 5410 | fi |
| 5411 | |
| 5412 | |
| 5413 | test -n "$ac_ct_CC" && break |
| 5414 | done |
| 5415 | |
| 5416 | if test "x$ac_ct_CC" = x; then |
| 5417 | CC="" |
| 5418 | else |
| 5419 | case $cross_compiling:$ac_tool_warned in |
| 5420 | yes:) |
| 5421 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5422 | whose name does not start with the host triplet. If you think this |
| 5423 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5424 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5425 | whose name does not start with the host triplet. If you think this |
| 5426 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5427 | ac_tool_warned=yes ;; |
| 5428 | esac |
| 5429 | CC=$ac_ct_CC |
| 5430 | fi |
| 5431 | fi |
| 5432 | |
| 5433 | |
| 5434 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5435 | See \`config.log' for more details." >&5 |
| 5436 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5437 | See \`config.log' for more details." >&2;} |
| 5438 | { (exit 1); exit 1; }; } |
| 5439 | |
| 5440 | # Provide some information about the compiler. |
| 5441 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5442 | ac_compiler=`set X $ac_compile; echo $2` |
| 5443 | { (ac_try="$ac_compiler --version >&5" |
| 5444 | case "(($ac_try" in |
| 5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5446 | *) ac_try_echo=$ac_try;; |
| 5447 | esac |
| 5448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5449 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5450 | ac_status=$? |
| 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5452 | (exit $ac_status); } |
| 5453 | { (ac_try="$ac_compiler -v >&5" |
| 5454 | case "(($ac_try" in |
| 5455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5456 | *) ac_try_echo=$ac_try;; |
| 5457 | esac |
| 5458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5459 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5460 | ac_status=$? |
| 5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5462 | (exit $ac_status); } |
| 5463 | { (ac_try="$ac_compiler -V >&5" |
| 5464 | case "(($ac_try" in |
| 5465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5466 | *) ac_try_echo=$ac_try;; |
| 5467 | esac |
| 5468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5469 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5470 | ac_status=$? |
| 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5472 | (exit $ac_status); } |
| 5473 | |
| 5474 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5475 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5476 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5478 | else |
| 5479 | cat >conftest.$ac_ext <<_ACEOF |
| 5480 | /* confdefs.h. */ |
| 5481 | _ACEOF |
| 5482 | cat confdefs.h >>conftest.$ac_ext |
| 5483 | cat >>conftest.$ac_ext <<_ACEOF |
| 5484 | /* end confdefs.h. */ |
| 5485 | |
| 5486 | int |
| 5487 | main () |
| 5488 | { |
| 5489 | #ifndef __GNUC__ |
| 5490 | choke me |
| 5491 | #endif |
| 5492 | |
| 5493 | ; |
| 5494 | return 0; |
| 5495 | } |
| 5496 | _ACEOF |
| 5497 | rm -f conftest.$ac_objext |
| 5498 | if { (ac_try="$ac_compile" |
| 5499 | case "(($ac_try" in |
| 5500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5501 | *) ac_try_echo=$ac_try;; |
| 5502 | esac |
| 5503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5504 | (eval "$ac_compile") 2>conftest.er1 |
| 5505 | ac_status=$? |
| 5506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5507 | rm -f conftest.er1 |
| 5508 | cat conftest.err >&5 |
| 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5510 | (exit $ac_status); } && |
| 5511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5512 | { (case "(($ac_try" in |
| 5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5514 | *) ac_try_echo=$ac_try;; |
| 5515 | esac |
| 5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5517 | (eval "$ac_try") 2>&5 |
| 5518 | ac_status=$? |
| 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5520 | (exit $ac_status); }; } && |
| 5521 | { ac_try='test -s conftest.$ac_objext' |
| 5522 | { (case "(($ac_try" in |
| 5523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5524 | *) ac_try_echo=$ac_try;; |
| 5525 | esac |
| 5526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5527 | (eval "$ac_try") 2>&5 |
| 5528 | ac_status=$? |
| 5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5530 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5531 | ac_compiler_gnu=yes |
| 5532 | else |
| 5533 | echo "$as_me: failed program was:" >&5 |
| 5534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5535 | |
| 5536 | ac_compiler_gnu=no |
| 5537 | fi |
| 5538 | |
| 5539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5540 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5541 | |
| 5542 | fi |
| 5543 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5544 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5545 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5546 | ac_test_CFLAGS=${CFLAGS+set} |
| 5547 | ac_save_CFLAGS=$CFLAGS |
| 5548 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5549 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5550 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5552 | else |
| 5553 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5554 | ac_c_werror_flag=yes |
| 5555 | ac_cv_prog_cc_g=no |
| 5556 | CFLAGS="-g" |
| 5557 | cat >conftest.$ac_ext <<_ACEOF |
| 5558 | /* confdefs.h. */ |
| 5559 | _ACEOF |
| 5560 | cat confdefs.h >>conftest.$ac_ext |
| 5561 | cat >>conftest.$ac_ext <<_ACEOF |
| 5562 | /* end confdefs.h. */ |
| 5563 | |
| 5564 | int |
| 5565 | main () |
| 5566 | { |
| 5567 | |
| 5568 | ; |
| 5569 | return 0; |
| 5570 | } |
| 5571 | _ACEOF |
| 5572 | rm -f conftest.$ac_objext |
| 5573 | if { (ac_try="$ac_compile" |
| 5574 | case "(($ac_try" in |
| 5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5576 | *) ac_try_echo=$ac_try;; |
| 5577 | esac |
| 5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5579 | (eval "$ac_compile") 2>conftest.er1 |
| 5580 | ac_status=$? |
| 5581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5582 | rm -f conftest.er1 |
| 5583 | cat conftest.err >&5 |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5585 | (exit $ac_status); } && |
| 5586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5587 | { (case "(($ac_try" in |
| 5588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5589 | *) ac_try_echo=$ac_try;; |
| 5590 | esac |
| 5591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5592 | (eval "$ac_try") 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; } && |
| 5596 | { ac_try='test -s conftest.$ac_objext' |
| 5597 | { (case "(($ac_try" in |
| 5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5599 | *) ac_try_echo=$ac_try;; |
| 5600 | esac |
| 5601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5602 | (eval "$ac_try") 2>&5 |
| 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5606 | ac_cv_prog_cc_g=yes |
| 5607 | else |
| 5608 | echo "$as_me: failed program was:" >&5 |
| 5609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5610 | |
| 5611 | CFLAGS="" |
| 5612 | cat >conftest.$ac_ext <<_ACEOF |
| 5613 | /* confdefs.h. */ |
| 5614 | _ACEOF |
| 5615 | cat confdefs.h >>conftest.$ac_ext |
| 5616 | cat >>conftest.$ac_ext <<_ACEOF |
| 5617 | /* end confdefs.h. */ |
| 5618 | |
| 5619 | int |
| 5620 | main () |
| 5621 | { |
| 5622 | |
| 5623 | ; |
| 5624 | return 0; |
| 5625 | } |
| 5626 | _ACEOF |
| 5627 | rm -f conftest.$ac_objext |
| 5628 | if { (ac_try="$ac_compile" |
| 5629 | case "(($ac_try" in |
| 5630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5631 | *) ac_try_echo=$ac_try;; |
| 5632 | esac |
| 5633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5634 | (eval "$ac_compile") 2>conftest.er1 |
| 5635 | ac_status=$? |
| 5636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5637 | rm -f conftest.er1 |
| 5638 | cat conftest.err >&5 |
| 5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5640 | (exit $ac_status); } && |
| 5641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5642 | { (case "(($ac_try" in |
| 5643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5644 | *) ac_try_echo=$ac_try;; |
| 5645 | esac |
| 5646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5647 | (eval "$ac_try") 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); }; } && |
| 5651 | { ac_try='test -s conftest.$ac_objext' |
| 5652 | { (case "(($ac_try" in |
| 5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5654 | *) ac_try_echo=$ac_try;; |
| 5655 | esac |
| 5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5657 | (eval "$ac_try") 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5661 | : |
| 5662 | else |
| 5663 | echo "$as_me: failed program was:" >&5 |
| 5664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5665 | |
| 5666 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5667 | CFLAGS="-g" |
| 5668 | cat >conftest.$ac_ext <<_ACEOF |
| 5669 | /* confdefs.h. */ |
| 5670 | _ACEOF |
| 5671 | cat confdefs.h >>conftest.$ac_ext |
| 5672 | cat >>conftest.$ac_ext <<_ACEOF |
| 5673 | /* end confdefs.h. */ |
| 5674 | |
| 5675 | int |
| 5676 | main () |
| 5677 | { |
| 5678 | |
| 5679 | ; |
| 5680 | return 0; |
| 5681 | } |
| 5682 | _ACEOF |
| 5683 | rm -f conftest.$ac_objext |
| 5684 | if { (ac_try="$ac_compile" |
| 5685 | case "(($ac_try" in |
| 5686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5687 | *) ac_try_echo=$ac_try;; |
| 5688 | esac |
| 5689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5690 | (eval "$ac_compile") 2>conftest.er1 |
| 5691 | ac_status=$? |
| 5692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5693 | rm -f conftest.er1 |
| 5694 | cat conftest.err >&5 |
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5696 | (exit $ac_status); } && |
| 5697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5698 | { (case "(($ac_try" in |
| 5699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5700 | *) ac_try_echo=$ac_try;; |
| 5701 | esac |
| 5702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5703 | (eval "$ac_try") 2>&5 |
| 5704 | ac_status=$? |
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5706 | (exit $ac_status); }; } && |
| 5707 | { ac_try='test -s conftest.$ac_objext' |
| 5708 | { (case "(($ac_try" in |
| 5709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5710 | *) ac_try_echo=$ac_try;; |
| 5711 | esac |
| 5712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5713 | (eval "$ac_try") 2>&5 |
| 5714 | ac_status=$? |
| 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5716 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5717 | ac_cv_prog_cc_g=yes |
| 5718 | else |
| 5719 | echo "$as_me: failed program was:" >&5 |
| 5720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5721 | |
| 5722 | |
| 5723 | fi |
| 5724 | |
| 5725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5726 | fi |
| 5727 | |
| 5728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5729 | fi |
| 5730 | |
| 5731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5732 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5733 | fi |
| 5734 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5735 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5736 | if test "$ac_test_CFLAGS" = set; then |
| 5737 | CFLAGS=$ac_save_CFLAGS |
| 5738 | elif test $ac_cv_prog_cc_g = yes; then |
| 5739 | if test "$GCC" = yes; then |
| 5740 | CFLAGS="-g -O2" |
| 5741 | else |
| 5742 | CFLAGS="-g" |
| 5743 | fi |
| 5744 | else |
| 5745 | if test "$GCC" = yes; then |
| 5746 | CFLAGS="-O2" |
| 5747 | else |
| 5748 | CFLAGS= |
| 5749 | fi |
| 5750 | fi |
| 5751 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5752 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5753 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5755 | else |
| 5756 | ac_cv_prog_cc_c89=no |
| 5757 | ac_save_CC=$CC |
| 5758 | cat >conftest.$ac_ext <<_ACEOF |
| 5759 | /* confdefs.h. */ |
| 5760 | _ACEOF |
| 5761 | cat confdefs.h >>conftest.$ac_ext |
| 5762 | cat >>conftest.$ac_ext <<_ACEOF |
| 5763 | /* end confdefs.h. */ |
| 5764 | #include <stdarg.h> |
| 5765 | #include <stdio.h> |
| 5766 | #include <sys/types.h> |
| 5767 | #include <sys/stat.h> |
| 5768 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5769 | struct buf { int x; }; |
| 5770 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5771 | static char *e (p, i) |
| 5772 | char **p; |
| 5773 | int i; |
| 5774 | { |
| 5775 | return p[i]; |
| 5776 | } |
| 5777 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5778 | { |
| 5779 | char *s; |
| 5780 | va_list v; |
| 5781 | va_start (v,p); |
| 5782 | s = g (p, va_arg (v,int)); |
| 5783 | va_end (v); |
| 5784 | return s; |
| 5785 | } |
| 5786 | |
| 5787 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5788 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5789 | These don't provoke an error unfortunately, instead are silently treated |
| 5790 | as 'x'. The following induces an error, until -std is added to get |
| 5791 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5792 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5793 | that's true only with -std. */ |
| 5794 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5795 | |
| 5796 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5797 | inside strings and character constants. */ |
| 5798 | #define FOO(x) 'x' |
| 5799 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5800 | |
| 5801 | int test (int i, double x); |
| 5802 | struct s1 {int (*f) (int a);}; |
| 5803 | struct s2 {int (*f) (double a);}; |
| 5804 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5805 | int argc; |
| 5806 | char **argv; |
| 5807 | int |
| 5808 | main () |
| 5809 | { |
| 5810 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5811 | ; |
| 5812 | return 0; |
| 5813 | } |
| 5814 | _ACEOF |
| 5815 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5816 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5817 | do |
| 5818 | CC="$ac_save_CC $ac_arg" |
| 5819 | rm -f conftest.$ac_objext |
| 5820 | if { (ac_try="$ac_compile" |
| 5821 | case "(($ac_try" in |
| 5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5823 | *) ac_try_echo=$ac_try;; |
| 5824 | esac |
| 5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5826 | (eval "$ac_compile") 2>conftest.er1 |
| 5827 | ac_status=$? |
| 5828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5829 | rm -f conftest.er1 |
| 5830 | cat conftest.err >&5 |
| 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5832 | (exit $ac_status); } && |
| 5833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5834 | { (case "(($ac_try" in |
| 5835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5836 | *) ac_try_echo=$ac_try;; |
| 5837 | esac |
| 5838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5839 | (eval "$ac_try") 2>&5 |
| 5840 | ac_status=$? |
| 5841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5842 | (exit $ac_status); }; } && |
| 5843 | { ac_try='test -s conftest.$ac_objext' |
| 5844 | { (case "(($ac_try" in |
| 5845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5846 | *) ac_try_echo=$ac_try;; |
| 5847 | esac |
| 5848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5849 | (eval "$ac_try") 2>&5 |
| 5850 | ac_status=$? |
| 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5852 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5853 | ac_cv_prog_cc_c89=$ac_arg |
| 5854 | else |
| 5855 | echo "$as_me: failed program was:" >&5 |
| 5856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5857 | |
| 5858 | |
| 5859 | fi |
| 5860 | |
| 5861 | rm -f core conftest.err conftest.$ac_objext |
| 5862 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5863 | done |
| 5864 | rm -f conftest.$ac_ext |
| 5865 | CC=$ac_save_CC |
| 5866 | |
| 5867 | fi |
| 5868 | # AC_CACHE_VAL |
| 5869 | case "x$ac_cv_prog_cc_c89" in |
| 5870 | x) |
| 5871 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5872 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5873 | xno) |
| 5874 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5875 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5876 | *) |
| 5877 | CC="$CC $ac_cv_prog_cc_c89" |
| 5878 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5879 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5880 | esac |
| 5881 | |
| 5882 | |
| 5883 | ac_ext=c |
| 5884 | ac_cpp='$CPP $CPPFLAGS' |
| 5885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5888 | |
| 5889 | ac_ext=cpp |
| 5890 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5891 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5892 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5893 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5894 | if test -z "$CXX"; then |
| 5895 | if test -n "$CCC"; then |
| 5896 | CXX=$CCC |
| 5897 | else |
| 5898 | if test -n "$ac_tool_prefix"; then |
| 5899 | for ac_prog in g++ |
| 5900 | do |
| 5901 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5902 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5903 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5905 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5907 | else |
| 5908 | if test -n "$CXX"; then |
| 5909 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5910 | else |
| 5911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5912 | for as_dir in $PATH |
| 5913 | do |
| 5914 | IFS=$as_save_IFS |
| 5915 | test -z "$as_dir" && as_dir=. |
| 5916 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5917 | 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] | 5918 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5920 | break 2 |
| 5921 | fi |
| 5922 | done |
| 5923 | done |
| 5924 | IFS=$as_save_IFS |
| 5925 | |
| 5926 | fi |
| 5927 | fi |
| 5928 | CXX=$ac_cv_prog_CXX |
| 5929 | if test -n "$CXX"; then |
| 5930 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5931 | echo "${ECHO_T}$CXX" >&6; } |
| 5932 | else |
| 5933 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5934 | echo "${ECHO_T}no" >&6; } |
| 5935 | fi |
| 5936 | |
| 5937 | |
| 5938 | test -n "$CXX" && break |
| 5939 | done |
| 5940 | fi |
| 5941 | if test -z "$CXX"; then |
| 5942 | ac_ct_CXX=$CXX |
| 5943 | for ac_prog in g++ |
| 5944 | do |
| 5945 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5946 | set dummy $ac_prog; ac_word=$2 |
| 5947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5949 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5951 | else |
| 5952 | if test -n "$ac_ct_CXX"; then |
| 5953 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5954 | else |
| 5955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5956 | for as_dir in $PATH |
| 5957 | do |
| 5958 | IFS=$as_save_IFS |
| 5959 | test -z "$as_dir" && as_dir=. |
| 5960 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 5961 | 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] | 5962 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5964 | break 2 |
| 5965 | fi |
| 5966 | done |
| 5967 | done |
| 5968 | IFS=$as_save_IFS |
| 5969 | |
| 5970 | fi |
| 5971 | fi |
| 5972 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5973 | if test -n "$ac_ct_CXX"; then |
| 5974 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5975 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5976 | else |
| 5977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5978 | echo "${ECHO_T}no" >&6; } |
| 5979 | fi |
| 5980 | |
| 5981 | |
| 5982 | test -n "$ac_ct_CXX" && break |
| 5983 | done |
| 5984 | |
| 5985 | if test "x$ac_ct_CXX" = x; then |
| 5986 | CXX="g++" |
| 5987 | else |
| 5988 | case $cross_compiling:$ac_tool_warned in |
| 5989 | yes:) |
| 5990 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5991 | whose name does not start with the host triplet. If you think this |
| 5992 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5993 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5994 | whose name does not start with the host triplet. If you think this |
| 5995 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5996 | ac_tool_warned=yes ;; |
| 5997 | esac |
| 5998 | CXX=$ac_ct_CXX |
| 5999 | fi |
| 6000 | fi |
| 6001 | |
| 6002 | fi |
| 6003 | fi |
| 6004 | # Provide some information about the compiler. |
| 6005 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6006 | ac_compiler=`set X $ac_compile; echo $2` |
| 6007 | { (ac_try="$ac_compiler --version >&5" |
| 6008 | case "(($ac_try" in |
| 6009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6010 | *) ac_try_echo=$ac_try;; |
| 6011 | esac |
| 6012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6013 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6014 | ac_status=$? |
| 6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6016 | (exit $ac_status); } |
| 6017 | { (ac_try="$ac_compiler -v >&5" |
| 6018 | case "(($ac_try" in |
| 6019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6020 | *) ac_try_echo=$ac_try;; |
| 6021 | esac |
| 6022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6023 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6024 | ac_status=$? |
| 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6026 | (exit $ac_status); } |
| 6027 | { (ac_try="$ac_compiler -V >&5" |
| 6028 | case "(($ac_try" in |
| 6029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6030 | *) ac_try_echo=$ac_try;; |
| 6031 | esac |
| 6032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6033 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6034 | ac_status=$? |
| 6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6036 | (exit $ac_status); } |
| 6037 | |
| 6038 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6039 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6040 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6042 | else |
| 6043 | cat >conftest.$ac_ext <<_ACEOF |
| 6044 | /* confdefs.h. */ |
| 6045 | _ACEOF |
| 6046 | cat confdefs.h >>conftest.$ac_ext |
| 6047 | cat >>conftest.$ac_ext <<_ACEOF |
| 6048 | /* end confdefs.h. */ |
| 6049 | |
| 6050 | int |
| 6051 | main () |
| 6052 | { |
| 6053 | #ifndef __GNUC__ |
| 6054 | choke me |
| 6055 | #endif |
| 6056 | |
| 6057 | ; |
| 6058 | return 0; |
| 6059 | } |
| 6060 | _ACEOF |
| 6061 | rm -f conftest.$ac_objext |
| 6062 | if { (ac_try="$ac_compile" |
| 6063 | case "(($ac_try" in |
| 6064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6065 | *) ac_try_echo=$ac_try;; |
| 6066 | esac |
| 6067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6068 | (eval "$ac_compile") 2>conftest.er1 |
| 6069 | ac_status=$? |
| 6070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6071 | rm -f conftest.er1 |
| 6072 | cat conftest.err >&5 |
| 6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6074 | (exit $ac_status); } && |
| 6075 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6076 | { (case "(($ac_try" in |
| 6077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6078 | *) ac_try_echo=$ac_try;; |
| 6079 | esac |
| 6080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6081 | (eval "$ac_try") 2>&5 |
| 6082 | ac_status=$? |
| 6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6084 | (exit $ac_status); }; } && |
| 6085 | { ac_try='test -s conftest.$ac_objext' |
| 6086 | { (case "(($ac_try" in |
| 6087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6088 | *) ac_try_echo=$ac_try;; |
| 6089 | esac |
| 6090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6091 | (eval "$ac_try") 2>&5 |
| 6092 | ac_status=$? |
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6094 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6095 | ac_compiler_gnu=yes |
| 6096 | else |
| 6097 | echo "$as_me: failed program was:" >&5 |
| 6098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6099 | |
| 6100 | ac_compiler_gnu=no |
| 6101 | fi |
| 6102 | |
| 6103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6104 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6105 | |
| 6106 | fi |
| 6107 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6108 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6109 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6110 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6111 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6112 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6113 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6114 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6116 | else |
| 6117 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6118 | ac_cxx_werror_flag=yes |
| 6119 | ac_cv_prog_cxx_g=no |
| 6120 | CXXFLAGS="-g" |
| 6121 | cat >conftest.$ac_ext <<_ACEOF |
| 6122 | /* confdefs.h. */ |
| 6123 | _ACEOF |
| 6124 | cat confdefs.h >>conftest.$ac_ext |
| 6125 | cat >>conftest.$ac_ext <<_ACEOF |
| 6126 | /* end confdefs.h. */ |
| 6127 | |
| 6128 | int |
| 6129 | main () |
| 6130 | { |
| 6131 | |
| 6132 | ; |
| 6133 | return 0; |
| 6134 | } |
| 6135 | _ACEOF |
| 6136 | rm -f conftest.$ac_objext |
| 6137 | if { (ac_try="$ac_compile" |
| 6138 | case "(($ac_try" in |
| 6139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6140 | *) ac_try_echo=$ac_try;; |
| 6141 | esac |
| 6142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6143 | (eval "$ac_compile") 2>conftest.er1 |
| 6144 | ac_status=$? |
| 6145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6146 | rm -f conftest.er1 |
| 6147 | cat conftest.err >&5 |
| 6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6149 | (exit $ac_status); } && |
| 6150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6151 | { (case "(($ac_try" in |
| 6152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6153 | *) ac_try_echo=$ac_try;; |
| 6154 | esac |
| 6155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6156 | (eval "$ac_try") 2>&5 |
| 6157 | ac_status=$? |
| 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6159 | (exit $ac_status); }; } && |
| 6160 | { ac_try='test -s conftest.$ac_objext' |
| 6161 | { (case "(($ac_try" in |
| 6162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6163 | *) ac_try_echo=$ac_try;; |
| 6164 | esac |
| 6165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6166 | (eval "$ac_try") 2>&5 |
| 6167 | ac_status=$? |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6170 | ac_cv_prog_cxx_g=yes |
| 6171 | else |
| 6172 | echo "$as_me: failed program was:" >&5 |
| 6173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6174 | |
| 6175 | CXXFLAGS="" |
| 6176 | cat >conftest.$ac_ext <<_ACEOF |
| 6177 | /* confdefs.h. */ |
| 6178 | _ACEOF |
| 6179 | cat confdefs.h >>conftest.$ac_ext |
| 6180 | cat >>conftest.$ac_ext <<_ACEOF |
| 6181 | /* end confdefs.h. */ |
| 6182 | |
| 6183 | int |
| 6184 | main () |
| 6185 | { |
| 6186 | |
| 6187 | ; |
| 6188 | return 0; |
| 6189 | } |
| 6190 | _ACEOF |
| 6191 | rm -f conftest.$ac_objext |
| 6192 | if { (ac_try="$ac_compile" |
| 6193 | case "(($ac_try" in |
| 6194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6195 | *) ac_try_echo=$ac_try;; |
| 6196 | esac |
| 6197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6198 | (eval "$ac_compile") 2>conftest.er1 |
| 6199 | ac_status=$? |
| 6200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6201 | rm -f conftest.er1 |
| 6202 | cat conftest.err >&5 |
| 6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6204 | (exit $ac_status); } && |
| 6205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6206 | { (case "(($ac_try" in |
| 6207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6208 | *) ac_try_echo=$ac_try;; |
| 6209 | esac |
| 6210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6211 | (eval "$ac_try") 2>&5 |
| 6212 | ac_status=$? |
| 6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6214 | (exit $ac_status); }; } && |
| 6215 | { ac_try='test -s conftest.$ac_objext' |
| 6216 | { (case "(($ac_try" in |
| 6217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6218 | *) ac_try_echo=$ac_try;; |
| 6219 | esac |
| 6220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6221 | (eval "$ac_try") 2>&5 |
| 6222 | ac_status=$? |
| 6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6224 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6225 | : |
| 6226 | else |
| 6227 | echo "$as_me: failed program was:" >&5 |
| 6228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6229 | |
| 6230 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6231 | CXXFLAGS="-g" |
| 6232 | cat >conftest.$ac_ext <<_ACEOF |
| 6233 | /* confdefs.h. */ |
| 6234 | _ACEOF |
| 6235 | cat confdefs.h >>conftest.$ac_ext |
| 6236 | cat >>conftest.$ac_ext <<_ACEOF |
| 6237 | /* end confdefs.h. */ |
| 6238 | |
| 6239 | int |
| 6240 | main () |
| 6241 | { |
| 6242 | |
| 6243 | ; |
| 6244 | return 0; |
| 6245 | } |
| 6246 | _ACEOF |
| 6247 | rm -f conftest.$ac_objext |
| 6248 | if { (ac_try="$ac_compile" |
| 6249 | case "(($ac_try" in |
| 6250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6251 | *) ac_try_echo=$ac_try;; |
| 6252 | esac |
| 6253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6254 | (eval "$ac_compile") 2>conftest.er1 |
| 6255 | ac_status=$? |
| 6256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6257 | rm -f conftest.er1 |
| 6258 | cat conftest.err >&5 |
| 6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6260 | (exit $ac_status); } && |
| 6261 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6262 | { (case "(($ac_try" in |
| 6263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6264 | *) ac_try_echo=$ac_try;; |
| 6265 | esac |
| 6266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6267 | (eval "$ac_try") 2>&5 |
| 6268 | ac_status=$? |
| 6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6270 | (exit $ac_status); }; } && |
| 6271 | { ac_try='test -s conftest.$ac_objext' |
| 6272 | { (case "(($ac_try" in |
| 6273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6274 | *) ac_try_echo=$ac_try;; |
| 6275 | esac |
| 6276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6277 | (eval "$ac_try") 2>&5 |
| 6278 | ac_status=$? |
| 6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6280 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6281 | ac_cv_prog_cxx_g=yes |
| 6282 | else |
| 6283 | echo "$as_me: failed program was:" >&5 |
| 6284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6285 | |
| 6286 | |
| 6287 | fi |
| 6288 | |
| 6289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6290 | fi |
| 6291 | |
| 6292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6293 | fi |
| 6294 | |
| 6295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6296 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6297 | fi |
| 6298 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6299 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6300 | if test "$ac_test_CXXFLAGS" = set; then |
| 6301 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6302 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6303 | if test "$GXX" = yes; then |
| 6304 | CXXFLAGS="-g -O2" |
| 6305 | else |
| 6306 | CXXFLAGS="-g" |
| 6307 | fi |
| 6308 | else |
| 6309 | if test "$GXX" = yes; then |
| 6310 | CXXFLAGS="-O2" |
| 6311 | else |
| 6312 | CXXFLAGS= |
| 6313 | fi |
| 6314 | fi |
| 6315 | ac_ext=c |
| 6316 | ac_cpp='$CPP $CPPFLAGS' |
| 6317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6320 | |
| 6321 | { echo "$as_me:$LINENO: checking " >&5 |
| 6322 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6323 | if test "${ac_cv_has_flex+set}" = set; then |
| 6324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6325 | else |
| 6326 | for ac_prog in flex lex |
| 6327 | do |
| 6328 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6329 | set dummy $ac_prog; ac_word=$2 |
| 6330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6332 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 6333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6334 | else |
| 6335 | if test -n "$LEX"; then |
| 6336 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 6337 | else |
| 6338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6339 | for as_dir in $PATH |
| 6340 | do |
| 6341 | IFS=$as_save_IFS |
| 6342 | test -z "$as_dir" && as_dir=. |
| 6343 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6344 | 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] | 6345 | ac_cv_prog_LEX="$ac_prog" |
| 6346 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6347 | break 2 |
| 6348 | fi |
| 6349 | done |
| 6350 | done |
| 6351 | IFS=$as_save_IFS |
| 6352 | |
| 6353 | fi |
| 6354 | fi |
| 6355 | LEX=$ac_cv_prog_LEX |
| 6356 | if test -n "$LEX"; then |
| 6357 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6358 | echo "${ECHO_T}$LEX" >&6; } |
| 6359 | else |
| 6360 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6361 | echo "${ECHO_T}no" >&6; } |
| 6362 | fi |
| 6363 | |
| 6364 | |
| 6365 | test -n "$LEX" && break |
| 6366 | done |
| 6367 | test -n "$LEX" || LEX=":" |
| 6368 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6369 | if test -z "$LEXLIB" |
| 6370 | then |
| 6371 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6372 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6373 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6375 | else |
| 6376 | ac_check_lib_save_LIBS=$LIBS |
| 6377 | LIBS="-lfl $LIBS" |
| 6378 | cat >conftest.$ac_ext <<_ACEOF |
| 6379 | /* confdefs.h. */ |
| 6380 | _ACEOF |
| 6381 | cat confdefs.h >>conftest.$ac_ext |
| 6382 | cat >>conftest.$ac_ext <<_ACEOF |
| 6383 | /* end confdefs.h. */ |
| 6384 | |
| 6385 | /* Override any GCC internal prototype to avoid an error. |
| 6386 | Use char because int might match the return type of a GCC |
| 6387 | builtin and then its argument prototype would still apply. */ |
| 6388 | #ifdef __cplusplus |
| 6389 | extern "C" |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6390 | #endif |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6391 | char yywrap (); |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6392 | int |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6393 | main () |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6394 | { |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6395 | return yywrap (); |
| 6396 | ; |
| 6397 | return 0; |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6398 | } |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6399 | _ACEOF |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6401 | if { (ac_try="$ac_link" |
| 6402 | case "(($ac_try" in |
| 6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6404 | *) ac_try_echo=$ac_try;; |
| 6405 | esac |
| 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6407 | (eval "$ac_link") 2>conftest.er1 |
| 6408 | ac_status=$? |
| 6409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6410 | rm -f conftest.er1 |
| 6411 | cat conftest.err >&5 |
| 6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6413 | (exit $ac_status); } && |
| 6414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6415 | { (case "(($ac_try" in |
| 6416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6417 | *) ac_try_echo=$ac_try;; |
| 6418 | esac |
| 6419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6420 | (eval "$ac_try") 2>&5 |
| 6421 | ac_status=$? |
| 6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6423 | (exit $ac_status); }; } && |
| 6424 | { ac_try='test -s conftest$ac_exeext' |
| 6425 | { (case "(($ac_try" in |
| 6426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6427 | *) ac_try_echo=$ac_try;; |
| 6428 | esac |
| 6429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6430 | (eval "$ac_try") 2>&5 |
| 6431 | ac_status=$? |
| 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); }; }; then |
| 6434 | ac_cv_lib_fl_yywrap=yes |
| 6435 | else |
| 6436 | echo "$as_me: failed program was:" >&5 |
| 6437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6438 | |
| 6439 | ac_cv_lib_fl_yywrap=no |
| 6440 | fi |
| 6441 | |
| 6442 | rm -f core conftest.err conftest.$ac_objext \ |
| 6443 | conftest$ac_exeext conftest.$ac_ext |
| 6444 | LIBS=$ac_check_lib_save_LIBS |
| 6445 | fi |
| 6446 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6447 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6448 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6449 | LEXLIB="-lfl" |
| 6450 | else |
| 6451 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6452 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6453 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6455 | else |
| 6456 | ac_check_lib_save_LIBS=$LIBS |
| 6457 | LIBS="-ll $LIBS" |
| 6458 | cat >conftest.$ac_ext <<_ACEOF |
| 6459 | /* confdefs.h. */ |
| 6460 | _ACEOF |
| 6461 | cat confdefs.h >>conftest.$ac_ext |
| 6462 | cat >>conftest.$ac_ext <<_ACEOF |
| 6463 | /* end confdefs.h. */ |
| 6464 | |
| 6465 | /* Override any GCC internal prototype to avoid an error. |
| 6466 | Use char because int might match the return type of a GCC |
| 6467 | builtin and then its argument prototype would still apply. */ |
| 6468 | #ifdef __cplusplus |
| 6469 | extern "C" |
| 6470 | #endif |
| 6471 | char yywrap (); |
| 6472 | int |
| 6473 | main () |
| 6474 | { |
| 6475 | return yywrap (); |
| 6476 | ; |
| 6477 | return 0; |
| 6478 | } |
| 6479 | _ACEOF |
| 6480 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6481 | if { (ac_try="$ac_link" |
| 6482 | case "(($ac_try" in |
| 6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6484 | *) ac_try_echo=$ac_try;; |
| 6485 | esac |
| 6486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6487 | (eval "$ac_link") 2>conftest.er1 |
| 6488 | ac_status=$? |
| 6489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6490 | rm -f conftest.er1 |
| 6491 | cat conftest.err >&5 |
| 6492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6493 | (exit $ac_status); } && |
| 6494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6495 | { (case "(($ac_try" in |
| 6496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6497 | *) ac_try_echo=$ac_try;; |
| 6498 | esac |
| 6499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6500 | (eval "$ac_try") 2>&5 |
| 6501 | ac_status=$? |
| 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6503 | (exit $ac_status); }; } && |
| 6504 | { ac_try='test -s conftest$ac_exeext' |
| 6505 | { (case "(($ac_try" in |
| 6506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6507 | *) ac_try_echo=$ac_try;; |
| 6508 | esac |
| 6509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6510 | (eval "$ac_try") 2>&5 |
| 6511 | ac_status=$? |
| 6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6513 | (exit $ac_status); }; }; then |
| 6514 | ac_cv_lib_l_yywrap=yes |
| 6515 | else |
| 6516 | echo "$as_me: failed program was:" >&5 |
| 6517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6518 | |
| 6519 | ac_cv_lib_l_yywrap=no |
| 6520 | fi |
| 6521 | |
| 6522 | rm -f core conftest.err conftest.$ac_objext \ |
| 6523 | conftest$ac_exeext conftest.$ac_ext |
| 6524 | LIBS=$ac_check_lib_save_LIBS |
| 6525 | fi |
| 6526 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6527 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6528 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6529 | LEXLIB="-ll" |
| 6530 | fi |
| 6531 | |
| 6532 | fi |
| 6533 | |
| 6534 | fi |
| 6535 | |
| 6536 | if test "x$LEX" != "x:"; then |
| 6537 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6538 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6539 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6541 | else |
| 6542 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6543 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6544 | cat >conftest.l <<_ACEOF |
| 6545 | %% |
| 6546 | %% |
| 6547 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6548 | { (ac_try="$LEX conftest.l" |
| 6549 | case "(($ac_try" in |
| 6550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6551 | *) ac_try_echo=$ac_try;; |
| 6552 | esac |
| 6553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6554 | (eval "$LEX conftest.l") 2>&5 |
| 6555 | ac_status=$? |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); } |
| 6558 | if test -f lex.yy.c; then |
| 6559 | ac_cv_prog_lex_root=lex.yy |
| 6560 | elif test -f lexyy.c; then |
| 6561 | ac_cv_prog_lex_root=lexyy |
| 6562 | else |
| 6563 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6564 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6565 | { (exit 1); exit 1; }; } |
| 6566 | fi |
| 6567 | fi |
| 6568 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6569 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6570 | rm -f conftest.l |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6571 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6572 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6573 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6574 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6575 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6577 | else |
| 6578 | # POSIX says lex can declare yytext either as a pointer or an array; the |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6579 | # default is implementation-dependent. Figure out which it is, since |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6580 | # not all implementations provide the %pointer and %array declarations. |
| 6581 | ac_cv_prog_lex_yytext_pointer=no |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6582 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6583 | ac_save_LIBS=$LIBS |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6584 | LIBS="$LIBS $LEXLIB" |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6585 | cat >conftest.$ac_ext <<_ACEOF |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6586 | `cat $LEX_OUTPUT_ROOT.c` |
| 6587 | _ACEOF |
| 6588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6589 | if { (ac_try="$ac_link" |
| 6590 | case "(($ac_try" in |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6592 | *) ac_try_echo=$ac_try;; |
| 6593 | esac |
| 6594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6595 | (eval "$ac_link") 2>conftest.er1 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6596 | ac_status=$? |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 6597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6598 | rm -f conftest.er1 |
| 6599 | cat conftest.err >&5 |
Tanya Lattner | cf06767 | 2008-01-17 05:57:22 +0000 | [diff] [blame] | 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6601 | (exit $ac_status); } && |
| 6602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6603 | { (case "(($ac_try" in |
| 6604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6605 | *) ac_try_echo=$ac_try;; |
| 6606 | esac |
| 6607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6608 | (eval "$ac_try") 2>&5 |
| 6609 | ac_status=$? |
| 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6611 | (exit $ac_status); }; } && |
| 6612 | { ac_try='test -s conftest$ac_exeext' |
| 6613 | { (case "(($ac_try" in |
| 6614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6615 | *) ac_try_echo=$ac_try;; |
| 6616 | esac |
| 6617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6618 | (eval "$ac_try") 2>&5 |
| 6619 | ac_status=$? |
| 6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6621 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6622 | ac_cv_prog_lex_yytext_pointer=yes |
| 6623 | else |
| 6624 | echo "$as_me: failed program was:" >&5 |
| 6625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6626 | |
| 6627 | |
| 6628 | fi |
| 6629 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6630 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6631 | conftest$ac_exeext conftest.$ac_ext |
| 6632 | LIBS=$ac_save_LIBS |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6633 | rm -f "${LEX_OUTPUT_ROOT}.c" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6634 | |
| 6635 | fi |
| 6636 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6637 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6638 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6639 | |
| 6640 | cat >>confdefs.h <<\_ACEOF |
| 6641 | #define YYTEXT_POINTER 1 |
| 6642 | _ACEOF |
| 6643 | |
| 6644 | fi |
| 6645 | |
| 6646 | fi |
| 6647 | |
| 6648 | fi |
| 6649 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6650 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6651 | if test "$LEX" != "flex"; then |
| 6652 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6653 | echo "$as_me: error: flex not found but required" >&2;} |
| 6654 | { (exit 1); exit 1; }; } |
| 6655 | else |
| 6656 | FLEX=flex |
| 6657 | |
| 6658 | fi |
| 6659 | |
| 6660 | { echo "$as_me:$LINENO: checking " >&5 |
| 6661 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6662 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6664 | else |
| 6665 | for ac_prog in 'bison -y' byacc |
| 6666 | do |
| 6667 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6668 | set dummy $ac_prog; ac_word=$2 |
| 6669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6671 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6673 | else |
| 6674 | if test -n "$YACC"; then |
| 6675 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6676 | else |
| 6677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6678 | for as_dir in $PATH |
| 6679 | do |
| 6680 | IFS=$as_save_IFS |
| 6681 | test -z "$as_dir" && as_dir=. |
| 6682 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6683 | 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] | 6684 | ac_cv_prog_YACC="$ac_prog" |
| 6685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6686 | break 2 |
| 6687 | fi |
| 6688 | done |
| 6689 | done |
| 6690 | IFS=$as_save_IFS |
| 6691 | |
| 6692 | fi |
| 6693 | fi |
| 6694 | YACC=$ac_cv_prog_YACC |
| 6695 | if test -n "$YACC"; then |
| 6696 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6697 | echo "${ECHO_T}$YACC" >&6; } |
| 6698 | else |
| 6699 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6700 | echo "${ECHO_T}no" >&6; } |
| 6701 | fi |
| 6702 | |
| 6703 | |
| 6704 | test -n "$YACC" && break |
| 6705 | done |
| 6706 | test -n "$YACC" || YACC="yacc" |
| 6707 | |
| 6708 | fi |
| 6709 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6710 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6711 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6712 | |
| 6713 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6714 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6715 | else |
| 6716 | BISON=bison |
| 6717 | |
| 6718 | fi |
| 6719 | |
| 6720 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6721 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6722 | if test "${lt_cv_path_NM+set}" = set; then |
| 6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6724 | else |
| 6725 | if test -n "$NM"; then |
| 6726 | # Let the user override the test. |
| 6727 | lt_cv_path_NM="$NM" |
| 6728 | else |
| 6729 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6730 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6731 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6732 | fi |
| 6733 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6734 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6735 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6736 | IFS="$lt_save_ifs" |
| 6737 | test -z "$ac_dir" && ac_dir=. |
| 6738 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6739 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6740 | # Check to see if the nm accepts a BSD-compat flag. |
| 6741 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6742 | # nm: unknown option "B" ignored |
| 6743 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6744 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6745 | */dev/null* | *'Invalid file or object type'*) |
| 6746 | lt_cv_path_NM="$tmp_nm -B" |
| 6747 | break |
| 6748 | ;; |
| 6749 | *) |
| 6750 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6751 | */dev/null*) |
| 6752 | lt_cv_path_NM="$tmp_nm -p" |
| 6753 | break |
| 6754 | ;; |
| 6755 | *) |
| 6756 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6757 | continue # so that we can try to find one that supports BSD flags |
| 6758 | ;; |
| 6759 | esac |
| 6760 | ;; |
| 6761 | esac |
| 6762 | fi |
| 6763 | done |
| 6764 | IFS="$lt_save_ifs" |
| 6765 | done |
| 6766 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6767 | fi |
| 6768 | fi |
| 6769 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6770 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6771 | NM="$lt_cv_path_NM" |
| 6772 | |
| 6773 | |
| 6774 | |
| 6775 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6776 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6777 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6779 | else |
| 6780 | llvm_cv_gnu_make_command='' |
| 6781 | for a in "$MAKE" make gmake gnumake ; do |
| 6782 | if test -z "$a" ; then continue ; fi ; |
| 6783 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6784 | then |
| 6785 | llvm_cv_gnu_make_command=$a ; |
| 6786 | break; |
| 6787 | fi |
| 6788 | done |
| 6789 | fi |
| 6790 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6791 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6792 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6793 | ifGNUmake='' ; |
| 6794 | else |
| 6795 | ifGNUmake='#' ; |
| 6796 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6797 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6798 | fi |
| 6799 | |
| 6800 | |
| 6801 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6802 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6803 | LN_S=$as_ln_s |
| 6804 | if test "$LN_S" = "ln -s"; then |
| 6805 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6806 | echo "${ECHO_T}yes" >&6; } |
| 6807 | else |
| 6808 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6809 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6810 | fi |
| 6811 | |
| 6812 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6813 | set dummy cmp; ac_word=$2 |
| 6814 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6816 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6818 | else |
| 6819 | case $CMP in |
| 6820 | [\\/]* | ?:[\\/]*) |
| 6821 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6822 | ;; |
| 6823 | *) |
| 6824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6825 | for as_dir in $PATH |
| 6826 | do |
| 6827 | IFS=$as_save_IFS |
| 6828 | test -z "$as_dir" && as_dir=. |
| 6829 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6830 | 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] | 6831 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6833 | break 2 |
| 6834 | fi |
| 6835 | done |
| 6836 | done |
| 6837 | IFS=$as_save_IFS |
| 6838 | |
| 6839 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6840 | ;; |
| 6841 | esac |
| 6842 | fi |
| 6843 | CMP=$ac_cv_path_CMP |
| 6844 | if test -n "$CMP"; then |
| 6845 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6846 | echo "${ECHO_T}$CMP" >&6; } |
| 6847 | else |
| 6848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6849 | echo "${ECHO_T}no" >&6; } |
| 6850 | fi |
| 6851 | |
| 6852 | |
| 6853 | # Extract the first word of "cp", so it can be a program name with args. |
| 6854 | set dummy cp; ac_word=$2 |
| 6855 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6857 | if test "${ac_cv_path_CP+set}" = set; then |
| 6858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6859 | else |
| 6860 | case $CP in |
| 6861 | [\\/]* | ?:[\\/]*) |
| 6862 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6863 | ;; |
| 6864 | *) |
| 6865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6866 | for as_dir in $PATH |
| 6867 | do |
| 6868 | IFS=$as_save_IFS |
| 6869 | test -z "$as_dir" && as_dir=. |
| 6870 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6871 | 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] | 6872 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6874 | break 2 |
| 6875 | fi |
| 6876 | done |
| 6877 | done |
| 6878 | IFS=$as_save_IFS |
| 6879 | |
| 6880 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6881 | ;; |
| 6882 | esac |
| 6883 | fi |
| 6884 | CP=$ac_cv_path_CP |
| 6885 | if test -n "$CP"; then |
| 6886 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6887 | echo "${ECHO_T}$CP" >&6; } |
| 6888 | else |
| 6889 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6890 | echo "${ECHO_T}no" >&6; } |
| 6891 | fi |
| 6892 | |
| 6893 | |
| 6894 | # Extract the first word of "date", so it can be a program name with args. |
| 6895 | set dummy date; ac_word=$2 |
| 6896 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6898 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6900 | else |
| 6901 | case $DATE in |
| 6902 | [\\/]* | ?:[\\/]*) |
| 6903 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6904 | ;; |
| 6905 | *) |
| 6906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6907 | for as_dir in $PATH |
| 6908 | do |
| 6909 | IFS=$as_save_IFS |
| 6910 | test -z "$as_dir" && as_dir=. |
| 6911 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6912 | 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] | 6913 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6915 | break 2 |
| 6916 | fi |
| 6917 | done |
| 6918 | done |
| 6919 | IFS=$as_save_IFS |
| 6920 | |
| 6921 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6922 | ;; |
| 6923 | esac |
| 6924 | fi |
| 6925 | DATE=$ac_cv_path_DATE |
| 6926 | if test -n "$DATE"; then |
| 6927 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6928 | echo "${ECHO_T}$DATE" >&6; } |
| 6929 | else |
| 6930 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6931 | echo "${ECHO_T}no" >&6; } |
| 6932 | fi |
| 6933 | |
| 6934 | |
| 6935 | # Extract the first word of "find", so it can be a program name with args. |
| 6936 | set dummy find; ac_word=$2 |
| 6937 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6939 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6941 | else |
| 6942 | case $FIND in |
| 6943 | [\\/]* | ?:[\\/]*) |
| 6944 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6945 | ;; |
| 6946 | *) |
| 6947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6948 | for as_dir in $PATH |
| 6949 | do |
| 6950 | IFS=$as_save_IFS |
| 6951 | test -z "$as_dir" && as_dir=. |
| 6952 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6953 | 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] | 6954 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6956 | break 2 |
| 6957 | fi |
| 6958 | done |
| 6959 | done |
| 6960 | IFS=$as_save_IFS |
| 6961 | |
| 6962 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6963 | ;; |
| 6964 | esac |
| 6965 | fi |
| 6966 | FIND=$ac_cv_path_FIND |
| 6967 | if test -n "$FIND"; then |
| 6968 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6969 | echo "${ECHO_T}$FIND" >&6; } |
| 6970 | else |
| 6971 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6972 | echo "${ECHO_T}no" >&6; } |
| 6973 | fi |
| 6974 | |
| 6975 | |
| 6976 | # Extract the first word of "grep", so it can be a program name with args. |
| 6977 | set dummy grep; ac_word=$2 |
| 6978 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6980 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6982 | else |
| 6983 | case $GREP in |
| 6984 | [\\/]* | ?:[\\/]*) |
| 6985 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6986 | ;; |
| 6987 | *) |
| 6988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6989 | for as_dir in $PATH |
| 6990 | do |
| 6991 | IFS=$as_save_IFS |
| 6992 | test -z "$as_dir" && as_dir=. |
| 6993 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 6994 | 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] | 6995 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6997 | break 2 |
| 6998 | fi |
| 6999 | done |
| 7000 | done |
| 7001 | IFS=$as_save_IFS |
| 7002 | |
| 7003 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 7004 | ;; |
| 7005 | esac |
| 7006 | fi |
| 7007 | GREP=$ac_cv_path_GREP |
| 7008 | if test -n "$GREP"; then |
| 7009 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 7010 | echo "${ECHO_T}$GREP" >&6; } |
| 7011 | else |
| 7012 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7013 | echo "${ECHO_T}no" >&6; } |
| 7014 | fi |
| 7015 | |
| 7016 | |
| 7017 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 7018 | set dummy mkdir; ac_word=$2 |
| 7019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7021 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 7022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7023 | else |
| 7024 | case $MKDIR in |
| 7025 | [\\/]* | ?:[\\/]*) |
| 7026 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 7027 | ;; |
| 7028 | *) |
| 7029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7030 | for as_dir in $PATH |
| 7031 | do |
| 7032 | IFS=$as_save_IFS |
| 7033 | test -z "$as_dir" && as_dir=. |
| 7034 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7035 | 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] | 7036 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 7037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7038 | break 2 |
| 7039 | fi |
| 7040 | done |
| 7041 | done |
| 7042 | IFS=$as_save_IFS |
| 7043 | |
| 7044 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 7045 | ;; |
| 7046 | esac |
| 7047 | fi |
| 7048 | MKDIR=$ac_cv_path_MKDIR |
| 7049 | if test -n "$MKDIR"; then |
| 7050 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7051 | echo "${ECHO_T}$MKDIR" >&6; } |
| 7052 | else |
| 7053 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7054 | echo "${ECHO_T}no" >&6; } |
| 7055 | fi |
| 7056 | |
| 7057 | |
| 7058 | # Extract the first word of "mv", so it can be a program name with args. |
| 7059 | set dummy mv; ac_word=$2 |
| 7060 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7062 | if test "${ac_cv_path_MV+set}" = set; then |
| 7063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7064 | else |
| 7065 | case $MV in |
| 7066 | [\\/]* | ?:[\\/]*) |
| 7067 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7068 | ;; |
| 7069 | *) |
| 7070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7071 | for as_dir in $PATH |
| 7072 | do |
| 7073 | IFS=$as_save_IFS |
| 7074 | test -z "$as_dir" && as_dir=. |
| 7075 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7076 | 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] | 7077 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 7078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7079 | break 2 |
| 7080 | fi |
| 7081 | done |
| 7082 | done |
| 7083 | IFS=$as_save_IFS |
| 7084 | |
| 7085 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7086 | ;; |
| 7087 | esac |
| 7088 | fi |
| 7089 | MV=$ac_cv_path_MV |
| 7090 | if test -n "$MV"; then |
| 7091 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7092 | echo "${ECHO_T}$MV" >&6; } |
| 7093 | else |
| 7094 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7095 | echo "${ECHO_T}no" >&6; } |
| 7096 | fi |
| 7097 | |
| 7098 | |
| 7099 | if test -n "$ac_tool_prefix"; then |
| 7100 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7101 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7102 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7104 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7106 | else |
| 7107 | if test -n "$RANLIB"; then |
| 7108 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7109 | else |
| 7110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7111 | for as_dir in $PATH |
| 7112 | do |
| 7113 | IFS=$as_save_IFS |
| 7114 | test -z "$as_dir" && as_dir=. |
| 7115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7116 | 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] | 7117 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7119 | break 2 |
| 7120 | fi |
| 7121 | done |
| 7122 | done |
| 7123 | IFS=$as_save_IFS |
| 7124 | |
| 7125 | fi |
| 7126 | fi |
| 7127 | RANLIB=$ac_cv_prog_RANLIB |
| 7128 | if test -n "$RANLIB"; then |
| 7129 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7130 | echo "${ECHO_T}$RANLIB" >&6; } |
| 7131 | else |
| 7132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7133 | echo "${ECHO_T}no" >&6; } |
| 7134 | fi |
| 7135 | |
| 7136 | |
| 7137 | fi |
| 7138 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7139 | ac_ct_RANLIB=$RANLIB |
| 7140 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7141 | set dummy ranlib; ac_word=$2 |
| 7142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7144 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7146 | else |
| 7147 | if test -n "$ac_ct_RANLIB"; then |
| 7148 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7149 | else |
| 7150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7151 | for as_dir in $PATH |
| 7152 | do |
| 7153 | IFS=$as_save_IFS |
| 7154 | test -z "$as_dir" && as_dir=. |
| 7155 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7156 | 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] | 7157 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7159 | break 2 |
| 7160 | fi |
| 7161 | done |
| 7162 | done |
| 7163 | IFS=$as_save_IFS |
| 7164 | |
| 7165 | fi |
| 7166 | fi |
| 7167 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7168 | if test -n "$ac_ct_RANLIB"; then |
| 7169 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7170 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 7171 | else |
| 7172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7173 | echo "${ECHO_T}no" >&6; } |
| 7174 | fi |
| 7175 | |
| 7176 | if test "x$ac_ct_RANLIB" = x; then |
| 7177 | RANLIB=":" |
| 7178 | else |
| 7179 | case $cross_compiling:$ac_tool_warned in |
| 7180 | yes:) |
| 7181 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7182 | whose name does not start with the host triplet. If you think this |
| 7183 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7184 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7185 | whose name does not start with the host triplet. If you think this |
| 7186 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7187 | ac_tool_warned=yes ;; |
| 7188 | esac |
| 7189 | RANLIB=$ac_ct_RANLIB |
| 7190 | fi |
| 7191 | else |
| 7192 | RANLIB="$ac_cv_prog_RANLIB" |
| 7193 | fi |
| 7194 | |
| 7195 | # Extract the first word of "rm", so it can be a program name with args. |
| 7196 | set dummy rm; ac_word=$2 |
| 7197 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7199 | if test "${ac_cv_path_RM+set}" = set; then |
| 7200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7201 | else |
| 7202 | case $RM in |
| 7203 | [\\/]* | ?:[\\/]*) |
| 7204 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7205 | ;; |
| 7206 | *) |
| 7207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7208 | for as_dir in $PATH |
| 7209 | do |
| 7210 | IFS=$as_save_IFS |
| 7211 | test -z "$as_dir" && as_dir=. |
| 7212 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7213 | 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] | 7214 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7216 | break 2 |
| 7217 | fi |
| 7218 | done |
| 7219 | done |
| 7220 | IFS=$as_save_IFS |
| 7221 | |
| 7222 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7223 | ;; |
| 7224 | esac |
| 7225 | fi |
| 7226 | RM=$ac_cv_path_RM |
| 7227 | if test -n "$RM"; then |
| 7228 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7229 | echo "${ECHO_T}$RM" >&6; } |
| 7230 | else |
| 7231 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7232 | echo "${ECHO_T}no" >&6; } |
| 7233 | fi |
| 7234 | |
| 7235 | |
| 7236 | # Extract the first word of "sed", so it can be a program name with args. |
| 7237 | set dummy sed; ac_word=$2 |
| 7238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7240 | if test "${ac_cv_path_SED+set}" = set; then |
| 7241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7242 | else |
| 7243 | case $SED in |
| 7244 | [\\/]* | ?:[\\/]*) |
| 7245 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7246 | ;; |
| 7247 | *) |
| 7248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7249 | for as_dir in $PATH |
| 7250 | do |
| 7251 | IFS=$as_save_IFS |
| 7252 | test -z "$as_dir" && as_dir=. |
| 7253 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7254 | 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] | 7255 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7257 | break 2 |
| 7258 | fi |
| 7259 | done |
| 7260 | done |
| 7261 | IFS=$as_save_IFS |
| 7262 | |
| 7263 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7264 | ;; |
| 7265 | esac |
| 7266 | fi |
| 7267 | SED=$ac_cv_path_SED |
| 7268 | if test -n "$SED"; then |
| 7269 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7270 | echo "${ECHO_T}$SED" >&6; } |
| 7271 | else |
| 7272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7273 | echo "${ECHO_T}no" >&6; } |
| 7274 | fi |
| 7275 | |
| 7276 | |
| 7277 | # Extract the first word of "tar", so it can be a program name with args. |
| 7278 | set dummy tar; ac_word=$2 |
| 7279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7281 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7283 | else |
| 7284 | case $TAR in |
| 7285 | [\\/]* | ?:[\\/]*) |
| 7286 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7287 | ;; |
| 7288 | *) |
| 7289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7290 | for as_dir in $PATH |
| 7291 | do |
| 7292 | IFS=$as_save_IFS |
| 7293 | test -z "$as_dir" && as_dir=. |
| 7294 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7295 | 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] | 7296 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7298 | break 2 |
| 7299 | fi |
| 7300 | done |
| 7301 | done |
| 7302 | IFS=$as_save_IFS |
| 7303 | |
| 7304 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7305 | ;; |
| 7306 | esac |
| 7307 | fi |
| 7308 | TAR=$ac_cv_path_TAR |
| 7309 | if test -n "$TAR"; then |
| 7310 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7311 | echo "${ECHO_T}$TAR" >&6; } |
| 7312 | else |
| 7313 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7314 | echo "${ECHO_T}no" >&6; } |
| 7315 | fi |
| 7316 | |
| 7317 | |
| 7318 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7319 | set dummy pwd; ac_word=$2 |
| 7320 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7322 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7324 | else |
| 7325 | case $BINPWD in |
| 7326 | [\\/]* | ?:[\\/]*) |
| 7327 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7328 | ;; |
| 7329 | *) |
| 7330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7331 | for as_dir in $PATH |
| 7332 | do |
| 7333 | IFS=$as_save_IFS |
| 7334 | test -z "$as_dir" && as_dir=. |
| 7335 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7336 | 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] | 7337 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7339 | break 2 |
| 7340 | fi |
| 7341 | done |
| 7342 | done |
| 7343 | IFS=$as_save_IFS |
| 7344 | |
| 7345 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7346 | ;; |
| 7347 | esac |
| 7348 | fi |
| 7349 | BINPWD=$ac_cv_path_BINPWD |
| 7350 | if test -n "$BINPWD"; then |
| 7351 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7352 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7353 | else |
| 7354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7355 | echo "${ECHO_T}no" >&6; } |
| 7356 | fi |
| 7357 | |
| 7358 | |
| 7359 | |
| 7360 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7361 | set dummy Graphviz; ac_word=$2 |
| 7362 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7364 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7366 | else |
| 7367 | case $GRAPHVIZ in |
| 7368 | [\\/]* | ?:[\\/]*) |
| 7369 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7370 | ;; |
| 7371 | *) |
| 7372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7373 | for as_dir in $PATH |
| 7374 | do |
| 7375 | IFS=$as_save_IFS |
| 7376 | test -z "$as_dir" && as_dir=. |
| 7377 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7378 | 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] | 7379 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7381 | break 2 |
| 7382 | fi |
| 7383 | done |
| 7384 | done |
| 7385 | IFS=$as_save_IFS |
| 7386 | |
| 7387 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7388 | ;; |
| 7389 | esac |
| 7390 | fi |
| 7391 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7392 | if test -n "$GRAPHVIZ"; then |
| 7393 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7394 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7395 | else |
| 7396 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7397 | echo "${ECHO_T}no" >&6; } |
| 7398 | fi |
| 7399 | |
| 7400 | |
| 7401 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7402 | |
| 7403 | cat >>confdefs.h <<\_ACEOF |
| 7404 | #define HAVE_GRAPHVIZ 1 |
| 7405 | _ACEOF |
| 7406 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7407 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7408 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7409 | fi |
| 7410 | |
| 7411 | cat >>confdefs.h <<_ACEOF |
| 7412 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7413 | _ACEOF |
| 7414 | |
| 7415 | fi |
| 7416 | # Extract the first word of "dot", so it can be a program name with args. |
| 7417 | set dummy dot; ac_word=$2 |
| 7418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7420 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7422 | else |
| 7423 | case $DOT in |
| 7424 | [\\/]* | ?:[\\/]*) |
| 7425 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7426 | ;; |
| 7427 | *) |
| 7428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7429 | for as_dir in $PATH |
| 7430 | do |
| 7431 | IFS=$as_save_IFS |
| 7432 | test -z "$as_dir" && as_dir=. |
| 7433 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7434 | 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] | 7435 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7437 | break 2 |
| 7438 | fi |
| 7439 | done |
| 7440 | done |
| 7441 | IFS=$as_save_IFS |
| 7442 | |
| 7443 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7444 | ;; |
| 7445 | esac |
| 7446 | fi |
| 7447 | DOT=$ac_cv_path_DOT |
| 7448 | if test -n "$DOT"; then |
| 7449 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7450 | echo "${ECHO_T}$DOT" >&6; } |
| 7451 | else |
| 7452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7453 | echo "${ECHO_T}no" >&6; } |
| 7454 | fi |
| 7455 | |
| 7456 | |
| 7457 | if test "$DOT" != "echo dot" ; then |
| 7458 | |
| 7459 | cat >>confdefs.h <<\_ACEOF |
| 7460 | #define HAVE_DOT 1 |
| 7461 | _ACEOF |
| 7462 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7463 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7464 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7465 | fi |
| 7466 | |
| 7467 | cat >>confdefs.h <<_ACEOF |
| 7468 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7469 | _ACEOF |
| 7470 | |
| 7471 | fi |
| 7472 | for ac_prog in gv gsview32 |
| 7473 | do |
| 7474 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7475 | set dummy $ac_prog; ac_word=$2 |
| 7476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7478 | if test "${ac_cv_path_GV+set}" = set; then |
| 7479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7480 | else |
| 7481 | case $GV in |
| 7482 | [\\/]* | ?:[\\/]*) |
| 7483 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7484 | ;; |
| 7485 | *) |
| 7486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7487 | for as_dir in $PATH |
| 7488 | do |
| 7489 | IFS=$as_save_IFS |
| 7490 | test -z "$as_dir" && as_dir=. |
| 7491 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7492 | 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] | 7493 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7495 | break 2 |
| 7496 | fi |
| 7497 | done |
| 7498 | done |
| 7499 | IFS=$as_save_IFS |
| 7500 | |
| 7501 | ;; |
| 7502 | esac |
| 7503 | fi |
| 7504 | GV=$ac_cv_path_GV |
| 7505 | if test -n "$GV"; then |
| 7506 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7507 | echo "${ECHO_T}$GV" >&6; } |
| 7508 | else |
| 7509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7510 | echo "${ECHO_T}no" >&6; } |
| 7511 | fi |
| 7512 | |
| 7513 | |
| 7514 | test -n "$GV" && break |
| 7515 | done |
| 7516 | test -n "$GV" || GV="echo gv" |
| 7517 | |
| 7518 | if test "$GV" != "echo gv" ; then |
| 7519 | |
| 7520 | cat >>confdefs.h <<\_ACEOF |
| 7521 | #define HAVE_GV 1 |
| 7522 | _ACEOF |
| 7523 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7524 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7525 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7526 | fi |
| 7527 | |
| 7528 | cat >>confdefs.h <<_ACEOF |
| 7529 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7530 | _ACEOF |
| 7531 | |
| 7532 | fi |
| 7533 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7534 | set dummy dotty; ac_word=$2 |
| 7535 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7537 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7539 | else |
| 7540 | case $DOTTY in |
| 7541 | [\\/]* | ?:[\\/]*) |
| 7542 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7543 | ;; |
| 7544 | *) |
| 7545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7546 | for as_dir in $PATH |
| 7547 | do |
| 7548 | IFS=$as_save_IFS |
| 7549 | test -z "$as_dir" && as_dir=. |
| 7550 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7551 | 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] | 7552 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7554 | break 2 |
| 7555 | fi |
| 7556 | done |
| 7557 | done |
| 7558 | IFS=$as_save_IFS |
| 7559 | |
| 7560 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7561 | ;; |
| 7562 | esac |
| 7563 | fi |
| 7564 | DOTTY=$ac_cv_path_DOTTY |
| 7565 | if test -n "$DOTTY"; then |
| 7566 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7567 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7568 | else |
| 7569 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7570 | echo "${ECHO_T}no" >&6; } |
| 7571 | fi |
| 7572 | |
| 7573 | |
| 7574 | if test "$DOTTY" != "echo dotty" ; then |
| 7575 | |
| 7576 | cat >>confdefs.h <<\_ACEOF |
| 7577 | #define HAVE_DOTTY 1 |
| 7578 | _ACEOF |
| 7579 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7580 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7581 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7582 | fi |
| 7583 | |
| 7584 | cat >>confdefs.h <<_ACEOF |
| 7585 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7586 | _ACEOF |
| 7587 | |
| 7588 | fi |
| 7589 | |
| 7590 | |
| 7591 | # Extract the first word of "perl", so it can be a program name with args. |
| 7592 | set dummy perl; ac_word=$2 |
| 7593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7595 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7597 | else |
| 7598 | case $PERL in |
| 7599 | [\\/]* | ?:[\\/]*) |
| 7600 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7601 | ;; |
| 7602 | *) |
| 7603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7604 | for as_dir in $PATH |
| 7605 | do |
| 7606 | IFS=$as_save_IFS |
| 7607 | test -z "$as_dir" && as_dir=. |
| 7608 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7609 | 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] | 7610 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7612 | break 2 |
| 7613 | fi |
| 7614 | done |
| 7615 | done |
| 7616 | IFS=$as_save_IFS |
| 7617 | |
| 7618 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7619 | ;; |
| 7620 | esac |
| 7621 | fi |
| 7622 | PERL=$ac_cv_path_PERL |
| 7623 | if test -n "$PERL"; then |
| 7624 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7625 | echo "${ECHO_T}$PERL" >&6; } |
| 7626 | else |
| 7627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7628 | echo "${ECHO_T}no" >&6; } |
| 7629 | fi |
| 7630 | |
| 7631 | |
| 7632 | if test "$PERL" != "none"; then |
| 7633 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7634 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7635 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7636 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7637 | echo "${ECHO_T}yes" >&6; } |
| 7638 | else |
| 7639 | PERL=none |
| 7640 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7641 | echo "${ECHO_T}not found" >&6; } |
| 7642 | fi |
| 7643 | fi |
| 7644 | |
| 7645 | |
| 7646 | if test x"$PERL" = xnone; then |
| 7647 | HAVE_PERL=0 |
| 7648 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7649 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7650 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7651 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7652 | else |
| 7653 | HAVE_PERL=1 |
| 7654 | |
| 7655 | fi |
| 7656 | |
| 7657 | # Find a good install program. We prefer a C program (faster), |
| 7658 | # so one script is as good as another. But avoid the broken or |
| 7659 | # incompatible versions: |
| 7660 | # SysV /etc/install, /usr/sbin/install |
| 7661 | # SunOS /usr/etc/install |
| 7662 | # IRIX /sbin/install |
| 7663 | # AIX /bin/install |
| 7664 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7665 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7666 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7667 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7668 | # OS/2's system install, which has a completely different semantic |
| 7669 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7670 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7671 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7672 | if test -z "$INSTALL"; then |
| 7673 | if test "${ac_cv_path_install+set}" = set; then |
| 7674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7675 | else |
| 7676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7677 | for as_dir in $PATH |
| 7678 | do |
| 7679 | IFS=$as_save_IFS |
| 7680 | test -z "$as_dir" && as_dir=. |
| 7681 | # Account for people who put trailing slashes in PATH elements. |
| 7682 | case $as_dir/ in |
| 7683 | ./ | .// | /cC/* | \ |
| 7684 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7685 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7686 | /usr/ucb/* ) ;; |
| 7687 | *) |
| 7688 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7689 | # Don't use installbsd from OSF since it installs stuff as root |
| 7690 | # by default. |
| 7691 | for ac_prog in ginstall scoinst install; do |
| 7692 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7693 | 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] | 7694 | if test $ac_prog = install && |
| 7695 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7696 | # AIX install. It has an incompatible calling convention. |
| 7697 | : |
| 7698 | elif test $ac_prog = install && |
| 7699 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7700 | # program-specific install script used by HP pwplus--don't use. |
| 7701 | : |
| 7702 | else |
| 7703 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7704 | break 3 |
| 7705 | fi |
| 7706 | fi |
| 7707 | done |
| 7708 | done |
| 7709 | ;; |
| 7710 | esac |
| 7711 | done |
| 7712 | IFS=$as_save_IFS |
| 7713 | |
| 7714 | |
| 7715 | fi |
| 7716 | if test "${ac_cv_path_install+set}" = set; then |
| 7717 | INSTALL=$ac_cv_path_install |
| 7718 | else |
| 7719 | # As a last resort, use the slow shell script. Don't cache a |
| 7720 | # value for INSTALL within a source directory, because that will |
| 7721 | # break other packages using the cache if that directory is |
| 7722 | # removed, or if the value is a relative name. |
| 7723 | INSTALL=$ac_install_sh |
| 7724 | fi |
| 7725 | fi |
| 7726 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7727 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7728 | |
| 7729 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7730 | # It thinks the first close brace ends the variable substitution. |
| 7731 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7732 | |
| 7733 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7734 | |
| 7735 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7736 | |
| 7737 | |
| 7738 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7739 | set dummy bzip2; ac_word=$2 |
| 7740 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7742 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7744 | else |
| 7745 | case $BZIP2 in |
| 7746 | [\\/]* | ?:[\\/]*) |
| 7747 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7748 | ;; |
| 7749 | *) |
| 7750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7751 | for as_dir in $PATH |
| 7752 | do |
| 7753 | IFS=$as_save_IFS |
| 7754 | test -z "$as_dir" && as_dir=. |
| 7755 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7756 | 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] | 7757 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7759 | break 2 |
| 7760 | fi |
| 7761 | done |
| 7762 | done |
| 7763 | IFS=$as_save_IFS |
| 7764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7765 | ;; |
| 7766 | esac |
| 7767 | fi |
| 7768 | BZIP2=$ac_cv_path_BZIP2 |
| 7769 | if test -n "$BZIP2"; then |
| 7770 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7771 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7772 | else |
| 7773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7774 | echo "${ECHO_T}no" >&6; } |
| 7775 | fi |
| 7776 | |
| 7777 | |
| 7778 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7779 | set dummy doxygen; ac_word=$2 |
| 7780 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7782 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7784 | else |
| 7785 | case $DOXYGEN in |
| 7786 | [\\/]* | ?:[\\/]*) |
| 7787 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7788 | ;; |
| 7789 | *) |
| 7790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7791 | for as_dir in $PATH |
| 7792 | do |
| 7793 | IFS=$as_save_IFS |
| 7794 | test -z "$as_dir" && as_dir=. |
| 7795 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7796 | 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] | 7797 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7799 | break 2 |
| 7800 | fi |
| 7801 | done |
| 7802 | done |
| 7803 | IFS=$as_save_IFS |
| 7804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7805 | ;; |
| 7806 | esac |
| 7807 | fi |
| 7808 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7809 | if test -n "$DOXYGEN"; then |
| 7810 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7811 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7812 | else |
| 7813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7814 | echo "${ECHO_T}no" >&6; } |
| 7815 | fi |
| 7816 | |
| 7817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7818 | # Extract the first word of "groff", so it can be a program name with args. |
| 7819 | set dummy groff; ac_word=$2 |
| 7820 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7822 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7824 | else |
| 7825 | case $GROFF in |
| 7826 | [\\/]* | ?:[\\/]*) |
| 7827 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7828 | ;; |
| 7829 | *) |
| 7830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7831 | for as_dir in $PATH |
| 7832 | do |
| 7833 | IFS=$as_save_IFS |
| 7834 | test -z "$as_dir" && as_dir=. |
| 7835 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7836 | 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] | 7837 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7839 | break 2 |
| 7840 | fi |
| 7841 | done |
| 7842 | done |
| 7843 | IFS=$as_save_IFS |
| 7844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7845 | ;; |
| 7846 | esac |
| 7847 | fi |
| 7848 | GROFF=$ac_cv_path_GROFF |
| 7849 | if test -n "$GROFF"; then |
| 7850 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7851 | echo "${ECHO_T}$GROFF" >&6; } |
| 7852 | else |
| 7853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7854 | echo "${ECHO_T}no" >&6; } |
| 7855 | fi |
| 7856 | |
| 7857 | |
| 7858 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7859 | set dummy gzip; ac_word=$2 |
| 7860 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7862 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7864 | else |
| 7865 | case $GZIP in |
| 7866 | [\\/]* | ?:[\\/]*) |
| 7867 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7868 | ;; |
| 7869 | *) |
| 7870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7871 | for as_dir in $PATH |
| 7872 | do |
| 7873 | IFS=$as_save_IFS |
| 7874 | test -z "$as_dir" && as_dir=. |
| 7875 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7876 | 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] | 7877 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7879 | break 2 |
| 7880 | fi |
| 7881 | done |
| 7882 | done |
| 7883 | IFS=$as_save_IFS |
| 7884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7885 | ;; |
| 7886 | esac |
| 7887 | fi |
| 7888 | GZIP=$ac_cv_path_GZIP |
| 7889 | if test -n "$GZIP"; then |
| 7890 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7891 | echo "${ECHO_T}$GZIP" >&6; } |
| 7892 | else |
| 7893 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7894 | echo "${ECHO_T}no" >&6; } |
| 7895 | fi |
| 7896 | |
| 7897 | |
| 7898 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7899 | set dummy pod2html; ac_word=$2 |
| 7900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7902 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7904 | else |
| 7905 | case $POD2HTML in |
| 7906 | [\\/]* | ?:[\\/]*) |
| 7907 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7908 | ;; |
| 7909 | *) |
| 7910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7911 | for as_dir in $PATH |
| 7912 | do |
| 7913 | IFS=$as_save_IFS |
| 7914 | test -z "$as_dir" && as_dir=. |
| 7915 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7916 | 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] | 7917 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7919 | break 2 |
| 7920 | fi |
| 7921 | done |
| 7922 | done |
| 7923 | IFS=$as_save_IFS |
| 7924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7925 | ;; |
| 7926 | esac |
| 7927 | fi |
| 7928 | POD2HTML=$ac_cv_path_POD2HTML |
| 7929 | if test -n "$POD2HTML"; then |
| 7930 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7931 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7932 | else |
| 7933 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7934 | echo "${ECHO_T}no" >&6; } |
| 7935 | fi |
| 7936 | |
| 7937 | |
| 7938 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7939 | set dummy pod2man; ac_word=$2 |
| 7940 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7942 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7944 | else |
| 7945 | case $POD2MAN in |
| 7946 | [\\/]* | ?:[\\/]*) |
| 7947 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7948 | ;; |
| 7949 | *) |
| 7950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7951 | for as_dir in $PATH |
| 7952 | do |
| 7953 | IFS=$as_save_IFS |
| 7954 | test -z "$as_dir" && as_dir=. |
| 7955 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7956 | 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] | 7957 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7959 | break 2 |
| 7960 | fi |
| 7961 | done |
| 7962 | done |
| 7963 | IFS=$as_save_IFS |
| 7964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7965 | ;; |
| 7966 | esac |
| 7967 | fi |
| 7968 | POD2MAN=$ac_cv_path_POD2MAN |
| 7969 | if test -n "$POD2MAN"; then |
| 7970 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7971 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7972 | else |
| 7973 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7974 | echo "${ECHO_T}no" >&6; } |
| 7975 | fi |
| 7976 | |
| 7977 | |
| 7978 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7979 | set dummy runtest; ac_word=$2 |
| 7980 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7982 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7984 | else |
| 7985 | case $RUNTEST in |
| 7986 | [\\/]* | ?:[\\/]*) |
| 7987 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7988 | ;; |
| 7989 | *) |
| 7990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7991 | for as_dir in $PATH |
| 7992 | do |
| 7993 | IFS=$as_save_IFS |
| 7994 | test -z "$as_dir" && as_dir=. |
| 7995 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7996 | 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] | 7997 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7999 | break 2 |
| 8000 | fi |
| 8001 | done |
| 8002 | done |
| 8003 | IFS=$as_save_IFS |
| 8004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8005 | ;; |
| 8006 | esac |
| 8007 | fi |
| 8008 | RUNTEST=$ac_cv_path_RUNTEST |
| 8009 | if test -n "$RUNTEST"; then |
| 8010 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8011 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 8012 | else |
| 8013 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8014 | echo "${ECHO_T}no" >&6; } |
| 8015 | fi |
| 8016 | |
| 8017 | |
| 8018 | |
| 8019 | no_itcl=true |
| 8020 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8021 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 8022 | |
| 8023 | # Check whether --with-tclinclude was given. |
| 8024 | if test "${with_tclinclude+set}" = set; then |
| 8025 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8026 | else |
| 8027 | with_tclinclude='' |
| 8028 | fi |
| 8029 | |
| 8030 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8032 | else |
| 8033 | |
| 8034 | if test x"${with_tclinclude}" != x ; then |
| 8035 | if test -f ${with_tclinclude}/tclsh ; then |
| 8036 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8037 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8038 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8039 | else |
| 8040 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8041 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8042 | { (exit 1); exit 1; }; } |
| 8043 | fi |
| 8044 | fi |
| 8045 | |
| 8046 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 8047 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8048 | echo "${ECHO_T}none" >&6; } |
| 8049 | 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 |
| 8050 | do |
| 8051 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8052 | set dummy $ac_prog; ac_word=$2 |
| 8053 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8055 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8057 | else |
| 8058 | case $TCLSH in |
| 8059 | [\\/]* | ?:[\\/]*) |
| 8060 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8061 | ;; |
| 8062 | *) |
| 8063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8064 | for as_dir in $PATH |
| 8065 | do |
| 8066 | IFS=$as_save_IFS |
| 8067 | test -z "$as_dir" && as_dir=. |
| 8068 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8069 | 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] | 8070 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 8071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8072 | break 2 |
| 8073 | fi |
| 8074 | done |
| 8075 | done |
| 8076 | IFS=$as_save_IFS |
| 8077 | |
| 8078 | ;; |
| 8079 | esac |
| 8080 | fi |
| 8081 | TCLSH=$ac_cv_path_TCLSH |
| 8082 | if test -n "$TCLSH"; then |
| 8083 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8084 | echo "${ECHO_T}$TCLSH" >&6; } |
| 8085 | else |
| 8086 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8087 | echo "${ECHO_T}no" >&6; } |
| 8088 | fi |
| 8089 | |
| 8090 | |
| 8091 | test -n "$TCLSH" && break |
| 8092 | done |
| 8093 | |
| 8094 | if test x"${TCLSH}" = x ; then |
| 8095 | ac_cv_path_tclsh=''; |
| 8096 | else |
| 8097 | ac_cv_path_tclsh="${TCLSH}"; |
| 8098 | fi |
| 8099 | else |
| 8100 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8101 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 8102 | TCLSH="${ac_cv_path_tclsh}" |
| 8103 | |
| 8104 | fi |
| 8105 | |
| 8106 | fi |
| 8107 | |
| 8108 | # Extract the first word of "zip", so it can be a program name with args. |
| 8109 | set dummy zip; ac_word=$2 |
| 8110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8112 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8114 | else |
| 8115 | case $ZIP in |
| 8116 | [\\/]* | ?:[\\/]*) |
| 8117 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8118 | ;; |
| 8119 | *) |
| 8120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8121 | for as_dir in $PATH |
| 8122 | do |
| 8123 | IFS=$as_save_IFS |
| 8124 | test -z "$as_dir" && as_dir=. |
| 8125 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8126 | 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] | 8127 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8129 | break 2 |
| 8130 | fi |
| 8131 | done |
| 8132 | done |
| 8133 | IFS=$as_save_IFS |
| 8134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8135 | ;; |
| 8136 | esac |
| 8137 | fi |
| 8138 | ZIP=$ac_cv_path_ZIP |
| 8139 | if test -n "$ZIP"; then |
| 8140 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8141 | echo "${ECHO_T}$ZIP" >&6; } |
| 8142 | else |
| 8143 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8144 | echo "${ECHO_T}no" >&6; } |
| 8145 | fi |
| 8146 | |
| 8147 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8148 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8149 | do |
| 8150 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8151 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8152 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8154 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8156 | else |
| 8157 | case $OCAMLC in |
| 8158 | [\\/]* | ?:[\\/]*) |
| 8159 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8160 | ;; |
| 8161 | *) |
| 8162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8163 | for as_dir in $PATH |
| 8164 | do |
| 8165 | IFS=$as_save_IFS |
| 8166 | test -z "$as_dir" && as_dir=. |
| 8167 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8168 | 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] | 8169 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8171 | break 2 |
| 8172 | fi |
| 8173 | done |
| 8174 | done |
| 8175 | IFS=$as_save_IFS |
| 8176 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8177 | ;; |
| 8178 | esac |
| 8179 | fi |
| 8180 | OCAMLC=$ac_cv_path_OCAMLC |
| 8181 | if test -n "$OCAMLC"; then |
| 8182 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8183 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8184 | else |
| 8185 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8186 | echo "${ECHO_T}no" >&6; } |
| 8187 | fi |
| 8188 | |
| 8189 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8190 | test -n "$OCAMLC" && break |
| 8191 | done |
| 8192 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8193 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8194 | do |
| 8195 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8196 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8197 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8199 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8201 | else |
| 8202 | case $OCAMLOPT in |
| 8203 | [\\/]* | ?:[\\/]*) |
| 8204 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8205 | ;; |
| 8206 | *) |
| 8207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8208 | for as_dir in $PATH |
| 8209 | do |
| 8210 | IFS=$as_save_IFS |
| 8211 | test -z "$as_dir" && as_dir=. |
| 8212 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8213 | 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] | 8214 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8216 | break 2 |
| 8217 | fi |
| 8218 | done |
| 8219 | done |
| 8220 | IFS=$as_save_IFS |
| 8221 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8222 | ;; |
| 8223 | esac |
| 8224 | fi |
| 8225 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8226 | if test -n "$OCAMLOPT"; then |
| 8227 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8228 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8229 | else |
| 8230 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8231 | echo "${ECHO_T}no" >&6; } |
| 8232 | fi |
| 8233 | |
| 8234 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8235 | test -n "$OCAMLOPT" && break |
| 8236 | done |
| 8237 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8238 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8239 | do |
| 8240 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8241 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8242 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8244 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8246 | else |
| 8247 | case $OCAMLDEP in |
| 8248 | [\\/]* | ?:[\\/]*) |
| 8249 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8250 | ;; |
| 8251 | *) |
| 8252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8253 | for as_dir in $PATH |
| 8254 | do |
| 8255 | IFS=$as_save_IFS |
| 8256 | test -z "$as_dir" && as_dir=. |
| 8257 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8258 | 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] | 8259 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8261 | break 2 |
| 8262 | fi |
| 8263 | done |
| 8264 | done |
| 8265 | IFS=$as_save_IFS |
| 8266 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8267 | ;; |
| 8268 | esac |
| 8269 | fi |
| 8270 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8271 | if test -n "$OCAMLDEP"; then |
| 8272 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8273 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8274 | else |
| 8275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8276 | echo "${ECHO_T}no" >&6; } |
| 8277 | fi |
| 8278 | |
| 8279 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8280 | test -n "$OCAMLDEP" && break |
| 8281 | done |
| 8282 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8283 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8284 | do |
| 8285 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8286 | set dummy $ac_prog; ac_word=$2 |
| 8287 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8289 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8291 | else |
| 8292 | case $OCAMLDOC in |
| 8293 | [\\/]* | ?:[\\/]*) |
| 8294 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8295 | ;; |
| 8296 | *) |
| 8297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8298 | for as_dir in $PATH |
| 8299 | do |
| 8300 | IFS=$as_save_IFS |
| 8301 | test -z "$as_dir" && as_dir=. |
| 8302 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8304 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8306 | break 2 |
| 8307 | fi |
| 8308 | done |
| 8309 | done |
| 8310 | IFS=$as_save_IFS |
| 8311 | |
| 8312 | ;; |
| 8313 | esac |
| 8314 | fi |
| 8315 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8316 | if test -n "$OCAMLDOC"; then |
| 8317 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8318 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8319 | else |
| 8320 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8321 | echo "${ECHO_T}no" >&6; } |
| 8322 | fi |
| 8323 | |
| 8324 | |
| 8325 | test -n "$OCAMLDOC" && break |
| 8326 | done |
| 8327 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8328 | for ac_prog in gas as |
| 8329 | do |
| 8330 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8331 | set dummy $ac_prog; ac_word=$2 |
| 8332 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8334 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8336 | else |
| 8337 | case $GAS in |
| 8338 | [\\/]* | ?:[\\/]*) |
| 8339 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8340 | ;; |
| 8341 | *) |
| 8342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8343 | for as_dir in $PATH |
| 8344 | do |
| 8345 | IFS=$as_save_IFS |
| 8346 | test -z "$as_dir" && as_dir=. |
| 8347 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8349 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 8350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8351 | break 2 |
| 8352 | fi |
| 8353 | done |
| 8354 | done |
| 8355 | IFS=$as_save_IFS |
| 8356 | |
| 8357 | ;; |
| 8358 | esac |
| 8359 | fi |
| 8360 | GAS=$ac_cv_path_GAS |
| 8361 | if test -n "$GAS"; then |
| 8362 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8363 | echo "${ECHO_T}$GAS" >&6; } |
| 8364 | else |
| 8365 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8366 | echo "${ECHO_T}no" >&6; } |
| 8367 | fi |
| 8368 | |
| 8369 | |
| 8370 | test -n "$GAS" && break |
| 8371 | done |
| 8372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8373 | |
| 8374 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8375 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8376 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8378 | else |
| 8379 | ac_ext=c |
| 8380 | ac_cpp='$CPP $CPPFLAGS' |
| 8381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8384 | |
| 8385 | oldcflags="$CFLAGS" |
| 8386 | CFLAGS="$CFLAGS -Wl,-R." |
| 8387 | cat >conftest.$ac_ext <<_ACEOF |
| 8388 | /* confdefs.h. */ |
| 8389 | _ACEOF |
| 8390 | cat confdefs.h >>conftest.$ac_ext |
| 8391 | cat >>conftest.$ac_ext <<_ACEOF |
| 8392 | /* end confdefs.h. */ |
| 8393 | |
| 8394 | int |
| 8395 | main () |
| 8396 | { |
| 8397 | int main() { return 0; } |
| 8398 | ; |
| 8399 | return 0; |
| 8400 | } |
| 8401 | _ACEOF |
| 8402 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8403 | if { (ac_try="$ac_link" |
| 8404 | case "(($ac_try" in |
| 8405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8406 | *) ac_try_echo=$ac_try;; |
| 8407 | esac |
| 8408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8409 | (eval "$ac_link") 2>conftest.er1 |
| 8410 | ac_status=$? |
| 8411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8412 | rm -f conftest.er1 |
| 8413 | cat conftest.err >&5 |
| 8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8415 | (exit $ac_status); } && |
| 8416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8417 | { (case "(($ac_try" in |
| 8418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8419 | *) ac_try_echo=$ac_try;; |
| 8420 | esac |
| 8421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8422 | (eval "$ac_try") 2>&5 |
| 8423 | ac_status=$? |
| 8424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8425 | (exit $ac_status); }; } && |
| 8426 | { ac_try='test -s conftest$ac_exeext' |
| 8427 | { (case "(($ac_try" in |
| 8428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8429 | *) ac_try_echo=$ac_try;; |
| 8430 | esac |
| 8431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8432 | (eval "$ac_try") 2>&5 |
| 8433 | ac_status=$? |
| 8434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8435 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8436 | llvm_cv_link_use_r=yes |
| 8437 | else |
| 8438 | echo "$as_me: failed program was:" >&5 |
| 8439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8440 | |
| 8441 | llvm_cv_link_use_r=no |
| 8442 | fi |
| 8443 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8444 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8445 | conftest$ac_exeext conftest.$ac_ext |
| 8446 | CFLAGS="$oldcflags" |
| 8447 | ac_ext=c |
| 8448 | ac_cpp='$CPP $CPPFLAGS' |
| 8449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8452 | |
| 8453 | |
| 8454 | fi |
| 8455 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8456 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8457 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8458 | |
| 8459 | cat >>confdefs.h <<\_ACEOF |
| 8460 | #define HAVE_LINK_R 1 |
| 8461 | _ACEOF |
| 8462 | |
| 8463 | fi |
| 8464 | |
| 8465 | |
| 8466 | |
| 8467 | |
| 8468 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8469 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8470 | if test "${ac_cv_c_const+set}" = set; then |
| 8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8472 | else |
| 8473 | cat >conftest.$ac_ext <<_ACEOF |
| 8474 | /* confdefs.h. */ |
| 8475 | _ACEOF |
| 8476 | cat confdefs.h >>conftest.$ac_ext |
| 8477 | cat >>conftest.$ac_ext <<_ACEOF |
| 8478 | /* end confdefs.h. */ |
| 8479 | |
| 8480 | int |
| 8481 | main () |
| 8482 | { |
| 8483 | /* FIXME: Include the comments suggested by Paul. */ |
| 8484 | #ifndef __cplusplus |
| 8485 | /* Ultrix mips cc rejects this. */ |
| 8486 | typedef int charset[2]; |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8487 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8488 | /* SunOS 4.1.1 cc rejects this. */ |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8489 | char const *const *ccp; |
| 8490 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8491 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8492 | struct point {int x, y;}; |
| 8493 | static struct point const zero = {0,0}; |
| 8494 | /* AIX XL C 1.02.0.0 rejects this. |
| 8495 | It does not let you subtract one const X* pointer from another in |
| 8496 | an arm of an if-expression whose if-part is not a constant |
| 8497 | expression */ |
| 8498 | const char *g = "string"; |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8499 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8500 | /* HPUX 7.0 cc rejects these. */ |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8501 | ++ccp; |
| 8502 | p = (char**) ccp; |
| 8503 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8504 | { /* SCO 3.2v4 cc rejects this. */ |
| 8505 | char *t; |
| 8506 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8507 | |
| 8508 | *t++ = 0; |
| 8509 | if (s) return 0; |
| 8510 | } |
| 8511 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8512 | int x[] = {25, 17}; |
| 8513 | const int *foo = &x[0]; |
| 8514 | ++foo; |
| 8515 | } |
| 8516 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8517 | typedef const int *iptr; |
| 8518 | iptr p = 0; |
| 8519 | ++p; |
| 8520 | } |
| 8521 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8522 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8523 | struct s { int j; const int *ap[3]; }; |
| 8524 | struct s *b; b->j = 5; |
| 8525 | } |
| 8526 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8527 | const int foo = 10; |
| 8528 | if (!foo) return 0; |
| 8529 | } |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8530 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8531 | #endif |
| 8532 | |
| 8533 | ; |
| 8534 | return 0; |
| 8535 | } |
| 8536 | _ACEOF |
| 8537 | rm -f conftest.$ac_objext |
| 8538 | if { (ac_try="$ac_compile" |
| 8539 | case "(($ac_try" in |
| 8540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8541 | *) ac_try_echo=$ac_try;; |
| 8542 | esac |
| 8543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8544 | (eval "$ac_compile") 2>conftest.er1 |
| 8545 | ac_status=$? |
| 8546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8547 | rm -f conftest.er1 |
| 8548 | cat conftest.err >&5 |
| 8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8550 | (exit $ac_status); } && |
| 8551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8552 | { (case "(($ac_try" in |
| 8553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8554 | *) ac_try_echo=$ac_try;; |
| 8555 | esac |
| 8556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8557 | (eval "$ac_try") 2>&5 |
| 8558 | ac_status=$? |
| 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8560 | (exit $ac_status); }; } && |
| 8561 | { ac_try='test -s conftest.$ac_objext' |
| 8562 | { (case "(($ac_try" in |
| 8563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8564 | *) ac_try_echo=$ac_try;; |
| 8565 | esac |
| 8566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8567 | (eval "$ac_try") 2>&5 |
| 8568 | ac_status=$? |
| 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8570 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8571 | ac_cv_c_const=yes |
| 8572 | else |
| 8573 | echo "$as_me: failed program was:" >&5 |
| 8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8575 | |
| 8576 | ac_cv_c_const=no |
| 8577 | fi |
| 8578 | |
| 8579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8580 | fi |
| 8581 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8582 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8583 | if test $ac_cv_c_const = no; then |
| 8584 | |
| 8585 | cat >>confdefs.h <<\_ACEOF |
| 8586 | #define const |
| 8587 | _ACEOF |
| 8588 | |
| 8589 | fi |
| 8590 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8591 | |
| 8592 | |
| 8593 | |
| 8594 | |
| 8595 | |
| 8596 | ac_header_dirent=no |
| 8597 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8598 | 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] | 8599 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8600 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8601 | 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] | 8602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8603 | else |
| 8604 | cat >conftest.$ac_ext <<_ACEOF |
| 8605 | /* confdefs.h. */ |
| 8606 | _ACEOF |
| 8607 | cat confdefs.h >>conftest.$ac_ext |
| 8608 | cat >>conftest.$ac_ext <<_ACEOF |
| 8609 | /* end confdefs.h. */ |
| 8610 | #include <sys/types.h> |
| 8611 | #include <$ac_hdr> |
| 8612 | |
| 8613 | int |
| 8614 | main () |
| 8615 | { |
| 8616 | if ((DIR *) 0) |
| 8617 | return 0; |
| 8618 | ; |
| 8619 | return 0; |
| 8620 | } |
| 8621 | _ACEOF |
| 8622 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8623 | if { (ac_try="$ac_compile" |
| 8624 | case "(($ac_try" in |
| 8625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8626 | *) ac_try_echo=$ac_try;; |
| 8627 | esac |
| 8628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8629 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8630 | ac_status=$? |
| 8631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8632 | rm -f conftest.er1 |
| 8633 | cat conftest.err >&5 |
| 8634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8635 | (exit $ac_status); } && |
| 8636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8637 | { (case "(($ac_try" in |
| 8638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8639 | *) ac_try_echo=$ac_try;; |
| 8640 | esac |
| 8641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8642 | (eval "$ac_try") 2>&5 |
| 8643 | ac_status=$? |
| 8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8645 | (exit $ac_status); }; } && |
| 8646 | { ac_try='test -s conftest.$ac_objext' |
| 8647 | { (case "(($ac_try" in |
| 8648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8649 | *) ac_try_echo=$ac_try;; |
| 8650 | esac |
| 8651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8652 | (eval "$ac_try") 2>&5 |
| 8653 | ac_status=$? |
| 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8655 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8656 | eval "$as_ac_Header=yes" |
| 8657 | else |
| 8658 | echo "$as_me: failed program was:" >&5 |
| 8659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8661 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8662 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8663 | |
| 8664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8666 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8667 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8668 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8669 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8670 | cat >>confdefs.h <<_ACEOF |
| 8671 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8672 | _ACEOF |
| 8673 | |
| 8674 | ac_header_dirent=$ac_hdr; break |
| 8675 | fi |
| 8676 | |
| 8677 | done |
| 8678 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8679 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8680 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8681 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8682 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8684 | else |
| 8685 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8686 | cat >conftest.$ac_ext <<_ACEOF |
| 8687 | /* confdefs.h. */ |
| 8688 | _ACEOF |
| 8689 | cat confdefs.h >>conftest.$ac_ext |
| 8690 | cat >>conftest.$ac_ext <<_ACEOF |
| 8691 | /* end confdefs.h. */ |
| 8692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8693 | /* Override any GCC internal prototype to avoid an error. |
| 8694 | Use char because int might match the return type of a GCC |
| 8695 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8696 | #ifdef __cplusplus |
| 8697 | extern "C" |
| 8698 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8699 | char opendir (); |
| 8700 | int |
| 8701 | main () |
| 8702 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8703 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8704 | ; |
| 8705 | return 0; |
| 8706 | } |
| 8707 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8708 | for ac_lib in '' dir; do |
| 8709 | if test -z "$ac_lib"; then |
| 8710 | ac_res="none required" |
| 8711 | else |
| 8712 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8713 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8714 | fi |
| 8715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8716 | if { (ac_try="$ac_link" |
| 8717 | case "(($ac_try" in |
| 8718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8719 | *) ac_try_echo=$ac_try;; |
| 8720 | esac |
| 8721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8722 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8723 | ac_status=$? |
| 8724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8725 | rm -f conftest.er1 |
| 8726 | cat conftest.err >&5 |
| 8727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8728 | (exit $ac_status); } && |
| 8729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8730 | { (case "(($ac_try" in |
| 8731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8732 | *) ac_try_echo=$ac_try;; |
| 8733 | esac |
| 8734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8735 | (eval "$ac_try") 2>&5 |
| 8736 | ac_status=$? |
| 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8738 | (exit $ac_status); }; } && |
| 8739 | { ac_try='test -s conftest$ac_exeext' |
| 8740 | { (case "(($ac_try" in |
| 8741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8742 | *) ac_try_echo=$ac_try;; |
| 8743 | esac |
| 8744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8745 | (eval "$ac_try") 2>&5 |
| 8746 | ac_status=$? |
| 8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8748 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8749 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8750 | else |
| 8751 | echo "$as_me: failed program was:" >&5 |
| 8752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8753 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8754 | |
| 8755 | fi |
| 8756 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8757 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8758 | conftest$ac_exeext |
| 8759 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8760 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8761 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8762 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8763 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8764 | : |
| 8765 | else |
| 8766 | ac_cv_search_opendir=no |
| 8767 | fi |
| 8768 | rm conftest.$ac_ext |
| 8769 | LIBS=$ac_func_search_save_LIBS |
| 8770 | fi |
| 8771 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8772 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8773 | ac_res=$ac_cv_search_opendir |
| 8774 | if test "$ac_res" != no; then |
| 8775 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8777 | fi |
| 8778 | |
| 8779 | else |
| 8780 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8781 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8782 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8784 | else |
| 8785 | ac_func_search_save_LIBS=$LIBS |
| 8786 | cat >conftest.$ac_ext <<_ACEOF |
| 8787 | /* confdefs.h. */ |
| 8788 | _ACEOF |
| 8789 | cat confdefs.h >>conftest.$ac_ext |
| 8790 | cat >>conftest.$ac_ext <<_ACEOF |
| 8791 | /* end confdefs.h. */ |
| 8792 | |
| 8793 | /* Override any GCC internal prototype to avoid an error. |
| 8794 | Use char because int might match the return type of a GCC |
| 8795 | builtin and then its argument prototype would still apply. */ |
| 8796 | #ifdef __cplusplus |
| 8797 | extern "C" |
| 8798 | #endif |
| 8799 | char opendir (); |
| 8800 | int |
| 8801 | main () |
| 8802 | { |
| 8803 | return opendir (); |
| 8804 | ; |
| 8805 | return 0; |
| 8806 | } |
| 8807 | _ACEOF |
| 8808 | for ac_lib in '' x; do |
| 8809 | if test -z "$ac_lib"; then |
| 8810 | ac_res="none required" |
| 8811 | else |
| 8812 | ac_res=-l$ac_lib |
| 8813 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8814 | fi |
| 8815 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8816 | if { (ac_try="$ac_link" |
| 8817 | case "(($ac_try" in |
| 8818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8819 | *) ac_try_echo=$ac_try;; |
| 8820 | esac |
| 8821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8822 | (eval "$ac_link") 2>conftest.er1 |
| 8823 | ac_status=$? |
| 8824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8825 | rm -f conftest.er1 |
| 8826 | cat conftest.err >&5 |
| 8827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8828 | (exit $ac_status); } && |
| 8829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8830 | { (case "(($ac_try" in |
| 8831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8832 | *) ac_try_echo=$ac_try;; |
| 8833 | esac |
| 8834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8835 | (eval "$ac_try") 2>&5 |
| 8836 | ac_status=$? |
| 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8838 | (exit $ac_status); }; } && |
| 8839 | { ac_try='test -s conftest$ac_exeext' |
| 8840 | { (case "(($ac_try" in |
| 8841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8842 | *) ac_try_echo=$ac_try;; |
| 8843 | esac |
| 8844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8845 | (eval "$ac_try") 2>&5 |
| 8846 | ac_status=$? |
| 8847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8848 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8849 | ac_cv_search_opendir=$ac_res |
| 8850 | else |
| 8851 | echo "$as_me: failed program was:" >&5 |
| 8852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8853 | |
| 8854 | |
| 8855 | fi |
| 8856 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8857 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8858 | conftest$ac_exeext |
| 8859 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8860 | break |
| 8861 | fi |
| 8862 | done |
| 8863 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8864 | : |
| 8865 | else |
| 8866 | ac_cv_search_opendir=no |
| 8867 | fi |
| 8868 | rm conftest.$ac_ext |
| 8869 | LIBS=$ac_func_search_save_LIBS |
| 8870 | fi |
| 8871 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8872 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8873 | ac_res=$ac_cv_search_opendir |
| 8874 | if test "$ac_res" != no; then |
| 8875 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8876 | |
| 8877 | fi |
| 8878 | |
| 8879 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8880 | |
| 8881 | |
| 8882 | for ac_header in dlfcn.h |
| 8883 | do |
| 8884 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8886 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8888 | 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] | 8889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8890 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8891 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8893 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8894 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8895 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8896 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8897 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8898 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8899 | /* confdefs.h. */ |
| 8900 | _ACEOF |
| 8901 | cat confdefs.h >>conftest.$ac_ext |
| 8902 | cat >>conftest.$ac_ext <<_ACEOF |
| 8903 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8904 | $ac_includes_default |
| 8905 | #include <$ac_header> |
| 8906 | _ACEOF |
| 8907 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8908 | if { (ac_try="$ac_compile" |
| 8909 | case "(($ac_try" in |
| 8910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8911 | *) ac_try_echo=$ac_try;; |
| 8912 | esac |
| 8913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8914 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8915 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8917 | rm -f conftest.er1 |
| 8918 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8920 | (exit $ac_status); } && |
| 8921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8922 | { (case "(($ac_try" in |
| 8923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8924 | *) ac_try_echo=$ac_try;; |
| 8925 | esac |
| 8926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8927 | (eval "$ac_try") 2>&5 |
| 8928 | ac_status=$? |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); }; } && |
| 8931 | { ac_try='test -s conftest.$ac_objext' |
| 8932 | { (case "(($ac_try" in |
| 8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8934 | *) ac_try_echo=$ac_try;; |
| 8935 | esac |
| 8936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8937 | (eval "$ac_try") 2>&5 |
| 8938 | ac_status=$? |
| 8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8940 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8941 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8942 | else |
| 8943 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8946 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8947 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8948 | |
| 8949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8950 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8951 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8952 | |
| 8953 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8954 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8955 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8956 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8957 | /* confdefs.h. */ |
| 8958 | _ACEOF |
| 8959 | cat confdefs.h >>conftest.$ac_ext |
| 8960 | cat >>conftest.$ac_ext <<_ACEOF |
| 8961 | /* end confdefs.h. */ |
| 8962 | #include <$ac_header> |
| 8963 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8964 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8965 | case "(($ac_try" in |
| 8966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8967 | *) ac_try_echo=$ac_try;; |
| 8968 | esac |
| 8969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8970 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8971 | ac_status=$? |
| 8972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8973 | rm -f conftest.er1 |
| 8974 | cat conftest.err >&5 |
| 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8976 | (exit $ac_status); } >/dev/null; then |
| 8977 | if test -s conftest.err; then |
| 8978 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8979 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8980 | else |
| 8981 | ac_cpp_err= |
| 8982 | fi |
| 8983 | else |
| 8984 | ac_cpp_err=yes |
| 8985 | fi |
| 8986 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8987 | ac_header_preproc=yes |
| 8988 | else |
| 8989 | echo "$as_me: failed program was:" >&5 |
| 8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8991 | |
| 8992 | ac_header_preproc=no |
| 8993 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8994 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8995 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8996 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8997 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8998 | |
| 8999 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9001 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9002 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9003 | 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] | 9004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9005 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9006 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9007 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9008 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9013 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9014 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9015 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9016 | 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] | 9017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9018 | 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] | 9019 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9020 | 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] | 9021 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9022 | ## ----------------------------------- ## |
| 9023 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9024 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9025 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9026 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9027 | ;; |
| 9028 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9029 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9031 | 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] | 9032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9033 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9034 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9035 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9038 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9039 | |
| 9040 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9042 | cat >>confdefs.h <<_ACEOF |
| 9043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9044 | _ACEOF |
| 9045 | |
| 9046 | fi |
| 9047 | |
| 9048 | done |
| 9049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9050 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9051 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9052 | enableval=$enable_ltdl_install; |
| 9053 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9054 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9055 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 9056 | |
| 9057 | |
| 9058 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9059 | INSTALL_LTDL_TRUE= |
| 9060 | INSTALL_LTDL_FALSE='#' |
| 9061 | else |
| 9062 | INSTALL_LTDL_TRUE='#' |
| 9063 | INSTALL_LTDL_FALSE= |
| 9064 | fi |
| 9065 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 9066 | |
| 9067 | |
| 9068 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9069 | CONVENIENCE_LTDL_TRUE= |
| 9070 | CONVENIENCE_LTDL_FALSE='#' |
| 9071 | else |
| 9072 | CONVENIENCE_LTDL_TRUE='#' |
| 9073 | CONVENIENCE_LTDL_FALSE= |
| 9074 | fi |
| 9075 | |
| 9076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9077 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9078 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9079 | library_names_spec= |
| 9080 | libname_spec='lib$name' |
| 9081 | soname_spec= |
| 9082 | shrext_cmds=".so" |
| 9083 | postinstall_cmds= |
| 9084 | postuninstall_cmds= |
| 9085 | finish_cmds= |
| 9086 | finish_eval= |
| 9087 | shlibpath_var= |
| 9088 | shlibpath_overrides_runpath=unknown |
| 9089 | version_type=none |
| 9090 | dynamic_linker="$host_os ld.so" |
| 9091 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9092 | if test "$GCC" = yes; then |
| 9093 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9094 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9095 | # if the path contains ";" then we assume it to be the separator |
| 9096 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9097 | # assumed that no part of a normal pathname contains ";" but that should |
| 9098 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9099 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9100 | else |
| 9101 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9102 | fi |
| 9103 | else |
| 9104 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9105 | fi |
| 9106 | need_lib_prefix=unknown |
| 9107 | hardcode_into_libs=no |
| 9108 | |
| 9109 | # when you set need_version to no, make sure it does not cause -set_version |
| 9110 | # flags to be left without arguments |
| 9111 | need_version=unknown |
| 9112 | |
| 9113 | case $host_os in |
| 9114 | aix3*) |
| 9115 | version_type=linux |
| 9116 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9117 | shlibpath_var=LIBPATH |
| 9118 | |
| 9119 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9120 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9121 | ;; |
| 9122 | |
| 9123 | aix4* | aix5*) |
| 9124 | version_type=linux |
| 9125 | need_lib_prefix=no |
| 9126 | need_version=no |
| 9127 | hardcode_into_libs=yes |
| 9128 | if test "$host_cpu" = ia64; then |
| 9129 | # AIX 5 supports IA64 |
| 9130 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9131 | shlibpath_var=LD_LIBRARY_PATH |
| 9132 | else |
| 9133 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9134 | # for dependence libraries. The import file would start with |
| 9135 | # the line `#! .'. This would cause the generated library to |
| 9136 | # depend on `.', always an invalid library. This was fixed in |
| 9137 | # development snapshots of GCC prior to 3.0. |
| 9138 | case $host_os in |
| 9139 | aix4 | aix4.[01] | aix4.[01].*) |
| 9140 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9141 | echo ' yes ' |
| 9142 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9143 | : |
| 9144 | else |
| 9145 | can_build_shared=no |
| 9146 | fi |
| 9147 | ;; |
| 9148 | esac |
| 9149 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9150 | # soname into executable. Probably we can add versioning support to |
| 9151 | # collect2, so additional links can be useful in future. |
| 9152 | if test "$aix_use_runtimelinking" = yes; then |
| 9153 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9154 | # instead of lib<name>.a to let people know that these are not |
| 9155 | # typical AIX shared libraries. |
| 9156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9157 | else |
| 9158 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9159 | # and later when we are not doing run time linking. |
| 9160 | library_names_spec='${libname}${release}.a $libname.a' |
| 9161 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9162 | fi |
| 9163 | shlibpath_var=LIBPATH |
| 9164 | fi |
| 9165 | ;; |
| 9166 | |
| 9167 | amigaos*) |
| 9168 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9169 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9170 | 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' |
| 9171 | ;; |
| 9172 | |
| 9173 | beos*) |
| 9174 | library_names_spec='${libname}${shared_ext}' |
| 9175 | dynamic_linker="$host_os ld.so" |
| 9176 | shlibpath_var=LIBRARY_PATH |
| 9177 | ;; |
| 9178 | |
| 9179 | bsdi[45]*) |
| 9180 | version_type=linux |
| 9181 | need_version=no |
| 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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9185 | shlibpath_var=LD_LIBRARY_PATH |
| 9186 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9187 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9188 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9189 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9190 | # libtool to hard-code these into programs |
| 9191 | ;; |
| 9192 | |
| 9193 | cygwin* | mingw* | pw32*) |
| 9194 | version_type=windows |
| 9195 | shrext_cmds=".dll" |
| 9196 | need_version=no |
| 9197 | need_lib_prefix=no |
| 9198 | |
| 9199 | case $GCC,$host_os in |
| 9200 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9201 | library_names_spec='$libname.dll.a' |
| 9202 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9203 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9204 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9205 | dldir=$destdir/`dirname \$dlpath`~ |
| 9206 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9207 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9208 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9209 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9210 | dlpath=$dir/\$dldll~ |
| 9211 | $rm \$dlpath' |
| 9212 | shlibpath_overrides_runpath=yes |
| 9213 | |
| 9214 | case $host_os in |
| 9215 | cygwin*) |
| 9216 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9217 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9218 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9219 | ;; |
| 9220 | mingw*) |
| 9221 | # MinGW DLLs use traditional 'lib' prefix |
| 9222 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9223 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9224 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9225 | # It is most probably a Windows format PATH printed by |
| 9226 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9227 | # path with ; separators, and with drive letters. We can handle the |
| 9228 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9229 | # especially as we might pass files found there to a mingw objdump, |
| 9230 | # which wouldn't understand a cygwinified path. Ahh. |
| 9231 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9232 | else |
| 9233 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9234 | fi |
| 9235 | ;; |
| 9236 | pw32*) |
| 9237 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9238 | 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] | 9239 | ;; |
| 9240 | esac |
| 9241 | ;; |
| 9242 | |
| 9243 | *) |
| 9244 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9245 | ;; |
| 9246 | esac |
| 9247 | dynamic_linker='Win32 ld.exe' |
| 9248 | # FIXME: first we should search . and the directory the executable is in |
| 9249 | shlibpath_var=PATH |
| 9250 | ;; |
| 9251 | |
| 9252 | darwin* | rhapsody*) |
| 9253 | dynamic_linker="$host_os dyld" |
| 9254 | version_type=darwin |
| 9255 | need_lib_prefix=no |
| 9256 | need_version=no |
| 9257 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9258 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9259 | shlibpath_overrides_runpath=yes |
| 9260 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9261 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9262 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9263 | if test "$GCC" = yes; then |
| 9264 | 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"` |
| 9265 | else |
| 9266 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9267 | fi |
| 9268 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9269 | ;; |
| 9270 | |
| 9271 | dgux*) |
| 9272 | version_type=linux |
| 9273 | need_lib_prefix=no |
| 9274 | need_version=no |
| 9275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9276 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9277 | shlibpath_var=LD_LIBRARY_PATH |
| 9278 | ;; |
| 9279 | |
| 9280 | freebsd1*) |
| 9281 | dynamic_linker=no |
| 9282 | ;; |
| 9283 | |
| 9284 | kfreebsd*-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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9296 | freebsd* | dragonfly*) |
| 9297 | # DragonFly does not have aout. When/if they implement a new |
| 9298 | # versioning mechanism, adjust this. |
| 9299 | if test -x /usr/bin/objformat; then |
| 9300 | objformat=`/usr/bin/objformat` |
| 9301 | else |
| 9302 | case $host_os in |
| 9303 | freebsd[123]*) objformat=aout ;; |
| 9304 | *) objformat=elf ;; |
| 9305 | esac |
| 9306 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9307 | version_type=freebsd-$objformat |
| 9308 | case $version_type in |
| 9309 | freebsd-elf*) |
| 9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9311 | need_version=no |
| 9312 | need_lib_prefix=no |
| 9313 | ;; |
| 9314 | freebsd-*) |
| 9315 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9316 | need_version=yes |
| 9317 | ;; |
| 9318 | esac |
| 9319 | shlibpath_var=LD_LIBRARY_PATH |
| 9320 | case $host_os in |
| 9321 | freebsd2*) |
| 9322 | shlibpath_overrides_runpath=yes |
| 9323 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9324 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9325 | shlibpath_overrides_runpath=yes |
| 9326 | hardcode_into_libs=yes |
| 9327 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9328 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9329 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9330 | shlibpath_overrides_runpath=no |
| 9331 | hardcode_into_libs=yes |
| 9332 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9333 | freebsd*) # from 4.6 on |
| 9334 | shlibpath_overrides_runpath=yes |
| 9335 | hardcode_into_libs=yes |
| 9336 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9337 | esac |
| 9338 | ;; |
| 9339 | |
| 9340 | gnu*) |
| 9341 | version_type=linux |
| 9342 | need_lib_prefix=no |
| 9343 | need_version=no |
| 9344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9345 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9346 | shlibpath_var=LD_LIBRARY_PATH |
| 9347 | hardcode_into_libs=yes |
| 9348 | ;; |
| 9349 | |
| 9350 | hpux9* | hpux10* | hpux11*) |
| 9351 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9352 | # link against other versions. |
| 9353 | version_type=sunos |
| 9354 | need_lib_prefix=no |
| 9355 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9356 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9357 | ia64*) |
| 9358 | shrext_cmds='.so' |
| 9359 | hardcode_into_libs=yes |
| 9360 | dynamic_linker="$host_os dld.so" |
| 9361 | shlibpath_var=LD_LIBRARY_PATH |
| 9362 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9364 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9365 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9366 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9367 | else |
| 9368 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9369 | fi |
| 9370 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9371 | ;; |
| 9372 | hppa*64*) |
| 9373 | shrext_cmds='.sl' |
| 9374 | hardcode_into_libs=yes |
| 9375 | dynamic_linker="$host_os dld.sl" |
| 9376 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9377 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9379 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9380 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9381 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9382 | ;; |
| 9383 | *) |
| 9384 | shrext_cmds='.sl' |
| 9385 | dynamic_linker="$host_os dld.sl" |
| 9386 | shlibpath_var=SHLIB_PATH |
| 9387 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9389 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9390 | ;; |
| 9391 | esac |
| 9392 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9393 | postinstall_cmds='chmod 555 $lib' |
| 9394 | ;; |
| 9395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9396 | interix3*) |
| 9397 | version_type=linux |
| 9398 | need_lib_prefix=no |
| 9399 | need_version=no |
| 9400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9401 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9402 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9403 | shlibpath_var=LD_LIBRARY_PATH |
| 9404 | shlibpath_overrides_runpath=no |
| 9405 | hardcode_into_libs=yes |
| 9406 | ;; |
| 9407 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9408 | irix5* | irix6* | nonstopux*) |
| 9409 | case $host_os in |
| 9410 | nonstopux*) version_type=nonstopux ;; |
| 9411 | *) |
| 9412 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9413 | version_type=linux |
| 9414 | else |
| 9415 | version_type=irix |
| 9416 | fi ;; |
| 9417 | esac |
| 9418 | need_lib_prefix=no |
| 9419 | need_version=no |
| 9420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9422 | case $host_os in |
| 9423 | irix5* | nonstopux*) |
| 9424 | libsuff= shlibsuff= |
| 9425 | ;; |
| 9426 | *) |
| 9427 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9428 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9429 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9430 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9431 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9432 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9433 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9434 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9435 | esac |
| 9436 | ;; |
| 9437 | esac |
| 9438 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9439 | shlibpath_overrides_runpath=no |
| 9440 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9441 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9442 | hardcode_into_libs=yes |
| 9443 | ;; |
| 9444 | |
| 9445 | # No shared lib support for Linux oldld, aout, or coff. |
| 9446 | linux*oldld* | linux*aout* | linux*coff*) |
| 9447 | dynamic_linker=no |
| 9448 | ;; |
| 9449 | |
| 9450 | # This must be Linux ELF. |
| 9451 | linux*) |
| 9452 | version_type=linux |
| 9453 | need_lib_prefix=no |
| 9454 | need_version=no |
| 9455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9456 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9458 | shlibpath_var=LD_LIBRARY_PATH |
| 9459 | shlibpath_overrides_runpath=no |
| 9460 | # This implies no fast_install, which is unacceptable. |
| 9461 | # Some rework will be needed to allow for fast_install |
| 9462 | # before this can be enabled. |
| 9463 | hardcode_into_libs=yes |
| 9464 | |
| 9465 | # Append ld.so.conf contents to the search path |
| 9466 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9467 | 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] | 9468 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9469 | fi |
| 9470 | |
| 9471 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9472 | # powerpc, because MkLinux only supported shared libraries with the |
| 9473 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9474 | # most powerpc-linux boxes support dynamic linking these days and |
| 9475 | # people can always --disable-shared, the test was removed, and we |
| 9476 | # assume the GNU/Linux dynamic linker is in use. |
| 9477 | dynamic_linker='GNU/Linux ld.so' |
| 9478 | ;; |
| 9479 | |
| 9480 | knetbsd*-gnu) |
| 9481 | version_type=linux |
| 9482 | need_lib_prefix=no |
| 9483 | need_version=no |
| 9484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9486 | shlibpath_var=LD_LIBRARY_PATH |
| 9487 | shlibpath_overrides_runpath=no |
| 9488 | hardcode_into_libs=yes |
| 9489 | dynamic_linker='GNU ld.so' |
| 9490 | ;; |
| 9491 | |
| 9492 | netbsd*) |
| 9493 | version_type=sunos |
| 9494 | need_lib_prefix=no |
| 9495 | need_version=no |
| 9496 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9498 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9499 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9500 | else |
| 9501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9502 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9503 | dynamic_linker='NetBSD ld.elf_so' |
| 9504 | fi |
| 9505 | shlibpath_var=LD_LIBRARY_PATH |
| 9506 | shlibpath_overrides_runpath=yes |
| 9507 | hardcode_into_libs=yes |
| 9508 | ;; |
| 9509 | |
| 9510 | newsos6) |
| 9511 | version_type=linux |
| 9512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9513 | shlibpath_var=LD_LIBRARY_PATH |
| 9514 | shlibpath_overrides_runpath=yes |
| 9515 | ;; |
| 9516 | |
| 9517 | nto-qnx*) |
| 9518 | version_type=linux |
| 9519 | need_lib_prefix=no |
| 9520 | need_version=no |
| 9521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9522 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9523 | shlibpath_var=LD_LIBRARY_PATH |
| 9524 | shlibpath_overrides_runpath=yes |
| 9525 | ;; |
| 9526 | |
| 9527 | openbsd*) |
| 9528 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9529 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9530 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9531 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9532 | case $host_os in |
| 9533 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9534 | *) need_version=no ;; |
| 9535 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9537 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9538 | shlibpath_var=LD_LIBRARY_PATH |
| 9539 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9540 | case $host_os in |
| 9541 | openbsd2.[89] | openbsd2.[89].*) |
| 9542 | shlibpath_overrides_runpath=no |
| 9543 | ;; |
| 9544 | *) |
| 9545 | shlibpath_overrides_runpath=yes |
| 9546 | ;; |
| 9547 | esac |
| 9548 | else |
| 9549 | shlibpath_overrides_runpath=yes |
| 9550 | fi |
| 9551 | ;; |
| 9552 | |
| 9553 | os2*) |
| 9554 | libname_spec='$name' |
| 9555 | shrext_cmds=".dll" |
| 9556 | need_lib_prefix=no |
| 9557 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9558 | dynamic_linker='OS/2 ld.exe' |
| 9559 | shlibpath_var=LIBPATH |
| 9560 | ;; |
| 9561 | |
| 9562 | osf3* | osf4* | osf5*) |
| 9563 | version_type=osf |
| 9564 | need_lib_prefix=no |
| 9565 | need_version=no |
| 9566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9568 | shlibpath_var=LD_LIBRARY_PATH |
| 9569 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9570 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9571 | ;; |
| 9572 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9573 | solaris*) |
| 9574 | version_type=linux |
| 9575 | need_lib_prefix=no |
| 9576 | need_version=no |
| 9577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9578 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9579 | shlibpath_var=LD_LIBRARY_PATH |
| 9580 | shlibpath_overrides_runpath=yes |
| 9581 | hardcode_into_libs=yes |
| 9582 | # ldd complains unless libraries are executable |
| 9583 | postinstall_cmds='chmod +x $lib' |
| 9584 | ;; |
| 9585 | |
| 9586 | sunos4*) |
| 9587 | version_type=sunos |
| 9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9589 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9590 | shlibpath_var=LD_LIBRARY_PATH |
| 9591 | shlibpath_overrides_runpath=yes |
| 9592 | if test "$with_gnu_ld" = yes; then |
| 9593 | need_lib_prefix=no |
| 9594 | fi |
| 9595 | need_version=yes |
| 9596 | ;; |
| 9597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9598 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9599 | version_type=linux |
| 9600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9601 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9602 | shlibpath_var=LD_LIBRARY_PATH |
| 9603 | case $host_vendor in |
| 9604 | sni) |
| 9605 | shlibpath_overrides_runpath=no |
| 9606 | need_lib_prefix=no |
| 9607 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9608 | runpath_var=LD_RUN_PATH |
| 9609 | ;; |
| 9610 | siemens) |
| 9611 | need_lib_prefix=no |
| 9612 | ;; |
| 9613 | motorola) |
| 9614 | need_lib_prefix=no |
| 9615 | need_version=no |
| 9616 | shlibpath_overrides_runpath=no |
| 9617 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9618 | ;; |
| 9619 | esac |
| 9620 | ;; |
| 9621 | |
| 9622 | sysv4*MP*) |
| 9623 | if test -d /usr/nec ;then |
| 9624 | version_type=linux |
| 9625 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9626 | soname_spec='$libname${shared_ext}.$major' |
| 9627 | shlibpath_var=LD_LIBRARY_PATH |
| 9628 | fi |
| 9629 | ;; |
| 9630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9631 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9632 | version_type=freebsd-elf |
| 9633 | need_lib_prefix=no |
| 9634 | need_version=no |
| 9635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9636 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9637 | shlibpath_var=LD_LIBRARY_PATH |
| 9638 | hardcode_into_libs=yes |
| 9639 | if test "$with_gnu_ld" = yes; then |
| 9640 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9641 | shlibpath_overrides_runpath=no |
| 9642 | else |
| 9643 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9644 | shlibpath_overrides_runpath=yes |
| 9645 | case $host_os in |
| 9646 | sco3.2v5*) |
| 9647 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9648 | ;; |
| 9649 | esac |
| 9650 | fi |
| 9651 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9652 | ;; |
| 9653 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9654 | uts4*) |
| 9655 | version_type=linux |
| 9656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9658 | shlibpath_var=LD_LIBRARY_PATH |
| 9659 | ;; |
| 9660 | |
| 9661 | *) |
| 9662 | dynamic_linker=no |
| 9663 | ;; |
| 9664 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9665 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9666 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9667 | test "$dynamic_linker" = no && can_build_shared=no |
| 9668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9669 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9670 | if test "$GCC" = yes; then |
| 9671 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9672 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9674 | |
| 9675 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9676 | 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] | 9677 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9679 | else |
| 9680 | |
| 9681 | module=yes |
| 9682 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9683 | |
| 9684 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9685 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9686 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9687 | if test -n "$libltdl_cv_shlibext"; then |
| 9688 | |
| 9689 | cat >>confdefs.h <<_ACEOF |
| 9690 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9691 | _ACEOF |
| 9692 | |
| 9693 | fi |
| 9694 | |
| 9695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9696 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9697 | 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] | 9698 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9700 | else |
| 9701 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9703 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9704 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9705 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9706 | |
| 9707 | cat >>confdefs.h <<_ACEOF |
| 9708 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9709 | _ACEOF |
| 9710 | |
| 9711 | fi |
| 9712 | |
| 9713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9714 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9715 | 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] | 9716 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9718 | else |
| 9719 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9720 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9721 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9722 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9723 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9724 | sys_search_path= |
| 9725 | for dir in $libltdl_cv_sys_search_path; do |
| 9726 | if test -z "$sys_search_path"; then |
| 9727 | sys_search_path="$dir" |
| 9728 | else |
| 9729 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9730 | fi |
| 9731 | done |
| 9732 | |
| 9733 | cat >>confdefs.h <<_ACEOF |
| 9734 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9735 | _ACEOF |
| 9736 | |
| 9737 | fi |
| 9738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9739 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9740 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9741 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9743 | else |
| 9744 | libltdl_cv_objdir="$objdir" |
| 9745 | if test -n "$objdir"; then |
| 9746 | : |
| 9747 | else |
| 9748 | rm -f .libs 2>/dev/null |
| 9749 | mkdir .libs 2>/dev/null |
| 9750 | if test -d .libs; then |
| 9751 | libltdl_cv_objdir=.libs |
| 9752 | else |
| 9753 | # MS-DOS does not allow filenames that begin with a dot. |
| 9754 | libltdl_cv_objdir=_libs |
| 9755 | fi |
| 9756 | rmdir .libs 2>/dev/null |
| 9757 | fi |
| 9758 | |
| 9759 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9760 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9761 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9762 | |
| 9763 | cat >>confdefs.h <<_ACEOF |
| 9764 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9765 | _ACEOF |
| 9766 | |
| 9767 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9768 | |
| 9769 | |
| 9770 | |
| 9771 | |
| 9772 | # 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] | 9773 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9774 | 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] | 9775 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9777 | else |
| 9778 | |
| 9779 | # These are sane defaults that work on at least a few old systems. |
| 9780 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9781 | |
| 9782 | # Character class describing NM global symbol codes. |
| 9783 | symcode='[BCDEGRST]' |
| 9784 | |
| 9785 | # Regexp to match symbols that can be accessed directly from C. |
| 9786 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9787 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9788 | # Transform an extracted symbol line into a proper C declaration |
| 9789 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9790 | |
| 9791 | # Transform an extracted symbol line into symbol name and symbol address |
| 9792 | 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'" |
| 9793 | |
| 9794 | # Define system-specific variables. |
| 9795 | case $host_os in |
| 9796 | aix*) |
| 9797 | symcode='[BCDT]' |
| 9798 | ;; |
| 9799 | cygwin* | mingw* | pw32*) |
| 9800 | symcode='[ABCDGISTW]' |
| 9801 | ;; |
| 9802 | hpux*) # Its linker distinguishes data from code symbols |
| 9803 | if test "$host_cpu" = ia64; then |
| 9804 | symcode='[ABCDEGRST]' |
| 9805 | fi |
| 9806 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9807 | 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'" |
| 9808 | ;; |
| 9809 | linux*) |
| 9810 | if test "$host_cpu" = ia64; then |
| 9811 | symcode='[ABCDGIRSTW]' |
| 9812 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9813 | 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'" |
| 9814 | fi |
| 9815 | ;; |
| 9816 | irix* | nonstopux*) |
| 9817 | symcode='[BCDEGRST]' |
| 9818 | ;; |
| 9819 | osf*) |
| 9820 | symcode='[BCDEGQRST]' |
| 9821 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9822 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9823 | symcode='[BDRT]' |
| 9824 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9825 | sco3.2v5*) |
| 9826 | symcode='[DT]' |
| 9827 | ;; |
| 9828 | sysv4.2uw2*) |
| 9829 | symcode='[DT]' |
| 9830 | ;; |
| 9831 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9832 | symcode='[ABDT]' |
| 9833 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9834 | sysv4) |
| 9835 | symcode='[DFNSTU]' |
| 9836 | ;; |
| 9837 | esac |
| 9838 | |
| 9839 | # Handle CRLF in mingw tool chain |
| 9840 | opt_cr= |
| 9841 | case $build_os in |
| 9842 | mingw*) |
| 9843 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9844 | ;; |
| 9845 | esac |
| 9846 | |
| 9847 | # If we're using GNU nm, then use its standard symbol codes. |
| 9848 | case `$NM -V 2>&1` in |
| 9849 | *GNU* | *'with BFD'*) |
| 9850 | symcode='[ABCDGIRSTW]' ;; |
| 9851 | esac |
| 9852 | |
| 9853 | # Try without a prefix undercore, then with it. |
| 9854 | for ac_symprfx in "" "_"; do |
| 9855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9856 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9857 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9858 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9859 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9860 | 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] | 9861 | |
| 9862 | # Check to see that the pipe works correctly. |
| 9863 | pipe_works=no |
| 9864 | |
| 9865 | rm -f conftest* |
| 9866 | cat > conftest.$ac_ext <<EOF |
| 9867 | #ifdef __cplusplus |
| 9868 | extern "C" { |
| 9869 | #endif |
| 9870 | char nm_test_var; |
| 9871 | void nm_test_func(){} |
| 9872 | #ifdef __cplusplus |
| 9873 | } |
| 9874 | #endif |
| 9875 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9876 | EOF |
| 9877 | |
| 9878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9879 | (eval $ac_compile) 2>&5 |
| 9880 | ac_status=$? |
| 9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9882 | (exit $ac_status); }; then |
| 9883 | # Now try to grab the symbols. |
| 9884 | nlist=conftest.nm |
| 9885 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9886 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9887 | ac_status=$? |
| 9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9889 | (exit $ac_status); } && test -s "$nlist"; then |
| 9890 | # Try sorting and uniquifying the output. |
| 9891 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9892 | mv -f "$nlist"T "$nlist" |
| 9893 | else |
| 9894 | rm -f "$nlist"T |
| 9895 | fi |
| 9896 | |
| 9897 | # Make sure that we snagged all the symbols we need. |
| 9898 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9899 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9900 | cat <<EOF > conftest.$ac_ext |
| 9901 | #ifdef __cplusplus |
| 9902 | extern "C" { |
| 9903 | #endif |
| 9904 | |
| 9905 | EOF |
| 9906 | # Now generate the symbol file. |
| 9907 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9908 | |
| 9909 | cat <<EOF >> conftest.$ac_ext |
| 9910 | #if defined (__STDC__) && __STDC__ |
| 9911 | # define lt_ptr_t void * |
| 9912 | #else |
| 9913 | # define lt_ptr_t char * |
| 9914 | # define const |
| 9915 | #endif |
| 9916 | |
| 9917 | /* The mapping between symbol names and symbols. */ |
| 9918 | const struct { |
| 9919 | const char *name; |
| 9920 | lt_ptr_t address; |
| 9921 | } |
| 9922 | lt_preloaded_symbols[] = |
| 9923 | { |
| 9924 | EOF |
| 9925 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9926 | cat <<\EOF >> conftest.$ac_ext |
| 9927 | {0, (lt_ptr_t) 0} |
| 9928 | }; |
| 9929 | |
| 9930 | #ifdef __cplusplus |
| 9931 | } |
| 9932 | #endif |
| 9933 | EOF |
| 9934 | # Now try linking the two files. |
| 9935 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9936 | lt_save_LIBS="$LIBS" |
| 9937 | lt_save_CFLAGS="$CFLAGS" |
| 9938 | LIBS="conftstm.$ac_objext" |
| 9939 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9941 | (eval $ac_link) 2>&5 |
| 9942 | ac_status=$? |
| 9943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9944 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9945 | pipe_works=yes |
| 9946 | fi |
| 9947 | LIBS="$lt_save_LIBS" |
| 9948 | CFLAGS="$lt_save_CFLAGS" |
| 9949 | else |
| 9950 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9951 | fi |
| 9952 | else |
| 9953 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9954 | fi |
| 9955 | else |
| 9956 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9957 | fi |
| 9958 | else |
| 9959 | echo "$progname: failed program was:" >&5 |
| 9960 | cat conftest.$ac_ext >&5 |
| 9961 | fi |
| 9962 | rm -f conftest* conftst* |
| 9963 | |
| 9964 | # Do not use the global_symbol_pipe unless it works. |
| 9965 | if test "$pipe_works" = yes; then |
| 9966 | break |
| 9967 | else |
| 9968 | lt_cv_sys_global_symbol_pipe= |
| 9969 | fi |
| 9970 | done |
| 9971 | |
| 9972 | fi |
| 9973 | |
| 9974 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9975 | lt_cv_sys_global_symbol_to_cdecl= |
| 9976 | fi |
| 9977 | 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] | 9978 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9979 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9980 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9981 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9982 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9983 | fi |
| 9984 | |
| 9985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9986 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9987 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9988 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9990 | else |
| 9991 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9992 | libltdl_cv_preloaded_symbols=yes |
| 9993 | else |
| 9994 | libltdl_cv_preloaded_symbols=no |
| 9995 | fi |
| 9996 | |
| 9997 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9998 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9999 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10000 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10001 | |
| 10002 | cat >>confdefs.h <<\_ACEOF |
| 10003 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10004 | _ACEOF |
| 10005 | |
| 10006 | fi |
| 10007 | |
| 10008 | LIBADD_DL= |
| 10009 | |
| 10010 | ac_ext=c |
| 10011 | ac_cpp='$CPP $CPPFLAGS' |
| 10012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10015 | |
| 10016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10017 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10018 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10019 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10021 | else |
| 10022 | cat >conftest.$ac_ext <<_ACEOF |
| 10023 | /* confdefs.h. */ |
| 10024 | _ACEOF |
| 10025 | cat confdefs.h >>conftest.$ac_ext |
| 10026 | cat >>conftest.$ac_ext <<_ACEOF |
| 10027 | /* end confdefs.h. */ |
| 10028 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10029 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10030 | #define shl_load innocuous_shl_load |
| 10031 | |
| 10032 | /* System header to define __stub macros and hopefully few prototypes, |
| 10033 | which can conflict with char shl_load (); below. |
| 10034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10035 | <limits.h> exists even on freestanding compilers. */ |
| 10036 | |
| 10037 | #ifdef __STDC__ |
| 10038 | # include <limits.h> |
| 10039 | #else |
| 10040 | # include <assert.h> |
| 10041 | #endif |
| 10042 | |
| 10043 | #undef shl_load |
| 10044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10045 | /* Override any GCC internal prototype to avoid an error. |
| 10046 | Use char because int might match the return type of a GCC |
| 10047 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10048 | #ifdef __cplusplus |
| 10049 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10050 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10051 | char shl_load (); |
| 10052 | /* The GNU C library defines this for functions which it implements |
| 10053 | to always fail with ENOSYS. Some functions are actually named |
| 10054 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10055 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10056 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10057 | #endif |
| 10058 | |
| 10059 | int |
| 10060 | main () |
| 10061 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10062 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10063 | ; |
| 10064 | return 0; |
| 10065 | } |
| 10066 | _ACEOF |
| 10067 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10068 | if { (ac_try="$ac_link" |
| 10069 | case "(($ac_try" in |
| 10070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10071 | *) ac_try_echo=$ac_try;; |
| 10072 | esac |
| 10073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10074 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10075 | ac_status=$? |
| 10076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10077 | rm -f conftest.er1 |
| 10078 | cat conftest.err >&5 |
| 10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10080 | (exit $ac_status); } && |
| 10081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10082 | { (case "(($ac_try" in |
| 10083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10084 | *) ac_try_echo=$ac_try;; |
| 10085 | esac |
| 10086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10087 | (eval "$ac_try") 2>&5 |
| 10088 | ac_status=$? |
| 10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10090 | (exit $ac_status); }; } && |
| 10091 | { ac_try='test -s conftest$ac_exeext' |
| 10092 | { (case "(($ac_try" in |
| 10093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10094 | *) ac_try_echo=$ac_try;; |
| 10095 | esac |
| 10096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10097 | (eval "$ac_try") 2>&5 |
| 10098 | ac_status=$? |
| 10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10100 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10101 | ac_cv_func_shl_load=yes |
| 10102 | else |
| 10103 | echo "$as_me: failed program was:" >&5 |
| 10104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10106 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10107 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10108 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10109 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10110 | conftest$ac_exeext conftest.$ac_ext |
| 10111 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10112 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10113 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10114 | if test $ac_cv_func_shl_load = yes; then |
| 10115 | |
| 10116 | cat >>confdefs.h <<\_ACEOF |
| 10117 | #define HAVE_SHL_LOAD 1 |
| 10118 | _ACEOF |
| 10119 | |
| 10120 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10121 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10122 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10123 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10125 | else |
| 10126 | ac_check_lib_save_LIBS=$LIBS |
| 10127 | LIBS="-ldld $LIBS" |
| 10128 | cat >conftest.$ac_ext <<_ACEOF |
| 10129 | /* confdefs.h. */ |
| 10130 | _ACEOF |
| 10131 | cat confdefs.h >>conftest.$ac_ext |
| 10132 | cat >>conftest.$ac_ext <<_ACEOF |
| 10133 | /* end confdefs.h. */ |
| 10134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10135 | /* Override any GCC internal prototype to avoid an error. |
| 10136 | Use char because int might match the return type of a GCC |
| 10137 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10138 | #ifdef __cplusplus |
| 10139 | extern "C" |
| 10140 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10141 | char shl_load (); |
| 10142 | int |
| 10143 | main () |
| 10144 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10145 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10146 | ; |
| 10147 | return 0; |
| 10148 | } |
| 10149 | _ACEOF |
| 10150 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10151 | if { (ac_try="$ac_link" |
| 10152 | case "(($ac_try" in |
| 10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10154 | *) ac_try_echo=$ac_try;; |
| 10155 | esac |
| 10156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10157 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10158 | ac_status=$? |
| 10159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10160 | rm -f conftest.er1 |
| 10161 | cat conftest.err >&5 |
| 10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10163 | (exit $ac_status); } && |
| 10164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10165 | { (case "(($ac_try" in |
| 10166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10167 | *) ac_try_echo=$ac_try;; |
| 10168 | esac |
| 10169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10170 | (eval "$ac_try") 2>&5 |
| 10171 | ac_status=$? |
| 10172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10173 | (exit $ac_status); }; } && |
| 10174 | { ac_try='test -s conftest$ac_exeext' |
| 10175 | { (case "(($ac_try" in |
| 10176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10177 | *) ac_try_echo=$ac_try;; |
| 10178 | esac |
| 10179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10180 | (eval "$ac_try") 2>&5 |
| 10181 | ac_status=$? |
| 10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10183 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10184 | ac_cv_lib_dld_shl_load=yes |
| 10185 | else |
| 10186 | echo "$as_me: failed program was:" >&5 |
| 10187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10189 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10190 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10191 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10192 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10193 | conftest$ac_exeext conftest.$ac_ext |
| 10194 | LIBS=$ac_check_lib_save_LIBS |
| 10195 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10196 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10197 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10198 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10199 | |
| 10200 | cat >>confdefs.h <<\_ACEOF |
| 10201 | #define HAVE_SHL_LOAD 1 |
| 10202 | _ACEOF |
| 10203 | |
| 10204 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10205 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10206 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10207 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10208 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10210 | else |
| 10211 | ac_check_lib_save_LIBS=$LIBS |
| 10212 | LIBS="-ldl $LIBS" |
| 10213 | cat >conftest.$ac_ext <<_ACEOF |
| 10214 | /* confdefs.h. */ |
| 10215 | _ACEOF |
| 10216 | cat confdefs.h >>conftest.$ac_ext |
| 10217 | cat >>conftest.$ac_ext <<_ACEOF |
| 10218 | /* end confdefs.h. */ |
| 10219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10220 | /* Override any GCC internal prototype to avoid an error. |
| 10221 | Use char because int might match the return type of a GCC |
| 10222 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10223 | #ifdef __cplusplus |
| 10224 | extern "C" |
| 10225 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10226 | char dlopen (); |
| 10227 | int |
| 10228 | main () |
| 10229 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10230 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10231 | ; |
| 10232 | return 0; |
| 10233 | } |
| 10234 | _ACEOF |
| 10235 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10236 | if { (ac_try="$ac_link" |
| 10237 | case "(($ac_try" in |
| 10238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10239 | *) ac_try_echo=$ac_try;; |
| 10240 | esac |
| 10241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10242 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | ac_status=$? |
| 10244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10245 | rm -f conftest.er1 |
| 10246 | cat conftest.err >&5 |
| 10247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10248 | (exit $ac_status); } && |
| 10249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10250 | { (case "(($ac_try" in |
| 10251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10252 | *) ac_try_echo=$ac_try;; |
| 10253 | esac |
| 10254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10255 | (eval "$ac_try") 2>&5 |
| 10256 | ac_status=$? |
| 10257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10258 | (exit $ac_status); }; } && |
| 10259 | { ac_try='test -s conftest$ac_exeext' |
| 10260 | { (case "(($ac_try" in |
| 10261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10262 | *) ac_try_echo=$ac_try;; |
| 10263 | esac |
| 10264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10265 | (eval "$ac_try") 2>&5 |
| 10266 | ac_status=$? |
| 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10268 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10269 | ac_cv_lib_dl_dlopen=yes |
| 10270 | else |
| 10271 | echo "$as_me: failed program was:" >&5 |
| 10272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10274 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10275 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10276 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10277 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10278 | conftest$ac_exeext conftest.$ac_ext |
| 10279 | LIBS=$ac_check_lib_save_LIBS |
| 10280 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10281 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10282 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10283 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10284 | |
| 10285 | cat >>confdefs.h <<\_ACEOF |
| 10286 | #define HAVE_LIBDL 1 |
| 10287 | _ACEOF |
| 10288 | |
| 10289 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10290 | else |
| 10291 | cat >conftest.$ac_ext <<_ACEOF |
| 10292 | /* confdefs.h. */ |
| 10293 | _ACEOF |
| 10294 | cat confdefs.h >>conftest.$ac_ext |
| 10295 | cat >>conftest.$ac_ext <<_ACEOF |
| 10296 | /* end confdefs.h. */ |
| 10297 | #if HAVE_DLFCN_H |
| 10298 | # include <dlfcn.h> |
| 10299 | #endif |
| 10300 | |
| 10301 | int |
| 10302 | main () |
| 10303 | { |
| 10304 | dlopen(0, 0); |
| 10305 | ; |
| 10306 | return 0; |
| 10307 | } |
| 10308 | _ACEOF |
| 10309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10310 | if { (ac_try="$ac_link" |
| 10311 | case "(($ac_try" in |
| 10312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10313 | *) ac_try_echo=$ac_try;; |
| 10314 | esac |
| 10315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10316 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10317 | ac_status=$? |
| 10318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10319 | rm -f conftest.er1 |
| 10320 | cat conftest.err >&5 |
| 10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10322 | (exit $ac_status); } && |
| 10323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10324 | { (case "(($ac_try" in |
| 10325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10326 | *) ac_try_echo=$ac_try;; |
| 10327 | esac |
| 10328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10329 | (eval "$ac_try") 2>&5 |
| 10330 | ac_status=$? |
| 10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10332 | (exit $ac_status); }; } && |
| 10333 | { ac_try='test -s conftest$ac_exeext' |
| 10334 | { (case "(($ac_try" in |
| 10335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10336 | *) ac_try_echo=$ac_try;; |
| 10337 | esac |
| 10338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10339 | (eval "$ac_try") 2>&5 |
| 10340 | ac_status=$? |
| 10341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10342 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10343 | |
| 10344 | cat >>confdefs.h <<\_ACEOF |
| 10345 | #define HAVE_LIBDL 1 |
| 10346 | _ACEOF |
| 10347 | libltdl_cv_func_dlopen="yes" |
| 10348 | else |
| 10349 | echo "$as_me: failed program was:" >&5 |
| 10350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10351 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10352 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10353 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10354 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10356 | else |
| 10357 | ac_check_lib_save_LIBS=$LIBS |
| 10358 | LIBS="-lsvld $LIBS" |
| 10359 | cat >conftest.$ac_ext <<_ACEOF |
| 10360 | /* confdefs.h. */ |
| 10361 | _ACEOF |
| 10362 | cat confdefs.h >>conftest.$ac_ext |
| 10363 | cat >>conftest.$ac_ext <<_ACEOF |
| 10364 | /* end confdefs.h. */ |
| 10365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10366 | /* Override any GCC internal prototype to avoid an error. |
| 10367 | Use char because int might match the return type of a GCC |
| 10368 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10369 | #ifdef __cplusplus |
| 10370 | extern "C" |
| 10371 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10372 | char dlopen (); |
| 10373 | int |
| 10374 | main () |
| 10375 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10376 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10377 | ; |
| 10378 | return 0; |
| 10379 | } |
| 10380 | _ACEOF |
| 10381 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10382 | if { (ac_try="$ac_link" |
| 10383 | case "(($ac_try" in |
| 10384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10385 | *) ac_try_echo=$ac_try;; |
| 10386 | esac |
| 10387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10388 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10389 | ac_status=$? |
| 10390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10391 | rm -f conftest.er1 |
| 10392 | cat conftest.err >&5 |
| 10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10394 | (exit $ac_status); } && |
| 10395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10396 | { (case "(($ac_try" in |
| 10397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10398 | *) ac_try_echo=$ac_try;; |
| 10399 | esac |
| 10400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10401 | (eval "$ac_try") 2>&5 |
| 10402 | ac_status=$? |
| 10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10404 | (exit $ac_status); }; } && |
| 10405 | { ac_try='test -s conftest$ac_exeext' |
| 10406 | { (case "(($ac_try" in |
| 10407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10408 | *) ac_try_echo=$ac_try;; |
| 10409 | esac |
| 10410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10411 | (eval "$ac_try") 2>&5 |
| 10412 | ac_status=$? |
| 10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10414 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10415 | ac_cv_lib_svld_dlopen=yes |
| 10416 | else |
| 10417 | echo "$as_me: failed program was:" >&5 |
| 10418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10420 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10421 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10422 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10423 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10424 | conftest$ac_exeext conftest.$ac_ext |
| 10425 | LIBS=$ac_check_lib_save_LIBS |
| 10426 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10427 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10428 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10430 | |
| 10431 | cat >>confdefs.h <<\_ACEOF |
| 10432 | #define HAVE_LIBDL 1 |
| 10433 | _ACEOF |
| 10434 | |
| 10435 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10436 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10437 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10438 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10439 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10441 | else |
| 10442 | ac_check_lib_save_LIBS=$LIBS |
| 10443 | LIBS="-ldld $LIBS" |
| 10444 | cat >conftest.$ac_ext <<_ACEOF |
| 10445 | /* confdefs.h. */ |
| 10446 | _ACEOF |
| 10447 | cat confdefs.h >>conftest.$ac_ext |
| 10448 | cat >>conftest.$ac_ext <<_ACEOF |
| 10449 | /* end confdefs.h. */ |
| 10450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10451 | /* Override any GCC internal prototype to avoid an error. |
| 10452 | Use char because int might match the return type of a GCC |
| 10453 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10454 | #ifdef __cplusplus |
| 10455 | extern "C" |
| 10456 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | char dld_link (); |
| 10458 | int |
| 10459 | main () |
| 10460 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10461 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10462 | ; |
| 10463 | return 0; |
| 10464 | } |
| 10465 | _ACEOF |
| 10466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10467 | if { (ac_try="$ac_link" |
| 10468 | case "(($ac_try" in |
| 10469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10470 | *) ac_try_echo=$ac_try;; |
| 10471 | esac |
| 10472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10473 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10474 | ac_status=$? |
| 10475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10476 | rm -f conftest.er1 |
| 10477 | cat conftest.err >&5 |
| 10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10479 | (exit $ac_status); } && |
| 10480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10481 | { (case "(($ac_try" in |
| 10482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10483 | *) ac_try_echo=$ac_try;; |
| 10484 | esac |
| 10485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10486 | (eval "$ac_try") 2>&5 |
| 10487 | ac_status=$? |
| 10488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10489 | (exit $ac_status); }; } && |
| 10490 | { ac_try='test -s conftest$ac_exeext' |
| 10491 | { (case "(($ac_try" in |
| 10492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10493 | *) ac_try_echo=$ac_try;; |
| 10494 | esac |
| 10495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10496 | (eval "$ac_try") 2>&5 |
| 10497 | ac_status=$? |
| 10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10499 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10500 | ac_cv_lib_dld_dld_link=yes |
| 10501 | else |
| 10502 | echo "$as_me: failed program was:" >&5 |
| 10503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10505 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10507 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10508 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | conftest$ac_exeext conftest.$ac_ext |
| 10510 | LIBS=$ac_check_lib_save_LIBS |
| 10511 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10512 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10513 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10514 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10515 | |
| 10516 | cat >>confdefs.h <<\_ACEOF |
| 10517 | #define HAVE_DLD 1 |
| 10518 | _ACEOF |
| 10519 | |
| 10520 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10521 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10522 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10523 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10524 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10526 | else |
| 10527 | cat >conftest.$ac_ext <<_ACEOF |
| 10528 | /* confdefs.h. */ |
| 10529 | _ACEOF |
| 10530 | cat confdefs.h >>conftest.$ac_ext |
| 10531 | cat >>conftest.$ac_ext <<_ACEOF |
| 10532 | /* end confdefs.h. */ |
| 10533 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10535 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10536 | |
| 10537 | /* System header to define __stub macros and hopefully few prototypes, |
| 10538 | which can conflict with char _dyld_func_lookup (); below. |
| 10539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10540 | <limits.h> exists even on freestanding compilers. */ |
| 10541 | |
| 10542 | #ifdef __STDC__ |
| 10543 | # include <limits.h> |
| 10544 | #else |
| 10545 | # include <assert.h> |
| 10546 | #endif |
| 10547 | |
| 10548 | #undef _dyld_func_lookup |
| 10549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10550 | /* Override any GCC internal prototype to avoid an error. |
| 10551 | Use char because int might match the return type of a GCC |
| 10552 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10553 | #ifdef __cplusplus |
| 10554 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10555 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10556 | char _dyld_func_lookup (); |
| 10557 | /* The GNU C library defines this for functions which it implements |
| 10558 | to always fail with ENOSYS. Some functions are actually named |
| 10559 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10560 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10561 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10562 | #endif |
| 10563 | |
| 10564 | int |
| 10565 | main () |
| 10566 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10567 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10568 | ; |
| 10569 | return 0; |
| 10570 | } |
| 10571 | _ACEOF |
| 10572 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10573 | if { (ac_try="$ac_link" |
| 10574 | case "(($ac_try" in |
| 10575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10576 | *) ac_try_echo=$ac_try;; |
| 10577 | esac |
| 10578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10579 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10580 | ac_status=$? |
| 10581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10582 | rm -f conftest.er1 |
| 10583 | cat conftest.err >&5 |
| 10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10585 | (exit $ac_status); } && |
| 10586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10587 | { (case "(($ac_try" in |
| 10588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10589 | *) ac_try_echo=$ac_try;; |
| 10590 | esac |
| 10591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10592 | (eval "$ac_try") 2>&5 |
| 10593 | ac_status=$? |
| 10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10595 | (exit $ac_status); }; } && |
| 10596 | { ac_try='test -s conftest$ac_exeext' |
| 10597 | { (case "(($ac_try" in |
| 10598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10599 | *) ac_try_echo=$ac_try;; |
| 10600 | esac |
| 10601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10602 | (eval "$ac_try") 2>&5 |
| 10603 | ac_status=$? |
| 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10605 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10606 | ac_cv_func__dyld_func_lookup=yes |
| 10607 | else |
| 10608 | echo "$as_me: failed program was:" >&5 |
| 10609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10611 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10612 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10613 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10614 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10615 | conftest$ac_exeext conftest.$ac_ext |
| 10616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10617 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10618 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10619 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10620 | |
| 10621 | cat >>confdefs.h <<\_ACEOF |
| 10622 | #define HAVE_DYLD 1 |
| 10623 | _ACEOF |
| 10624 | |
| 10625 | fi |
| 10626 | |
| 10627 | |
| 10628 | fi |
| 10629 | |
| 10630 | |
| 10631 | fi |
| 10632 | |
| 10633 | |
| 10634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10635 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10636 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10637 | conftest$ac_exeext conftest.$ac_ext |
| 10638 | |
| 10639 | fi |
| 10640 | |
| 10641 | |
| 10642 | fi |
| 10643 | |
| 10644 | |
| 10645 | fi |
| 10646 | |
| 10647 | |
| 10648 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10649 | then |
| 10650 | lt_save_LIBS="$LIBS" |
| 10651 | LIBS="$LIBS $LIBADD_DL" |
| 10652 | |
| 10653 | for ac_func in dlerror |
| 10654 | do |
| 10655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10656 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10658 | 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] | 10659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10660 | else |
| 10661 | cat >conftest.$ac_ext <<_ACEOF |
| 10662 | /* confdefs.h. */ |
| 10663 | _ACEOF |
| 10664 | cat confdefs.h >>conftest.$ac_ext |
| 10665 | cat >>conftest.$ac_ext <<_ACEOF |
| 10666 | /* end confdefs.h. */ |
| 10667 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10669 | #define $ac_func innocuous_$ac_func |
| 10670 | |
| 10671 | /* System header to define __stub macros and hopefully few prototypes, |
| 10672 | which can conflict with char $ac_func (); below. |
| 10673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10674 | <limits.h> exists even on freestanding compilers. */ |
| 10675 | |
| 10676 | #ifdef __STDC__ |
| 10677 | # include <limits.h> |
| 10678 | #else |
| 10679 | # include <assert.h> |
| 10680 | #endif |
| 10681 | |
| 10682 | #undef $ac_func |
| 10683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10684 | /* Override any GCC internal prototype to avoid an error. |
| 10685 | Use char because int might match the return type of a GCC |
| 10686 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10687 | #ifdef __cplusplus |
| 10688 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10689 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10690 | char $ac_func (); |
| 10691 | /* The GNU C library defines this for functions which it implements |
| 10692 | to always fail with ENOSYS. Some functions are actually named |
| 10693 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10694 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10695 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10696 | #endif |
| 10697 | |
| 10698 | int |
| 10699 | main () |
| 10700 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10701 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10702 | ; |
| 10703 | return 0; |
| 10704 | } |
| 10705 | _ACEOF |
| 10706 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10707 | if { (ac_try="$ac_link" |
| 10708 | case "(($ac_try" in |
| 10709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10710 | *) ac_try_echo=$ac_try;; |
| 10711 | esac |
| 10712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10713 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10714 | ac_status=$? |
| 10715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10716 | rm -f conftest.er1 |
| 10717 | cat conftest.err >&5 |
| 10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10719 | (exit $ac_status); } && |
| 10720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10721 | { (case "(($ac_try" in |
| 10722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10723 | *) ac_try_echo=$ac_try;; |
| 10724 | esac |
| 10725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10726 | (eval "$ac_try") 2>&5 |
| 10727 | ac_status=$? |
| 10728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10729 | (exit $ac_status); }; } && |
| 10730 | { ac_try='test -s conftest$ac_exeext' |
| 10731 | { (case "(($ac_try" in |
| 10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10733 | *) ac_try_echo=$ac_try;; |
| 10734 | esac |
| 10735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10736 | (eval "$ac_try") 2>&5 |
| 10737 | ac_status=$? |
| 10738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10739 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10740 | eval "$as_ac_var=yes" |
| 10741 | else |
| 10742 | echo "$as_me: failed program was:" >&5 |
| 10743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10745 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10747 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 10748 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10749 | conftest$ac_exeext conftest.$ac_ext |
| 10750 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10751 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10752 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10753 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10754 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10755 | cat >>confdefs.h <<_ACEOF |
| 10756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10757 | _ACEOF |
| 10758 | |
| 10759 | fi |
| 10760 | done |
| 10761 | |
| 10762 | LIBS="$lt_save_LIBS" |
| 10763 | fi |
| 10764 | ac_ext=c |
| 10765 | ac_cpp='$CPP $CPPFLAGS' |
| 10766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10769 | |
| 10770 | |
| 10771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10772 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10773 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10774 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10776 | else |
| 10777 | ac_cv_sys_symbol_underscore=no |
| 10778 | cat > conftest.$ac_ext <<EOF |
| 10779 | void nm_test_func(){} |
| 10780 | int main(){nm_test_func;return 0;} |
| 10781 | EOF |
| 10782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10783 | (eval $ac_compile) 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); }; then |
| 10787 | # Now try to grab the symbols. |
| 10788 | ac_nlist=conftest.nm |
| 10789 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10790 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10791 | ac_status=$? |
| 10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10793 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10794 | # See whether the symbols have a leading underscore. |
| 10795 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10796 | ac_cv_sys_symbol_underscore=yes |
| 10797 | else |
| 10798 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10799 | : |
| 10800 | else |
| 10801 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10802 | fi |
| 10803 | fi |
| 10804 | else |
| 10805 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10806 | fi |
| 10807 | else |
| 10808 | echo "configure: failed program was:" >&5 |
| 10809 | cat conftest.c >&5 |
| 10810 | fi |
| 10811 | rm -rf conftest* |
| 10812 | |
| 10813 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10814 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10815 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10816 | |
| 10817 | |
| 10818 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10819 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10820 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10821 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10822 | 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] | 10823 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10825 | else |
| 10826 | libltdl_cv_need_uscore=unknown |
| 10827 | save_LIBS="$LIBS" |
| 10828 | LIBS="$LIBS $LIBADD_DL" |
| 10829 | if test "$cross_compiling" = yes; then : |
| 10830 | libltdl_cv_need_uscore=cross |
| 10831 | else |
| 10832 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10833 | lt_status=$lt_dlunknown |
| 10834 | cat > conftest.$ac_ext <<EOF |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 10835 | #line 10835 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10836 | #include "confdefs.h" |
| 10837 | |
| 10838 | #if HAVE_DLFCN_H |
| 10839 | #include <dlfcn.h> |
| 10840 | #endif |
| 10841 | |
| 10842 | #include <stdio.h> |
| 10843 | |
| 10844 | #ifdef RTLD_GLOBAL |
| 10845 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10846 | #else |
| 10847 | # ifdef DL_GLOBAL |
| 10848 | # define LT_DLGLOBAL DL_GLOBAL |
| 10849 | # else |
| 10850 | # define LT_DLGLOBAL 0 |
| 10851 | # endif |
| 10852 | #endif |
| 10853 | |
| 10854 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10855 | find out it does not work in some platform. */ |
| 10856 | #ifndef LT_DLLAZY_OR_NOW |
| 10857 | # ifdef RTLD_LAZY |
| 10858 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10859 | # else |
| 10860 | # ifdef DL_LAZY |
| 10861 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10862 | # else |
| 10863 | # ifdef RTLD_NOW |
| 10864 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10865 | # else |
| 10866 | # ifdef DL_NOW |
| 10867 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10868 | # else |
| 10869 | # define LT_DLLAZY_OR_NOW 0 |
| 10870 | # endif |
| 10871 | # endif |
| 10872 | # endif |
| 10873 | # endif |
| 10874 | #endif |
| 10875 | |
| 10876 | #ifdef __cplusplus |
| 10877 | extern "C" void exit (int); |
| 10878 | #endif |
| 10879 | |
| 10880 | void fnord() { int i=42;} |
| 10881 | int main () |
| 10882 | { |
| 10883 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10884 | int status = $lt_dlunknown; |
| 10885 | |
| 10886 | if (self) |
| 10887 | { |
| 10888 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10889 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10890 | /* dlclose (self); */ |
| 10891 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10892 | else |
| 10893 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10894 | |
| 10895 | exit (status); |
| 10896 | } |
| 10897 | EOF |
| 10898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10899 | (eval $ac_link) 2>&5 |
| 10900 | ac_status=$? |
| 10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10902 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10903 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10904 | lt_status=$? |
| 10905 | case x$lt_status in |
| 10906 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10907 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10908 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10909 | esac |
| 10910 | else : |
| 10911 | # compilation failed |
| 10912 | |
| 10913 | fi |
| 10914 | fi |
| 10915 | rm -fr conftest* |
| 10916 | |
| 10917 | LIBS="$save_LIBS" |
| 10918 | |
| 10919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10920 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10921 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10922 | fi |
| 10923 | fi |
| 10924 | |
| 10925 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10926 | |
| 10927 | cat >>confdefs.h <<\_ACEOF |
| 10928 | #define NEED_USCORE 1 |
| 10929 | _ACEOF |
| 10930 | |
| 10931 | fi |
| 10932 | |
| 10933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10934 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10935 | 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] | 10936 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10938 | else |
| 10939 | # PORTME does your system automatically load deplibs for dlopen? |
| 10940 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10941 | # For now, we just catch OSes we know something about -- in the |
| 10942 | # future, we'll try test this programmatically. |
| 10943 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10944 | case "$host_os" in |
| 10945 | aix3*|aix4.1.*|aix4.2.*) |
| 10946 | # Unknown whether this is true for these versions of AIX, but |
| 10947 | # we want this `case' here to explicitly catch those versions. |
| 10948 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10949 | ;; |
| 10950 | aix[45]*) |
| 10951 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10952 | ;; |
| 10953 | darwin*) |
| 10954 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10955 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10956 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10957 | ;; |
| 10958 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10959 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10960 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10961 | ;; |
| 10962 | hpux10*|hpux11*) |
| 10963 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10964 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10965 | interix*) |
| 10966 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10967 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10968 | irix[12345]*|irix6.[01]*) |
| 10969 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10970 | # know how it worked for any of those versions. |
| 10971 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10972 | ;; |
| 10973 | irix*) |
| 10974 | # The case above catches anything before 6.2, and it's known that |
| 10975 | # at 6.2 and later dlopen does load deplibs. |
| 10976 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10977 | ;; |
| 10978 | netbsd*) |
| 10979 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10980 | ;; |
| 10981 | openbsd*) |
| 10982 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10983 | ;; |
| 10984 | osf[1234]*) |
| 10985 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10986 | # it did *not* use an RPATH in a shared library to find objects the |
| 10987 | # library depends on, so we explictly say `no'. |
| 10988 | libltdl_cv_sys_dlopen_deplibs=no |
| 10989 | ;; |
| 10990 | osf5.0|osf5.0a|osf5.1) |
| 10991 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10992 | # it even uses RPATH in a shared library to search for shared objects |
| 10993 | # that the library depends on, but there's no easy way to know if that |
| 10994 | # patch is installed. Since this is the case, all we can really |
| 10995 | # say is unknown -- it depends on the patch being installed. If |
| 10996 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10997 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10998 | ;; |
| 10999 | osf*) |
| 11000 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11001 | # the comments above for what we know about them. |
| 11002 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11003 | # is used to find them so we can finally say `yes'. |
| 11004 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11005 | ;; |
| 11006 | solaris*) |
| 11007 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11008 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11009 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11010 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11011 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11012 | esac |
| 11013 | |
| 11014 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11015 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11016 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11017 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11018 | |
| 11019 | cat >>confdefs.h <<\_ACEOF |
| 11020 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11021 | _ACEOF |
| 11022 | |
| 11023 | fi |
| 11024 | |
| 11025 | |
| 11026 | for ac_header in argz.h |
| 11027 | do |
| 11028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11030 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11032 | 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] | 11033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11034 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11035 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11037 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11038 | else |
| 11039 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11040 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11041 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11042 | cat >conftest.$ac_ext <<_ACEOF |
| 11043 | /* confdefs.h. */ |
| 11044 | _ACEOF |
| 11045 | cat confdefs.h >>conftest.$ac_ext |
| 11046 | cat >>conftest.$ac_ext <<_ACEOF |
| 11047 | /* end confdefs.h. */ |
| 11048 | $ac_includes_default |
| 11049 | #include <$ac_header> |
| 11050 | _ACEOF |
| 11051 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11052 | if { (ac_try="$ac_compile" |
| 11053 | case "(($ac_try" in |
| 11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11055 | *) ac_try_echo=$ac_try;; |
| 11056 | esac |
| 11057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11058 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11059 | ac_status=$? |
| 11060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11061 | rm -f conftest.er1 |
| 11062 | cat conftest.err >&5 |
| 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11064 | (exit $ac_status); } && |
| 11065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11066 | { (case "(($ac_try" in |
| 11067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11068 | *) ac_try_echo=$ac_try;; |
| 11069 | esac |
| 11070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11071 | (eval "$ac_try") 2>&5 |
| 11072 | ac_status=$? |
| 11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11074 | (exit $ac_status); }; } && |
| 11075 | { ac_try='test -s conftest.$ac_objext' |
| 11076 | { (case "(($ac_try" in |
| 11077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11078 | *) ac_try_echo=$ac_try;; |
| 11079 | esac |
| 11080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11081 | (eval "$ac_try") 2>&5 |
| 11082 | ac_status=$? |
| 11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11084 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11085 | ac_header_compiler=yes |
| 11086 | else |
| 11087 | echo "$as_me: failed program was:" >&5 |
| 11088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11090 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11091 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11092 | |
| 11093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11094 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11095 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11096 | |
| 11097 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11098 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11099 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11100 | cat >conftest.$ac_ext <<_ACEOF |
| 11101 | /* confdefs.h. */ |
| 11102 | _ACEOF |
| 11103 | cat confdefs.h >>conftest.$ac_ext |
| 11104 | cat >>conftest.$ac_ext <<_ACEOF |
| 11105 | /* end confdefs.h. */ |
| 11106 | #include <$ac_header> |
| 11107 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11108 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11109 | case "(($ac_try" in |
| 11110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11111 | *) ac_try_echo=$ac_try;; |
| 11112 | esac |
| 11113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11114 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11115 | ac_status=$? |
| 11116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11117 | rm -f conftest.er1 |
| 11118 | cat conftest.err >&5 |
| 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11120 | (exit $ac_status); } >/dev/null; then |
| 11121 | if test -s conftest.err; then |
| 11122 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11124 | else |
| 11125 | ac_cpp_err= |
| 11126 | fi |
| 11127 | else |
| 11128 | ac_cpp_err=yes |
| 11129 | fi |
| 11130 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11131 | ac_header_preproc=yes |
| 11132 | else |
| 11133 | echo "$as_me: failed program was:" >&5 |
| 11134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11135 | |
| 11136 | ac_header_preproc=no |
| 11137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11138 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11139 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11140 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11141 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11142 | |
| 11143 | # So? What about this header? |
| 11144 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11145 | yes:no: ) |
| 11146 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11147 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11149 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11150 | ac_header_preproc=yes |
| 11151 | ;; |
| 11152 | no:yes:* ) |
| 11153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11158 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11160 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11162 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11164 | 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] | 11165 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11166 | ## ----------------------------------- ## |
| 11167 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11168 | ## ----------------------------------- ## |
| 11169 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11170 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11171 | ;; |
| 11172 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11173 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11175 | 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] | 11176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11177 | else |
| 11178 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11179 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11182 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11183 | |
| 11184 | fi |
| 11185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11186 | cat >>confdefs.h <<_ACEOF |
| 11187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11188 | _ACEOF |
| 11189 | |
| 11190 | fi |
| 11191 | |
| 11192 | done |
| 11193 | |
| 11194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11195 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11196 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11197 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11199 | else |
| 11200 | cat >conftest.$ac_ext <<_ACEOF |
| 11201 | /* confdefs.h. */ |
| 11202 | _ACEOF |
| 11203 | cat confdefs.h >>conftest.$ac_ext |
| 11204 | cat >>conftest.$ac_ext <<_ACEOF |
| 11205 | /* end confdefs.h. */ |
| 11206 | #if HAVE_ARGZ_H |
| 11207 | # include <argz.h> |
| 11208 | #endif |
| 11209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11210 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11211 | int |
| 11212 | main () |
| 11213 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11214 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11215 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11216 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11217 | return 0; |
| 11218 | ; |
| 11219 | return 0; |
| 11220 | } |
| 11221 | _ACEOF |
| 11222 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11223 | if { (ac_try="$ac_compile" |
| 11224 | case "(($ac_try" in |
| 11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11226 | *) ac_try_echo=$ac_try;; |
| 11227 | esac |
| 11228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11229 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11230 | ac_status=$? |
| 11231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11232 | rm -f conftest.er1 |
| 11233 | cat conftest.err >&5 |
| 11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11235 | (exit $ac_status); } && |
| 11236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11237 | { (case "(($ac_try" in |
| 11238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11239 | *) ac_try_echo=$ac_try;; |
| 11240 | esac |
| 11241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11242 | (eval "$ac_try") 2>&5 |
| 11243 | ac_status=$? |
| 11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11245 | (exit $ac_status); }; } && |
| 11246 | { ac_try='test -s conftest.$ac_objext' |
| 11247 | { (case "(($ac_try" in |
| 11248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11249 | *) ac_try_echo=$ac_try;; |
| 11250 | esac |
| 11251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11252 | (eval "$ac_try") 2>&5 |
| 11253 | ac_status=$? |
| 11254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11255 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11256 | ac_cv_type_error_t=yes |
| 11257 | else |
| 11258 | echo "$as_me: failed program was:" >&5 |
| 11259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11261 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11262 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11263 | |
| 11264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11266 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11267 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11268 | if test $ac_cv_type_error_t = yes; then |
| 11269 | |
| 11270 | cat >>confdefs.h <<_ACEOF |
| 11271 | #define HAVE_ERROR_T 1 |
| 11272 | _ACEOF |
| 11273 | |
| 11274 | |
| 11275 | else |
| 11276 | |
| 11277 | cat >>confdefs.h <<\_ACEOF |
| 11278 | #define error_t int |
| 11279 | _ACEOF |
| 11280 | |
| 11281 | fi |
| 11282 | |
| 11283 | |
| 11284 | |
| 11285 | |
| 11286 | |
| 11287 | |
| 11288 | |
| 11289 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11290 | do |
| 11291 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11292 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11293 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11294 | 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] | 11295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11296 | else |
| 11297 | cat >conftest.$ac_ext <<_ACEOF |
| 11298 | /* confdefs.h. */ |
| 11299 | _ACEOF |
| 11300 | cat confdefs.h >>conftest.$ac_ext |
| 11301 | cat >>conftest.$ac_ext <<_ACEOF |
| 11302 | /* end confdefs.h. */ |
| 11303 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11305 | #define $ac_func innocuous_$ac_func |
| 11306 | |
| 11307 | /* System header to define __stub macros and hopefully few prototypes, |
| 11308 | which can conflict with char $ac_func (); below. |
| 11309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11310 | <limits.h> exists even on freestanding compilers. */ |
| 11311 | |
| 11312 | #ifdef __STDC__ |
| 11313 | # include <limits.h> |
| 11314 | #else |
| 11315 | # include <assert.h> |
| 11316 | #endif |
| 11317 | |
| 11318 | #undef $ac_func |
| 11319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11320 | /* Override any GCC internal prototype to avoid an error. |
| 11321 | Use char because int might match the return type of a GCC |
| 11322 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11323 | #ifdef __cplusplus |
| 11324 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11325 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11326 | char $ac_func (); |
| 11327 | /* The GNU C library defines this for functions which it implements |
| 11328 | to always fail with ENOSYS. Some functions are actually named |
| 11329 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11330 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11331 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11332 | #endif |
| 11333 | |
| 11334 | int |
| 11335 | main () |
| 11336 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11337 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11338 | ; |
| 11339 | return 0; |
| 11340 | } |
| 11341 | _ACEOF |
| 11342 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11343 | if { (ac_try="$ac_link" |
| 11344 | case "(($ac_try" in |
| 11345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11346 | *) ac_try_echo=$ac_try;; |
| 11347 | esac |
| 11348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11349 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11350 | ac_status=$? |
| 11351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11352 | rm -f conftest.er1 |
| 11353 | cat conftest.err >&5 |
| 11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11355 | (exit $ac_status); } && |
| 11356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11357 | { (case "(($ac_try" in |
| 11358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11359 | *) ac_try_echo=$ac_try;; |
| 11360 | esac |
| 11361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11362 | (eval "$ac_try") 2>&5 |
| 11363 | ac_status=$? |
| 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); }; } && |
| 11366 | { ac_try='test -s conftest$ac_exeext' |
| 11367 | { (case "(($ac_try" in |
| 11368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11369 | *) ac_try_echo=$ac_try;; |
| 11370 | esac |
| 11371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11372 | (eval "$ac_try") 2>&5 |
| 11373 | ac_status=$? |
| 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11375 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11376 | eval "$as_ac_var=yes" |
| 11377 | else |
| 11378 | echo "$as_me: failed program was:" >&5 |
| 11379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11381 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11383 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11384 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11385 | conftest$ac_exeext conftest.$ac_ext |
| 11386 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11387 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11388 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11389 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11390 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11391 | cat >>confdefs.h <<_ACEOF |
| 11392 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11393 | _ACEOF |
| 11394 | |
| 11395 | fi |
| 11396 | done |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11426 | stdio.h unistd.h |
| 11427 | do |
| 11428 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11429 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11430 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11432 | 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] | 11433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11435 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11436 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11437 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11438 | else |
| 11439 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11440 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11441 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11442 | cat >conftest.$ac_ext <<_ACEOF |
| 11443 | /* confdefs.h. */ |
| 11444 | _ACEOF |
| 11445 | cat confdefs.h >>conftest.$ac_ext |
| 11446 | cat >>conftest.$ac_ext <<_ACEOF |
| 11447 | /* end confdefs.h. */ |
| 11448 | $ac_includes_default |
| 11449 | #include <$ac_header> |
| 11450 | _ACEOF |
| 11451 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11452 | if { (ac_try="$ac_compile" |
| 11453 | case "(($ac_try" in |
| 11454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11455 | *) ac_try_echo=$ac_try;; |
| 11456 | esac |
| 11457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11458 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11459 | ac_status=$? |
| 11460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11461 | rm -f conftest.er1 |
| 11462 | cat conftest.err >&5 |
| 11463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11464 | (exit $ac_status); } && |
| 11465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11466 | { (case "(($ac_try" in |
| 11467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11468 | *) ac_try_echo=$ac_try;; |
| 11469 | esac |
| 11470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11471 | (eval "$ac_try") 2>&5 |
| 11472 | ac_status=$? |
| 11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11474 | (exit $ac_status); }; } && |
| 11475 | { ac_try='test -s conftest.$ac_objext' |
| 11476 | { (case "(($ac_try" in |
| 11477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11478 | *) ac_try_echo=$ac_try;; |
| 11479 | esac |
| 11480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11481 | (eval "$ac_try") 2>&5 |
| 11482 | ac_status=$? |
| 11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11484 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11485 | ac_header_compiler=yes |
| 11486 | else |
| 11487 | echo "$as_me: failed program was:" >&5 |
| 11488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11490 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11491 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11492 | |
| 11493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11494 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11495 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11496 | |
| 11497 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11498 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11499 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11500 | cat >conftest.$ac_ext <<_ACEOF |
| 11501 | /* confdefs.h. */ |
| 11502 | _ACEOF |
| 11503 | cat confdefs.h >>conftest.$ac_ext |
| 11504 | cat >>conftest.$ac_ext <<_ACEOF |
| 11505 | /* end confdefs.h. */ |
| 11506 | #include <$ac_header> |
| 11507 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11508 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11509 | case "(($ac_try" in |
| 11510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11511 | *) ac_try_echo=$ac_try;; |
| 11512 | esac |
| 11513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11514 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11515 | ac_status=$? |
| 11516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11517 | rm -f conftest.er1 |
| 11518 | cat conftest.err >&5 |
| 11519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11520 | (exit $ac_status); } >/dev/null; then |
| 11521 | if test -s conftest.err; then |
| 11522 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11523 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11524 | else |
| 11525 | ac_cpp_err= |
| 11526 | fi |
| 11527 | else |
| 11528 | ac_cpp_err=yes |
| 11529 | fi |
| 11530 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11531 | ac_header_preproc=yes |
| 11532 | else |
| 11533 | echo "$as_me: failed program was:" >&5 |
| 11534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11535 | |
| 11536 | ac_header_preproc=no |
| 11537 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11538 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11539 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11540 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11541 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11542 | |
| 11543 | # So? What about this header? |
| 11544 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11545 | yes:no: ) |
| 11546 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11547 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11548 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11549 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11550 | ac_header_preproc=yes |
| 11551 | ;; |
| 11552 | no:yes:* ) |
| 11553 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11554 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11555 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11556 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11557 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11558 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11559 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11560 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11562 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11563 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11564 | 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] | 11565 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11566 | ## ----------------------------------- ## |
| 11567 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11568 | ## ----------------------------------- ## |
| 11569 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11570 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11571 | ;; |
| 11572 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11573 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11575 | 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] | 11576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11577 | else |
| 11578 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11579 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11580 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11581 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11582 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11583 | |
| 11584 | fi |
| 11585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11586 | cat >>confdefs.h <<_ACEOF |
| 11587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11588 | _ACEOF |
| 11589 | |
| 11590 | fi |
| 11591 | |
| 11592 | done |
| 11593 | |
| 11594 | |
| 11595 | |
| 11596 | |
| 11597 | |
| 11598 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11599 | do |
| 11600 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11602 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11604 | 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] | 11605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11607 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11608 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11609 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11610 | else |
| 11611 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11612 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11613 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11614 | cat >conftest.$ac_ext <<_ACEOF |
| 11615 | /* confdefs.h. */ |
| 11616 | _ACEOF |
| 11617 | cat confdefs.h >>conftest.$ac_ext |
| 11618 | cat >>conftest.$ac_ext <<_ACEOF |
| 11619 | /* end confdefs.h. */ |
| 11620 | $ac_includes_default |
| 11621 | #include <$ac_header> |
| 11622 | _ACEOF |
| 11623 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11624 | if { (ac_try="$ac_compile" |
| 11625 | case "(($ac_try" in |
| 11626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11627 | *) ac_try_echo=$ac_try;; |
| 11628 | esac |
| 11629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11630 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11631 | ac_status=$? |
| 11632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11633 | rm -f conftest.er1 |
| 11634 | cat conftest.err >&5 |
| 11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11636 | (exit $ac_status); } && |
| 11637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11638 | { (case "(($ac_try" in |
| 11639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11640 | *) ac_try_echo=$ac_try;; |
| 11641 | esac |
| 11642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11643 | (eval "$ac_try") 2>&5 |
| 11644 | ac_status=$? |
| 11645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11646 | (exit $ac_status); }; } && |
| 11647 | { ac_try='test -s conftest.$ac_objext' |
| 11648 | { (case "(($ac_try" in |
| 11649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11650 | *) ac_try_echo=$ac_try;; |
| 11651 | esac |
| 11652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11653 | (eval "$ac_try") 2>&5 |
| 11654 | ac_status=$? |
| 11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11656 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11657 | ac_header_compiler=yes |
| 11658 | else |
| 11659 | echo "$as_me: failed program was:" >&5 |
| 11660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11662 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11663 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11664 | |
| 11665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11666 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11667 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11668 | |
| 11669 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11670 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11672 | cat >conftest.$ac_ext <<_ACEOF |
| 11673 | /* confdefs.h. */ |
| 11674 | _ACEOF |
| 11675 | cat confdefs.h >>conftest.$ac_ext |
| 11676 | cat >>conftest.$ac_ext <<_ACEOF |
| 11677 | /* end confdefs.h. */ |
| 11678 | #include <$ac_header> |
| 11679 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11680 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11681 | case "(($ac_try" in |
| 11682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11683 | *) ac_try_echo=$ac_try;; |
| 11684 | esac |
| 11685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11686 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11687 | ac_status=$? |
| 11688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11689 | rm -f conftest.er1 |
| 11690 | cat conftest.err >&5 |
| 11691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11692 | (exit $ac_status); } >/dev/null; then |
| 11693 | if test -s conftest.err; then |
| 11694 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11695 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11696 | else |
| 11697 | ac_cpp_err= |
| 11698 | fi |
| 11699 | else |
| 11700 | ac_cpp_err=yes |
| 11701 | fi |
| 11702 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11703 | ac_header_preproc=yes |
| 11704 | else |
| 11705 | echo "$as_me: failed program was:" >&5 |
| 11706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11707 | |
| 11708 | ac_header_preproc=no |
| 11709 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11710 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11711 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11712 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11713 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11714 | |
| 11715 | # So? What about this header? |
| 11716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11717 | yes:no: ) |
| 11718 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11719 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11721 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11722 | ac_header_preproc=yes |
| 11723 | ;; |
| 11724 | no:yes:* ) |
| 11725 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11726 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11727 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11728 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11729 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11730 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11731 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11732 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11734 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11735 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11736 | 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] | 11737 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11738 | ## ----------------------------------- ## |
| 11739 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11740 | ## ----------------------------------- ## |
| 11741 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11742 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11743 | ;; |
| 11744 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11745 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11746 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11747 | 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] | 11748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11749 | else |
| 11750 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11752 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11753 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11754 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11755 | |
| 11756 | fi |
| 11757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11758 | cat >>confdefs.h <<_ACEOF |
| 11759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11760 | _ACEOF |
| 11761 | |
| 11762 | fi |
| 11763 | |
| 11764 | done |
| 11765 | |
| 11766 | |
| 11767 | |
| 11768 | for ac_header in string.h strings.h |
| 11769 | do |
| 11770 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11772 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11773 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11774 | 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] | 11775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11777 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11778 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11779 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11780 | else |
| 11781 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11782 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11783 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11784 | cat >conftest.$ac_ext <<_ACEOF |
| 11785 | /* confdefs.h. */ |
| 11786 | _ACEOF |
| 11787 | cat confdefs.h >>conftest.$ac_ext |
| 11788 | cat >>conftest.$ac_ext <<_ACEOF |
| 11789 | /* end confdefs.h. */ |
| 11790 | $ac_includes_default |
| 11791 | #include <$ac_header> |
| 11792 | _ACEOF |
| 11793 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11794 | if { (ac_try="$ac_compile" |
| 11795 | case "(($ac_try" in |
| 11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11797 | *) ac_try_echo=$ac_try;; |
| 11798 | esac |
| 11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11800 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11801 | ac_status=$? |
| 11802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11803 | rm -f conftest.er1 |
| 11804 | cat conftest.err >&5 |
| 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11806 | (exit $ac_status); } && |
| 11807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11808 | { (case "(($ac_try" in |
| 11809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11810 | *) ac_try_echo=$ac_try;; |
| 11811 | esac |
| 11812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11813 | (eval "$ac_try") 2>&5 |
| 11814 | ac_status=$? |
| 11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11816 | (exit $ac_status); }; } && |
| 11817 | { ac_try='test -s conftest.$ac_objext' |
| 11818 | { (case "(($ac_try" in |
| 11819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11820 | *) ac_try_echo=$ac_try;; |
| 11821 | esac |
| 11822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11823 | (eval "$ac_try") 2>&5 |
| 11824 | ac_status=$? |
| 11825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11826 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11827 | ac_header_compiler=yes |
| 11828 | else |
| 11829 | echo "$as_me: failed program was:" >&5 |
| 11830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11832 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11834 | |
| 11835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11836 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11837 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11838 | |
| 11839 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11840 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11841 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11842 | cat >conftest.$ac_ext <<_ACEOF |
| 11843 | /* confdefs.h. */ |
| 11844 | _ACEOF |
| 11845 | cat confdefs.h >>conftest.$ac_ext |
| 11846 | cat >>conftest.$ac_ext <<_ACEOF |
| 11847 | /* end confdefs.h. */ |
| 11848 | #include <$ac_header> |
| 11849 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11850 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11851 | case "(($ac_try" in |
| 11852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11853 | *) ac_try_echo=$ac_try;; |
| 11854 | esac |
| 11855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11856 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11857 | ac_status=$? |
| 11858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11859 | rm -f conftest.er1 |
| 11860 | cat conftest.err >&5 |
| 11861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 11862 | (exit $ac_status); } >/dev/null; then |
| 11863 | if test -s conftest.err; then |
| 11864 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11866 | else |
| 11867 | ac_cpp_err= |
| 11868 | fi |
| 11869 | else |
| 11870 | ac_cpp_err=yes |
| 11871 | fi |
| 11872 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11873 | ac_header_preproc=yes |
| 11874 | else |
| 11875 | echo "$as_me: failed program was:" >&5 |
| 11876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11877 | |
| 11878 | ac_header_preproc=no |
| 11879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11880 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11881 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11882 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11883 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11884 | |
| 11885 | # So? What about this header? |
| 11886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11887 | yes:no: ) |
| 11888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11892 | ac_header_preproc=yes |
| 11893 | ;; |
| 11894 | no:yes:* ) |
| 11895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11906 | 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] | 11907 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11908 | ## ----------------------------------- ## |
| 11909 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11910 | ## ----------------------------------- ## |
| 11911 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11912 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11913 | ;; |
| 11914 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11917 | 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] | 11918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11919 | else |
| 11920 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11922 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11923 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11924 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11925 | |
| 11926 | fi |
| 11927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11928 | cat >>confdefs.h <<_ACEOF |
| 11929 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11930 | _ACEOF |
| 11931 | break |
| 11932 | fi |
| 11933 | |
| 11934 | done |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | for ac_func in strchr index |
| 11940 | do |
| 11941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11942 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11944 | 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] | 11945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11946 | else |
| 11947 | cat >conftest.$ac_ext <<_ACEOF |
| 11948 | /* confdefs.h. */ |
| 11949 | _ACEOF |
| 11950 | cat confdefs.h >>conftest.$ac_ext |
| 11951 | cat >>conftest.$ac_ext <<_ACEOF |
| 11952 | /* end confdefs.h. */ |
| 11953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11955 | #define $ac_func innocuous_$ac_func |
| 11956 | |
| 11957 | /* System header to define __stub macros and hopefully few prototypes, |
| 11958 | which can conflict with char $ac_func (); below. |
| 11959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11960 | <limits.h> exists even on freestanding compilers. */ |
| 11961 | |
| 11962 | #ifdef __STDC__ |
| 11963 | # include <limits.h> |
| 11964 | #else |
| 11965 | # include <assert.h> |
| 11966 | #endif |
| 11967 | |
| 11968 | #undef $ac_func |
| 11969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11970 | /* Override any GCC internal prototype to avoid an error. |
| 11971 | Use char because int might match the return type of a GCC |
| 11972 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11973 | #ifdef __cplusplus |
| 11974 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11975 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11976 | char $ac_func (); |
| 11977 | /* The GNU C library defines this for functions which it implements |
| 11978 | to always fail with ENOSYS. Some functions are actually named |
| 11979 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11980 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11981 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11982 | #endif |
| 11983 | |
| 11984 | int |
| 11985 | main () |
| 11986 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11987 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11988 | ; |
| 11989 | return 0; |
| 11990 | } |
| 11991 | _ACEOF |
| 11992 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11993 | if { (ac_try="$ac_link" |
| 11994 | case "(($ac_try" in |
| 11995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11996 | *) ac_try_echo=$ac_try;; |
| 11997 | esac |
| 11998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11999 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12000 | ac_status=$? |
| 12001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12002 | rm -f conftest.er1 |
| 12003 | cat conftest.err >&5 |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12005 | (exit $ac_status); } && |
| 12006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12007 | { (case "(($ac_try" in |
| 12008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12009 | *) ac_try_echo=$ac_try;; |
| 12010 | esac |
| 12011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12012 | (eval "$ac_try") 2>&5 |
| 12013 | ac_status=$? |
| 12014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12015 | (exit $ac_status); }; } && |
| 12016 | { ac_try='test -s conftest$ac_exeext' |
| 12017 | { (case "(($ac_try" in |
| 12018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12019 | *) ac_try_echo=$ac_try;; |
| 12020 | esac |
| 12021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12022 | (eval "$ac_try") 2>&5 |
| 12023 | ac_status=$? |
| 12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12025 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12026 | eval "$as_ac_var=yes" |
| 12027 | else |
| 12028 | echo "$as_me: failed program was:" >&5 |
| 12029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12031 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12032 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12033 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12034 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12035 | conftest$ac_exeext conftest.$ac_ext |
| 12036 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12037 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12038 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12039 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12040 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12041 | cat >>confdefs.h <<_ACEOF |
| 12042 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12043 | _ACEOF |
| 12044 | break |
| 12045 | fi |
| 12046 | done |
| 12047 | |
| 12048 | |
| 12049 | |
| 12050 | for ac_func in strrchr rindex |
| 12051 | do |
| 12052 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12053 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12054 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12055 | 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] | 12056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12057 | else |
| 12058 | cat >conftest.$ac_ext <<_ACEOF |
| 12059 | /* confdefs.h. */ |
| 12060 | _ACEOF |
| 12061 | cat confdefs.h >>conftest.$ac_ext |
| 12062 | cat >>conftest.$ac_ext <<_ACEOF |
| 12063 | /* end confdefs.h. */ |
| 12064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12066 | #define $ac_func innocuous_$ac_func |
| 12067 | |
| 12068 | /* System header to define __stub macros and hopefully few prototypes, |
| 12069 | which can conflict with char $ac_func (); below. |
| 12070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12071 | <limits.h> exists even on freestanding compilers. */ |
| 12072 | |
| 12073 | #ifdef __STDC__ |
| 12074 | # include <limits.h> |
| 12075 | #else |
| 12076 | # include <assert.h> |
| 12077 | #endif |
| 12078 | |
| 12079 | #undef $ac_func |
| 12080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12081 | /* Override any GCC internal prototype to avoid an error. |
| 12082 | Use char because int might match the return type of a GCC |
| 12083 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12084 | #ifdef __cplusplus |
| 12085 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12086 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12087 | char $ac_func (); |
| 12088 | /* The GNU C library defines this for functions which it implements |
| 12089 | to always fail with ENOSYS. Some functions are actually named |
| 12090 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12091 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12092 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12093 | #endif |
| 12094 | |
| 12095 | int |
| 12096 | main () |
| 12097 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12098 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12099 | ; |
| 12100 | return 0; |
| 12101 | } |
| 12102 | _ACEOF |
| 12103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12104 | if { (ac_try="$ac_link" |
| 12105 | case "(($ac_try" in |
| 12106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12107 | *) ac_try_echo=$ac_try;; |
| 12108 | esac |
| 12109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12110 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12111 | ac_status=$? |
| 12112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12113 | rm -f conftest.er1 |
| 12114 | cat conftest.err >&5 |
| 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12116 | (exit $ac_status); } && |
| 12117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12118 | { (case "(($ac_try" in |
| 12119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12120 | *) ac_try_echo=$ac_try;; |
| 12121 | esac |
| 12122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12123 | (eval "$ac_try") 2>&5 |
| 12124 | ac_status=$? |
| 12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12126 | (exit $ac_status); }; } && |
| 12127 | { ac_try='test -s conftest$ac_exeext' |
| 12128 | { (case "(($ac_try" in |
| 12129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12130 | *) ac_try_echo=$ac_try;; |
| 12131 | esac |
| 12132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12133 | (eval "$ac_try") 2>&5 |
| 12134 | ac_status=$? |
| 12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12136 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12137 | eval "$as_ac_var=yes" |
| 12138 | else |
| 12139 | echo "$as_me: failed program was:" >&5 |
| 12140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12142 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12144 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12145 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12146 | conftest$ac_exeext conftest.$ac_ext |
| 12147 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12148 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12149 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12150 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12151 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12152 | cat >>confdefs.h <<_ACEOF |
| 12153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12154 | _ACEOF |
| 12155 | break |
| 12156 | fi |
| 12157 | done |
| 12158 | |
| 12159 | |
| 12160 | |
| 12161 | for ac_func in memcpy bcopy |
| 12162 | do |
| 12163 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12164 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12165 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12166 | 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] | 12167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12168 | else |
| 12169 | cat >conftest.$ac_ext <<_ACEOF |
| 12170 | /* confdefs.h. */ |
| 12171 | _ACEOF |
| 12172 | cat confdefs.h >>conftest.$ac_ext |
| 12173 | cat >>conftest.$ac_ext <<_ACEOF |
| 12174 | /* end confdefs.h. */ |
| 12175 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12176 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12177 | #define $ac_func innocuous_$ac_func |
| 12178 | |
| 12179 | /* System header to define __stub macros and hopefully few prototypes, |
| 12180 | which can conflict with char $ac_func (); below. |
| 12181 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12182 | <limits.h> exists even on freestanding compilers. */ |
| 12183 | |
| 12184 | #ifdef __STDC__ |
| 12185 | # include <limits.h> |
| 12186 | #else |
| 12187 | # include <assert.h> |
| 12188 | #endif |
| 12189 | |
| 12190 | #undef $ac_func |
| 12191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12192 | /* Override any GCC internal prototype to avoid an error. |
| 12193 | Use char because int might match the return type of a GCC |
| 12194 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12195 | #ifdef __cplusplus |
| 12196 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12197 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12198 | char $ac_func (); |
| 12199 | /* The GNU C library defines this for functions which it implements |
| 12200 | to always fail with ENOSYS. Some functions are actually named |
| 12201 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12202 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12203 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12204 | #endif |
| 12205 | |
| 12206 | int |
| 12207 | main () |
| 12208 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12209 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12210 | ; |
| 12211 | return 0; |
| 12212 | } |
| 12213 | _ACEOF |
| 12214 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12215 | if { (ac_try="$ac_link" |
| 12216 | case "(($ac_try" in |
| 12217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12218 | *) ac_try_echo=$ac_try;; |
| 12219 | esac |
| 12220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12221 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12222 | ac_status=$? |
| 12223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12224 | rm -f conftest.er1 |
| 12225 | cat conftest.err >&5 |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12227 | (exit $ac_status); } && |
| 12228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12229 | { (case "(($ac_try" in |
| 12230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12231 | *) ac_try_echo=$ac_try;; |
| 12232 | esac |
| 12233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12234 | (eval "$ac_try") 2>&5 |
| 12235 | ac_status=$? |
| 12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12237 | (exit $ac_status); }; } && |
| 12238 | { ac_try='test -s conftest$ac_exeext' |
| 12239 | { (case "(($ac_try" in |
| 12240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12241 | *) ac_try_echo=$ac_try;; |
| 12242 | esac |
| 12243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12244 | (eval "$ac_try") 2>&5 |
| 12245 | ac_status=$? |
| 12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12247 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12248 | eval "$as_ac_var=yes" |
| 12249 | else |
| 12250 | echo "$as_me: failed program was:" >&5 |
| 12251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12253 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12254 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12255 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12256 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12257 | conftest$ac_exeext conftest.$ac_ext |
| 12258 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12259 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12260 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12261 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12262 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12263 | cat >>confdefs.h <<_ACEOF |
| 12264 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12265 | _ACEOF |
| 12266 | break |
| 12267 | fi |
| 12268 | done |
| 12269 | |
| 12270 | |
| 12271 | |
| 12272 | for ac_func in memmove strcmp |
| 12273 | do |
| 12274 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12275 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12276 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12277 | 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] | 12278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12279 | else |
| 12280 | cat >conftest.$ac_ext <<_ACEOF |
| 12281 | /* confdefs.h. */ |
| 12282 | _ACEOF |
| 12283 | cat confdefs.h >>conftest.$ac_ext |
| 12284 | cat >>conftest.$ac_ext <<_ACEOF |
| 12285 | /* end confdefs.h. */ |
| 12286 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12287 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12288 | #define $ac_func innocuous_$ac_func |
| 12289 | |
| 12290 | /* System header to define __stub macros and hopefully few prototypes, |
| 12291 | which can conflict with char $ac_func (); below. |
| 12292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12293 | <limits.h> exists even on freestanding compilers. */ |
| 12294 | |
| 12295 | #ifdef __STDC__ |
| 12296 | # include <limits.h> |
| 12297 | #else |
| 12298 | # include <assert.h> |
| 12299 | #endif |
| 12300 | |
| 12301 | #undef $ac_func |
| 12302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12303 | /* Override any GCC internal prototype to avoid an error. |
| 12304 | Use char because int might match the return type of a GCC |
| 12305 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12306 | #ifdef __cplusplus |
| 12307 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12308 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12309 | char $ac_func (); |
| 12310 | /* The GNU C library defines this for functions which it implements |
| 12311 | to always fail with ENOSYS. Some functions are actually named |
| 12312 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12313 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12314 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12315 | #endif |
| 12316 | |
| 12317 | int |
| 12318 | main () |
| 12319 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12320 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12321 | ; |
| 12322 | return 0; |
| 12323 | } |
| 12324 | _ACEOF |
| 12325 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12326 | if { (ac_try="$ac_link" |
| 12327 | case "(($ac_try" in |
| 12328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12329 | *) ac_try_echo=$ac_try;; |
| 12330 | esac |
| 12331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12332 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12333 | ac_status=$? |
| 12334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12335 | rm -f conftest.er1 |
| 12336 | cat conftest.err >&5 |
| 12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12338 | (exit $ac_status); } && |
| 12339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12340 | { (case "(($ac_try" in |
| 12341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12342 | *) ac_try_echo=$ac_try;; |
| 12343 | esac |
| 12344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12345 | (eval "$ac_try") 2>&5 |
| 12346 | ac_status=$? |
| 12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12348 | (exit $ac_status); }; } && |
| 12349 | { ac_try='test -s conftest$ac_exeext' |
| 12350 | { (case "(($ac_try" in |
| 12351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12352 | *) ac_try_echo=$ac_try;; |
| 12353 | esac |
| 12354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12355 | (eval "$ac_try") 2>&5 |
| 12356 | ac_status=$? |
| 12357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12358 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12359 | eval "$as_ac_var=yes" |
| 12360 | else |
| 12361 | echo "$as_me: failed program was:" >&5 |
| 12362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12364 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12365 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12366 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12367 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12368 | conftest$ac_exeext conftest.$ac_ext |
| 12369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12370 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12371 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12372 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12373 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12374 | cat >>confdefs.h <<_ACEOF |
| 12375 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12376 | _ACEOF |
| 12377 | |
| 12378 | fi |
| 12379 | done |
| 12380 | |
| 12381 | |
| 12382 | |
| 12383 | |
| 12384 | for ac_func in closedir opendir readdir |
| 12385 | do |
| 12386 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12387 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12388 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12389 | 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] | 12390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12391 | else |
| 12392 | cat >conftest.$ac_ext <<_ACEOF |
| 12393 | /* confdefs.h. */ |
| 12394 | _ACEOF |
| 12395 | cat confdefs.h >>conftest.$ac_ext |
| 12396 | cat >>conftest.$ac_ext <<_ACEOF |
| 12397 | /* end confdefs.h. */ |
| 12398 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12400 | #define $ac_func innocuous_$ac_func |
| 12401 | |
| 12402 | /* System header to define __stub macros and hopefully few prototypes, |
| 12403 | which can conflict with char $ac_func (); below. |
| 12404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12405 | <limits.h> exists even on freestanding compilers. */ |
| 12406 | |
| 12407 | #ifdef __STDC__ |
| 12408 | # include <limits.h> |
| 12409 | #else |
| 12410 | # include <assert.h> |
| 12411 | #endif |
| 12412 | |
| 12413 | #undef $ac_func |
| 12414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12415 | /* Override any GCC internal prototype to avoid an error. |
| 12416 | Use char because int might match the return type of a GCC |
| 12417 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12418 | #ifdef __cplusplus |
| 12419 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12420 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12421 | char $ac_func (); |
| 12422 | /* The GNU C library defines this for functions which it implements |
| 12423 | to always fail with ENOSYS. Some functions are actually named |
| 12424 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12425 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12426 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12427 | #endif |
| 12428 | |
| 12429 | int |
| 12430 | main () |
| 12431 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12432 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12433 | ; |
| 12434 | return 0; |
| 12435 | } |
| 12436 | _ACEOF |
| 12437 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12438 | if { (ac_try="$ac_link" |
| 12439 | case "(($ac_try" in |
| 12440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12441 | *) ac_try_echo=$ac_try;; |
| 12442 | esac |
| 12443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12444 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12445 | ac_status=$? |
| 12446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12447 | rm -f conftest.er1 |
| 12448 | cat conftest.err >&5 |
| 12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12450 | (exit $ac_status); } && |
| 12451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12452 | { (case "(($ac_try" in |
| 12453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12454 | *) ac_try_echo=$ac_try;; |
| 12455 | esac |
| 12456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12457 | (eval "$ac_try") 2>&5 |
| 12458 | ac_status=$? |
| 12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12460 | (exit $ac_status); }; } && |
| 12461 | { ac_try='test -s conftest$ac_exeext' |
| 12462 | { (case "(($ac_try" in |
| 12463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12464 | *) ac_try_echo=$ac_try;; |
| 12465 | esac |
| 12466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12467 | (eval "$ac_try") 2>&5 |
| 12468 | ac_status=$? |
| 12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12470 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12471 | eval "$as_ac_var=yes" |
| 12472 | else |
| 12473 | echo "$as_me: failed program was:" >&5 |
| 12474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12476 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12478 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 12479 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12480 | conftest$ac_exeext conftest.$ac_ext |
| 12481 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12482 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12483 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12484 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12485 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12486 | cat >>confdefs.h <<_ACEOF |
| 12487 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12488 | _ACEOF |
| 12489 | |
| 12490 | fi |
| 12491 | done |
| 12492 | |
| 12493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12494 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12495 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12496 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12497 | case $enableval in |
| 12498 | yes) enable_shared=yes ;; |
| 12499 | no) enable_shared=no ;; |
| 12500 | *) |
| 12501 | enable_shared=no |
| 12502 | # Look at the argument we got. We use all the common list separators. |
| 12503 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12504 | for pkg in $enableval; do |
| 12505 | IFS="$lt_save_ifs" |
| 12506 | if test "X$pkg" = "X$p"; then |
| 12507 | enable_shared=yes |
| 12508 | fi |
| 12509 | done |
| 12510 | IFS="$lt_save_ifs" |
| 12511 | ;; |
| 12512 | esac |
| 12513 | else |
| 12514 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12515 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12517 | |
| 12518 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12519 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12520 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12521 | case $enableval in |
| 12522 | yes) enable_static=yes ;; |
| 12523 | no) enable_static=no ;; |
| 12524 | *) |
| 12525 | enable_static=no |
| 12526 | # Look at the argument we got. We use all the common list separators. |
| 12527 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12528 | for pkg in $enableval; do |
| 12529 | IFS="$lt_save_ifs" |
| 12530 | if test "X$pkg" = "X$p"; then |
| 12531 | enable_static=yes |
| 12532 | fi |
| 12533 | done |
| 12534 | IFS="$lt_save_ifs" |
| 12535 | ;; |
| 12536 | esac |
| 12537 | else |
| 12538 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12539 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12541 | |
| 12542 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12543 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12544 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12545 | case $enableval in |
| 12546 | yes) enable_fast_install=yes ;; |
| 12547 | no) enable_fast_install=no ;; |
| 12548 | *) |
| 12549 | enable_fast_install=no |
| 12550 | # Look at the argument we got. We use all the common list separators. |
| 12551 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12552 | for pkg in $enableval; do |
| 12553 | IFS="$lt_save_ifs" |
| 12554 | if test "X$pkg" = "X$p"; then |
| 12555 | enable_fast_install=yes |
| 12556 | fi |
| 12557 | done |
| 12558 | IFS="$lt_save_ifs" |
| 12559 | ;; |
| 12560 | esac |
| 12561 | else |
| 12562 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12563 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12565 | |
| 12566 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12567 | 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] | 12568 | if test "${lt_cv_path_SED+set}" = set; then |
| 12569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12570 | else |
| 12571 | # Loop through the user's path and test for sed and gsed. |
| 12572 | # Then use that list of sed's as ones to test for truncation. |
| 12573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12574 | for as_dir in $PATH |
| 12575 | do |
| 12576 | IFS=$as_save_IFS |
| 12577 | test -z "$as_dir" && as_dir=. |
| 12578 | for lt_ac_prog in sed gsed; do |
| 12579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12580 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12581 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12582 | fi |
| 12583 | done |
| 12584 | done |
| 12585 | done |
| 12586 | lt_ac_max=0 |
| 12587 | lt_ac_count=0 |
| 12588 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12589 | # along with /bin/sed that truncates output. |
| 12590 | 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] | 12591 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12592 | cat /dev/null > conftest.in |
| 12593 | lt_ac_count=0 |
| 12594 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12595 | # Check for GNU sed and select it if it is found. |
| 12596 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12597 | lt_cv_path_SED=$lt_ac_sed |
| 12598 | break |
| 12599 | fi |
| 12600 | while true; do |
| 12601 | cat conftest.in conftest.in >conftest.tmp |
| 12602 | mv conftest.tmp conftest.in |
| 12603 | cp conftest.in conftest.nl |
| 12604 | echo >>conftest.nl |
| 12605 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12606 | cmp -s conftest.out conftest.nl || break |
| 12607 | # 10000 chars as input seems more than enough |
| 12608 | test $lt_ac_count -gt 10 && break |
| 12609 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12610 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12611 | lt_ac_max=$lt_ac_count |
| 12612 | lt_cv_path_SED=$lt_ac_sed |
| 12613 | fi |
| 12614 | done |
| 12615 | done |
| 12616 | |
| 12617 | fi |
| 12618 | |
| 12619 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12621 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12622 | |
| 12623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12624 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12625 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12626 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12627 | else |
| 12628 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12629 | fi |
| 12630 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12631 | ac_prog=ld |
| 12632 | if test "$GCC" = yes; then |
| 12633 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12634 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12635 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12636 | case $host in |
| 12637 | *-*-mingw*) |
| 12638 | # gcc leaves a trailing carriage return which upsets mingw |
| 12639 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12640 | *) |
| 12641 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12642 | esac |
| 12643 | case $ac_prog in |
| 12644 | # Accept absolute paths. |
| 12645 | [\\/]* | ?:[\\/]*) |
| 12646 | re_direlt='/[^/][^/]*/\.\./' |
| 12647 | # Canonicalize the pathname of ld |
| 12648 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12649 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12650 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12651 | done |
| 12652 | test -z "$LD" && LD="$ac_prog" |
| 12653 | ;; |
| 12654 | "") |
| 12655 | # If it fails, then pretend we aren't using GCC. |
| 12656 | ac_prog=ld |
| 12657 | ;; |
| 12658 | *) |
| 12659 | # If it is relative, then search for the first ld in PATH. |
| 12660 | with_gnu_ld=unknown |
| 12661 | ;; |
| 12662 | esac |
| 12663 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12664 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12665 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12666 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12667 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12668 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12669 | fi |
| 12670 | if test "${lt_cv_path_LD+set}" = set; then |
| 12671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12672 | else |
| 12673 | if test -z "$LD"; then |
| 12674 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12675 | for ac_dir in $PATH; do |
| 12676 | IFS="$lt_save_ifs" |
| 12677 | test -z "$ac_dir" && ac_dir=. |
| 12678 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12679 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12680 | # 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] | 12681 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12682 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12683 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12684 | *GNU* | *'with BFD'*) |
| 12685 | test "$with_gnu_ld" != no && break |
| 12686 | ;; |
| 12687 | *) |
| 12688 | test "$with_gnu_ld" != yes && break |
| 12689 | ;; |
| 12690 | esac |
| 12691 | fi |
| 12692 | done |
| 12693 | IFS="$lt_save_ifs" |
| 12694 | else |
| 12695 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12696 | fi |
| 12697 | fi |
| 12698 | |
| 12699 | LD="$lt_cv_path_LD" |
| 12700 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12701 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12702 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12703 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12704 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12705 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12706 | fi |
| 12707 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12708 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12709 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12710 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12711 | 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] | 12712 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12714 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12715 | # 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] | 12716 | case `$LD -v 2>&1 </dev/null` in |
| 12717 | *GNU* | *'with BFD'*) |
| 12718 | lt_cv_prog_gnu_ld=yes |
| 12719 | ;; |
| 12720 | *) |
| 12721 | lt_cv_prog_gnu_ld=no |
| 12722 | ;; |
| 12723 | esac |
| 12724 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12725 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12726 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12727 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12728 | |
| 12729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12730 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12731 | 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] | 12732 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12734 | else |
| 12735 | lt_cv_ld_reload_flag='-r' |
| 12736 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12737 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12738 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12739 | reload_flag=$lt_cv_ld_reload_flag |
| 12740 | case $reload_flag in |
| 12741 | "" | " "*) ;; |
| 12742 | *) reload_flag=" $reload_flag" ;; |
| 12743 | esac |
| 12744 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12745 | case $host_os in |
| 12746 | darwin*) |
| 12747 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12748 | 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] | 12749 | else |
| 12750 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12751 | fi |
| 12752 | ;; |
| 12753 | esac |
| 12754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12755 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12756 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12757 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12759 | else |
| 12760 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12761 | lt_cv_file_magic_test_file= |
| 12762 | lt_cv_deplibs_check_method='unknown' |
| 12763 | # Need to set the preceding variable on all platforms that support |
| 12764 | # interlibrary dependencies. |
| 12765 | # 'none' -- dependencies not supported. |
| 12766 | # `unknown' -- same as none, but documents that we really don't know. |
| 12767 | # 'pass_all' -- all dependencies passed with no checks. |
| 12768 | # 'test_compile' -- check by making test program. |
| 12769 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12770 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12771 | # If you have `file' or equivalent on your system and you're not sure |
| 12772 | # whether `pass_all' will *always* work, you probably want this one. |
| 12773 | |
| 12774 | case $host_os in |
| 12775 | aix4* | aix5*) |
| 12776 | lt_cv_deplibs_check_method=pass_all |
| 12777 | ;; |
| 12778 | |
| 12779 | beos*) |
| 12780 | lt_cv_deplibs_check_method=pass_all |
| 12781 | ;; |
| 12782 | |
| 12783 | bsdi[45]*) |
| 12784 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12785 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12786 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12787 | ;; |
| 12788 | |
| 12789 | cygwin*) |
| 12790 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12791 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12792 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12793 | ;; |
| 12794 | |
| 12795 | mingw* | pw32*) |
| 12796 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12797 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12798 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12799 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12800 | ;; |
| 12801 | |
| 12802 | darwin* | rhapsody*) |
| 12803 | lt_cv_deplibs_check_method=pass_all |
| 12804 | ;; |
| 12805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12807 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12808 | case $host_cpu in |
| 12809 | i*86 ) |
| 12810 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12811 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12812 | 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] | 12813 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12814 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12815 | ;; |
| 12816 | esac |
| 12817 | else |
| 12818 | lt_cv_deplibs_check_method=pass_all |
| 12819 | fi |
| 12820 | ;; |
| 12821 | |
| 12822 | gnu*) |
| 12823 | lt_cv_deplibs_check_method=pass_all |
| 12824 | ;; |
| 12825 | |
| 12826 | hpux10.20* | hpux11*) |
| 12827 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12828 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12829 | ia64*) |
| 12830 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12831 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12832 | ;; |
| 12833 | hppa*64*) |
| 12834 | 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]' |
| 12835 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12836 | ;; |
| 12837 | *) |
| 12838 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12839 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12840 | ;; |
| 12841 | esac |
| 12842 | ;; |
| 12843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12844 | interix3*) |
| 12845 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12846 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12847 | ;; |
| 12848 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12849 | irix5* | irix6* | nonstopux*) |
| 12850 | case $LD in |
| 12851 | *-32|*"-32 ") libmagic=32-bit;; |
| 12852 | *-n32|*"-n32 ") libmagic=N32;; |
| 12853 | *-64|*"-64 ") libmagic=64-bit;; |
| 12854 | *) libmagic=never-match;; |
| 12855 | esac |
| 12856 | lt_cv_deplibs_check_method=pass_all |
| 12857 | ;; |
| 12858 | |
| 12859 | # This must be Linux ELF. |
| 12860 | linux*) |
| 12861 | lt_cv_deplibs_check_method=pass_all |
| 12862 | ;; |
| 12863 | |
| 12864 | netbsd*) |
| 12865 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12866 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12867 | else |
| 12868 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12869 | fi |
| 12870 | ;; |
| 12871 | |
| 12872 | newos6*) |
| 12873 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12874 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12875 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12876 | ;; |
| 12877 | |
| 12878 | nto-qnx*) |
| 12879 | lt_cv_deplibs_check_method=unknown |
| 12880 | ;; |
| 12881 | |
| 12882 | openbsd*) |
| 12883 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12884 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12885 | else |
| 12886 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12887 | fi |
| 12888 | ;; |
| 12889 | |
| 12890 | osf3* | osf4* | osf5*) |
| 12891 | lt_cv_deplibs_check_method=pass_all |
| 12892 | ;; |
| 12893 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12894 | solaris*) |
| 12895 | lt_cv_deplibs_check_method=pass_all |
| 12896 | ;; |
| 12897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12898 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12899 | case $host_vendor in |
| 12900 | motorola) |
| 12901 | 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]' |
| 12902 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12903 | ;; |
| 12904 | ncr) |
| 12905 | lt_cv_deplibs_check_method=pass_all |
| 12906 | ;; |
| 12907 | sequent) |
| 12908 | lt_cv_file_magic_cmd='/bin/file' |
| 12909 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12910 | ;; |
| 12911 | sni) |
| 12912 | lt_cv_file_magic_cmd='/bin/file' |
| 12913 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12914 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12915 | ;; |
| 12916 | siemens) |
| 12917 | lt_cv_deplibs_check_method=pass_all |
| 12918 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12919 | pc) |
| 12920 | lt_cv_deplibs_check_method=pass_all |
| 12921 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12922 | esac |
| 12923 | ;; |
| 12924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12925 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12926 | lt_cv_deplibs_check_method=pass_all |
| 12927 | ;; |
| 12928 | esac |
| 12929 | |
| 12930 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12931 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12932 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12933 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12934 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12935 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12936 | |
| 12937 | |
| 12938 | |
| 12939 | # If no C compiler was specified, use CC. |
| 12940 | LTCC=${LTCC-"$CC"} |
| 12941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12942 | # If no C compiler flags were specified, use CFLAGS. |
| 12943 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12944 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12945 | # Allow CC to be a program name with arguments. |
| 12946 | compiler=$CC |
| 12947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12948 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12949 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12950 | enableval=$enable_libtool_lock; |
| 12951 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12952 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12953 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12954 | |
| 12955 | # Some flags need to be propagated to the compiler or linker for good |
| 12956 | # libtool support. |
| 12957 | case $host in |
| 12958 | ia64-*-hpux*) |
| 12959 | # Find out which ABI we are using. |
| 12960 | echo 'int i;' > conftest.$ac_ext |
| 12961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12962 | (eval $ac_compile) 2>&5 |
| 12963 | ac_status=$? |
| 12964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12965 | (exit $ac_status); }; then |
| 12966 | case `/usr/bin/file conftest.$ac_objext` in |
| 12967 | *ELF-32*) |
| 12968 | HPUX_IA64_MODE="32" |
| 12969 | ;; |
| 12970 | *ELF-64*) |
| 12971 | HPUX_IA64_MODE="64" |
| 12972 | ;; |
| 12973 | esac |
| 12974 | fi |
| 12975 | rm -rf conftest* |
| 12976 | ;; |
| 12977 | *-*-irix6*) |
| 12978 | # Find out which ABI we are using. |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 12979 | echo '#line 12979 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12981 | (eval $ac_compile) 2>&5 |
| 12982 | ac_status=$? |
| 12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12984 | (exit $ac_status); }; then |
| 12985 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12986 | case `/usr/bin/file conftest.$ac_objext` in |
| 12987 | *32-bit*) |
| 12988 | LD="${LD-ld} -melf32bsmip" |
| 12989 | ;; |
| 12990 | *N32*) |
| 12991 | LD="${LD-ld} -melf32bmipn32" |
| 12992 | ;; |
| 12993 | *64-bit*) |
| 12994 | LD="${LD-ld} -melf64bmip" |
| 12995 | ;; |
| 12996 | esac |
| 12997 | else |
| 12998 | case `/usr/bin/file conftest.$ac_objext` in |
| 12999 | *32-bit*) |
| 13000 | LD="${LD-ld} -32" |
| 13001 | ;; |
| 13002 | *N32*) |
| 13003 | LD="${LD-ld} -n32" |
| 13004 | ;; |
| 13005 | *64-bit*) |
| 13006 | LD="${LD-ld} -64" |
| 13007 | ;; |
| 13008 | esac |
| 13009 | fi |
| 13010 | fi |
| 13011 | rm -rf conftest* |
| 13012 | ;; |
| 13013 | |
| 13014 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13015 | # Find out which ABI we are using. |
| 13016 | echo 'int i;' > conftest.$ac_ext |
| 13017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13018 | (eval $ac_compile) 2>&5 |
| 13019 | ac_status=$? |
| 13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13021 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13022 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13023 | *32-bit*) |
| 13024 | case $host in |
| 13025 | x86_64-*linux*) |
| 13026 | LD="${LD-ld} -m elf_i386" |
| 13027 | ;; |
| 13028 | ppc64-*linux*|powerpc64-*linux*) |
| 13029 | LD="${LD-ld} -m elf32ppclinux" |
| 13030 | ;; |
| 13031 | s390x-*linux*) |
| 13032 | LD="${LD-ld} -m elf_s390" |
| 13033 | ;; |
| 13034 | sparc64-*linux*) |
| 13035 | LD="${LD-ld} -m elf32_sparc" |
| 13036 | ;; |
| 13037 | esac |
| 13038 | ;; |
| 13039 | *64-bit*) |
| 13040 | case $host in |
| 13041 | x86_64-*linux*) |
| 13042 | LD="${LD-ld} -m elf_x86_64" |
| 13043 | ;; |
| 13044 | ppc*-*linux*|powerpc*-*linux*) |
| 13045 | LD="${LD-ld} -m elf64ppc" |
| 13046 | ;; |
| 13047 | s390*-*linux*) |
| 13048 | LD="${LD-ld} -m elf64_s390" |
| 13049 | ;; |
| 13050 | sparc*-*linux*) |
| 13051 | LD="${LD-ld} -m elf64_sparc" |
| 13052 | ;; |
| 13053 | esac |
| 13054 | ;; |
| 13055 | esac |
| 13056 | fi |
| 13057 | rm -rf conftest* |
| 13058 | ;; |
| 13059 | |
| 13060 | *-*-sco3.2v5*) |
| 13061 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 13062 | SAVE_CFLAGS="$CFLAGS" |
| 13063 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13064 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 13065 | 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] | 13066 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 13067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13068 | else |
| 13069 | ac_ext=c |
| 13070 | ac_cpp='$CPP $CPPFLAGS' |
| 13071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13074 | |
| 13075 | cat >conftest.$ac_ext <<_ACEOF |
| 13076 | /* confdefs.h. */ |
| 13077 | _ACEOF |
| 13078 | cat confdefs.h >>conftest.$ac_ext |
| 13079 | cat >>conftest.$ac_ext <<_ACEOF |
| 13080 | /* end confdefs.h. */ |
| 13081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13082 | int |
| 13083 | main () |
| 13084 | { |
| 13085 | |
| 13086 | ; |
| 13087 | return 0; |
| 13088 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13089 | _ACEOF |
| 13090 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13091 | if { (ac_try="$ac_link" |
| 13092 | case "(($ac_try" in |
| 13093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13094 | *) ac_try_echo=$ac_try;; |
| 13095 | esac |
| 13096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13097 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13098 | ac_status=$? |
| 13099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13100 | rm -f conftest.er1 |
| 13101 | cat conftest.err >&5 |
| 13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13103 | (exit $ac_status); } && |
| 13104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13105 | { (case "(($ac_try" in |
| 13106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13107 | *) ac_try_echo=$ac_try;; |
| 13108 | esac |
| 13109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13110 | (eval "$ac_try") 2>&5 |
| 13111 | ac_status=$? |
| 13112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13113 | (exit $ac_status); }; } && |
| 13114 | { ac_try='test -s conftest$ac_exeext' |
| 13115 | { (case "(($ac_try" in |
| 13116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13117 | *) ac_try_echo=$ac_try;; |
| 13118 | esac |
| 13119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13120 | (eval "$ac_try") 2>&5 |
| 13121 | ac_status=$? |
| 13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13123 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13124 | lt_cv_cc_needs_belf=yes |
| 13125 | else |
| 13126 | echo "$as_me: failed program was:" >&5 |
| 13127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13129 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13130 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13131 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13132 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13133 | conftest$ac_exeext conftest.$ac_ext |
| 13134 | ac_ext=c |
| 13135 | ac_cpp='$CPP $CPPFLAGS' |
| 13136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13139 | |
| 13140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13141 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 13142 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13143 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 13144 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 13145 | CFLAGS="$SAVE_CFLAGS" |
| 13146 | fi |
| 13147 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13148 | sparc*-*solaris*) |
| 13149 | # Find out which ABI we are using. |
| 13150 | echo 'int i;' > conftest.$ac_ext |
| 13151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13152 | (eval $ac_compile) 2>&5 |
| 13153 | ac_status=$? |
| 13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13155 | (exit $ac_status); }; then |
| 13156 | case `/usr/bin/file conftest.o` in |
| 13157 | *64-bit*) |
| 13158 | case $lt_cv_prog_gnu_ld in |
| 13159 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 13160 | *) LD="${LD-ld} -64" ;; |
| 13161 | esac |
| 13162 | ;; |
| 13163 | esac |
| 13164 | fi |
| 13165 | rm -rf conftest* |
| 13166 | ;; |
| 13167 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13168 | |
| 13169 | esac |
| 13170 | |
| 13171 | need_locks="$enable_libtool_lock" |
| 13172 | |
| 13173 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13174 | |
| 13175 | |
| 13176 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13177 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13178 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13179 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13180 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13184 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 13185 | 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] | 13186 | if test -z "$CXXCPP"; then |
| 13187 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13189 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13190 | # Double quotes because CXXCPP needs to be expanded |
| 13191 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13192 | do |
| 13193 | ac_preproc_ok=false |
| 13194 | for ac_cxx_preproc_warn_flag in '' yes |
| 13195 | do |
| 13196 | # Use a header file that comes with gcc, so configuring glibc |
| 13197 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13198 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13199 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13200 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13201 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13202 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13203 | /* confdefs.h. */ |
| 13204 | _ACEOF |
| 13205 | cat confdefs.h >>conftest.$ac_ext |
| 13206 | cat >>conftest.$ac_ext <<_ACEOF |
| 13207 | /* end confdefs.h. */ |
| 13208 | #ifdef __STDC__ |
| 13209 | # include <limits.h> |
| 13210 | #else |
| 13211 | # include <assert.h> |
| 13212 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13213 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13214 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13215 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13216 | case "(($ac_try" in |
| 13217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13218 | *) ac_try_echo=$ac_try;; |
| 13219 | esac |
| 13220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13221 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13222 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13223 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13224 | rm -f conftest.er1 |
| 13225 | cat conftest.err >&5 |
| 13226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13227 | (exit $ac_status); } >/dev/null; then |
| 13228 | if test -s conftest.err; then |
| 13229 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13230 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13231 | else |
| 13232 | ac_cpp_err= |
| 13233 | fi |
| 13234 | else |
| 13235 | ac_cpp_err=yes |
| 13236 | fi |
| 13237 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13238 | : |
| 13239 | else |
| 13240 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13242 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13243 | # Broken: fails on valid input. |
| 13244 | continue |
| 13245 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13246 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13247 | rm -f conftest.err conftest.$ac_ext |
| 13248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13249 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13250 | # can be detected and how. |
| 13251 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13252 | /* confdefs.h. */ |
| 13253 | _ACEOF |
| 13254 | cat confdefs.h >>conftest.$ac_ext |
| 13255 | cat >>conftest.$ac_ext <<_ACEOF |
| 13256 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13257 | #include <ac_nonexistent.h> |
| 13258 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13259 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13260 | case "(($ac_try" in |
| 13261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13262 | *) ac_try_echo=$ac_try;; |
| 13263 | esac |
| 13264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13266 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13267 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13268 | rm -f conftest.er1 |
| 13269 | cat conftest.err >&5 |
| 13270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13271 | (exit $ac_status); } >/dev/null; then |
| 13272 | if test -s conftest.err; then |
| 13273 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13274 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13275 | else |
| 13276 | ac_cpp_err= |
| 13277 | fi |
| 13278 | else |
| 13279 | ac_cpp_err=yes |
| 13280 | fi |
| 13281 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13282 | # Broken: success on invalid input. |
| 13283 | continue |
| 13284 | else |
| 13285 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13287 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13288 | # Passes both tests. |
| 13289 | ac_preproc_ok=: |
| 13290 | break |
| 13291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13293 | rm -f conftest.err conftest.$ac_ext |
| 13294 | |
| 13295 | done |
| 13296 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13297 | rm -f conftest.err conftest.$ac_ext |
| 13298 | if $ac_preproc_ok; then |
| 13299 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13300 | fi |
| 13301 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13302 | done |
| 13303 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13304 | |
| 13305 | fi |
| 13306 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13307 | else |
| 13308 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13309 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13310 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13311 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13312 | ac_preproc_ok=false |
| 13313 | for ac_cxx_preproc_warn_flag in '' yes |
| 13314 | do |
| 13315 | # Use a header file that comes with gcc, so configuring glibc |
| 13316 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13318 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13319 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13320 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13321 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13322 | /* confdefs.h. */ |
| 13323 | _ACEOF |
| 13324 | cat confdefs.h >>conftest.$ac_ext |
| 13325 | cat >>conftest.$ac_ext <<_ACEOF |
| 13326 | /* end confdefs.h. */ |
| 13327 | #ifdef __STDC__ |
| 13328 | # include <limits.h> |
| 13329 | #else |
| 13330 | # include <assert.h> |
| 13331 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13332 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13333 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13334 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13335 | case "(($ac_try" in |
| 13336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13337 | *) ac_try_echo=$ac_try;; |
| 13338 | esac |
| 13339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13340 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13341 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13342 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13343 | rm -f conftest.er1 |
| 13344 | cat conftest.err >&5 |
| 13345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13346 | (exit $ac_status); } >/dev/null; then |
| 13347 | if test -s conftest.err; then |
| 13348 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13349 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13350 | else |
| 13351 | ac_cpp_err= |
| 13352 | fi |
| 13353 | else |
| 13354 | ac_cpp_err=yes |
| 13355 | fi |
| 13356 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13357 | : |
| 13358 | else |
| 13359 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13361 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13362 | # Broken: fails on valid input. |
| 13363 | continue |
| 13364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13365 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13366 | rm -f conftest.err conftest.$ac_ext |
| 13367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13368 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13369 | # can be detected and how. |
| 13370 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13371 | /* confdefs.h. */ |
| 13372 | _ACEOF |
| 13373 | cat confdefs.h >>conftest.$ac_ext |
| 13374 | cat >>conftest.$ac_ext <<_ACEOF |
| 13375 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13376 | #include <ac_nonexistent.h> |
| 13377 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13378 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13379 | case "(($ac_try" in |
| 13380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13381 | *) ac_try_echo=$ac_try;; |
| 13382 | esac |
| 13383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13384 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13385 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13386 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13387 | rm -f conftest.er1 |
| 13388 | cat conftest.err >&5 |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13390 | (exit $ac_status); } >/dev/null; then |
| 13391 | if test -s conftest.err; then |
| 13392 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13393 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13394 | else |
| 13395 | ac_cpp_err= |
| 13396 | fi |
| 13397 | else |
| 13398 | ac_cpp_err=yes |
| 13399 | fi |
| 13400 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13401 | # Broken: success on invalid input. |
| 13402 | continue |
| 13403 | else |
| 13404 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13407 | # Passes both tests. |
| 13408 | ac_preproc_ok=: |
| 13409 | break |
| 13410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13411 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13412 | rm -f conftest.err conftest.$ac_ext |
| 13413 | |
| 13414 | done |
| 13415 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13416 | rm -f conftest.err conftest.$ac_ext |
| 13417 | if $ac_preproc_ok; then |
| 13418 | : |
| 13419 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13420 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13421 | See \`config.log' for more details." >&5 |
| 13422 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13423 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13424 | { (exit 1); exit 1; }; } |
| 13425 | fi |
| 13426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13427 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13428 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13429 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13430 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13431 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13432 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13433 | fi |
| 13434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13435 | |
| 13436 | ac_ext=f |
| 13437 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13438 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13439 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13440 | if test -n "$ac_tool_prefix"; then |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13441 | 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] | 13442 | do |
| 13443 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13444 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13447 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13449 | else |
| 13450 | if test -n "$F77"; then |
| 13451 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13452 | else |
| 13453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13454 | for as_dir in $PATH |
| 13455 | do |
| 13456 | IFS=$as_save_IFS |
| 13457 | test -z "$as_dir" && as_dir=. |
| 13458 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13459 | 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] | 13460 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13462 | break 2 |
| 13463 | fi |
| 13464 | done |
| 13465 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13466 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13467 | |
| 13468 | fi |
| 13469 | fi |
| 13470 | F77=$ac_cv_prog_F77 |
| 13471 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13472 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13473 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13474 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13476 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13477 | fi |
| 13478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13479 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13480 | test -n "$F77" && break |
| 13481 | done |
| 13482 | fi |
| 13483 | if test -z "$F77"; then |
| 13484 | ac_ct_F77=$F77 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13485 | 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] | 13486 | do |
| 13487 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13488 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13489 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13491 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13493 | else |
| 13494 | if test -n "$ac_ct_F77"; then |
| 13495 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13496 | else |
| 13497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13498 | for as_dir in $PATH |
| 13499 | do |
| 13500 | IFS=$as_save_IFS |
| 13501 | test -z "$as_dir" && as_dir=. |
| 13502 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13503 | 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] | 13504 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13506 | break 2 |
| 13507 | fi |
| 13508 | done |
| 13509 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13510 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13511 | |
| 13512 | fi |
| 13513 | fi |
| 13514 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13515 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13516 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13517 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13518 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13519 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13520 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13521 | fi |
| 13522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13523 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13524 | test -n "$ac_ct_F77" && break |
| 13525 | done |
| 13526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13527 | if test "x$ac_ct_F77" = x; then |
| 13528 | F77="" |
| 13529 | else |
| 13530 | case $cross_compiling:$ac_tool_warned in |
| 13531 | yes:) |
| 13532 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13533 | whose name does not start with the host triplet. If you think this |
| 13534 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13535 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13536 | whose name does not start with the host triplet. If you think this |
| 13537 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13538 | ac_tool_warned=yes ;; |
| 13539 | esac |
| 13540 | F77=$ac_ct_F77 |
| 13541 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13542 | fi |
| 13543 | |
| 13544 | |
| 13545 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13546 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13547 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13548 | { (ac_try="$ac_compiler --version >&5" |
| 13549 | case "(($ac_try" in |
| 13550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13551 | *) ac_try_echo=$ac_try;; |
| 13552 | esac |
| 13553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13554 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13555 | ac_status=$? |
| 13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13557 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13558 | { (ac_try="$ac_compiler -v >&5" |
| 13559 | case "(($ac_try" in |
| 13560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13561 | *) ac_try_echo=$ac_try;; |
| 13562 | esac |
| 13563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13564 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13565 | ac_status=$? |
| 13566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13567 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13568 | { (ac_try="$ac_compiler -V >&5" |
| 13569 | case "(($ac_try" in |
| 13570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13571 | *) ac_try_echo=$ac_try;; |
| 13572 | esac |
| 13573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13574 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13575 | ac_status=$? |
| 13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13577 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13578 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13579 | |
| 13580 | # 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] | 13581 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13582 | ac_save_ext=$ac_ext |
| 13583 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13584 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13585 | 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] | 13586 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13588 | else |
| 13589 | cat >conftest.$ac_ext <<_ACEOF |
| 13590 | program main |
| 13591 | #ifndef __GNUC__ |
| 13592 | choke me |
| 13593 | #endif |
| 13594 | |
| 13595 | end |
| 13596 | _ACEOF |
| 13597 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13598 | if { (ac_try="$ac_compile" |
| 13599 | case "(($ac_try" in |
| 13600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13601 | *) ac_try_echo=$ac_try;; |
| 13602 | esac |
| 13603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13604 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13605 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13607 | rm -f conftest.er1 |
| 13608 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13610 | (exit $ac_status); } && |
| 13611 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13612 | { (case "(($ac_try" in |
| 13613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13614 | *) ac_try_echo=$ac_try;; |
| 13615 | esac |
| 13616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13617 | (eval "$ac_try") 2>&5 |
| 13618 | ac_status=$? |
| 13619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13620 | (exit $ac_status); }; } && |
| 13621 | { ac_try='test -s conftest.$ac_objext' |
| 13622 | { (case "(($ac_try" in |
| 13623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13624 | *) ac_try_echo=$ac_try;; |
| 13625 | esac |
| 13626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13627 | (eval "$ac_try") 2>&5 |
| 13628 | ac_status=$? |
| 13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13630 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13631 | ac_compiler_gnu=yes |
| 13632 | else |
| 13633 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13636 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13637 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13638 | |
| 13639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13640 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13641 | |
| 13642 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13643 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13644 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13645 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13646 | ac_test_FFLAGS=${FFLAGS+set} |
| 13647 | ac_save_FFLAGS=$FFLAGS |
| 13648 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13649 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13650 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13651 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13653 | else |
| 13654 | FFLAGS=-g |
| 13655 | cat >conftest.$ac_ext <<_ACEOF |
| 13656 | program main |
| 13657 | |
| 13658 | end |
| 13659 | _ACEOF |
| 13660 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13661 | if { (ac_try="$ac_compile" |
| 13662 | case "(($ac_try" in |
| 13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13664 | *) ac_try_echo=$ac_try;; |
| 13665 | esac |
| 13666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13667 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13668 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13670 | rm -f conftest.er1 |
| 13671 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 13673 | (exit $ac_status); } && |
| 13674 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13675 | { (case "(($ac_try" in |
| 13676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13677 | *) ac_try_echo=$ac_try;; |
| 13678 | esac |
| 13679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13680 | (eval "$ac_try") 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); }; } && |
| 13684 | { ac_try='test -s conftest.$ac_objext' |
| 13685 | { (case "(($ac_try" in |
| 13686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13687 | *) ac_try_echo=$ac_try;; |
| 13688 | esac |
| 13689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13690 | (eval "$ac_try") 2>&5 |
| 13691 | ac_status=$? |
| 13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13693 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13694 | ac_cv_prog_f77_g=yes |
| 13695 | else |
| 13696 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13699 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13700 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13701 | |
| 13702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13703 | |
| 13704 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13705 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13706 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13707 | if test "$ac_test_FFLAGS" = set; then |
| 13708 | FFLAGS=$ac_save_FFLAGS |
| 13709 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13710 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13711 | FFLAGS="-g -O2" |
| 13712 | else |
| 13713 | FFLAGS="-g" |
| 13714 | fi |
| 13715 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13716 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13717 | FFLAGS="-O2" |
| 13718 | else |
| 13719 | FFLAGS= |
| 13720 | fi |
| 13721 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13722 | |
| 13723 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13724 | ac_ext=c |
| 13725 | ac_cpp='$CPP $CPPFLAGS' |
| 13726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13729 | |
| 13730 | |
| 13731 | |
| 13732 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13733 | |
| 13734 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13735 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13736 | 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] | 13737 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13739 | else |
| 13740 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13741 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13742 | |
| 13743 | case $build_os in |
| 13744 | msdosdjgpp*) |
| 13745 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13746 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13747 | # during glob expansion). Even if it were fixed, the result of this |
| 13748 | # check would be larger than it should be. |
| 13749 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13750 | ;; |
| 13751 | |
| 13752 | gnu*) |
| 13753 | # Under GNU Hurd, this test is not required because there is |
| 13754 | # no limit to the length of command line arguments. |
| 13755 | # Libtool will interpret -1 as no limit whatsoever |
| 13756 | lt_cv_sys_max_cmd_len=-1; |
| 13757 | ;; |
| 13758 | |
| 13759 | cygwin* | mingw*) |
| 13760 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13761 | # about 5 minutes as the teststring grows exponentially. |
| 13762 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13763 | # you end up with a "frozen" computer, even though with patience |
| 13764 | # the test eventually succeeds (with a max line length of 256k). |
| 13765 | # Instead, let's just punt: use the minimum linelength reported by |
| 13766 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13767 | lt_cv_sys_max_cmd_len=8192; |
| 13768 | ;; |
| 13769 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13770 | amigaos*) |
| 13771 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13772 | # So we just punt and use a minimum line length of 8192. |
| 13773 | lt_cv_sys_max_cmd_len=8192; |
| 13774 | ;; |
| 13775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13776 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13777 | # This has been around since 386BSD, at least. Likely further. |
| 13778 | if test -x /sbin/sysctl; then |
| 13779 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13780 | elif test -x /usr/sbin/sysctl; then |
| 13781 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13782 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13783 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13784 | fi |
| 13785 | # And add a safety zone |
| 13786 | 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] | 13787 | 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] | 13788 | ;; |
| 13789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13790 | interix*) |
| 13791 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13792 | lt_cv_sys_max_cmd_len=196608 |
| 13793 | ;; |
| 13794 | |
| 13795 | osf*) |
| 13796 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13797 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13798 | # nice to cause kernel panics so lets avoid the loop below. |
| 13799 | # First set a reasonable default. |
| 13800 | lt_cv_sys_max_cmd_len=16384 |
| 13801 | # |
| 13802 | if test -x /sbin/sysconfig; then |
| 13803 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13804 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13805 | esac |
| 13806 | fi |
| 13807 | ;; |
| 13808 | sco3.2v5*) |
| 13809 | lt_cv_sys_max_cmd_len=102400 |
| 13810 | ;; |
| 13811 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13812 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13813 | if test -n "$kargmax"; then |
| 13814 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13815 | else |
| 13816 | lt_cv_sys_max_cmd_len=32768 |
| 13817 | fi |
| 13818 | ;; |
| 13819 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13820 | # If test is not a shell built-in, we'll probably end up computing a |
| 13821 | # maximum length that is only half of the actual maximum length, but |
| 13822 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13823 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13824 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13825 | = "XX$teststring") >/dev/null 2>&1 && |
| 13826 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13827 | lt_cv_sys_max_cmd_len=$new_result && |
| 13828 | test $i != 17 # 1/2 MB should be enough |
| 13829 | do |
| 13830 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13831 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13832 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13833 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13834 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13835 | # amounts of additional arguments before passing them to the linker. |
| 13836 | # It appears as though 1/2 is a usable value. |
| 13837 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13838 | ;; |
| 13839 | esac |
| 13840 | |
| 13841 | fi |
| 13842 | |
| 13843 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13844 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13845 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13846 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13847 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13848 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13849 | fi |
| 13850 | |
| 13851 | |
| 13852 | |
| 13853 | |
| 13854 | # 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] | 13855 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13856 | 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] | 13857 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13859 | else |
| 13860 | |
| 13861 | # These are sane defaults that work on at least a few old systems. |
| 13862 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13863 | |
| 13864 | # Character class describing NM global symbol codes. |
| 13865 | symcode='[BCDEGRST]' |
| 13866 | |
| 13867 | # Regexp to match symbols that can be accessed directly from C. |
| 13868 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13869 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13870 | # Transform an extracted symbol line into a proper C declaration |
| 13871 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13872 | |
| 13873 | # Transform an extracted symbol line into symbol name and symbol address |
| 13874 | 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'" |
| 13875 | |
| 13876 | # Define system-specific variables. |
| 13877 | case $host_os in |
| 13878 | aix*) |
| 13879 | symcode='[BCDT]' |
| 13880 | ;; |
| 13881 | cygwin* | mingw* | pw32*) |
| 13882 | symcode='[ABCDGISTW]' |
| 13883 | ;; |
| 13884 | hpux*) # Its linker distinguishes data from code symbols |
| 13885 | if test "$host_cpu" = ia64; then |
| 13886 | symcode='[ABCDEGRST]' |
| 13887 | fi |
| 13888 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13889 | 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'" |
| 13890 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13891 | linux*) |
| 13892 | if test "$host_cpu" = ia64; then |
| 13893 | symcode='[ABCDGIRSTW]' |
| 13894 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13895 | 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'" |
| 13896 | fi |
| 13897 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13898 | irix* | nonstopux*) |
| 13899 | symcode='[BCDEGRST]' |
| 13900 | ;; |
| 13901 | osf*) |
| 13902 | symcode='[BCDEGQRST]' |
| 13903 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13904 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13905 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13906 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13907 | sco3.2v5*) |
| 13908 | symcode='[DT]' |
| 13909 | ;; |
| 13910 | sysv4.2uw2*) |
| 13911 | symcode='[DT]' |
| 13912 | ;; |
| 13913 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13914 | symcode='[ABDT]' |
| 13915 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13916 | sysv4) |
| 13917 | symcode='[DFNSTU]' |
| 13918 | ;; |
| 13919 | esac |
| 13920 | |
| 13921 | # Handle CRLF in mingw tool chain |
| 13922 | opt_cr= |
| 13923 | case $build_os in |
| 13924 | mingw*) |
| 13925 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13926 | ;; |
| 13927 | esac |
| 13928 | |
| 13929 | # If we're using GNU nm, then use its standard symbol codes. |
| 13930 | case `$NM -V 2>&1` in |
| 13931 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13932 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13933 | esac |
| 13934 | |
| 13935 | # Try without a prefix undercore, then with it. |
| 13936 | for ac_symprfx in "" "_"; do |
| 13937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13938 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13939 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13940 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13941 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13942 | 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] | 13943 | |
| 13944 | # Check to see that the pipe works correctly. |
| 13945 | pipe_works=no |
| 13946 | |
| 13947 | rm -f conftest* |
| 13948 | cat > conftest.$ac_ext <<EOF |
| 13949 | #ifdef __cplusplus |
| 13950 | extern "C" { |
| 13951 | #endif |
| 13952 | char nm_test_var; |
| 13953 | void nm_test_func(){} |
| 13954 | #ifdef __cplusplus |
| 13955 | } |
| 13956 | #endif |
| 13957 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13958 | EOF |
| 13959 | |
| 13960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13961 | (eval $ac_compile) 2>&5 |
| 13962 | ac_status=$? |
| 13963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13964 | (exit $ac_status); }; then |
| 13965 | # Now try to grab the symbols. |
| 13966 | nlist=conftest.nm |
| 13967 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13968 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13969 | ac_status=$? |
| 13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13971 | (exit $ac_status); } && test -s "$nlist"; then |
| 13972 | # Try sorting and uniquifying the output. |
| 13973 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13974 | mv -f "$nlist"T "$nlist" |
| 13975 | else |
| 13976 | rm -f "$nlist"T |
| 13977 | fi |
| 13978 | |
| 13979 | # Make sure that we snagged all the symbols we need. |
| 13980 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13981 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13982 | cat <<EOF > conftest.$ac_ext |
| 13983 | #ifdef __cplusplus |
| 13984 | extern "C" { |
| 13985 | #endif |
| 13986 | |
| 13987 | EOF |
| 13988 | # Now generate the symbol file. |
| 13989 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13990 | |
| 13991 | cat <<EOF >> conftest.$ac_ext |
| 13992 | #if defined (__STDC__) && __STDC__ |
| 13993 | # define lt_ptr_t void * |
| 13994 | #else |
| 13995 | # define lt_ptr_t char * |
| 13996 | # define const |
| 13997 | #endif |
| 13998 | |
| 13999 | /* The mapping between symbol names and symbols. */ |
| 14000 | const struct { |
| 14001 | const char *name; |
| 14002 | lt_ptr_t address; |
| 14003 | } |
| 14004 | lt_preloaded_symbols[] = |
| 14005 | { |
| 14006 | EOF |
| 14007 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 14008 | cat <<\EOF >> conftest.$ac_ext |
| 14009 | {0, (lt_ptr_t) 0} |
| 14010 | }; |
| 14011 | |
| 14012 | #ifdef __cplusplus |
| 14013 | } |
| 14014 | #endif |
| 14015 | EOF |
| 14016 | # Now try linking the two files. |
| 14017 | mv conftest.$ac_objext conftstm.$ac_objext |
| 14018 | lt_save_LIBS="$LIBS" |
| 14019 | lt_save_CFLAGS="$CFLAGS" |
| 14020 | LIBS="conftstm.$ac_objext" |
| 14021 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 14022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14023 | (eval $ac_link) 2>&5 |
| 14024 | ac_status=$? |
| 14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14026 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 14027 | pipe_works=yes |
| 14028 | fi |
| 14029 | LIBS="$lt_save_LIBS" |
| 14030 | CFLAGS="$lt_save_CFLAGS" |
| 14031 | else |
| 14032 | echo "cannot find nm_test_func in $nlist" >&5 |
| 14033 | fi |
| 14034 | else |
| 14035 | echo "cannot find nm_test_var in $nlist" >&5 |
| 14036 | fi |
| 14037 | else |
| 14038 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 14039 | fi |
| 14040 | else |
| 14041 | echo "$progname: failed program was:" >&5 |
| 14042 | cat conftest.$ac_ext >&5 |
| 14043 | fi |
| 14044 | rm -f conftest* conftst* |
| 14045 | |
| 14046 | # Do not use the global_symbol_pipe unless it works. |
| 14047 | if test "$pipe_works" = yes; then |
| 14048 | break |
| 14049 | else |
| 14050 | lt_cv_sys_global_symbol_pipe= |
| 14051 | fi |
| 14052 | done |
| 14053 | |
| 14054 | fi |
| 14055 | |
| 14056 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 14057 | lt_cv_sys_global_symbol_to_cdecl= |
| 14058 | fi |
| 14059 | 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] | 14060 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 14061 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14062 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14063 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 14064 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14065 | fi |
| 14066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14067 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 14068 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14069 | if test "${lt_cv_objdir+set}" = set; then |
| 14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14071 | else |
| 14072 | rm -f .libs 2>/dev/null |
| 14073 | mkdir .libs 2>/dev/null |
| 14074 | if test -d .libs; then |
| 14075 | lt_cv_objdir=.libs |
| 14076 | else |
| 14077 | # MS-DOS does not allow filenames that begin with a dot. |
| 14078 | lt_cv_objdir=_libs |
| 14079 | fi |
| 14080 | rmdir .libs 2>/dev/null |
| 14081 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14082 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 14083 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14084 | objdir=$lt_cv_objdir |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | |
| 14090 | case $host_os in |
| 14091 | aix3*) |
| 14092 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14093 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14094 | # vanish in a puff of smoke. |
| 14095 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14096 | COLLECT_NAMES= |
| 14097 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14098 | fi |
| 14099 | ;; |
| 14100 | esac |
| 14101 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14102 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 14103 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14104 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14105 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 14106 | |
| 14107 | # Same as above, but do not quote variable references. |
| 14108 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 14109 | |
| 14110 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 14111 | # double_quote_subst'ed string. |
| 14112 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 14113 | |
| 14114 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 14115 | no_glob_subst='s/\*/\\\*/g' |
| 14116 | |
| 14117 | # Constants: |
| 14118 | rm="rm -f" |
| 14119 | |
| 14120 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14121 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14122 | can_build_shared=yes |
| 14123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14124 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14125 | # which needs '.lib'). |
| 14126 | libext=a |
| 14127 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14128 | ofile="$default_ofile" |
| 14129 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 14130 | |
| 14131 | if test -n "$ac_tool_prefix"; then |
| 14132 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 14133 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14134 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14136 | if test "${ac_cv_prog_AR+set}" = set; then |
| 14137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14138 | else |
| 14139 | if test -n "$AR"; then |
| 14140 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 14141 | else |
| 14142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14143 | for as_dir in $PATH |
| 14144 | do |
| 14145 | IFS=$as_save_IFS |
| 14146 | test -z "$as_dir" && as_dir=. |
| 14147 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 14148 | 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] | 14149 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 14150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14151 | break 2 |
| 14152 | fi |
| 14153 | done |
| 14154 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14155 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14156 | |
| 14157 | fi |
| 14158 | fi |
| 14159 | AR=$ac_cv_prog_AR |
| 14160 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14161 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 14162 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14163 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14164 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14165 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14166 | fi |
| 14167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14169 | fi |
| 14170 | if test -z "$ac_cv_prog_AR"; then |
| 14171 | ac_ct_AR=$AR |
| 14172 | # Extract the first word of "ar", so it can be a program name with args. |
| 14173 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14174 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14176 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 14177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14178 | else |
| 14179 | if test -n "$ac_ct_AR"; then |
| 14180 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 14181 | else |
| 14182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14183 | for as_dir in $PATH |
| 14184 | do |
| 14185 | IFS=$as_save_IFS |
| 14186 | test -z "$as_dir" && as_dir=. |
| 14187 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 14188 | 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] | 14189 | ac_cv_prog_ac_ct_AR="ar" |
| 14190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14191 | break 2 |
| 14192 | fi |
| 14193 | done |
| 14194 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14195 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14196 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14197 | fi |
| 14198 | fi |
| 14199 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14200 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14201 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14202 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14203 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14204 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14205 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14206 | fi |
| 14207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14208 | if test "x$ac_ct_AR" = x; then |
| 14209 | AR="false" |
| 14210 | else |
| 14211 | case $cross_compiling:$ac_tool_warned in |
| 14212 | yes:) |
| 14213 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14214 | whose name does not start with the host triplet. If you think this |
| 14215 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14216 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14217 | whose name does not start with the host triplet. If you think this |
| 14218 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14219 | ac_tool_warned=yes ;; |
| 14220 | esac |
| 14221 | AR=$ac_ct_AR |
| 14222 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14223 | else |
| 14224 | AR="$ac_cv_prog_AR" |
| 14225 | fi |
| 14226 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14227 | if test -n "$ac_tool_prefix"; then |
| 14228 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14229 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14230 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14232 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14234 | else |
| 14235 | if test -n "$RANLIB"; then |
| 14236 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14237 | else |
| 14238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14239 | for as_dir in $PATH |
| 14240 | do |
| 14241 | IFS=$as_save_IFS |
| 14242 | test -z "$as_dir" && as_dir=. |
| 14243 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 14244 | 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] | 14245 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14247 | break 2 |
| 14248 | fi |
| 14249 | done |
| 14250 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14251 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14252 | |
| 14253 | fi |
| 14254 | fi |
| 14255 | RANLIB=$ac_cv_prog_RANLIB |
| 14256 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14257 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14258 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14259 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14260 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14261 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14262 | fi |
| 14263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14264 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14265 | fi |
| 14266 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14267 | ac_ct_RANLIB=$RANLIB |
| 14268 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14269 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14270 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14272 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14274 | else |
| 14275 | if test -n "$ac_ct_RANLIB"; then |
| 14276 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14277 | else |
| 14278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14279 | for as_dir in $PATH |
| 14280 | do |
| 14281 | IFS=$as_save_IFS |
| 14282 | test -z "$as_dir" && as_dir=. |
| 14283 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 14284 | 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] | 14285 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14287 | break 2 |
| 14288 | fi |
| 14289 | done |
| 14290 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14291 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14292 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14293 | fi |
| 14294 | fi |
| 14295 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14296 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14297 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14298 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14299 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14301 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14302 | fi |
| 14303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14304 | if test "x$ac_ct_RANLIB" = x; then |
| 14305 | RANLIB=":" |
| 14306 | else |
| 14307 | case $cross_compiling:$ac_tool_warned in |
| 14308 | yes:) |
| 14309 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14310 | whose name does not start with the host triplet. If you think this |
| 14311 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14312 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14313 | whose name does not start with the host triplet. If you think this |
| 14314 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14315 | ac_tool_warned=yes ;; |
| 14316 | esac |
| 14317 | RANLIB=$ac_ct_RANLIB |
| 14318 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14319 | else |
| 14320 | RANLIB="$ac_cv_prog_RANLIB" |
| 14321 | fi |
| 14322 | |
| 14323 | if test -n "$ac_tool_prefix"; then |
| 14324 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14325 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14326 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14328 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14330 | else |
| 14331 | if test -n "$STRIP"; then |
| 14332 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14333 | else |
| 14334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14335 | for as_dir in $PATH |
| 14336 | do |
| 14337 | IFS=$as_save_IFS |
| 14338 | test -z "$as_dir" && as_dir=. |
| 14339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 14340 | 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] | 14341 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14343 | break 2 |
| 14344 | fi |
| 14345 | done |
| 14346 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14347 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14348 | |
| 14349 | fi |
| 14350 | fi |
| 14351 | STRIP=$ac_cv_prog_STRIP |
| 14352 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14353 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14354 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14355 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14356 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14357 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14358 | fi |
| 14359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14361 | fi |
| 14362 | if test -z "$ac_cv_prog_STRIP"; then |
| 14363 | ac_ct_STRIP=$STRIP |
| 14364 | # Extract the first word of "strip", so it can be a program name with args. |
| 14365 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14368 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14370 | else |
| 14371 | if test -n "$ac_ct_STRIP"; then |
| 14372 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14373 | else |
| 14374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14375 | for as_dir in $PATH |
| 14376 | do |
| 14377 | IFS=$as_save_IFS |
| 14378 | test -z "$as_dir" && as_dir=. |
| 14379 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 14380 | 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] | 14381 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14383 | break 2 |
| 14384 | fi |
| 14385 | done |
| 14386 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14387 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14388 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14389 | fi |
| 14390 | fi |
| 14391 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14392 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14393 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14394 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14395 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14396 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14397 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14398 | fi |
| 14399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14400 | if test "x$ac_ct_STRIP" = x; then |
| 14401 | STRIP=":" |
| 14402 | else |
| 14403 | case $cross_compiling:$ac_tool_warned in |
| 14404 | yes:) |
| 14405 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14406 | whose name does not start with the host triplet. If you think this |
| 14407 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14408 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14409 | whose name does not start with the host triplet. If you think this |
| 14410 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14411 | ac_tool_warned=yes ;; |
| 14412 | esac |
| 14413 | STRIP=$ac_ct_STRIP |
| 14414 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14415 | else |
| 14416 | STRIP="$ac_cv_prog_STRIP" |
| 14417 | fi |
| 14418 | |
| 14419 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14420 | old_CC="$CC" |
| 14421 | old_CFLAGS="$CFLAGS" |
| 14422 | |
| 14423 | # Set sane defaults for various variables |
| 14424 | test -z "$AR" && AR=ar |
| 14425 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14426 | test -z "$AS" && AS=as |
| 14427 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14428 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14429 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14430 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14431 | test -z "$LD" && LD=ld |
| 14432 | test -z "$LN_S" && LN_S="ln -s" |
| 14433 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14434 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14435 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14436 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14437 | test -z "$RANLIB" && RANLIB=: |
| 14438 | test -z "$STRIP" && STRIP=: |
| 14439 | test -z "$ac_objext" && ac_objext=o |
| 14440 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14441 | # Determine commands to create old-style static archives. |
| 14442 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14443 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14444 | old_postuninstall_cmds= |
| 14445 | |
| 14446 | if test -n "$RANLIB"; then |
| 14447 | case $host_os in |
| 14448 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14449 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14450 | ;; |
| 14451 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14452 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14453 | ;; |
| 14454 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14455 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14456 | fi |
| 14457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14458 | for cc_temp in $compiler""; do |
| 14459 | case $cc_temp in |
| 14460 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14461 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14462 | \-*) ;; |
| 14463 | *) break;; |
| 14464 | esac |
| 14465 | done |
| 14466 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14467 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14468 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14469 | # Only perform the check for file, if the check method requires it |
| 14470 | case $deplibs_check_method in |
| 14471 | file_magic*) |
| 14472 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14473 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14474 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14475 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14477 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14478 | case $MAGIC_CMD in |
| 14479 | [\\/*] | ?:[\\/]*) |
| 14480 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14481 | ;; |
| 14482 | *) |
| 14483 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14484 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14485 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14486 | for ac_dir in $ac_dummy; do |
| 14487 | IFS="$lt_save_ifs" |
| 14488 | test -z "$ac_dir" && ac_dir=. |
| 14489 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14490 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14491 | if test -n "$file_magic_test_file"; then |
| 14492 | case $deplibs_check_method in |
| 14493 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14494 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14495 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14496 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14497 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14498 | : |
| 14499 | else |
| 14500 | cat <<EOF 1>&2 |
| 14501 | |
| 14502 | *** Warning: the command libtool uses to detect shared libraries, |
| 14503 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14504 | *** The result is that libtool may fail to recognize shared libraries |
| 14505 | *** as such. This will affect the creation of libtool libraries that |
| 14506 | *** depend on shared libraries, but programs linked with such libtool |
| 14507 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14508 | *** may want to report the problem to your system manager and/or to |
| 14509 | *** bug-libtool@gnu.org |
| 14510 | |
| 14511 | EOF |
| 14512 | fi ;; |
| 14513 | esac |
| 14514 | fi |
| 14515 | break |
| 14516 | fi |
| 14517 | done |
| 14518 | IFS="$lt_save_ifs" |
| 14519 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14520 | ;; |
| 14521 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14522 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14523 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14524 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14525 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14526 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14527 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14528 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14529 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14530 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14531 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14532 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14533 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14534 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14535 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14536 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14537 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14539 | else |
| 14540 | case $MAGIC_CMD in |
| 14541 | [\\/*] | ?:[\\/]*) |
| 14542 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14543 | ;; |
| 14544 | *) |
| 14545 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14546 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14547 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14548 | for ac_dir in $ac_dummy; do |
| 14549 | IFS="$lt_save_ifs" |
| 14550 | test -z "$ac_dir" && ac_dir=. |
| 14551 | if test -f $ac_dir/file; then |
| 14552 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14553 | if test -n "$file_magic_test_file"; then |
| 14554 | case $deplibs_check_method in |
| 14555 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14556 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14557 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14558 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14559 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14560 | : |
| 14561 | else |
| 14562 | cat <<EOF 1>&2 |
| 14563 | |
| 14564 | *** Warning: the command libtool uses to detect shared libraries, |
| 14565 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14566 | *** The result is that libtool may fail to recognize shared libraries |
| 14567 | *** as such. This will affect the creation of libtool libraries that |
| 14568 | *** depend on shared libraries, but programs linked with such libtool |
| 14569 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14570 | *** may want to report the problem to your system manager and/or to |
| 14571 | *** bug-libtool@gnu.org |
| 14572 | |
| 14573 | EOF |
| 14574 | fi ;; |
| 14575 | esac |
| 14576 | fi |
| 14577 | break |
| 14578 | fi |
| 14579 | done |
| 14580 | IFS="$lt_save_ifs" |
| 14581 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14582 | ;; |
| 14583 | esac |
| 14584 | fi |
| 14585 | |
| 14586 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14587 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14588 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14589 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14590 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14592 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14593 | fi |
| 14594 | |
| 14595 | else |
| 14596 | MAGIC_CMD=: |
| 14597 | fi |
| 14598 | fi |
| 14599 | |
| 14600 | fi |
| 14601 | ;; |
| 14602 | esac |
| 14603 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14604 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14605 | enable_win32_dll=no |
| 14606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14607 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14608 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14609 | enableval=$enable_libtool_lock; |
| 14610 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14611 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14612 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14613 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14615 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14616 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14617 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14618 | else |
| 14619 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14620 | fi |
| 14621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14622 | test -z "$pic_mode" && pic_mode=default |
| 14623 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14624 | # Use C for the default configuration in the libtool script |
| 14625 | tagname= |
| 14626 | lt_save_CC="$CC" |
| 14627 | ac_ext=c |
| 14628 | ac_cpp='$CPP $CPPFLAGS' |
| 14629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14632 | |
| 14633 | |
| 14634 | # Source file extension for C test sources. |
| 14635 | ac_ext=c |
| 14636 | |
| 14637 | # Object file extension for compiled C test sources. |
| 14638 | objext=o |
| 14639 | objext=$objext |
| 14640 | |
| 14641 | # Code to be used in simple compile tests |
| 14642 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14643 | |
| 14644 | # Code to be used in simple link tests |
| 14645 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14646 | |
| 14647 | |
| 14648 | # If no C compiler was specified, use CC. |
| 14649 | LTCC=${LTCC-"$CC"} |
| 14650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14651 | # If no C compiler flags were specified, use CFLAGS. |
| 14652 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14653 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14654 | # Allow CC to be a program name with arguments. |
| 14655 | compiler=$CC |
| 14656 | |
| 14657 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14658 | # save warnings/boilerplate of simple test code |
| 14659 | ac_outfile=conftest.$ac_objext |
| 14660 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14661 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14662 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14663 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14665 | ac_outfile=conftest.$ac_objext |
| 14666 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14667 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14668 | _lt_linker_boilerplate=`cat conftest.err` |
| 14669 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14670 | |
| 14671 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14672 | |
| 14673 | lt_prog_compiler_no_builtin_flag= |
| 14674 | |
| 14675 | if test "$GCC" = yes; then |
| 14676 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14677 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14679 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14680 | 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] | 14681 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14683 | else |
| 14684 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14685 | ac_outfile=conftest.$ac_objext |
| 14686 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14687 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14688 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14689 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14690 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14691 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14692 | # The option is referenced via a variable to avoid confusing sed. |
| 14693 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14694 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14695 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14696 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 14697 | (eval echo "\"\$as_me:14697: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14698 | (eval "$lt_compile" 2>conftest.err) |
| 14699 | ac_status=$? |
| 14700 | cat conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 14701 | echo "$as_me:14701: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14702 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14703 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14704 | # So say no if there are warnings other than the usual output. |
| 14705 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14706 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14707 | 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] | 14708 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14709 | fi |
| 14710 | fi |
| 14711 | $rm conftest* |
| 14712 | |
| 14713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14714 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14715 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14716 | |
| 14717 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14718 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14719 | else |
| 14720 | : |
| 14721 | fi |
| 14722 | |
| 14723 | fi |
| 14724 | |
| 14725 | lt_prog_compiler_wl= |
| 14726 | lt_prog_compiler_pic= |
| 14727 | lt_prog_compiler_static= |
| 14728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14729 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14730 | 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] | 14731 | |
| 14732 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14733 | lt_prog_compiler_wl='-Wl,' |
| 14734 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14735 | |
| 14736 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14737 | aix*) |
| 14738 | # All AIX code is PIC. |
| 14739 | if test "$host_cpu" = ia64; then |
| 14740 | # AIX 5 now supports IA64 processor |
| 14741 | lt_prog_compiler_static='-Bstatic' |
| 14742 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14743 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14744 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14745 | amigaos*) |
| 14746 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14747 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14748 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14749 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14750 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14751 | |
| 14752 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14753 | # PIC is the default for these OSes. |
| 14754 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14755 | |
| 14756 | mingw* | pw32* | os2*) |
| 14757 | # This hack is so that the source file can tell whether it is being |
| 14758 | # built for inclusion in a dll (and should export symbols for example). |
| 14759 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14760 | ;; |
| 14761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14762 | darwin* | rhapsody*) |
| 14763 | # PIC is the default on this platform |
| 14764 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14765 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14766 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14768 | interix3*) |
| 14769 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14770 | # Instead, we relocate shared libraries at runtime. |
| 14771 | ;; |
| 14772 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14773 | msdosdjgpp*) |
| 14774 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14775 | # on systems that don't support them. |
| 14776 | lt_prog_compiler_can_build_shared=no |
| 14777 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14778 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14779 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14780 | sysv4*MP*) |
| 14781 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14782 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14783 | fi |
| 14784 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14785 | |
| 14786 | hpux*) |
| 14787 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14788 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14789 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14790 | hppa*64*|ia64*) |
| 14791 | # +Z the default |
| 14792 | ;; |
| 14793 | *) |
| 14794 | lt_prog_compiler_pic='-fPIC' |
| 14795 | ;; |
| 14796 | esac |
| 14797 | ;; |
| 14798 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14799 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14800 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14801 | ;; |
| 14802 | esac |
| 14803 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14804 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14805 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14806 | aix*) |
| 14807 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14808 | if test "$host_cpu" = ia64; then |
| 14809 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14810 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14811 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14812 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14813 | fi |
| 14814 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14815 | darwin*) |
| 14816 | # PIC is the default on this platform |
| 14817 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14818 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14819 | xlc*) |
| 14820 | lt_prog_compiler_pic='-qnocommon' |
| 14821 | lt_prog_compiler_wl='-Wl,' |
| 14822 | ;; |
| 14823 | esac |
| 14824 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14825 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14826 | mingw* | pw32* | os2*) |
| 14827 | # This hack is so that the source file can tell whether it is being |
| 14828 | # built for inclusion in a dll (and should export symbols for example). |
| 14829 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14830 | ;; |
| 14831 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14832 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14833 | lt_prog_compiler_wl='-Wl,' |
| 14834 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14835 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14836 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14837 | hppa*64*|ia64*) |
| 14838 | # +Z the default |
| 14839 | ;; |
| 14840 | *) |
| 14841 | lt_prog_compiler_pic='+Z' |
| 14842 | ;; |
| 14843 | esac |
| 14844 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14845 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14846 | ;; |
| 14847 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14848 | irix5* | irix6* | nonstopux*) |
| 14849 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14850 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14851 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14852 | ;; |
| 14853 | |
| 14854 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14855 | lt_prog_compiler_pic='-KPIC' |
| 14856 | lt_prog_compiler_static='-Bstatic' |
| 14857 | ;; |
| 14858 | |
| 14859 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14860 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14861 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14862 | lt_prog_compiler_wl='-Wl,' |
| 14863 | lt_prog_compiler_pic='-KPIC' |
| 14864 | lt_prog_compiler_static='-static' |
| 14865 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14866 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14867 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14868 | # which looks to be a dead project) |
| 14869 | lt_prog_compiler_wl='-Wl,' |
| 14870 | lt_prog_compiler_pic='-fpic' |
| 14871 | lt_prog_compiler_static='-Bstatic' |
| 14872 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14873 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14874 | lt_prog_compiler_wl='-Wl,' |
| 14875 | # All Alpha code is PIC. |
| 14876 | lt_prog_compiler_static='-non_shared' |
| 14877 | ;; |
| 14878 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14879 | ;; |
| 14880 | |
| 14881 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14882 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14883 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14884 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14885 | ;; |
| 14886 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14887 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14888 | lt_prog_compiler_pic='-KPIC' |
| 14889 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14890 | case $cc_basename in |
| 14891 | f77* | f90* | f95*) |
| 14892 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14893 | *) |
| 14894 | lt_prog_compiler_wl='-Wl,';; |
| 14895 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14896 | ;; |
| 14897 | |
| 14898 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14899 | lt_prog_compiler_wl='-Qoption ld ' |
| 14900 | lt_prog_compiler_pic='-PIC' |
| 14901 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14902 | ;; |
| 14903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14904 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14905 | lt_prog_compiler_wl='-Wl,' |
| 14906 | lt_prog_compiler_pic='-KPIC' |
| 14907 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14908 | ;; |
| 14909 | |
| 14910 | sysv4*MP*) |
| 14911 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14912 | lt_prog_compiler_pic='-Kconform_pic' |
| 14913 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14914 | fi |
| 14915 | ;; |
| 14916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14917 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14918 | lt_prog_compiler_wl='-Wl,' |
| 14919 | lt_prog_compiler_pic='-KPIC' |
| 14920 | lt_prog_compiler_static='-Bstatic' |
| 14921 | ;; |
| 14922 | |
| 14923 | unicos*) |
| 14924 | lt_prog_compiler_wl='-Wl,' |
| 14925 | lt_prog_compiler_can_build_shared=no |
| 14926 | ;; |
| 14927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14928 | uts4*) |
| 14929 | lt_prog_compiler_pic='-pic' |
| 14930 | lt_prog_compiler_static='-Bstatic' |
| 14931 | ;; |
| 14932 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14933 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14934 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14935 | ;; |
| 14936 | esac |
| 14937 | fi |
| 14938 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14939 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14940 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14941 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14942 | # |
| 14943 | # Check to make sure the PIC flag actually works. |
| 14944 | # |
| 14945 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14947 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14948 | 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] | 14949 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14951 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | lt_prog_compiler_pic_works=no |
| 14953 | ac_outfile=conftest.$ac_objext |
| 14954 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14955 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14956 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14957 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14958 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14959 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14960 | # The option is referenced via a variable to avoid confusing sed. |
| 14961 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14962 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14963 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14964 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 14965 | (eval echo "\"\$as_me:14965: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14966 | (eval "$lt_compile" 2>conftest.err) |
| 14967 | ac_status=$? |
| 14968 | cat conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 14969 | echo "$as_me:14969: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14970 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14971 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14972 | # So say no if there are warnings other than the usual output. |
| 14973 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14974 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14975 | 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] | 14976 | lt_prog_compiler_pic_works=yes |
| 14977 | fi |
| 14978 | fi |
| 14979 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14980 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14981 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14982 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14983 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14984 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14985 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14986 | case $lt_prog_compiler_pic in |
| 14987 | "" | " "*) ;; |
| 14988 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14989 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14990 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14991 | lt_prog_compiler_pic= |
| 14992 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14993 | fi |
| 14994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14995 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14996 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14997 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14998 | *djgpp*) |
| 14999 | lt_prog_compiler_pic= |
| 15000 | ;; |
| 15001 | *) |
| 15002 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 15003 | ;; |
| 15004 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15006 | # |
| 15007 | # Check to make sure the static flag actually works. |
| 15008 | # |
| 15009 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15010 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15011 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 15012 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 15013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15014 | else |
| 15015 | lt_prog_compiler_static_works=no |
| 15016 | save_LDFLAGS="$LDFLAGS" |
| 15017 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15018 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15019 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15020 | # The linker can only warn and ignore the option if not recognized |
| 15021 | # So say no if there are warnings |
| 15022 | if test -s conftest.err; then |
| 15023 | # Append any errors to the config.log. |
| 15024 | cat conftest.err 1>&5 |
| 15025 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15026 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15027 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15028 | lt_prog_compiler_static_works=yes |
| 15029 | fi |
| 15030 | else |
| 15031 | lt_prog_compiler_static_works=yes |
| 15032 | fi |
| 15033 | fi |
| 15034 | $rm conftest* |
| 15035 | LDFLAGS="$save_LDFLAGS" |
| 15036 | |
| 15037 | fi |
| 15038 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 15039 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 15040 | |
| 15041 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 15042 | : |
| 15043 | else |
| 15044 | lt_prog_compiler_static= |
| 15045 | fi |
| 15046 | |
| 15047 | |
| 15048 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15049 | 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] | 15050 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15052 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15053 | lt_cv_prog_compiler_c_o=no |
| 15054 | $rm -r conftest 2>/dev/null |
| 15055 | mkdir conftest |
| 15056 | cd conftest |
| 15057 | mkdir out |
| 15058 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15060 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15061 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15062 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15063 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15064 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15065 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15066 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15067 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15068 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 15069 | (eval echo "\"\$as_me:15069: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15070 | (eval "$lt_compile" 2>out/conftest.err) |
| 15071 | ac_status=$? |
| 15072 | cat out/conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 15073 | echo "$as_me:15073: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15074 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15075 | then |
| 15076 | # The compiler can only warn and ignore the option if not recognized |
| 15077 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15078 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15079 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15080 | 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] | 15081 | lt_cv_prog_compiler_c_o=yes |
| 15082 | fi |
| 15083 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15084 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15085 | $rm conftest* |
| 15086 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15087 | # template instantiation |
| 15088 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15089 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15090 | cd .. |
| 15091 | rmdir conftest |
| 15092 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15093 | |
| 15094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15095 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15096 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15098 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15099 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15100 | 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] | 15101 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15102 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15103 | 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] | 15104 | hard_links=yes |
| 15105 | $rm conftest* |
| 15106 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15107 | touch conftest.a |
| 15108 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15109 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15110 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15111 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15112 | if test "$hard_links" = no; then |
| 15113 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15114 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15115 | need_locks=warn |
| 15116 | fi |
| 15117 | else |
| 15118 | need_locks=no |
| 15119 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15121 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15122 | 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] | 15123 | |
| 15124 | runpath_var= |
| 15125 | allow_undefined_flag= |
| 15126 | enable_shared_with_static_runtimes=no |
| 15127 | archive_cmds= |
| 15128 | archive_expsym_cmds= |
| 15129 | old_archive_From_new_cmds= |
| 15130 | old_archive_from_expsyms_cmds= |
| 15131 | export_dynamic_flag_spec= |
| 15132 | whole_archive_flag_spec= |
| 15133 | thread_safe_flag_spec= |
| 15134 | hardcode_libdir_flag_spec= |
| 15135 | hardcode_libdir_flag_spec_ld= |
| 15136 | hardcode_libdir_separator= |
| 15137 | hardcode_direct=no |
| 15138 | hardcode_minus_L=no |
| 15139 | hardcode_shlibpath_var=unsupported |
| 15140 | link_all_deplibs=unknown |
| 15141 | hardcode_automatic=no |
| 15142 | module_cmds= |
| 15143 | module_expsym_cmds= |
| 15144 | always_export_symbols=no |
| 15145 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15146 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15147 | # included in the symbol list |
| 15148 | include_expsyms= |
| 15149 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15150 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15151 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15152 | # as well as any symbol that contains `d'. |
| 15153 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 15154 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15155 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15156 | # the symbol is explicitly referenced. Since portable code cannot |
| 15157 | # rely on this symbol name, it's probably fine to never include it in |
| 15158 | # preloaded symbol tables. |
| 15159 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15160 | # Just being paranoid about ensuring that cc_basename is set. |
| 15161 | for cc_temp in $compiler""; do |
| 15162 | case $cc_temp in |
| 15163 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15164 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15165 | \-*) ;; |
| 15166 | *) break;; |
| 15167 | esac |
| 15168 | done |
| 15169 | 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] | 15170 | |
| 15171 | case $host_os in |
| 15172 | cygwin* | mingw* | pw32*) |
| 15173 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15174 | # When not using gcc, we currently assume that we are using |
| 15175 | # Microsoft Visual C++. |
| 15176 | if test "$GCC" != yes; then |
| 15177 | with_gnu_ld=no |
| 15178 | fi |
| 15179 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15180 | interix*) |
| 15181 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15182 | with_gnu_ld=yes |
| 15183 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15184 | openbsd*) |
| 15185 | with_gnu_ld=no |
| 15186 | ;; |
| 15187 | esac |
| 15188 | |
| 15189 | ld_shlibs=yes |
| 15190 | if test "$with_gnu_ld" = yes; then |
| 15191 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15192 | wlarc='${wl}' |
| 15193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15194 | # Set some defaults for GNU ld with shared library support. These |
| 15195 | # are reset later if shared libraries are not supported. Putting them |
| 15196 | # here allows them to be overridden if necessary. |
| 15197 | runpath_var=LD_RUN_PATH |
| 15198 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15199 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15200 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15201 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15202 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15203 | else |
| 15204 | whole_archive_flag_spec= |
| 15205 | fi |
| 15206 | supports_anon_versioning=no |
| 15207 | case `$LD -v 2>/dev/null` in |
| 15208 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15209 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15210 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15211 | *\ 2.11.*) ;; # other 2.11 versions |
| 15212 | *) supports_anon_versioning=yes ;; |
| 15213 | esac |
| 15214 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15215 | # See if GNU ld supports shared libraries. |
| 15216 | case $host_os in |
| 15217 | aix3* | aix4* | aix5*) |
| 15218 | # On AIX/PPC, the GNU linker is very broken |
| 15219 | if test "$host_cpu" != ia64; then |
| 15220 | ld_shlibs=no |
| 15221 | cat <<EOF 1>&2 |
| 15222 | |
| 15223 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15224 | *** to be unable to reliably create shared libraries on AIX. |
| 15225 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15226 | *** really care for shared libraries, you may want to modify your PATH |
| 15227 | *** so that a non-GNU linker is found, and then restart. |
| 15228 | |
| 15229 | EOF |
| 15230 | fi |
| 15231 | ;; |
| 15232 | |
| 15233 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15234 | 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] | 15235 | hardcode_libdir_flag_spec='-L$libdir' |
| 15236 | hardcode_minus_L=yes |
| 15237 | |
| 15238 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15239 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15240 | # to version 4, is to share data among multiple programs linked |
| 15241 | # with the same dynamic library. Since this doesn't match the |
| 15242 | # behavior of shared libraries on other platforms, we can't use |
| 15243 | # them. |
| 15244 | ld_shlibs=no |
| 15245 | ;; |
| 15246 | |
| 15247 | beos*) |
| 15248 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15249 | allow_undefined_flag=unsupported |
| 15250 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15251 | # support --undefined. This deserves some investigation. FIXME |
| 15252 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15253 | else |
| 15254 | ld_shlibs=no |
| 15255 | fi |
| 15256 | ;; |
| 15257 | |
| 15258 | cygwin* | mingw* | pw32*) |
| 15259 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15260 | # as there is no search path for DLLs. |
| 15261 | hardcode_libdir_flag_spec='-L$libdir' |
| 15262 | allow_undefined_flag=unsupported |
| 15263 | always_export_symbols=no |
| 15264 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15265 | 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] | 15266 | |
| 15267 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15268 | 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] | 15269 | # If the export-symbols file already is a .def file (1st line |
| 15270 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15271 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15272 | cp $export_symbols $output_objdir/$soname.def; |
| 15273 | else |
| 15274 | echo EXPORTS > $output_objdir/$soname.def; |
| 15275 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15276 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15277 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15278 | else |
| 15279 | ld_shlibs=no |
| 15280 | fi |
| 15281 | ;; |
| 15282 | |
| 15283 | interix3*) |
| 15284 | hardcode_direct=no |
| 15285 | hardcode_shlibpath_var=no |
| 15286 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15287 | export_dynamic_flag_spec='${wl}-E' |
| 15288 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15289 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15290 | # default) and relocated if they conflict, which is a slow very memory |
| 15291 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15292 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15293 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15294 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15295 | 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' |
| 15296 | ;; |
| 15297 | |
| 15298 | linux*) |
| 15299 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15300 | tmp_addflag= |
| 15301 | case $cc_basename,$host_cpu in |
| 15302 | pgcc*) # Portland Group C compiler |
| 15303 | 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' |
| 15304 | tmp_addflag=' $pic_flag' |
| 15305 | ;; |
| 15306 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15307 | 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' |
| 15308 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15309 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15310 | tmp_addflag=' -i_dynamic' ;; |
| 15311 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15312 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15313 | ifc* | ifort*) # Intel Fortran compiler |
| 15314 | tmp_addflag=' -nofor_main' ;; |
| 15315 | esac |
| 15316 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15317 | |
| 15318 | if test $supports_anon_versioning = yes; then |
| 15319 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15320 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15321 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15322 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15323 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15324 | else |
| 15325 | ld_shlibs=no |
| 15326 | fi |
| 15327 | ;; |
| 15328 | |
| 15329 | netbsd*) |
| 15330 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15331 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15332 | wlarc= |
| 15333 | else |
| 15334 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15335 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15336 | fi |
| 15337 | ;; |
| 15338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15339 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15340 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15341 | ld_shlibs=no |
| 15342 | cat <<EOF 1>&2 |
| 15343 | |
| 15344 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15345 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15346 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15347 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15348 | *** your PATH or compiler configuration so that the native linker is |
| 15349 | *** used, and then restart. |
| 15350 | |
| 15351 | EOF |
| 15352 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15353 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15354 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15355 | else |
| 15356 | ld_shlibs=no |
| 15357 | fi |
| 15358 | ;; |
| 15359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15360 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15361 | case `$LD -v 2>&1` in |
| 15362 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15363 | ld_shlibs=no |
| 15364 | cat <<_LT_EOF 1>&2 |
| 15365 | |
| 15366 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15367 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15368 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15369 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15370 | *** your PATH or compiler configuration so that the native linker is |
| 15371 | *** used, and then restart. |
| 15372 | |
| 15373 | _LT_EOF |
| 15374 | ;; |
| 15375 | *) |
| 15376 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15377 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15378 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15379 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15380 | else |
| 15381 | ld_shlibs=no |
| 15382 | fi |
| 15383 | ;; |
| 15384 | esac |
| 15385 | ;; |
| 15386 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15387 | sunos4*) |
| 15388 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15389 | wlarc= |
| 15390 | hardcode_direct=yes |
| 15391 | hardcode_shlibpath_var=no |
| 15392 | ;; |
| 15393 | |
| 15394 | *) |
| 15395 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15396 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15397 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15398 | else |
| 15399 | ld_shlibs=no |
| 15400 | fi |
| 15401 | ;; |
| 15402 | esac |
| 15403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15404 | if test "$ld_shlibs" = no; then |
| 15405 | runpath_var= |
| 15406 | hardcode_libdir_flag_spec= |
| 15407 | export_dynamic_flag_spec= |
| 15408 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15409 | fi |
| 15410 | else |
| 15411 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15412 | case $host_os in |
| 15413 | aix3*) |
| 15414 | allow_undefined_flag=unsupported |
| 15415 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15416 | 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] | 15417 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15418 | # are no directories specified by -L. |
| 15419 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15420 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15421 | # Neither direct hardcoding nor static linking is supported with a |
| 15422 | # broken collect2. |
| 15423 | hardcode_direct=unsupported |
| 15424 | fi |
| 15425 | ;; |
| 15426 | |
| 15427 | aix4* | aix5*) |
| 15428 | if test "$host_cpu" = ia64; then |
| 15429 | # On IA64, the linker does run time linking by default, so we don't |
| 15430 | # have to do anything special. |
| 15431 | aix_use_runtimelinking=no |
| 15432 | exp_sym_flag='-Bexport' |
| 15433 | no_entry_flag="" |
| 15434 | else |
| 15435 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15436 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15437 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15438 | 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' |
| 15439 | else |
| 15440 | 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' |
| 15441 | fi |
| 15442 | aix_use_runtimelinking=no |
| 15443 | |
| 15444 | # Test if we are trying to use run time linking or normal |
| 15445 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15446 | # need to do runtime linking. |
| 15447 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15448 | for ld_flag in $LDFLAGS; do |
| 15449 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15450 | aix_use_runtimelinking=yes |
| 15451 | break |
| 15452 | fi |
| 15453 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15454 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15455 | esac |
| 15456 | |
| 15457 | exp_sym_flag='-bexport' |
| 15458 | no_entry_flag='-bnoentry' |
| 15459 | fi |
| 15460 | |
| 15461 | # When large executables or shared objects are built, AIX ld can |
| 15462 | # have problems creating the table of contents. If linking a library |
| 15463 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15464 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15465 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15466 | |
| 15467 | archive_cmds='' |
| 15468 | hardcode_direct=yes |
| 15469 | hardcode_libdir_separator=':' |
| 15470 | link_all_deplibs=yes |
| 15471 | |
| 15472 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15473 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15474 | # We only want to do this on AIX 4.2 and lower, the check |
| 15475 | # below for broken collect2 doesn't work under 4.3+ |
| 15476 | collect2name=`${CC} -print-prog-name=collect2` |
| 15477 | if test -f "$collect2name" && \ |
| 15478 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15479 | then |
| 15480 | # We have reworked collect2 |
| 15481 | hardcode_direct=yes |
| 15482 | else |
| 15483 | # We have old collect2 |
| 15484 | hardcode_direct=unsupported |
| 15485 | # It fails to find uninstalled libraries when the uninstalled |
| 15486 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15487 | # to unsupported forces relinking |
| 15488 | hardcode_minus_L=yes |
| 15489 | hardcode_libdir_flag_spec='-L$libdir' |
| 15490 | hardcode_libdir_separator= |
| 15491 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15492 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15493 | esac |
| 15494 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15495 | if test "$aix_use_runtimelinking" = yes; then |
| 15496 | shared_flag="$shared_flag "'${wl}-G' |
| 15497 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15498 | else |
| 15499 | # not using gcc |
| 15500 | if test "$host_cpu" = ia64; then |
| 15501 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15502 | # chokes on -Wl,-G. The following line is correct: |
| 15503 | shared_flag='-G' |
| 15504 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15505 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15506 | shared_flag='${wl}-G' |
| 15507 | else |
| 15508 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15509 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15510 | fi |
| 15511 | fi |
| 15512 | |
| 15513 | # It seems that -bexpall does not export symbols beginning with |
| 15514 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15515 | always_export_symbols=yes |
| 15516 | if test "$aix_use_runtimelinking" = yes; then |
| 15517 | # Warning - without using the other runtime loading flags (-brtl), |
| 15518 | # -berok will link without error, but may produce a broken library. |
| 15519 | allow_undefined_flag='-berok' |
| 15520 | # Determine the default libpath from the value encoded in an empty executable. |
| 15521 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15522 | /* confdefs.h. */ |
| 15523 | _ACEOF |
| 15524 | cat confdefs.h >>conftest.$ac_ext |
| 15525 | cat >>conftest.$ac_ext <<_ACEOF |
| 15526 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15528 | int |
| 15529 | main () |
| 15530 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15531 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15532 | ; |
| 15533 | return 0; |
| 15534 | } |
| 15535 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15536 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15537 | if { (ac_try="$ac_link" |
| 15538 | case "(($ac_try" in |
| 15539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15540 | *) ac_try_echo=$ac_try;; |
| 15541 | esac |
| 15542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15543 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15544 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15546 | rm -f conftest.er1 |
| 15547 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 15549 | (exit $ac_status); } && |
| 15550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15551 | { (case "(($ac_try" in |
| 15552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15553 | *) ac_try_echo=$ac_try;; |
| 15554 | esac |
| 15555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15556 | (eval "$ac_try") 2>&5 |
| 15557 | ac_status=$? |
| 15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15559 | (exit $ac_status); }; } && |
| 15560 | { ac_try='test -s conftest$ac_exeext' |
| 15561 | { (case "(($ac_try" in |
| 15562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15563 | *) ac_try_echo=$ac_try;; |
| 15564 | esac |
| 15565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15566 | (eval "$ac_try") 2>&5 |
| 15567 | ac_status=$? |
| 15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15569 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15570 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15571 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15572 | }'` |
| 15573 | # Check for a 64-bit object if we didn't find anything. |
| 15574 | 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; } |
| 15575 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15576 | else |
| 15577 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15580 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15582 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 15583 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15584 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15585 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15586 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15587 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15588 | 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] | 15589 | else |
| 15590 | if test "$host_cpu" = ia64; then |
| 15591 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15592 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15593 | 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] | 15594 | else |
| 15595 | # Determine the default libpath from the value encoded in an empty executable. |
| 15596 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15597 | /* confdefs.h. */ |
| 15598 | _ACEOF |
| 15599 | cat confdefs.h >>conftest.$ac_ext |
| 15600 | cat >>conftest.$ac_ext <<_ACEOF |
| 15601 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15602 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15603 | int |
| 15604 | main () |
| 15605 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15606 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15607 | ; |
| 15608 | return 0; |
| 15609 | } |
| 15610 | _ACEOF |
| 15611 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15612 | if { (ac_try="$ac_link" |
| 15613 | case "(($ac_try" in |
| 15614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15615 | *) ac_try_echo=$ac_try;; |
| 15616 | esac |
| 15617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15618 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15619 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15621 | rm -f conftest.er1 |
| 15622 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 15624 | (exit $ac_status); } && |
| 15625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15626 | { (case "(($ac_try" in |
| 15627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15628 | *) ac_try_echo=$ac_try;; |
| 15629 | esac |
| 15630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15631 | (eval "$ac_try") 2>&5 |
| 15632 | ac_status=$? |
| 15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15634 | (exit $ac_status); }; } && |
| 15635 | { ac_try='test -s conftest$ac_exeext' |
| 15636 | { (case "(($ac_try" in |
| 15637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15638 | *) ac_try_echo=$ac_try;; |
| 15639 | esac |
| 15640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15641 | (eval "$ac_try") 2>&5 |
| 15642 | ac_status=$? |
| 15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15644 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15645 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15646 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15647 | }'` |
| 15648 | # Check for a 64-bit object if we didn't find anything. |
| 15649 | 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; } |
| 15650 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15651 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15652 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15654 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15655 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15656 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15657 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 15658 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15659 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15660 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15661 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15662 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15663 | # Warning - without using the other run time loading flags, |
| 15664 | # -berok will link without error, but may produce a broken library. |
| 15665 | no_undefined_flag=' ${wl}-bernotok' |
| 15666 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15667 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15668 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15669 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15670 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15671 | 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] | 15672 | fi |
| 15673 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15674 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15675 | |
| 15676 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15677 | 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] | 15678 | hardcode_libdir_flag_spec='-L$libdir' |
| 15679 | hardcode_minus_L=yes |
| 15680 | # see comment about different semantics on the GNU ld section |
| 15681 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15682 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15683 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15684 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15685 | export_dynamic_flag_spec=-rdynamic |
| 15686 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15687 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15688 | cygwin* | mingw* | pw32*) |
| 15689 | # When not using gcc, we currently assume that we are using |
| 15690 | # Microsoft Visual C++. |
| 15691 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15692 | # no search path for DLLs. |
| 15693 | hardcode_libdir_flag_spec=' ' |
| 15694 | allow_undefined_flag=unsupported |
| 15695 | # Tell ltmain to make .lib files, not .a files. |
| 15696 | libext=lib |
| 15697 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15698 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15699 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15700 | 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] | 15701 | # The linker will automatically build a .lib file if we build a DLL. |
| 15702 | old_archive_From_new_cmds='true' |
| 15703 | # FIXME: Should let the user specify the lib program. |
| 15704 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15705 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15706 | enable_shared_with_static_runtimes=yes |
| 15707 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15708 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15709 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15710 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15711 | rhapsody* | darwin1.[012]) |
| 15712 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15713 | ;; |
| 15714 | *) # Darwin 1.3 on |
| 15715 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15716 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15717 | else |
| 15718 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15719 | 10.[012]) |
| 15720 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15721 | ;; |
| 15722 | 10.*) |
| 15723 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15724 | ;; |
| 15725 | esac |
| 15726 | fi |
| 15727 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15728 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15729 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15730 | hardcode_direct=no |
| 15731 | hardcode_automatic=yes |
| 15732 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15733 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15734 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15735 | if test "$GCC" = yes ; then |
| 15736 | output_verbose_link_cmd='echo' |
| 15737 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15738 | 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] | 15739 | # 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] | 15740 | 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}' |
| 15741 | 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] | 15742 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15743 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15744 | xlc*) |
| 15745 | output_verbose_link_cmd='echo' |
| 15746 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15747 | 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] | 15748 | # 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] | 15749 | 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}' |
| 15750 | 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] | 15751 | ;; |
| 15752 | *) |
| 15753 | ld_shlibs=no |
| 15754 | ;; |
| 15755 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15756 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15757 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15758 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15759 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15760 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15761 | hardcode_libdir_flag_spec='-L$libdir' |
| 15762 | hardcode_shlibpath_var=no |
| 15763 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15764 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15765 | freebsd1*) |
| 15766 | ld_shlibs=no |
| 15767 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15768 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15769 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15770 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15771 | # does not break anything, and helps significantly (at the cost of a little |
| 15772 | # extra space). |
| 15773 | freebsd2.2*) |
| 15774 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15775 | hardcode_libdir_flag_spec='-R$libdir' |
| 15776 | hardcode_direct=yes |
| 15777 | hardcode_shlibpath_var=no |
| 15778 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15779 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15780 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15781 | freebsd2*) |
| 15782 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15783 | hardcode_direct=yes |
| 15784 | hardcode_minus_L=yes |
| 15785 | hardcode_shlibpath_var=no |
| 15786 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15787 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15788 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15789 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15790 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15791 | hardcode_libdir_flag_spec='-R$libdir' |
| 15792 | hardcode_direct=yes |
| 15793 | hardcode_shlibpath_var=no |
| 15794 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15795 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15796 | hpux9*) |
| 15797 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15798 | 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] | 15799 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15800 | 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] | 15801 | fi |
| 15802 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15803 | hardcode_libdir_separator=: |
| 15804 | hardcode_direct=yes |
| 15805 | |
| 15806 | # hardcode_minus_L: Not really in the search PATH, |
| 15807 | # but as the default location of the library. |
| 15808 | hardcode_minus_L=yes |
| 15809 | export_dynamic_flag_spec='${wl}-E' |
| 15810 | ;; |
| 15811 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15812 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15813 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15814 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15815 | else |
| 15816 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15817 | fi |
| 15818 | if test "$with_gnu_ld" = no; then |
| 15819 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15820 | hardcode_libdir_separator=: |
| 15821 | |
| 15822 | hardcode_direct=yes |
| 15823 | export_dynamic_flag_spec='${wl}-E' |
| 15824 | |
| 15825 | # hardcode_minus_L: Not really in the search PATH, |
| 15826 | # but as the default location of the library. |
| 15827 | hardcode_minus_L=yes |
| 15828 | fi |
| 15829 | ;; |
| 15830 | |
| 15831 | hpux11*) |
| 15832 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15833 | case $host_cpu in |
| 15834 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15835 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15836 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15837 | ia64*) |
| 15838 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15839 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15840 | *) |
| 15841 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15842 | ;; |
| 15843 | esac |
| 15844 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15845 | case $host_cpu in |
| 15846 | hppa*64*) |
| 15847 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15848 | ;; |
| 15849 | ia64*) |
| 15850 | 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] | 15851 | ;; |
| 15852 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15853 | 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] | 15854 | ;; |
| 15855 | esac |
| 15856 | fi |
| 15857 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15858 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15859 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15861 | case $host_cpu in |
| 15862 | hppa*64*|ia64*) |
| 15863 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15864 | hardcode_direct=no |
| 15865 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15866 | ;; |
| 15867 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15868 | hardcode_direct=yes |
| 15869 | export_dynamic_flag_spec='${wl}-E' |
| 15870 | |
| 15871 | # hardcode_minus_L: Not really in the search PATH, |
| 15872 | # but as the default location of the library. |
| 15873 | hardcode_minus_L=yes |
| 15874 | ;; |
| 15875 | esac |
| 15876 | fi |
| 15877 | ;; |
| 15878 | |
| 15879 | irix5* | irix6* | nonstopux*) |
| 15880 | if test "$GCC" = yes; then |
| 15881 | 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' |
| 15882 | else |
| 15883 | 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' |
| 15884 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15885 | fi |
| 15886 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15887 | hardcode_libdir_separator=: |
| 15888 | link_all_deplibs=yes |
| 15889 | ;; |
| 15890 | |
| 15891 | netbsd*) |
| 15892 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15893 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15894 | else |
| 15895 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15896 | fi |
| 15897 | hardcode_libdir_flag_spec='-R$libdir' |
| 15898 | hardcode_direct=yes |
| 15899 | hardcode_shlibpath_var=no |
| 15900 | ;; |
| 15901 | |
| 15902 | newsos6) |
| 15903 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15904 | hardcode_direct=yes |
| 15905 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15906 | hardcode_libdir_separator=: |
| 15907 | hardcode_shlibpath_var=no |
| 15908 | ;; |
| 15909 | |
| 15910 | openbsd*) |
| 15911 | hardcode_direct=yes |
| 15912 | hardcode_shlibpath_var=no |
| 15913 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15914 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15915 | 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] | 15916 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15917 | export_dynamic_flag_spec='${wl}-E' |
| 15918 | else |
| 15919 | case $host_os in |
| 15920 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15921 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15922 | hardcode_libdir_flag_spec='-R$libdir' |
| 15923 | ;; |
| 15924 | *) |
| 15925 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15926 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15927 | ;; |
| 15928 | esac |
| 15929 | fi |
| 15930 | ;; |
| 15931 | |
| 15932 | os2*) |
| 15933 | hardcode_libdir_flag_spec='-L$libdir' |
| 15934 | hardcode_minus_L=yes |
| 15935 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15936 | 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] | 15937 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15938 | ;; |
| 15939 | |
| 15940 | osf3*) |
| 15941 | if test "$GCC" = yes; then |
| 15942 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15943 | 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' |
| 15944 | else |
| 15945 | allow_undefined_flag=' -expect_unresolved \*' |
| 15946 | 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' |
| 15947 | fi |
| 15948 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15949 | hardcode_libdir_separator=: |
| 15950 | ;; |
| 15951 | |
| 15952 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15953 | if test "$GCC" = yes; then |
| 15954 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15955 | 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' |
| 15956 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15957 | else |
| 15958 | allow_undefined_flag=' -expect_unresolved \*' |
| 15959 | 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] | 15960 | 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] | 15961 | $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] | 15962 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15963 | # Both c and cxx compiler support -rpath directly |
| 15964 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15965 | fi |
| 15966 | hardcode_libdir_separator=: |
| 15967 | ;; |
| 15968 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15969 | solaris*) |
| 15970 | no_undefined_flag=' -z text' |
| 15971 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15972 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15973 | 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] | 15974 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15975 | $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] | 15976 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15977 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15978 | 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] | 15979 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15980 | $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] | 15981 | fi |
| 15982 | hardcode_libdir_flag_spec='-R$libdir' |
| 15983 | hardcode_shlibpath_var=no |
| 15984 | case $host_os in |
| 15985 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15986 | *) |
| 15987 | # The compiler driver will combine linker options so we |
| 15988 | # cannot just pass the convience library names through |
| 15989 | # without $wl, iff we do not link with $LD. |
| 15990 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15991 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15992 | case $wlarc in |
| 15993 | '') |
| 15994 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15995 | *) |
| 15996 | 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' ;; |
| 15997 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15998 | esac |
| 15999 | link_all_deplibs=yes |
| 16000 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16001 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16002 | sunos4*) |
| 16003 | if test "x$host_vendor" = xsequent; then |
| 16004 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16005 | # files that make .init and .fini sections work. |
| 16006 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16007 | else |
| 16008 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16009 | fi |
| 16010 | hardcode_libdir_flag_spec='-L$libdir' |
| 16011 | hardcode_direct=yes |
| 16012 | hardcode_minus_L=yes |
| 16013 | hardcode_shlibpath_var=no |
| 16014 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16015 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16016 | sysv4) |
| 16017 | case $host_vendor in |
| 16018 | sni) |
| 16019 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16020 | hardcode_direct=yes # is this really true??? |
| 16021 | ;; |
| 16022 | siemens) |
| 16023 | ## LD is ld it makes a PLAMLIB |
| 16024 | ## CC just makes a GrossModule. |
| 16025 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16026 | reload_cmds='$CC -r -o $output$reload_objs' |
| 16027 | hardcode_direct=no |
| 16028 | ;; |
| 16029 | motorola) |
| 16030 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16031 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16032 | ;; |
| 16033 | esac |
| 16034 | runpath_var='LD_RUN_PATH' |
| 16035 | hardcode_shlibpath_var=no |
| 16036 | ;; |
| 16037 | |
| 16038 | sysv4.3*) |
| 16039 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16040 | hardcode_shlibpath_var=no |
| 16041 | export_dynamic_flag_spec='-Bexport' |
| 16042 | ;; |
| 16043 | |
| 16044 | sysv4*MP*) |
| 16045 | if test -d /usr/nec; then |
| 16046 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16047 | hardcode_shlibpath_var=no |
| 16048 | runpath_var=LD_RUN_PATH |
| 16049 | hardcode_runpath_var=yes |
| 16050 | ld_shlibs=yes |
| 16051 | fi |
| 16052 | ;; |
| 16053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16054 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16055 | no_undefined_flag='${wl}-z,text' |
| 16056 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16057 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16058 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16060 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16061 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16062 | 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] | 16063 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16064 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16065 | 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] | 16066 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16067 | ;; |
| 16068 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16069 | sysv5* | sco3.2v5* | sco5v6*) |
| 16070 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16071 | # link with -lc, and that would cause any symbols used from libc to |
| 16072 | # always be unresolved, which means just about no library would |
| 16073 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16074 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16075 | # as -z defs. |
| 16076 | no_undefined_flag='${wl}-z,text' |
| 16077 | allow_undefined_flag='${wl}-z,nodefs' |
| 16078 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16079 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16080 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16081 | hardcode_libdir_separator=':' |
| 16082 | link_all_deplibs=yes |
| 16083 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16084 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16085 | |
| 16086 | if test "$GCC" = yes; then |
| 16087 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16088 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16089 | else |
| 16090 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16091 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16092 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16093 | ;; |
| 16094 | |
| 16095 | uts4*) |
| 16096 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16097 | hardcode_libdir_flag_spec='-L$libdir' |
| 16098 | hardcode_shlibpath_var=no |
| 16099 | ;; |
| 16100 | |
| 16101 | *) |
| 16102 | ld_shlibs=no |
| 16103 | ;; |
| 16104 | esac |
| 16105 | fi |
| 16106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16107 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 16108 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16109 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16110 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16111 | # |
| 16112 | # Do we need to explicitly link libc? |
| 16113 | # |
| 16114 | case "x$archive_cmds_need_lc" in |
| 16115 | x|xyes) |
| 16116 | # Assume -lc should be added |
| 16117 | archive_cmds_need_lc=yes |
| 16118 | |
| 16119 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16120 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16121 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16122 | # FIXME: we may have to deal with multi-command sequences. |
| 16123 | ;; |
| 16124 | '$CC '*) |
| 16125 | # Test whether the compiler implicitly links with -lc since on some |
| 16126 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16127 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16128 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16129 | 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] | 16130 | $rm conftest* |
| 16131 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16132 | |
| 16133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16134 | (eval $ac_compile) 2>&5 |
| 16135 | ac_status=$? |
| 16136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16137 | (exit $ac_status); } 2>conftest.err; then |
| 16138 | soname=conftest |
| 16139 | lib=conftest |
| 16140 | libobjs=conftest.$ac_objext |
| 16141 | deplibs= |
| 16142 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16143 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16144 | compiler_flags=-v |
| 16145 | linker_flags=-v |
| 16146 | verstring= |
| 16147 | output_objdir=. |
| 16148 | libname=conftest |
| 16149 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16150 | allow_undefined_flag= |
| 16151 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16152 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16153 | ac_status=$? |
| 16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16155 | (exit $ac_status); } |
| 16156 | then |
| 16157 | archive_cmds_need_lc=no |
| 16158 | else |
| 16159 | archive_cmds_need_lc=yes |
| 16160 | fi |
| 16161 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16162 | else |
| 16163 | cat conftest.err 1>&5 |
| 16164 | fi |
| 16165 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16166 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 16167 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16168 | ;; |
| 16169 | esac |
| 16170 | fi |
| 16171 | ;; |
| 16172 | esac |
| 16173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16174 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16175 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16176 | library_names_spec= |
| 16177 | libname_spec='lib$name' |
| 16178 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16179 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16180 | postinstall_cmds= |
| 16181 | postuninstall_cmds= |
| 16182 | finish_cmds= |
| 16183 | finish_eval= |
| 16184 | shlibpath_var= |
| 16185 | shlibpath_overrides_runpath=unknown |
| 16186 | version_type=none |
| 16187 | dynamic_linker="$host_os ld.so" |
| 16188 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16189 | if test "$GCC" = yes; then |
| 16190 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16191 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16192 | # if the path contains ";" then we assume it to be the separator |
| 16193 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16194 | # assumed that no part of a normal pathname contains ";" but that should |
| 16195 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16196 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16197 | else |
| 16198 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16199 | fi |
| 16200 | else |
| 16201 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16202 | fi |
| 16203 | need_lib_prefix=unknown |
| 16204 | hardcode_into_libs=no |
| 16205 | |
| 16206 | # when you set need_version to no, make sure it does not cause -set_version |
| 16207 | # flags to be left without arguments |
| 16208 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16209 | |
| 16210 | case $host_os in |
| 16211 | aix3*) |
| 16212 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16213 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16214 | shlibpath_var=LIBPATH |
| 16215 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16216 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16217 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16218 | ;; |
| 16219 | |
| 16220 | aix4* | aix5*) |
| 16221 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16222 | need_lib_prefix=no |
| 16223 | need_version=no |
| 16224 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16225 | if test "$host_cpu" = ia64; then |
| 16226 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16227 | 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] | 16228 | shlibpath_var=LD_LIBRARY_PATH |
| 16229 | else |
| 16230 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16231 | # for dependence libraries. The import file would start with |
| 16232 | # the line `#! .'. This would cause the generated library to |
| 16233 | # depend on `.', always an invalid library. This was fixed in |
| 16234 | # development snapshots of GCC prior to 3.0. |
| 16235 | case $host_os in |
| 16236 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16237 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16238 | echo ' yes ' |
| 16239 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16240 | : |
| 16241 | else |
| 16242 | can_build_shared=no |
| 16243 | fi |
| 16244 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16245 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16246 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16247 | # soname into executable. Probably we can add versioning support to |
| 16248 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16249 | if test "$aix_use_runtimelinking" = yes; then |
| 16250 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16251 | # instead of lib<name>.a to let people know that these are not |
| 16252 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16253 | 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] | 16254 | else |
| 16255 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16256 | # and later when we are not doing run time linking. |
| 16257 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16258 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16259 | fi |
| 16260 | shlibpath_var=LIBPATH |
| 16261 | fi |
| 16262 | ;; |
| 16263 | |
| 16264 | amigaos*) |
| 16265 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16266 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16267 | 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] | 16268 | ;; |
| 16269 | |
| 16270 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16271 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16272 | dynamic_linker="$host_os ld.so" |
| 16273 | shlibpath_var=LIBRARY_PATH |
| 16274 | ;; |
| 16275 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16276 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16277 | version_type=linux |
| 16278 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16281 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16282 | shlibpath_var=LD_LIBRARY_PATH |
| 16283 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16284 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16285 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16286 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16287 | # libtool to hard-code these into programs |
| 16288 | ;; |
| 16289 | |
| 16290 | cygwin* | mingw* | pw32*) |
| 16291 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16292 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16293 | need_version=no |
| 16294 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16295 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16296 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16297 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16298 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16299 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16300 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16301 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16302 | dldir=$destdir/`dirname \$dlpath`~ |
| 16303 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16304 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16305 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16306 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16307 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16308 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16309 | shlibpath_overrides_runpath=yes |
| 16310 | |
| 16311 | case $host_os in |
| 16312 | cygwin*) |
| 16313 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16314 | 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] | 16315 | 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] | 16316 | ;; |
| 16317 | mingw*) |
| 16318 | # MinGW DLLs use traditional 'lib' prefix |
| 16319 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16320 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16321 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16322 | # It is most probably a Windows format PATH printed by |
| 16323 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16324 | # path with ; separators, and with drive letters. We can handle the |
| 16325 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16326 | # especially as we might pass files found there to a mingw objdump, |
| 16327 | # which wouldn't understand a cygwinified path. Ahh. |
| 16328 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16329 | else |
| 16330 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16331 | fi |
| 16332 | ;; |
| 16333 | pw32*) |
| 16334 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16335 | 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] | 16336 | ;; |
| 16337 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16338 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16339 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16340 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16341 | 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] | 16342 | ;; |
| 16343 | esac |
| 16344 | dynamic_linker='Win32 ld.exe' |
| 16345 | # FIXME: first we should search . and the directory the executable is in |
| 16346 | shlibpath_var=PATH |
| 16347 | ;; |
| 16348 | |
| 16349 | darwin* | rhapsody*) |
| 16350 | dynamic_linker="$host_os dyld" |
| 16351 | version_type=darwin |
| 16352 | need_lib_prefix=no |
| 16353 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16354 | 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] | 16355 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16356 | shlibpath_overrides_runpath=yes |
| 16357 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16358 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16359 | # 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] | 16360 | if test "$GCC" = yes; then |
| 16361 | 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"` |
| 16362 | else |
| 16363 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16364 | fi |
| 16365 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16366 | ;; |
| 16367 | |
| 16368 | dgux*) |
| 16369 | version_type=linux |
| 16370 | need_lib_prefix=no |
| 16371 | need_version=no |
| 16372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16374 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16375 | ;; |
| 16376 | |
| 16377 | freebsd1*) |
| 16378 | dynamic_linker=no |
| 16379 | ;; |
| 16380 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16381 | kfreebsd*-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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16393 | freebsd* | dragonfly*) |
| 16394 | # DragonFly does not have aout. When/if they implement a new |
| 16395 | # versioning mechanism, adjust this. |
| 16396 | if test -x /usr/bin/objformat; then |
| 16397 | objformat=`/usr/bin/objformat` |
| 16398 | else |
| 16399 | case $host_os in |
| 16400 | freebsd[123]*) objformat=aout ;; |
| 16401 | *) objformat=elf ;; |
| 16402 | esac |
| 16403 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16404 | version_type=freebsd-$objformat |
| 16405 | case $version_type in |
| 16406 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16407 | 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] | 16408 | need_version=no |
| 16409 | need_lib_prefix=no |
| 16410 | ;; |
| 16411 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16412 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16413 | need_version=yes |
| 16414 | ;; |
| 16415 | esac |
| 16416 | shlibpath_var=LD_LIBRARY_PATH |
| 16417 | case $host_os in |
| 16418 | freebsd2*) |
| 16419 | shlibpath_overrides_runpath=yes |
| 16420 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16421 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16422 | shlibpath_overrides_runpath=yes |
| 16423 | hardcode_into_libs=yes |
| 16424 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16425 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16426 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16427 | shlibpath_overrides_runpath=no |
| 16428 | hardcode_into_libs=yes |
| 16429 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16430 | freebsd*) # from 4.6 on |
| 16431 | shlibpath_overrides_runpath=yes |
| 16432 | hardcode_into_libs=yes |
| 16433 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16434 | esac |
| 16435 | ;; |
| 16436 | |
| 16437 | gnu*) |
| 16438 | version_type=linux |
| 16439 | need_lib_prefix=no |
| 16440 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16442 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16443 | shlibpath_var=LD_LIBRARY_PATH |
| 16444 | hardcode_into_libs=yes |
| 16445 | ;; |
| 16446 | |
| 16447 | hpux9* | hpux10* | hpux11*) |
| 16448 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16449 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16450 | version_type=sunos |
| 16451 | need_lib_prefix=no |
| 16452 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16453 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16454 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16455 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16456 | hardcode_into_libs=yes |
| 16457 | dynamic_linker="$host_os dld.so" |
| 16458 | shlibpath_var=LD_LIBRARY_PATH |
| 16459 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16462 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16463 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16464 | else |
| 16465 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16466 | fi |
| 16467 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16468 | ;; |
| 16469 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16470 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16471 | hardcode_into_libs=yes |
| 16472 | dynamic_linker="$host_os dld.sl" |
| 16473 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16474 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16476 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16477 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16478 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16479 | ;; |
| 16480 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16481 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16482 | dynamic_linker="$host_os dld.sl" |
| 16483 | shlibpath_var=SHLIB_PATH |
| 16484 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16487 | ;; |
| 16488 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16489 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16490 | postinstall_cmds='chmod 555 $lib' |
| 16491 | ;; |
| 16492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16493 | interix3*) |
| 16494 | version_type=linux |
| 16495 | need_lib_prefix=no |
| 16496 | need_version=no |
| 16497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16498 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16499 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16500 | shlibpath_var=LD_LIBRARY_PATH |
| 16501 | shlibpath_overrides_runpath=no |
| 16502 | hardcode_into_libs=yes |
| 16503 | ;; |
| 16504 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16505 | irix5* | irix6* | nonstopux*) |
| 16506 | case $host_os in |
| 16507 | nonstopux*) version_type=nonstopux ;; |
| 16508 | *) |
| 16509 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16510 | version_type=linux |
| 16511 | else |
| 16512 | version_type=irix |
| 16513 | fi ;; |
| 16514 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16515 | need_lib_prefix=no |
| 16516 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16517 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16518 | 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] | 16519 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16520 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16521 | libsuff= shlibsuff= |
| 16522 | ;; |
| 16523 | *) |
| 16524 | 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] | 16525 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16526 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16527 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16528 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16529 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16530 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16531 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16532 | esac |
| 16533 | ;; |
| 16534 | esac |
| 16535 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16536 | shlibpath_overrides_runpath=no |
| 16537 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16538 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16539 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16540 | ;; |
| 16541 | |
| 16542 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16543 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16544 | dynamic_linker=no |
| 16545 | ;; |
| 16546 | |
| 16547 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16548 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16549 | version_type=linux |
| 16550 | need_lib_prefix=no |
| 16551 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16553 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16554 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16555 | shlibpath_var=LD_LIBRARY_PATH |
| 16556 | shlibpath_overrides_runpath=no |
| 16557 | # This implies no fast_install, which is unacceptable. |
| 16558 | # Some rework will be needed to allow for fast_install |
| 16559 | # before this can be enabled. |
| 16560 | hardcode_into_libs=yes |
| 16561 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16562 | # Append ld.so.conf contents to the search path |
| 16563 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16564 | 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] | 16565 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16566 | fi |
| 16567 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16568 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16569 | # powerpc, because MkLinux only supported shared libraries with the |
| 16570 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16571 | # most powerpc-linux boxes support dynamic linking these days and |
| 16572 | # people can always --disable-shared, the test was removed, and we |
| 16573 | # assume the GNU/Linux dynamic linker is in use. |
| 16574 | dynamic_linker='GNU/Linux ld.so' |
| 16575 | ;; |
| 16576 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16577 | knetbsd*-gnu) |
| 16578 | version_type=linux |
| 16579 | need_lib_prefix=no |
| 16580 | need_version=no |
| 16581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16582 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16583 | shlibpath_var=LD_LIBRARY_PATH |
| 16584 | shlibpath_overrides_runpath=no |
| 16585 | hardcode_into_libs=yes |
| 16586 | dynamic_linker='GNU ld.so' |
| 16587 | ;; |
| 16588 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16589 | netbsd*) |
| 16590 | version_type=sunos |
| 16591 | need_lib_prefix=no |
| 16592 | need_version=no |
| 16593 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16595 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16596 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16597 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16598 | 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] | 16599 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16600 | dynamic_linker='NetBSD ld.elf_so' |
| 16601 | fi |
| 16602 | shlibpath_var=LD_LIBRARY_PATH |
| 16603 | shlibpath_overrides_runpath=yes |
| 16604 | hardcode_into_libs=yes |
| 16605 | ;; |
| 16606 | |
| 16607 | newsos6) |
| 16608 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16610 | shlibpath_var=LD_LIBRARY_PATH |
| 16611 | shlibpath_overrides_runpath=yes |
| 16612 | ;; |
| 16613 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16614 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16615 | version_type=linux |
| 16616 | need_lib_prefix=no |
| 16617 | need_version=no |
| 16618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16619 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16620 | shlibpath_var=LD_LIBRARY_PATH |
| 16621 | shlibpath_overrides_runpath=yes |
| 16622 | ;; |
| 16623 | |
| 16624 | openbsd*) |
| 16625 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16626 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16627 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16628 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16629 | case $host_os in |
| 16630 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16631 | *) need_version=no ;; |
| 16632 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16634 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16635 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16636 | 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] | 16637 | case $host_os in |
| 16638 | openbsd2.[89] | openbsd2.[89].*) |
| 16639 | shlibpath_overrides_runpath=no |
| 16640 | ;; |
| 16641 | *) |
| 16642 | shlibpath_overrides_runpath=yes |
| 16643 | ;; |
| 16644 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16645 | else |
| 16646 | shlibpath_overrides_runpath=yes |
| 16647 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16648 | ;; |
| 16649 | |
| 16650 | os2*) |
| 16651 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16652 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16653 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16654 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16655 | dynamic_linker='OS/2 ld.exe' |
| 16656 | shlibpath_var=LIBPATH |
| 16657 | ;; |
| 16658 | |
| 16659 | osf3* | osf4* | osf5*) |
| 16660 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16661 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16662 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16663 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16664 | 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] | 16665 | shlibpath_var=LD_LIBRARY_PATH |
| 16666 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16667 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16668 | ;; |
| 16669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16670 | solaris*) |
| 16671 | version_type=linux |
| 16672 | need_lib_prefix=no |
| 16673 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16675 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16676 | shlibpath_var=LD_LIBRARY_PATH |
| 16677 | shlibpath_overrides_runpath=yes |
| 16678 | hardcode_into_libs=yes |
| 16679 | # ldd complains unless libraries are executable |
| 16680 | postinstall_cmds='chmod +x $lib' |
| 16681 | ;; |
| 16682 | |
| 16683 | sunos4*) |
| 16684 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16686 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16687 | shlibpath_var=LD_LIBRARY_PATH |
| 16688 | shlibpath_overrides_runpath=yes |
| 16689 | if test "$with_gnu_ld" = yes; then |
| 16690 | need_lib_prefix=no |
| 16691 | fi |
| 16692 | need_version=yes |
| 16693 | ;; |
| 16694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16695 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16696 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16698 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16699 | shlibpath_var=LD_LIBRARY_PATH |
| 16700 | case $host_vendor in |
| 16701 | sni) |
| 16702 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16703 | need_lib_prefix=no |
| 16704 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16705 | runpath_var=LD_RUN_PATH |
| 16706 | ;; |
| 16707 | siemens) |
| 16708 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16709 | ;; |
| 16710 | motorola) |
| 16711 | need_lib_prefix=no |
| 16712 | need_version=no |
| 16713 | shlibpath_overrides_runpath=no |
| 16714 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16715 | ;; |
| 16716 | esac |
| 16717 | ;; |
| 16718 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16719 | sysv4*MP*) |
| 16720 | if test -d /usr/nec ;then |
| 16721 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16722 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16723 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16724 | shlibpath_var=LD_LIBRARY_PATH |
| 16725 | fi |
| 16726 | ;; |
| 16727 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16728 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16729 | version_type=freebsd-elf |
| 16730 | need_lib_prefix=no |
| 16731 | need_version=no |
| 16732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16734 | shlibpath_var=LD_LIBRARY_PATH |
| 16735 | hardcode_into_libs=yes |
| 16736 | if test "$with_gnu_ld" = yes; then |
| 16737 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16738 | shlibpath_overrides_runpath=no |
| 16739 | else |
| 16740 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16741 | shlibpath_overrides_runpath=yes |
| 16742 | case $host_os in |
| 16743 | sco3.2v5*) |
| 16744 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16745 | ;; |
| 16746 | esac |
| 16747 | fi |
| 16748 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16749 | ;; |
| 16750 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16751 | uts4*) |
| 16752 | version_type=linux |
| 16753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16754 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16755 | shlibpath_var=LD_LIBRARY_PATH |
| 16756 | ;; |
| 16757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16758 | *) |
| 16759 | dynamic_linker=no |
| 16760 | ;; |
| 16761 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16762 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16763 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16764 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16766 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16767 | if test "$GCC" = yes; then |
| 16768 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16769 | fi |
| 16770 | |
| 16771 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16772 | 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] | 16773 | hardcode_action= |
| 16774 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16775 | test -n "$runpath_var" || \ |
| 16776 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16777 | |
| 16778 | # We can hardcode non-existant directories. |
| 16779 | if test "$hardcode_direct" != no && |
| 16780 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16781 | # have to relink, otherwise we might link with an installed library |
| 16782 | # when we should be linking with a yet-to-be-installed one |
| 16783 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16784 | test "$hardcode_minus_L" != no; then |
| 16785 | # Linking always hardcodes the temporary library directory. |
| 16786 | hardcode_action=relink |
| 16787 | else |
| 16788 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16789 | hardcode_action=immediate |
| 16790 | fi |
| 16791 | else |
| 16792 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16793 | # directories. |
| 16794 | hardcode_action=unsupported |
| 16795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16796 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16797 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16798 | |
| 16799 | if test "$hardcode_action" = relink; then |
| 16800 | # Fast installation is not supported |
| 16801 | enable_fast_install=no |
| 16802 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16803 | test "$enable_shared" = no; then |
| 16804 | # Fast installation is not necessary |
| 16805 | enable_fast_install=needless |
| 16806 | fi |
| 16807 | |
| 16808 | striplib= |
| 16809 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16810 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16811 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16812 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16813 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16814 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16815 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16816 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16817 | else |
| 16818 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16819 | case $host_os in |
| 16820 | darwin*) |
| 16821 | if test -n "$STRIP" ; then |
| 16822 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16823 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16824 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16825 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16826 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16827 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16828 | fi |
| 16829 | ;; |
| 16830 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16831 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16832 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16833 | ;; |
| 16834 | esac |
| 16835 | fi |
| 16836 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16837 | if test "x$enable_dlopen" != xyes; then |
| 16838 | enable_dlopen=unknown |
| 16839 | enable_dlopen_self=unknown |
| 16840 | enable_dlopen_self_static=unknown |
| 16841 | else |
| 16842 | lt_cv_dlopen=no |
| 16843 | lt_cv_dlopen_libs= |
| 16844 | |
| 16845 | case $host_os in |
| 16846 | beos*) |
| 16847 | lt_cv_dlopen="load_add_on" |
| 16848 | lt_cv_dlopen_libs= |
| 16849 | lt_cv_dlopen_self=yes |
| 16850 | ;; |
| 16851 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16852 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16853 | lt_cv_dlopen="LoadLibrary" |
| 16854 | lt_cv_dlopen_libs= |
| 16855 | ;; |
| 16856 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16857 | cygwin*) |
| 16858 | lt_cv_dlopen="dlopen" |
| 16859 | lt_cv_dlopen_libs= |
| 16860 | ;; |
| 16861 | |
| 16862 | darwin*) |
| 16863 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16864 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16865 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16866 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16868 | else |
| 16869 | ac_check_lib_save_LIBS=$LIBS |
| 16870 | LIBS="-ldl $LIBS" |
| 16871 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16872 | /* confdefs.h. */ |
| 16873 | _ACEOF |
| 16874 | cat confdefs.h >>conftest.$ac_ext |
| 16875 | cat >>conftest.$ac_ext <<_ACEOF |
| 16876 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16878 | /* Override any GCC internal prototype to avoid an error. |
| 16879 | Use char because int might match the return type of a GCC |
| 16880 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16881 | #ifdef __cplusplus |
| 16882 | extern "C" |
| 16883 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16884 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16885 | int |
| 16886 | main () |
| 16887 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16888 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16889 | ; |
| 16890 | return 0; |
| 16891 | } |
| 16892 | _ACEOF |
| 16893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16894 | if { (ac_try="$ac_link" |
| 16895 | case "(($ac_try" in |
| 16896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16897 | *) ac_try_echo=$ac_try;; |
| 16898 | esac |
| 16899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16900 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16901 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16903 | rm -f conftest.er1 |
| 16904 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 16906 | (exit $ac_status); } && |
| 16907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16908 | { (case "(($ac_try" in |
| 16909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16910 | *) ac_try_echo=$ac_try;; |
| 16911 | esac |
| 16912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16913 | (eval "$ac_try") 2>&5 |
| 16914 | ac_status=$? |
| 16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16916 | (exit $ac_status); }; } && |
| 16917 | { ac_try='test -s conftest$ac_exeext' |
| 16918 | { (case "(($ac_try" in |
| 16919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16920 | *) ac_try_echo=$ac_try;; |
| 16921 | esac |
| 16922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16923 | (eval "$ac_try") 2>&5 |
| 16924 | ac_status=$? |
| 16925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16926 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16927 | ac_cv_lib_dl_dlopen=yes |
| 16928 | else |
| 16929 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16932 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16934 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 16935 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16936 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16937 | LIBS=$ac_check_lib_save_LIBS |
| 16938 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16939 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16940 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16941 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16942 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16943 | else |
| 16944 | |
| 16945 | lt_cv_dlopen="dyld" |
| 16946 | lt_cv_dlopen_libs= |
| 16947 | lt_cv_dlopen_self=yes |
| 16948 | |
| 16949 | fi |
| 16950 | |
| 16951 | ;; |
| 16952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16953 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16954 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16955 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16956 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16958 | else |
| 16959 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16960 | /* confdefs.h. */ |
| 16961 | _ACEOF |
| 16962 | cat confdefs.h >>conftest.$ac_ext |
| 16963 | cat >>conftest.$ac_ext <<_ACEOF |
| 16964 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16965 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16967 | #define shl_load innocuous_shl_load |
| 16968 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16969 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16970 | which can conflict with char shl_load (); below. |
| 16971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16972 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16973 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16974 | #ifdef __STDC__ |
| 16975 | # include <limits.h> |
| 16976 | #else |
| 16977 | # include <assert.h> |
| 16978 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16979 | |
| 16980 | #undef shl_load |
| 16981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16982 | /* Override any GCC internal prototype to avoid an error. |
| 16983 | Use char because int might match the return type of a GCC |
| 16984 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16985 | #ifdef __cplusplus |
| 16986 | extern "C" |
| 16987 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16988 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16989 | /* The GNU C library defines this for functions which it implements |
| 16990 | to always fail with ENOSYS. Some functions are actually named |
| 16991 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16992 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16993 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16994 | #endif |
| 16995 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16996 | int |
| 16997 | main () |
| 16998 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16999 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17000 | ; |
| 17001 | return 0; |
| 17002 | } |
| 17003 | _ACEOF |
| 17004 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17005 | if { (ac_try="$ac_link" |
| 17006 | case "(($ac_try" in |
| 17007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17008 | *) ac_try_echo=$ac_try;; |
| 17009 | esac |
| 17010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17011 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17012 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17014 | rm -f conftest.er1 |
| 17015 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17017 | (exit $ac_status); } && |
| 17018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17019 | { (case "(($ac_try" in |
| 17020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17021 | *) ac_try_echo=$ac_try;; |
| 17022 | esac |
| 17023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17024 | (eval "$ac_try") 2>&5 |
| 17025 | ac_status=$? |
| 17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17027 | (exit $ac_status); }; } && |
| 17028 | { ac_try='test -s conftest$ac_exeext' |
| 17029 | { (case "(($ac_try" in |
| 17030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17031 | *) ac_try_echo=$ac_try;; |
| 17032 | esac |
| 17033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17034 | (eval "$ac_try") 2>&5 |
| 17035 | ac_status=$? |
| 17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17037 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17038 | ac_cv_func_shl_load=yes |
| 17039 | else |
| 17040 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17043 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17044 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17045 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17046 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17047 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17049 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17050 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17051 | if test $ac_cv_func_shl_load = yes; then |
| 17052 | lt_cv_dlopen="shl_load" |
| 17053 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17054 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17055 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17056 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17058 | else |
| 17059 | ac_check_lib_save_LIBS=$LIBS |
| 17060 | LIBS="-ldld $LIBS" |
| 17061 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17062 | /* confdefs.h. */ |
| 17063 | _ACEOF |
| 17064 | cat confdefs.h >>conftest.$ac_ext |
| 17065 | cat >>conftest.$ac_ext <<_ACEOF |
| 17066 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17068 | /* Override any GCC internal prototype to avoid an error. |
| 17069 | Use char because int might match the return type of a GCC |
| 17070 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17071 | #ifdef __cplusplus |
| 17072 | extern "C" |
| 17073 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17074 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17075 | int |
| 17076 | main () |
| 17077 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17078 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17079 | ; |
| 17080 | return 0; |
| 17081 | } |
| 17082 | _ACEOF |
| 17083 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17084 | if { (ac_try="$ac_link" |
| 17085 | case "(($ac_try" in |
| 17086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17087 | *) ac_try_echo=$ac_try;; |
| 17088 | esac |
| 17089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17090 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17091 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17093 | rm -f conftest.er1 |
| 17094 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17096 | (exit $ac_status); } && |
| 17097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17098 | { (case "(($ac_try" in |
| 17099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17100 | *) ac_try_echo=$ac_try;; |
| 17101 | esac |
| 17102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17103 | (eval "$ac_try") 2>&5 |
| 17104 | ac_status=$? |
| 17105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17106 | (exit $ac_status); }; } && |
| 17107 | { ac_try='test -s conftest$ac_exeext' |
| 17108 | { (case "(($ac_try" in |
| 17109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17110 | *) ac_try_echo=$ac_try;; |
| 17111 | esac |
| 17112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17113 | (eval "$ac_try") 2>&5 |
| 17114 | ac_status=$? |
| 17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17116 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17117 | ac_cv_lib_dld_shl_load=yes |
| 17118 | else |
| 17119 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17122 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17124 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17125 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17126 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17127 | LIBS=$ac_check_lib_save_LIBS |
| 17128 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17129 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17130 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17131 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17132 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17133 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17134 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17135 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17136 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17138 | else |
| 17139 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17140 | /* confdefs.h. */ |
| 17141 | _ACEOF |
| 17142 | cat confdefs.h >>conftest.$ac_ext |
| 17143 | cat >>conftest.$ac_ext <<_ACEOF |
| 17144 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17145 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17147 | #define dlopen innocuous_dlopen |
| 17148 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17149 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17150 | which can conflict with char dlopen (); below. |
| 17151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17152 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17153 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17154 | #ifdef __STDC__ |
| 17155 | # include <limits.h> |
| 17156 | #else |
| 17157 | # include <assert.h> |
| 17158 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17159 | |
| 17160 | #undef dlopen |
| 17161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17162 | /* Override any GCC internal prototype to avoid an error. |
| 17163 | Use char because int might match the return type of a GCC |
| 17164 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17165 | #ifdef __cplusplus |
| 17166 | extern "C" |
| 17167 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17168 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17169 | /* The GNU C library defines this for functions which it implements |
| 17170 | to always fail with ENOSYS. Some functions are actually named |
| 17171 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17172 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17173 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17174 | #endif |
| 17175 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17176 | int |
| 17177 | main () |
| 17178 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17179 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17180 | ; |
| 17181 | return 0; |
| 17182 | } |
| 17183 | _ACEOF |
| 17184 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17185 | if { (ac_try="$ac_link" |
| 17186 | case "(($ac_try" in |
| 17187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17188 | *) ac_try_echo=$ac_try;; |
| 17189 | esac |
| 17190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17191 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17192 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17194 | rm -f conftest.er1 |
| 17195 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17197 | (exit $ac_status); } && |
| 17198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17199 | { (case "(($ac_try" in |
| 17200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17201 | *) ac_try_echo=$ac_try;; |
| 17202 | esac |
| 17203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17204 | (eval "$ac_try") 2>&5 |
| 17205 | ac_status=$? |
| 17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17207 | (exit $ac_status); }; } && |
| 17208 | { ac_try='test -s conftest$ac_exeext' |
| 17209 | { (case "(($ac_try" in |
| 17210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17211 | *) ac_try_echo=$ac_try;; |
| 17212 | esac |
| 17213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17214 | (eval "$ac_try") 2>&5 |
| 17215 | ac_status=$? |
| 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17217 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17218 | ac_cv_func_dlopen=yes |
| 17219 | else |
| 17220 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17223 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17225 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17226 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17227 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17228 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17229 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17230 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17231 | if test $ac_cv_func_dlopen = yes; then |
| 17232 | lt_cv_dlopen="dlopen" |
| 17233 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17234 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17235 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17236 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17238 | else |
| 17239 | ac_check_lib_save_LIBS=$LIBS |
| 17240 | LIBS="-ldl $LIBS" |
| 17241 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17242 | /* confdefs.h. */ |
| 17243 | _ACEOF |
| 17244 | cat confdefs.h >>conftest.$ac_ext |
| 17245 | cat >>conftest.$ac_ext <<_ACEOF |
| 17246 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17248 | /* Override any GCC internal prototype to avoid an error. |
| 17249 | Use char because int might match the return type of a GCC |
| 17250 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17251 | #ifdef __cplusplus |
| 17252 | extern "C" |
| 17253 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17254 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17255 | int |
| 17256 | main () |
| 17257 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17258 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17259 | ; |
| 17260 | return 0; |
| 17261 | } |
| 17262 | _ACEOF |
| 17263 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17264 | if { (ac_try="$ac_link" |
| 17265 | case "(($ac_try" in |
| 17266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17267 | *) ac_try_echo=$ac_try;; |
| 17268 | esac |
| 17269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17270 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17273 | rm -f conftest.er1 |
| 17274 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17276 | (exit $ac_status); } && |
| 17277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17278 | { (case "(($ac_try" in |
| 17279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17280 | *) ac_try_echo=$ac_try;; |
| 17281 | esac |
| 17282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17283 | (eval "$ac_try") 2>&5 |
| 17284 | ac_status=$? |
| 17285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17286 | (exit $ac_status); }; } && |
| 17287 | { ac_try='test -s conftest$ac_exeext' |
| 17288 | { (case "(($ac_try" in |
| 17289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17290 | *) ac_try_echo=$ac_try;; |
| 17291 | esac |
| 17292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17293 | (eval "$ac_try") 2>&5 |
| 17294 | ac_status=$? |
| 17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17296 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17297 | ac_cv_lib_dl_dlopen=yes |
| 17298 | else |
| 17299 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17302 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17303 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17304 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17305 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17306 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17307 | LIBS=$ac_check_lib_save_LIBS |
| 17308 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17309 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17310 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17311 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17312 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17313 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17314 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17315 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17316 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17318 | else |
| 17319 | ac_check_lib_save_LIBS=$LIBS |
| 17320 | LIBS="-lsvld $LIBS" |
| 17321 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17322 | /* confdefs.h. */ |
| 17323 | _ACEOF |
| 17324 | cat confdefs.h >>conftest.$ac_ext |
| 17325 | cat >>conftest.$ac_ext <<_ACEOF |
| 17326 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17328 | /* Override any GCC internal prototype to avoid an error. |
| 17329 | Use char because int might match the return type of a GCC |
| 17330 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17331 | #ifdef __cplusplus |
| 17332 | extern "C" |
| 17333 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17334 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17335 | int |
| 17336 | main () |
| 17337 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17338 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17339 | ; |
| 17340 | return 0; |
| 17341 | } |
| 17342 | _ACEOF |
| 17343 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17344 | if { (ac_try="$ac_link" |
| 17345 | case "(($ac_try" in |
| 17346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17347 | *) ac_try_echo=$ac_try;; |
| 17348 | esac |
| 17349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17350 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17351 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17353 | rm -f conftest.er1 |
| 17354 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17356 | (exit $ac_status); } && |
| 17357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17358 | { (case "(($ac_try" in |
| 17359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17360 | *) ac_try_echo=$ac_try;; |
| 17361 | esac |
| 17362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17363 | (eval "$ac_try") 2>&5 |
| 17364 | ac_status=$? |
| 17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17366 | (exit $ac_status); }; } && |
| 17367 | { ac_try='test -s conftest$ac_exeext' |
| 17368 | { (case "(($ac_try" in |
| 17369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17370 | *) ac_try_echo=$ac_try;; |
| 17371 | esac |
| 17372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17373 | (eval "$ac_try") 2>&5 |
| 17374 | ac_status=$? |
| 17375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17376 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17377 | ac_cv_lib_svld_dlopen=yes |
| 17378 | else |
| 17379 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17382 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17384 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17385 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17386 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17387 | LIBS=$ac_check_lib_save_LIBS |
| 17388 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17389 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17390 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17391 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17392 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17393 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17394 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17395 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17396 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17398 | else |
| 17399 | ac_check_lib_save_LIBS=$LIBS |
| 17400 | LIBS="-ldld $LIBS" |
| 17401 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17402 | /* confdefs.h. */ |
| 17403 | _ACEOF |
| 17404 | cat confdefs.h >>conftest.$ac_ext |
| 17405 | cat >>conftest.$ac_ext <<_ACEOF |
| 17406 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17408 | /* Override any GCC internal prototype to avoid an error. |
| 17409 | Use char because int might match the return type of a GCC |
| 17410 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17411 | #ifdef __cplusplus |
| 17412 | extern "C" |
| 17413 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17414 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17415 | int |
| 17416 | main () |
| 17417 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17418 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17419 | ; |
| 17420 | return 0; |
| 17421 | } |
| 17422 | _ACEOF |
| 17423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17424 | if { (ac_try="$ac_link" |
| 17425 | case "(($ac_try" in |
| 17426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17427 | *) ac_try_echo=$ac_try;; |
| 17428 | esac |
| 17429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17430 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17431 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17433 | rm -f conftest.er1 |
| 17434 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17436 | (exit $ac_status); } && |
| 17437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17438 | { (case "(($ac_try" in |
| 17439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17440 | *) ac_try_echo=$ac_try;; |
| 17441 | esac |
| 17442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17443 | (eval "$ac_try") 2>&5 |
| 17444 | ac_status=$? |
| 17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17446 | (exit $ac_status); }; } && |
| 17447 | { ac_try='test -s conftest$ac_exeext' |
| 17448 | { (case "(($ac_try" in |
| 17449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17450 | *) ac_try_echo=$ac_try;; |
| 17451 | esac |
| 17452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17453 | (eval "$ac_try") 2>&5 |
| 17454 | ac_status=$? |
| 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17456 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17457 | ac_cv_lib_dld_dld_link=yes |
| 17458 | else |
| 17459 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17462 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17463 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17464 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 17465 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17466 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17467 | LIBS=$ac_check_lib_save_LIBS |
| 17468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17469 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17470 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17471 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17472 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17473 | fi |
| 17474 | |
| 17475 | |
| 17476 | fi |
| 17477 | |
| 17478 | |
| 17479 | fi |
| 17480 | |
| 17481 | |
| 17482 | fi |
| 17483 | |
| 17484 | |
| 17485 | fi |
| 17486 | |
| 17487 | |
| 17488 | fi |
| 17489 | |
| 17490 | ;; |
| 17491 | esac |
| 17492 | |
| 17493 | if test "x$lt_cv_dlopen" != xno; then |
| 17494 | enable_dlopen=yes |
| 17495 | else |
| 17496 | enable_dlopen=no |
| 17497 | fi |
| 17498 | |
| 17499 | case $lt_cv_dlopen in |
| 17500 | dlopen) |
| 17501 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17502 | 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] | 17503 | |
| 17504 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17505 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17506 | |
| 17507 | save_LIBS="$LIBS" |
| 17508 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17510 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17511 | 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] | 17512 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17514 | else |
| 17515 | if test "$cross_compiling" = yes; then : |
| 17516 | lt_cv_dlopen_self=cross |
| 17517 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17518 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17519 | lt_status=$lt_dlunknown |
| 17520 | cat > conftest.$ac_ext <<EOF |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 17521 | #line 17521 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17522 | #include "confdefs.h" |
| 17523 | |
| 17524 | #if HAVE_DLFCN_H |
| 17525 | #include <dlfcn.h> |
| 17526 | #endif |
| 17527 | |
| 17528 | #include <stdio.h> |
| 17529 | |
| 17530 | #ifdef RTLD_GLOBAL |
| 17531 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17532 | #else |
| 17533 | # ifdef DL_GLOBAL |
| 17534 | # define LT_DLGLOBAL DL_GLOBAL |
| 17535 | # else |
| 17536 | # define LT_DLGLOBAL 0 |
| 17537 | # endif |
| 17538 | #endif |
| 17539 | |
| 17540 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17541 | find out it does not work in some platform. */ |
| 17542 | #ifndef LT_DLLAZY_OR_NOW |
| 17543 | # ifdef RTLD_LAZY |
| 17544 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17545 | # else |
| 17546 | # ifdef DL_LAZY |
| 17547 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17548 | # else |
| 17549 | # ifdef RTLD_NOW |
| 17550 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17551 | # else |
| 17552 | # ifdef DL_NOW |
| 17553 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17554 | # else |
| 17555 | # define LT_DLLAZY_OR_NOW 0 |
| 17556 | # endif |
| 17557 | # endif |
| 17558 | # endif |
| 17559 | # endif |
| 17560 | #endif |
| 17561 | |
| 17562 | #ifdef __cplusplus |
| 17563 | extern "C" void exit (int); |
| 17564 | #endif |
| 17565 | |
| 17566 | void fnord() { int i=42;} |
| 17567 | int main () |
| 17568 | { |
| 17569 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17570 | int status = $lt_dlunknown; |
| 17571 | |
| 17572 | if (self) |
| 17573 | { |
| 17574 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17575 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17576 | /* dlclose (self); */ |
| 17577 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17578 | else |
| 17579 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17580 | |
| 17581 | exit (status); |
| 17582 | } |
| 17583 | EOF |
| 17584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17585 | (eval $ac_link) 2>&5 |
| 17586 | ac_status=$? |
| 17587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17588 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17589 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17590 | lt_status=$? |
| 17591 | case x$lt_status in |
| 17592 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17593 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17594 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17595 | esac |
| 17596 | else : |
| 17597 | # compilation failed |
| 17598 | lt_cv_dlopen_self=no |
| 17599 | fi |
| 17600 | fi |
| 17601 | rm -fr conftest* |
| 17602 | |
| 17603 | |
| 17604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17605 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17606 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17607 | |
| 17608 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17609 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17610 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17611 | 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] | 17612 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17614 | else |
| 17615 | if test "$cross_compiling" = yes; then : |
| 17616 | lt_cv_dlopen_self_static=cross |
| 17617 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17618 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17619 | lt_status=$lt_dlunknown |
| 17620 | cat > conftest.$ac_ext <<EOF |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 17621 | #line 17621 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17622 | #include "confdefs.h" |
| 17623 | |
| 17624 | #if HAVE_DLFCN_H |
| 17625 | #include <dlfcn.h> |
| 17626 | #endif |
| 17627 | |
| 17628 | #include <stdio.h> |
| 17629 | |
| 17630 | #ifdef RTLD_GLOBAL |
| 17631 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17632 | #else |
| 17633 | # ifdef DL_GLOBAL |
| 17634 | # define LT_DLGLOBAL DL_GLOBAL |
| 17635 | # else |
| 17636 | # define LT_DLGLOBAL 0 |
| 17637 | # endif |
| 17638 | #endif |
| 17639 | |
| 17640 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17641 | find out it does not work in some platform. */ |
| 17642 | #ifndef LT_DLLAZY_OR_NOW |
| 17643 | # ifdef RTLD_LAZY |
| 17644 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17645 | # else |
| 17646 | # ifdef DL_LAZY |
| 17647 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17648 | # else |
| 17649 | # ifdef RTLD_NOW |
| 17650 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17651 | # else |
| 17652 | # ifdef DL_NOW |
| 17653 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17654 | # else |
| 17655 | # define LT_DLLAZY_OR_NOW 0 |
| 17656 | # endif |
| 17657 | # endif |
| 17658 | # endif |
| 17659 | # endif |
| 17660 | #endif |
| 17661 | |
| 17662 | #ifdef __cplusplus |
| 17663 | extern "C" void exit (int); |
| 17664 | #endif |
| 17665 | |
| 17666 | void fnord() { int i=42;} |
| 17667 | int main () |
| 17668 | { |
| 17669 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17670 | int status = $lt_dlunknown; |
| 17671 | |
| 17672 | if (self) |
| 17673 | { |
| 17674 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17675 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17676 | /* dlclose (self); */ |
| 17677 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17678 | else |
| 17679 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17680 | |
| 17681 | exit (status); |
| 17682 | } |
| 17683 | EOF |
| 17684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17685 | (eval $ac_link) 2>&5 |
| 17686 | ac_status=$? |
| 17687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17688 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17689 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17690 | lt_status=$? |
| 17691 | case x$lt_status in |
| 17692 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17693 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17694 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17695 | esac |
| 17696 | else : |
| 17697 | # compilation failed |
| 17698 | lt_cv_dlopen_self_static=no |
| 17699 | fi |
| 17700 | fi |
| 17701 | rm -fr conftest* |
| 17702 | |
| 17703 | |
| 17704 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17705 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17706 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17707 | fi |
| 17708 | |
| 17709 | CPPFLAGS="$save_CPPFLAGS" |
| 17710 | LDFLAGS="$save_LDFLAGS" |
| 17711 | LIBS="$save_LIBS" |
| 17712 | ;; |
| 17713 | esac |
| 17714 | |
| 17715 | case $lt_cv_dlopen_self in |
| 17716 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17717 | *) enable_dlopen_self=unknown ;; |
| 17718 | esac |
| 17719 | |
| 17720 | case $lt_cv_dlopen_self_static in |
| 17721 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17722 | *) enable_dlopen_self_static=unknown ;; |
| 17723 | esac |
| 17724 | fi |
| 17725 | |
| 17726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17727 | # Report which library types will actually be built |
| 17728 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17729 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17730 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17731 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17733 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17734 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17735 | test "$can_build_shared" = "no" && enable_shared=no |
| 17736 | |
| 17737 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17738 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17739 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17740 | aix3*) |
| 17741 | test "$enable_shared" = yes && enable_static=no |
| 17742 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17743 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17744 | postinstall_cmds='$RANLIB $lib' |
| 17745 | fi |
| 17746 | ;; |
| 17747 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17748 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17750 | test "$enable_shared" = yes && enable_static=no |
| 17751 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17752 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17753 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17754 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17755 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17757 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17758 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17759 | # Make sure either enable_shared or enable_static is yes. |
| 17760 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17761 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17762 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17763 | |
| 17764 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17765 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17766 | # with your package, and you will get complaints that there are |
| 17767 | # no rules to generate ltmain.sh. |
| 17768 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17769 | # See if we are running on zsh, and set the options which allow our commands through |
| 17770 | # without removal of \ escapes. |
| 17771 | if test -n "${ZSH_VERSION+set}" ; then |
| 17772 | setopt NO_GLOB_SUBST |
| 17773 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17774 | # Now quote all the things that may contain metacharacters while being |
| 17775 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17776 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17777 | 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] | 17778 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17779 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17780 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17781 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17782 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17783 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17784 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17785 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17786 | compiler \ |
| 17787 | CC \ |
| 17788 | LD \ |
| 17789 | lt_prog_compiler_wl \ |
| 17790 | lt_prog_compiler_pic \ |
| 17791 | lt_prog_compiler_static \ |
| 17792 | lt_prog_compiler_no_builtin_flag \ |
| 17793 | export_dynamic_flag_spec \ |
| 17794 | thread_safe_flag_spec \ |
| 17795 | whole_archive_flag_spec \ |
| 17796 | enable_shared_with_static_runtimes \ |
| 17797 | old_archive_cmds \ |
| 17798 | old_archive_from_new_cmds \ |
| 17799 | predep_objects \ |
| 17800 | postdep_objects \ |
| 17801 | predeps \ |
| 17802 | postdeps \ |
| 17803 | compiler_lib_search_path \ |
| 17804 | archive_cmds \ |
| 17805 | archive_expsym_cmds \ |
| 17806 | postinstall_cmds \ |
| 17807 | postuninstall_cmds \ |
| 17808 | old_archive_from_expsyms_cmds \ |
| 17809 | allow_undefined_flag \ |
| 17810 | no_undefined_flag \ |
| 17811 | export_symbols_cmds \ |
| 17812 | hardcode_libdir_flag_spec \ |
| 17813 | hardcode_libdir_flag_spec_ld \ |
| 17814 | hardcode_libdir_separator \ |
| 17815 | hardcode_automatic \ |
| 17816 | module_cmds \ |
| 17817 | module_expsym_cmds \ |
| 17818 | lt_cv_prog_compiler_c_o \ |
| 17819 | exclude_expsyms \ |
| 17820 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17821 | |
| 17822 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17823 | old_archive_cmds | \ |
| 17824 | old_archive_from_new_cmds | \ |
| 17825 | archive_cmds | \ |
| 17826 | archive_expsym_cmds | \ |
| 17827 | module_cmds | \ |
| 17828 | module_expsym_cmds | \ |
| 17829 | old_archive_from_expsyms_cmds | \ |
| 17830 | export_symbols_cmds | \ |
| 17831 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17832 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17833 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17834 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17835 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17836 | 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] | 17837 | ;; |
| 17838 | *) |
| 17839 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17840 | ;; |
| 17841 | esac |
| 17842 | done |
| 17843 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17844 | case $lt_echo in |
| 17845 | *'\$0 --fallback-echo"') |
| 17846 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17847 | ;; |
| 17848 | esac |
| 17849 | |
| 17850 | cfgfile="${ofile}T" |
| 17851 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17852 | $rm -f "$cfgfile" |
| 17853 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17854 | echo "$as_me: creating $ofile" >&6;} |
| 17855 | |
| 17856 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17857 | #! $SHELL |
| 17858 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17859 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17860 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17861 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17862 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17863 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17864 | # Free Software Foundation, Inc. |
| 17865 | # |
| 17866 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17867 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17868 | # |
| 17869 | # This program is free software; you can redistribute it and/or modify |
| 17870 | # it under the terms of the GNU General Public License as published by |
| 17871 | # the Free Software Foundation; either version 2 of the License, or |
| 17872 | # (at your option) any later version. |
| 17873 | # |
| 17874 | # This program is distributed in the hope that it will be useful, but |
| 17875 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17876 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17877 | # General Public License for more details. |
| 17878 | # |
| 17879 | # You should have received a copy of the GNU General Public License |
| 17880 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17881 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17882 | # |
| 17883 | # As a special exception to the GNU General Public License, if you |
| 17884 | # distribute this file as part of a program that contains a |
| 17885 | # configuration script generated by Autoconf, you may include it under |
| 17886 | # the same distribution terms that you use for the rest of that program. |
| 17887 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17888 | # A sed program that does not truncate output. |
| 17889 | SED=$lt_SED |
| 17890 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17891 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17892 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17893 | |
| 17894 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17895 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17896 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17897 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17898 | # The names of the tagged configurations supported by this script. |
| 17899 | available_tags= |
| 17900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17901 | # ### BEGIN LIBTOOL CONFIG |
| 17902 | |
| 17903 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17904 | |
| 17905 | # Shell to use when invoking shell scripts. |
| 17906 | SHELL=$lt_SHELL |
| 17907 | |
| 17908 | # Whether or not to build shared libraries. |
| 17909 | build_libtool_libs=$enable_shared |
| 17910 | |
| 17911 | # Whether or not to build static libraries. |
| 17912 | build_old_libs=$enable_static |
| 17913 | |
| 17914 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17915 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17916 | |
| 17917 | # Whether or not to disallow shared libs when runtime libs are static |
| 17918 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17919 | |
| 17920 | # Whether or not to optimize for fast installation. |
| 17921 | fast_install=$enable_fast_install |
| 17922 | |
| 17923 | # The host system. |
| 17924 | host_alias=$host_alias |
| 17925 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17926 | host_os=$host_os |
| 17927 | |
| 17928 | # The build system. |
| 17929 | build_alias=$build_alias |
| 17930 | build=$build |
| 17931 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17932 | |
| 17933 | # An echo program that does not interpret backslashes. |
| 17934 | echo=$lt_echo |
| 17935 | |
| 17936 | # The archiver. |
| 17937 | AR=$lt_AR |
| 17938 | AR_FLAGS=$lt_AR_FLAGS |
| 17939 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17940 | # A C compiler. |
| 17941 | LTCC=$lt_LTCC |
| 17942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17943 | # LTCC compiler flags. |
| 17944 | LTCFLAGS=$lt_LTCFLAGS |
| 17945 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17946 | # A language-specific compiler. |
| 17947 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17948 | |
| 17949 | # Is the compiler the GNU C compiler? |
| 17950 | with_gcc=$GCC |
| 17951 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17952 | # An ERE matcher. |
| 17953 | EGREP=$lt_EGREP |
| 17954 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17955 | # The linker used to build libraries. |
| 17956 | LD=$lt_LD |
| 17957 | |
| 17958 | # Whether we need hard or soft links. |
| 17959 | LN_S=$lt_LN_S |
| 17960 | |
| 17961 | # A BSD-compatible nm program. |
| 17962 | NM=$lt_NM |
| 17963 | |
| 17964 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17965 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17966 | |
| 17967 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17968 | MAGIC_CMD=$MAGIC_CMD |
| 17969 | |
| 17970 | # Used on cygwin: DLL creation program. |
| 17971 | DLLTOOL="$DLLTOOL" |
| 17972 | |
| 17973 | # Used on cygwin: object dumper. |
| 17974 | OBJDUMP="$OBJDUMP" |
| 17975 | |
| 17976 | # Used on cygwin: assembler. |
| 17977 | AS="$AS" |
| 17978 | |
| 17979 | # The name of the directory that contains temporary libtool files. |
| 17980 | objdir=$objdir |
| 17981 | |
| 17982 | # How to create reloadable object files. |
| 17983 | reload_flag=$lt_reload_flag |
| 17984 | reload_cmds=$lt_reload_cmds |
| 17985 | |
| 17986 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17987 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17988 | |
| 17989 | # Object file suffix (normally "o"). |
| 17990 | objext="$ac_objext" |
| 17991 | |
| 17992 | # Old archive suffix (normally "a"). |
| 17993 | libext="$libext" |
| 17994 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17995 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17996 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17997 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17998 | # Executable file suffix (normally ""). |
| 17999 | exeext="$exeext" |
| 18000 | |
| 18001 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18002 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18003 | pic_mode=$pic_mode |
| 18004 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18005 | # What is the maximum length of a command? |
| 18006 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18007 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18008 | # Does compiler simultaneously support -c and -o options? |
| 18009 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18011 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18012 | need_locks=$lt_need_locks |
| 18013 | |
| 18014 | # Do we need the lib prefix for modules? |
| 18015 | need_lib_prefix=$need_lib_prefix |
| 18016 | |
| 18017 | # Do we need a version for libraries? |
| 18018 | need_version=$need_version |
| 18019 | |
| 18020 | # Whether dlopen is supported. |
| 18021 | dlopen_support=$enable_dlopen |
| 18022 | |
| 18023 | # Whether dlopen of programs is supported. |
| 18024 | dlopen_self=$enable_dlopen_self |
| 18025 | |
| 18026 | # Whether dlopen of statically linked programs is supported. |
| 18027 | dlopen_self_static=$enable_dlopen_self_static |
| 18028 | |
| 18029 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18030 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18031 | |
| 18032 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18033 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18034 | |
| 18035 | # Compiler flag to allow reflexive dlopens. |
| 18036 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 18037 | |
| 18038 | # Compiler flag to generate shared objects directly from archives. |
| 18039 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 18040 | |
| 18041 | # Compiler flag to generate thread-safe objects. |
| 18042 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 18043 | |
| 18044 | # Library versioning type. |
| 18045 | version_type=$version_type |
| 18046 | |
| 18047 | # Format of library name prefix. |
| 18048 | libname_spec=$lt_libname_spec |
| 18049 | |
| 18050 | # List of archive names. First name is the real one, the rest are links. |
| 18051 | # The last name is the one that the linker finds with -lNAME. |
| 18052 | library_names_spec=$lt_library_names_spec |
| 18053 | |
| 18054 | # The coded name of the library, if different from the real name. |
| 18055 | soname_spec=$lt_soname_spec |
| 18056 | |
| 18057 | # Commands used to build and install an old-style archive. |
| 18058 | RANLIB=$lt_RANLIB |
| 18059 | old_archive_cmds=$lt_old_archive_cmds |
| 18060 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18061 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18062 | |
| 18063 | # Create an old-style archive from a shared archive. |
| 18064 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 18065 | |
| 18066 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18067 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 18068 | |
| 18069 | # Commands used to build and install a shared archive. |
| 18070 | archive_cmds=$lt_archive_cmds |
| 18071 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 18072 | postinstall_cmds=$lt_postinstall_cmds |
| 18073 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18074 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18075 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18076 | module_cmds=$lt_module_cmds |
| 18077 | module_expsym_cmds=$lt_module_expsym_cmds |
| 18078 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18079 | # Commands to strip libraries. |
| 18080 | old_striplib=$lt_old_striplib |
| 18081 | striplib=$lt_striplib |
| 18082 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18083 | # Dependencies to place before the objects being linked to create a |
| 18084 | # shared library. |
| 18085 | predep_objects=$lt_predep_objects |
| 18086 | |
| 18087 | # Dependencies to place after the objects being linked to create a |
| 18088 | # shared library. |
| 18089 | postdep_objects=$lt_postdep_objects |
| 18090 | |
| 18091 | # Dependencies to place before the objects being linked to create a |
| 18092 | # shared library. |
| 18093 | predeps=$lt_predeps |
| 18094 | |
| 18095 | # Dependencies to place after the objects being linked to create a |
| 18096 | # shared library. |
| 18097 | postdeps=$lt_postdeps |
| 18098 | |
| 18099 | # The library search path used internally by the compiler when linking |
| 18100 | # a shared library. |
| 18101 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 18102 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18103 | # Method to check whether dependent libraries are shared objects. |
| 18104 | deplibs_check_method=$lt_deplibs_check_method |
| 18105 | |
| 18106 | # Command to use when deplibs_check_method == file_magic. |
| 18107 | file_magic_cmd=$lt_file_magic_cmd |
| 18108 | |
| 18109 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18110 | allow_undefined_flag=$lt_allow_undefined_flag |
| 18111 | |
| 18112 | # Flag that forces no undefined symbols. |
| 18113 | no_undefined_flag=$lt_no_undefined_flag |
| 18114 | |
| 18115 | # Commands used to finish a libtool library installation in a directory. |
| 18116 | finish_cmds=$lt_finish_cmds |
| 18117 | |
| 18118 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18119 | finish_eval=$lt_finish_eval |
| 18120 | |
| 18121 | # 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] | 18122 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18123 | |
| 18124 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18125 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18126 | |
| 18127 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18128 | 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] | 18129 | |
| 18130 | # This is the shared library runtime path variable. |
| 18131 | runpath_var=$runpath_var |
| 18132 | |
| 18133 | # This is the shared library path variable. |
| 18134 | shlibpath_var=$shlibpath_var |
| 18135 | |
| 18136 | # Is shlibpath searched before the hard-coded library search path? |
| 18137 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18138 | |
| 18139 | # How to hardcode a shared library path into an executable. |
| 18140 | hardcode_action=$hardcode_action |
| 18141 | |
| 18142 | # Whether we should hardcode library paths into libraries. |
| 18143 | hardcode_into_libs=$hardcode_into_libs |
| 18144 | |
| 18145 | # Flag to hardcode \$libdir into a binary during linking. |
| 18146 | # This must work even if \$libdir does not exist. |
| 18147 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 18148 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18149 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18150 | # a binary during linking. This must work even if \$libdir does |
| 18151 | # not exist. |
| 18152 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 18153 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18154 | # Whether we need a single -rpath flag with a separated argument. |
| 18155 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18156 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18157 | # 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] | 18158 | # resulting binary. |
| 18159 | hardcode_direct=$hardcode_direct |
| 18160 | |
| 18161 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18162 | # resulting binary. |
| 18163 | hardcode_minus_L=$hardcode_minus_L |
| 18164 | |
| 18165 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18166 | # the resulting binary. |
| 18167 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 18168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18169 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18170 | # and all subsequent libraries and executables linked against it. |
| 18171 | hardcode_automatic=$hardcode_automatic |
| 18172 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18173 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18174 | # restored at relink time. |
| 18175 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18176 | |
| 18177 | # Whether libtool must link a program against all its dependency libraries. |
| 18178 | link_all_deplibs=$link_all_deplibs |
| 18179 | |
| 18180 | # Compile-time system search path for libraries |
| 18181 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18182 | |
| 18183 | # Run-time system search path for libraries |
| 18184 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18185 | |
| 18186 | # Fix the shell variable \$srcfile for the compiler. |
| 18187 | fix_srcfile_path="$fix_srcfile_path" |
| 18188 | |
| 18189 | # Set to yes if exported symbols are required. |
| 18190 | always_export_symbols=$always_export_symbols |
| 18191 | |
| 18192 | # The commands to list exported symbols. |
| 18193 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18194 | |
| 18195 | # The commands to extract the exported symbol list from a shared archive. |
| 18196 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18197 | |
| 18198 | # Symbols that should not be listed in the preloaded symbols. |
| 18199 | exclude_expsyms=$lt_exclude_expsyms |
| 18200 | |
| 18201 | # Symbols that must always be exported. |
| 18202 | include_expsyms=$lt_include_expsyms |
| 18203 | |
| 18204 | # ### END LIBTOOL CONFIG |
| 18205 | |
| 18206 | __EOF__ |
| 18207 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18208 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18209 | case $host_os in |
| 18210 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18211 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18212 | |
| 18213 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18214 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18215 | # vanish in a puff of smoke. |
| 18216 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18217 | COLLECT_NAMES= |
| 18218 | export COLLECT_NAMES |
| 18219 | fi |
| 18220 | EOF |
| 18221 | ;; |
| 18222 | esac |
| 18223 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18224 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18225 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18226 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18227 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18228 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18230 | mv -f "$cfgfile" "$ofile" || \ |
| 18231 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18232 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18233 | |
| 18234 | else |
| 18235 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18236 | # `config.status --recheck' to rerun these tests and create the |
| 18237 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18238 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18239 | if test -f "$ltmain_in"; then |
| 18240 | test -f Makefile && make "$ltmain" |
| 18241 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18242 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18243 | |
| 18244 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18245 | ac_ext=c |
| 18246 | ac_cpp='$CPP $CPPFLAGS' |
| 18247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18250 | |
| 18251 | CC="$lt_save_CC" |
| 18252 | |
| 18253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18254 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18255 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18256 | withval=$with_tags; tagnames="$withval" |
| 18257 | fi |
| 18258 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18259 | |
| 18260 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18261 | if test ! -f "${ofile}"; then |
| 18262 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18263 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18264 | fi |
| 18265 | |
| 18266 | if test -z "$LTCC"; then |
| 18267 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18268 | if test -z "$LTCC"; then |
| 18269 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18270 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18271 | else |
| 18272 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18273 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18274 | fi |
| 18275 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18276 | if test -z "$LTCFLAGS"; then |
| 18277 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18278 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18279 | |
| 18280 | # Extract list of available tagged configurations in $ofile. |
| 18281 | # Note that this assumes the entire list is on one line. |
| 18282 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18283 | |
| 18284 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18285 | for tagname in $tagnames; do |
| 18286 | IFS="$lt_save_ifs" |
| 18287 | # Check whether tagname contains only valid characters |
| 18288 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18289 | "") ;; |
| 18290 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18291 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18292 | { (exit 1); exit 1; }; } |
| 18293 | ;; |
| 18294 | esac |
| 18295 | |
| 18296 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18297 | then |
| 18298 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18299 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18300 | { (exit 1); exit 1; }; } |
| 18301 | fi |
| 18302 | |
| 18303 | # Update the list of available tags. |
| 18304 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18305 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18306 | |
| 18307 | case $tagname in |
| 18308 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18309 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18310 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18311 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18312 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18313 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18314 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18315 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18316 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18317 | |
| 18318 | |
| 18319 | |
| 18320 | |
| 18321 | archive_cmds_need_lc_CXX=no |
| 18322 | allow_undefined_flag_CXX= |
| 18323 | always_export_symbols_CXX=no |
| 18324 | archive_expsym_cmds_CXX= |
| 18325 | export_dynamic_flag_spec_CXX= |
| 18326 | hardcode_direct_CXX=no |
| 18327 | hardcode_libdir_flag_spec_CXX= |
| 18328 | hardcode_libdir_flag_spec_ld_CXX= |
| 18329 | hardcode_libdir_separator_CXX= |
| 18330 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18331 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18332 | hardcode_automatic_CXX=no |
| 18333 | module_cmds_CXX= |
| 18334 | module_expsym_cmds_CXX= |
| 18335 | link_all_deplibs_CXX=unknown |
| 18336 | old_archive_cmds_CXX=$old_archive_cmds |
| 18337 | no_undefined_flag_CXX= |
| 18338 | whole_archive_flag_spec_CXX= |
| 18339 | enable_shared_with_static_runtimes_CXX=no |
| 18340 | |
| 18341 | # Dependencies to place before and after the object being linked: |
| 18342 | predep_objects_CXX= |
| 18343 | postdep_objects_CXX= |
| 18344 | predeps_CXX= |
| 18345 | postdeps_CXX= |
| 18346 | compiler_lib_search_path_CXX= |
| 18347 | |
| 18348 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18349 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18350 | |
| 18351 | # Object file extension for compiled C++ test sources. |
| 18352 | objext=o |
| 18353 | objext_CXX=$objext |
| 18354 | |
| 18355 | # Code to be used in simple compile tests |
| 18356 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18357 | |
| 18358 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18359 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18360 | |
| 18361 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18362 | |
| 18363 | # If no C compiler was specified, use CC. |
| 18364 | LTCC=${LTCC-"$CC"} |
| 18365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18366 | # If no C compiler flags were specified, use CFLAGS. |
| 18367 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18368 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18369 | # Allow CC to be a program name with arguments. |
| 18370 | compiler=$CC |
| 18371 | |
| 18372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18373 | # save warnings/boilerplate of simple test code |
| 18374 | ac_outfile=conftest.$ac_objext |
| 18375 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18376 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18377 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18378 | $rm conftest* |
| 18379 | |
| 18380 | ac_outfile=conftest.$ac_objext |
| 18381 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18382 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18383 | _lt_linker_boilerplate=`cat conftest.err` |
| 18384 | $rm conftest* |
| 18385 | |
| 18386 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18387 | # Allow CC to be a program name with arguments. |
| 18388 | lt_save_CC=$CC |
| 18389 | lt_save_LD=$LD |
| 18390 | lt_save_GCC=$GCC |
| 18391 | GCC=$GXX |
| 18392 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18393 | lt_save_path_LD=$lt_cv_path_LD |
| 18394 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18395 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18396 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18397 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18398 | fi |
| 18399 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18400 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18401 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18402 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18403 | fi |
| 18404 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18405 | CC=${CXX-"c++"} |
| 18406 | compiler=$CC |
| 18407 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18408 | for cc_temp in $compiler""; do |
| 18409 | case $cc_temp in |
| 18410 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18411 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18412 | \-*) ;; |
| 18413 | *) break;; |
| 18414 | esac |
| 18415 | done |
| 18416 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18417 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18418 | |
| 18419 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18420 | # no_builtin_flag separately |
| 18421 | if test "$GXX" = yes; then |
| 18422 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18423 | else |
| 18424 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18425 | fi |
| 18426 | |
| 18427 | if test "$GXX" = yes; then |
| 18428 | # Set up default GNU C++ configuration |
| 18429 | |
| 18430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18431 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18432 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18433 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18434 | else |
| 18435 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18436 | fi |
| 18437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18438 | ac_prog=ld |
| 18439 | if test "$GCC" = yes; then |
| 18440 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18441 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18442 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18443 | case $host in |
| 18444 | *-*-mingw*) |
| 18445 | # gcc leaves a trailing carriage return which upsets mingw |
| 18446 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18447 | *) |
| 18448 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18449 | esac |
| 18450 | case $ac_prog in |
| 18451 | # Accept absolute paths. |
| 18452 | [\\/]* | ?:[\\/]*) |
| 18453 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18454 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18455 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18456 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18457 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18458 | done |
| 18459 | test -z "$LD" && LD="$ac_prog" |
| 18460 | ;; |
| 18461 | "") |
| 18462 | # If it fails, then pretend we aren't using GCC. |
| 18463 | ac_prog=ld |
| 18464 | ;; |
| 18465 | *) |
| 18466 | # If it is relative, then search for the first ld in PATH. |
| 18467 | with_gnu_ld=unknown |
| 18468 | ;; |
| 18469 | esac |
| 18470 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18471 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18472 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18473 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18474 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18475 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18476 | fi |
| 18477 | if test "${lt_cv_path_LD+set}" = set; then |
| 18478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18479 | else |
| 18480 | if test -z "$LD"; then |
| 18481 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18482 | for ac_dir in $PATH; do |
| 18483 | IFS="$lt_save_ifs" |
| 18484 | test -z "$ac_dir" && ac_dir=. |
| 18485 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18486 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18487 | # 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] | 18488 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18489 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18490 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18491 | *GNU* | *'with BFD'*) |
| 18492 | test "$with_gnu_ld" != no && break |
| 18493 | ;; |
| 18494 | *) |
| 18495 | test "$with_gnu_ld" != yes && break |
| 18496 | ;; |
| 18497 | esac |
| 18498 | fi |
| 18499 | done |
| 18500 | IFS="$lt_save_ifs" |
| 18501 | else |
| 18502 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18503 | fi |
| 18504 | fi |
| 18505 | |
| 18506 | LD="$lt_cv_path_LD" |
| 18507 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18508 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18509 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18510 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18511 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18512 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18513 | fi |
| 18514 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18515 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18516 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18517 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18518 | 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] | 18519 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18521 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18522 | # 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] | 18523 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18524 | *GNU* | *'with BFD'*) |
| 18525 | lt_cv_prog_gnu_ld=yes |
| 18526 | ;; |
| 18527 | *) |
| 18528 | lt_cv_prog_gnu_ld=no |
| 18529 | ;; |
| 18530 | esac |
| 18531 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18532 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18533 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18534 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18535 | |
| 18536 | |
| 18537 | |
| 18538 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18539 | # archiving commands below assume that GNU ld is being used. |
| 18540 | if test "$with_gnu_ld" = yes; then |
| 18541 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18542 | 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' |
| 18543 | |
| 18544 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18545 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18546 | |
| 18547 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18548 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18549 | # investigate it a little bit more. (MM) |
| 18550 | wlarc='${wl}' |
| 18551 | |
| 18552 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18553 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18554 | grep 'no-whole-archive' > /dev/null; then |
| 18555 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18556 | else |
| 18557 | whole_archive_flag_spec_CXX= |
| 18558 | fi |
| 18559 | else |
| 18560 | with_gnu_ld=no |
| 18561 | wlarc= |
| 18562 | |
| 18563 | # A generic and very simple default shared library creation |
| 18564 | # command for GNU C++ for the case where it uses the native |
| 18565 | # linker, instead of GNU ld. If possible, this setting should |
| 18566 | # overridden to take advantage of the native linker features on |
| 18567 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18568 | 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] | 18569 | fi |
| 18570 | |
| 18571 | # Commands to make compiler produce verbose output that lists |
| 18572 | # what "hidden" libraries, object files and flags are used when |
| 18573 | # linking a shared library. |
| 18574 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18575 | |
| 18576 | else |
| 18577 | GXX=no |
| 18578 | with_gnu_ld=no |
| 18579 | wlarc= |
| 18580 | fi |
| 18581 | |
| 18582 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18583 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18584 | 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] | 18585 | ld_shlibs_CXX=yes |
| 18586 | case $host_os in |
| 18587 | aix3*) |
| 18588 | # FIXME: insert proper C++ library support |
| 18589 | ld_shlibs_CXX=no |
| 18590 | ;; |
| 18591 | aix4* | aix5*) |
| 18592 | if test "$host_cpu" = ia64; then |
| 18593 | # On IA64, the linker does run time linking by default, so we don't |
| 18594 | # have to do anything special. |
| 18595 | aix_use_runtimelinking=no |
| 18596 | exp_sym_flag='-Bexport' |
| 18597 | no_entry_flag="" |
| 18598 | else |
| 18599 | aix_use_runtimelinking=no |
| 18600 | |
| 18601 | # Test if we are trying to use run time linking or normal |
| 18602 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18603 | # need to do runtime linking. |
| 18604 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18605 | for ld_flag in $LDFLAGS; do |
| 18606 | case $ld_flag in |
| 18607 | *-brtl*) |
| 18608 | aix_use_runtimelinking=yes |
| 18609 | break |
| 18610 | ;; |
| 18611 | esac |
| 18612 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18613 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18614 | esac |
| 18615 | |
| 18616 | exp_sym_flag='-bexport' |
| 18617 | no_entry_flag='-bnoentry' |
| 18618 | fi |
| 18619 | |
| 18620 | # When large executables or shared objects are built, AIX ld can |
| 18621 | # have problems creating the table of contents. If linking a library |
| 18622 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18623 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18624 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18625 | |
| 18626 | archive_cmds_CXX='' |
| 18627 | hardcode_direct_CXX=yes |
| 18628 | hardcode_libdir_separator_CXX=':' |
| 18629 | link_all_deplibs_CXX=yes |
| 18630 | |
| 18631 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18632 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18633 | # We only want to do this on AIX 4.2 and lower, the check |
| 18634 | # below for broken collect2 doesn't work under 4.3+ |
| 18635 | collect2name=`${CC} -print-prog-name=collect2` |
| 18636 | if test -f "$collect2name" && \ |
| 18637 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18638 | then |
| 18639 | # We have reworked collect2 |
| 18640 | hardcode_direct_CXX=yes |
| 18641 | else |
| 18642 | # We have old collect2 |
| 18643 | hardcode_direct_CXX=unsupported |
| 18644 | # It fails to find uninstalled libraries when the uninstalled |
| 18645 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18646 | # to unsupported forces relinking |
| 18647 | hardcode_minus_L_CXX=yes |
| 18648 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18649 | hardcode_libdir_separator_CXX= |
| 18650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18651 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18652 | esac |
| 18653 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18654 | if test "$aix_use_runtimelinking" = yes; then |
| 18655 | shared_flag="$shared_flag "'${wl}-G' |
| 18656 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18657 | else |
| 18658 | # not using gcc |
| 18659 | if test "$host_cpu" = ia64; then |
| 18660 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18661 | # chokes on -Wl,-G. The following line is correct: |
| 18662 | shared_flag='-G' |
| 18663 | else |
| 18664 | if test "$aix_use_runtimelinking" = yes; then |
| 18665 | shared_flag='${wl}-G' |
| 18666 | else |
| 18667 | shared_flag='${wl}-bM:SRE' |
| 18668 | fi |
| 18669 | fi |
| 18670 | fi |
| 18671 | |
| 18672 | # It seems that -bexpall does not export symbols beginning with |
| 18673 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18674 | always_export_symbols_CXX=yes |
| 18675 | if test "$aix_use_runtimelinking" = yes; then |
| 18676 | # Warning - without using the other runtime loading flags (-brtl), |
| 18677 | # -berok will link without error, but may produce a broken library. |
| 18678 | allow_undefined_flag_CXX='-berok' |
| 18679 | # Determine the default libpath from the value encoded in an empty executable. |
| 18680 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18681 | /* confdefs.h. */ |
| 18682 | _ACEOF |
| 18683 | cat confdefs.h >>conftest.$ac_ext |
| 18684 | cat >>conftest.$ac_ext <<_ACEOF |
| 18685 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18686 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18687 | int |
| 18688 | main () |
| 18689 | { |
| 18690 | |
| 18691 | ; |
| 18692 | return 0; |
| 18693 | } |
| 18694 | _ACEOF |
| 18695 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18696 | if { (ac_try="$ac_link" |
| 18697 | case "(($ac_try" in |
| 18698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18699 | *) ac_try_echo=$ac_try;; |
| 18700 | esac |
| 18701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18702 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18703 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18705 | rm -f conftest.er1 |
| 18706 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 18708 | (exit $ac_status); } && |
| 18709 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18710 | { (case "(($ac_try" in |
| 18711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18712 | *) ac_try_echo=$ac_try;; |
| 18713 | esac |
| 18714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18715 | (eval "$ac_try") 2>&5 |
| 18716 | ac_status=$? |
| 18717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18718 | (exit $ac_status); }; } && |
| 18719 | { ac_try='test -s conftest$ac_exeext' |
| 18720 | { (case "(($ac_try" in |
| 18721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18722 | *) ac_try_echo=$ac_try;; |
| 18723 | esac |
| 18724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18725 | (eval "$ac_try") 2>&5 |
| 18726 | ac_status=$? |
| 18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18728 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18729 | |
| 18730 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18731 | }'` |
| 18732 | # Check for a 64-bit object if we didn't find anything. |
| 18733 | 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; } |
| 18734 | }'`; fi |
| 18735 | else |
| 18736 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18741 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 18742 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18743 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18744 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18745 | |
| 18746 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18748 | 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] | 18749 | else |
| 18750 | if test "$host_cpu" = ia64; then |
| 18751 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18752 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18753 | 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] | 18754 | else |
| 18755 | # Determine the default libpath from the value encoded in an empty executable. |
| 18756 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18757 | /* confdefs.h. */ |
| 18758 | _ACEOF |
| 18759 | cat confdefs.h >>conftest.$ac_ext |
| 18760 | cat >>conftest.$ac_ext <<_ACEOF |
| 18761 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18762 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18763 | int |
| 18764 | main () |
| 18765 | { |
| 18766 | |
| 18767 | ; |
| 18768 | return 0; |
| 18769 | } |
| 18770 | _ACEOF |
| 18771 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18772 | if { (ac_try="$ac_link" |
| 18773 | case "(($ac_try" in |
| 18774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18775 | *) ac_try_echo=$ac_try;; |
| 18776 | esac |
| 18777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18778 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18779 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18781 | rm -f conftest.er1 |
| 18782 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 18784 | (exit $ac_status); } && |
| 18785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18786 | { (case "(($ac_try" in |
| 18787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18788 | *) ac_try_echo=$ac_try;; |
| 18789 | esac |
| 18790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18791 | (eval "$ac_try") 2>&5 |
| 18792 | ac_status=$? |
| 18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18794 | (exit $ac_status); }; } && |
| 18795 | { ac_try='test -s conftest$ac_exeext' |
| 18796 | { (case "(($ac_try" in |
| 18797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18798 | *) ac_try_echo=$ac_try;; |
| 18799 | esac |
| 18800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18801 | (eval "$ac_try") 2>&5 |
| 18802 | ac_status=$? |
| 18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18804 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18805 | |
| 18806 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18807 | }'` |
| 18808 | # Check for a 64-bit object if we didn't find anything. |
| 18809 | 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; } |
| 18810 | }'`; fi |
| 18811 | else |
| 18812 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18815 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18816 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18817 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 18818 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18819 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18820 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18821 | |
| 18822 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18823 | # Warning - without using the other run time loading flags, |
| 18824 | # -berok will link without error, but may produce a broken library. |
| 18825 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18826 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18827 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18828 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18829 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18830 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18831 | 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] | 18832 | fi |
| 18833 | fi |
| 18834 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18835 | |
| 18836 | beos*) |
| 18837 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18838 | allow_undefined_flag_CXX=unsupported |
| 18839 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18840 | # support --undefined. This deserves some investigation. FIXME |
| 18841 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18842 | else |
| 18843 | ld_shlibs_CXX=no |
| 18844 | fi |
| 18845 | ;; |
| 18846 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18847 | chorus*) |
| 18848 | case $cc_basename in |
| 18849 | *) |
| 18850 | # FIXME: insert proper C++ library support |
| 18851 | ld_shlibs_CXX=no |
| 18852 | ;; |
| 18853 | esac |
| 18854 | ;; |
| 18855 | |
| 18856 | cygwin* | mingw* | pw32*) |
| 18857 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18858 | # as there is no search path for DLLs. |
| 18859 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18860 | allow_undefined_flag_CXX=unsupported |
| 18861 | always_export_symbols_CXX=no |
| 18862 | enable_shared_with_static_runtimes_CXX=yes |
| 18863 | |
| 18864 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18865 | 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] | 18866 | # If the export-symbols file already is a .def file (1st line |
| 18867 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18868 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18869 | cp $export_symbols $output_objdir/$soname.def; |
| 18870 | else |
| 18871 | echo EXPORTS > $output_objdir/$soname.def; |
| 18872 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18873 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18874 | $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] | 18875 | else |
| 18876 | ld_shlibs_CXX=no |
| 18877 | fi |
| 18878 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18879 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18880 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18881 | rhapsody* | darwin1.[012]) |
| 18882 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18883 | ;; |
| 18884 | *) # Darwin 1.3 on |
| 18885 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18886 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18887 | else |
| 18888 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18889 | 10.[012]) |
| 18890 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18891 | ;; |
| 18892 | 10.*) |
| 18893 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18894 | ;; |
| 18895 | esac |
| 18896 | fi |
| 18897 | ;; |
| 18898 | esac |
| 18899 | archive_cmds_need_lc_CXX=no |
| 18900 | hardcode_direct_CXX=no |
| 18901 | hardcode_automatic_CXX=yes |
| 18902 | hardcode_shlibpath_var_CXX=unsupported |
| 18903 | whole_archive_flag_spec_CXX='' |
| 18904 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18905 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18906 | if test "$GXX" = yes ; then |
| 18907 | lt_int_apple_cc_single_mod=no |
| 18908 | output_verbose_link_cmd='echo' |
| 18909 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18910 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18911 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18912 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18913 | 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] | 18914 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18915 | 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] | 18916 | fi |
| 18917 | 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] | 18918 | # 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] | 18919 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18920 | 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] | 18921 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18922 | 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] | 18923 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18924 | 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] | 18925 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18926 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18927 | xlc*) |
| 18928 | output_verbose_link_cmd='echo' |
| 18929 | 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' |
| 18930 | 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] | 18931 | # 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] | 18932 | 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}' |
| 18933 | 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] | 18934 | ;; |
| 18935 | *) |
| 18936 | ld_shlibs_CXX=no |
| 18937 | ;; |
| 18938 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18939 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18940 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18941 | |
| 18942 | dgux*) |
| 18943 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18944 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18945 | # FIXME: insert proper C++ library support |
| 18946 | ld_shlibs_CXX=no |
| 18947 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18948 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18949 | # Green Hills C++ Compiler |
| 18950 | # FIXME: insert proper C++ library support |
| 18951 | ld_shlibs_CXX=no |
| 18952 | ;; |
| 18953 | *) |
| 18954 | # FIXME: insert proper C++ library support |
| 18955 | ld_shlibs_CXX=no |
| 18956 | ;; |
| 18957 | esac |
| 18958 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18959 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18960 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18961 | ld_shlibs_CXX=no |
| 18962 | ;; |
| 18963 | freebsd-elf*) |
| 18964 | archive_cmds_need_lc_CXX=no |
| 18965 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18966 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18967 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18968 | # conventions |
| 18969 | ld_shlibs_CXX=yes |
| 18970 | ;; |
| 18971 | gnu*) |
| 18972 | ;; |
| 18973 | hpux9*) |
| 18974 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18975 | hardcode_libdir_separator_CXX=: |
| 18976 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18977 | hardcode_direct_CXX=yes |
| 18978 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18979 | # but as the default |
| 18980 | # location of the library. |
| 18981 | |
| 18982 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18983 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18984 | # FIXME: insert proper C++ library support |
| 18985 | ld_shlibs_CXX=no |
| 18986 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18987 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18988 | 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] | 18989 | # Commands to make compiler produce verbose output that lists |
| 18990 | # what "hidden" libraries, object files and flags are used when |
| 18991 | # linking a shared library. |
| 18992 | # |
| 18993 | # There doesn't appear to be a way to prevent this compiler from |
| 18994 | # explicitly linking system object files so we need to strip them |
| 18995 | # from the output so that they don't get included in the library |
| 18996 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18997 | 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] | 18998 | ;; |
| 18999 | *) |
| 19000 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19001 | 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] | 19002 | else |
| 19003 | # FIXME: insert proper C++ library support |
| 19004 | ld_shlibs_CXX=no |
| 19005 | fi |
| 19006 | ;; |
| 19007 | esac |
| 19008 | ;; |
| 19009 | hpux10*|hpux11*) |
| 19010 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19011 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19012 | hardcode_libdir_separator_CXX=: |
| 19013 | |
| 19014 | case $host_cpu in |
| 19015 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19016 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19017 | ;; |
| 19018 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19019 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19020 | ;; |
| 19021 | esac |
| 19022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19023 | case $host_cpu in |
| 19024 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19025 | hardcode_direct_CXX=no |
| 19026 | hardcode_shlibpath_var_CXX=no |
| 19027 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19028 | *) |
| 19029 | hardcode_direct_CXX=yes |
| 19030 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19031 | # but as the default |
| 19032 | # location of the library. |
| 19033 | ;; |
| 19034 | esac |
| 19035 | |
| 19036 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19037 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19038 | # FIXME: insert proper C++ library support |
| 19039 | ld_shlibs_CXX=no |
| 19040 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19041 | aCC*) |
| 19042 | case $host_cpu in |
| 19043 | hppa*64*) |
| 19044 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19045 | ;; |
| 19046 | ia64*) |
| 19047 | 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] | 19048 | ;; |
| 19049 | *) |
| 19050 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19051 | ;; |
| 19052 | esac |
| 19053 | # Commands to make compiler produce verbose output that lists |
| 19054 | # what "hidden" libraries, object files and flags are used when |
| 19055 | # linking a shared library. |
| 19056 | # |
| 19057 | # There doesn't appear to be a way to prevent this compiler from |
| 19058 | # explicitly linking system object files so we need to strip them |
| 19059 | # from the output so that they don't get included in the library |
| 19060 | # dependencies. |
| 19061 | 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' |
| 19062 | ;; |
| 19063 | *) |
| 19064 | if test "$GXX" = yes; then |
| 19065 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19066 | case $host_cpu in |
| 19067 | hppa*64*) |
| 19068 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19069 | ;; |
| 19070 | ia64*) |
| 19071 | 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] | 19072 | ;; |
| 19073 | *) |
| 19074 | 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' |
| 19075 | ;; |
| 19076 | esac |
| 19077 | fi |
| 19078 | else |
| 19079 | # FIXME: insert proper C++ library support |
| 19080 | ld_shlibs_CXX=no |
| 19081 | fi |
| 19082 | ;; |
| 19083 | esac |
| 19084 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19085 | interix3*) |
| 19086 | hardcode_direct_CXX=no |
| 19087 | hardcode_shlibpath_var_CXX=no |
| 19088 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19089 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19090 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 19091 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 19092 | # default) and relocated if they conflict, which is a slow very memory |
| 19093 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 19094 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 19095 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 19096 | 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' |
| 19097 | 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' |
| 19098 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19099 | irix5* | irix6*) |
| 19100 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19101 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19102 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19103 | 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] | 19104 | |
| 19105 | # Archives containing C++ object files must be created using |
| 19106 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 19107 | # necessary to make sure instantiated templates are included |
| 19108 | # in the archive. |
| 19109 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 19110 | ;; |
| 19111 | *) |
| 19112 | if test "$GXX" = yes; then |
| 19113 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19114 | 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] | 19115 | else |
| 19116 | 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' |
| 19117 | fi |
| 19118 | fi |
| 19119 | link_all_deplibs_CXX=yes |
| 19120 | ;; |
| 19121 | esac |
| 19122 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19123 | hardcode_libdir_separator_CXX=: |
| 19124 | ;; |
| 19125 | linux*) |
| 19126 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19127 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19128 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19129 | |
| 19130 | # KCC will only create a shared library if the output file |
| 19131 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19132 | # to its proper name (with version) after linking. |
| 19133 | 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' |
| 19134 | 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' |
| 19135 | # Commands to make compiler produce verbose output that lists |
| 19136 | # what "hidden" libraries, object files and flags are used when |
| 19137 | # linking a shared library. |
| 19138 | # |
| 19139 | # There doesn't appear to be a way to prevent this compiler from |
| 19140 | # explicitly linking system object files so we need to strip them |
| 19141 | # from the output so that they don't get included in the library |
| 19142 | # dependencies. |
| 19143 | 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' |
| 19144 | |
| 19145 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 19146 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19147 | |
| 19148 | # Archives containing C++ object files must be created using |
| 19149 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19150 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19151 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19152 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19153 | # Intel C++ |
| 19154 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19155 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 19156 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 19157 | # earlier do not add the objects themselves. |
| 19158 | case `$CC -V 2>&1` in |
| 19159 | *"Version 7."*) |
| 19160 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19161 | 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' |
| 19162 | ;; |
| 19163 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19164 | tmp_idyn= |
| 19165 | case $host_cpu in |
| 19166 | ia64*) tmp_idyn=' -i_dynamic';; |
| 19167 | esac |
| 19168 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19169 | 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] | 19170 | ;; |
| 19171 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19172 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19173 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19174 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19175 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 19176 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19177 | pgCC*) |
| 19178 | # Portland Group C++ compiler |
| 19179 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 19180 | 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' |
| 19181 | |
| 19182 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 19183 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19184 | 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' |
| 19185 | ;; |
| 19186 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19187 | # Compaq C++ |
| 19188 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19189 | 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' |
| 19190 | |
| 19191 | runpath_var=LD_RUN_PATH |
| 19192 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19193 | hardcode_libdir_separator_CXX=: |
| 19194 | |
| 19195 | # Commands to make compiler produce verbose output that lists |
| 19196 | # what "hidden" libraries, object files and flags are used when |
| 19197 | # linking a shared library. |
| 19198 | # |
| 19199 | # There doesn't appear to be a way to prevent this compiler from |
| 19200 | # explicitly linking system object files so we need to strip them |
| 19201 | # from the output so that they don't get included in the library |
| 19202 | # dependencies. |
| 19203 | 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' |
| 19204 | ;; |
| 19205 | esac |
| 19206 | ;; |
| 19207 | lynxos*) |
| 19208 | # FIXME: insert proper C++ library support |
| 19209 | ld_shlibs_CXX=no |
| 19210 | ;; |
| 19211 | m88k*) |
| 19212 | # FIXME: insert proper C++ library support |
| 19213 | ld_shlibs_CXX=no |
| 19214 | ;; |
| 19215 | mvs*) |
| 19216 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19217 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19218 | # FIXME: insert proper C++ library support |
| 19219 | ld_shlibs_CXX=no |
| 19220 | ;; |
| 19221 | *) |
| 19222 | # FIXME: insert proper C++ library support |
| 19223 | ld_shlibs_CXX=no |
| 19224 | ;; |
| 19225 | esac |
| 19226 | ;; |
| 19227 | netbsd*) |
| 19228 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19229 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19230 | wlarc= |
| 19231 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19232 | hardcode_direct_CXX=yes |
| 19233 | hardcode_shlibpath_var_CXX=no |
| 19234 | fi |
| 19235 | # Workaround some broken pre-1.5 toolchains |
| 19236 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19237 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19238 | openbsd2*) |
| 19239 | # C++ shared libraries are fairly broken |
| 19240 | ld_shlibs_CXX=no |
| 19241 | ;; |
| 19242 | openbsd*) |
| 19243 | hardcode_direct_CXX=yes |
| 19244 | hardcode_shlibpath_var_CXX=no |
| 19245 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19246 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19247 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19248 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19249 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19250 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19251 | fi |
| 19252 | output_verbose_link_cmd='echo' |
| 19253 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19254 | osf3*) |
| 19255 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19256 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19257 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19258 | |
| 19259 | # KCC will only create a shared library if the output file |
| 19260 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19261 | # to its proper name (with version) after linking. |
| 19262 | 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' |
| 19263 | |
| 19264 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19265 | hardcode_libdir_separator_CXX=: |
| 19266 | |
| 19267 | # Archives containing C++ object files must be created using |
| 19268 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19269 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19270 | |
| 19271 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19272 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19273 | # Rational C++ 2.4.1 |
| 19274 | # FIXME: insert proper C++ library support |
| 19275 | ld_shlibs_CXX=no |
| 19276 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19277 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19278 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19279 | 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] | 19280 | |
| 19281 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19282 | hardcode_libdir_separator_CXX=: |
| 19283 | |
| 19284 | # Commands to make compiler produce verbose output that lists |
| 19285 | # what "hidden" libraries, object files and flags are used when |
| 19286 | # linking a shared library. |
| 19287 | # |
| 19288 | # There doesn't appear to be a way to prevent this compiler from |
| 19289 | # explicitly linking system object files so we need to strip them |
| 19290 | # from the output so that they don't get included in the library |
| 19291 | # dependencies. |
| 19292 | 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' |
| 19293 | ;; |
| 19294 | *) |
| 19295 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19296 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19297 | 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] | 19298 | |
| 19299 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19300 | hardcode_libdir_separator_CXX=: |
| 19301 | |
| 19302 | # Commands to make compiler produce verbose output that lists |
| 19303 | # what "hidden" libraries, object files and flags are used when |
| 19304 | # linking a shared library. |
| 19305 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19306 | |
| 19307 | else |
| 19308 | # FIXME: insert proper C++ library support |
| 19309 | ld_shlibs_CXX=no |
| 19310 | fi |
| 19311 | ;; |
| 19312 | esac |
| 19313 | ;; |
| 19314 | osf4* | osf5*) |
| 19315 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19316 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19317 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19318 | |
| 19319 | # KCC will only create a shared library if the output file |
| 19320 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19321 | # to its proper name (with version) after linking. |
| 19322 | 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' |
| 19323 | |
| 19324 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19325 | hardcode_libdir_separator_CXX=: |
| 19326 | |
| 19327 | # Archives containing C++ object files must be created using |
| 19328 | # the KAI C++ compiler. |
| 19329 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19330 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19331 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19332 | # Rational C++ 2.4.1 |
| 19333 | # FIXME: insert proper C++ library support |
| 19334 | ld_shlibs_CXX=no |
| 19335 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19336 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19337 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19338 | 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] | 19339 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19340 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19341 | $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] | 19342 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19343 | |
| 19344 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19345 | hardcode_libdir_separator_CXX=: |
| 19346 | |
| 19347 | # Commands to make compiler produce verbose output that lists |
| 19348 | # what "hidden" libraries, object files and flags are used when |
| 19349 | # linking a shared library. |
| 19350 | # |
| 19351 | # There doesn't appear to be a way to prevent this compiler from |
| 19352 | # explicitly linking system object files so we need to strip them |
| 19353 | # from the output so that they don't get included in the library |
| 19354 | # dependencies. |
| 19355 | 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' |
| 19356 | ;; |
| 19357 | *) |
| 19358 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19359 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19360 | 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] | 19361 | |
| 19362 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19363 | hardcode_libdir_separator_CXX=: |
| 19364 | |
| 19365 | # Commands to make compiler produce verbose output that lists |
| 19366 | # what "hidden" libraries, object files and flags are used when |
| 19367 | # linking a shared library. |
| 19368 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19369 | |
| 19370 | else |
| 19371 | # FIXME: insert proper C++ library support |
| 19372 | ld_shlibs_CXX=no |
| 19373 | fi |
| 19374 | ;; |
| 19375 | esac |
| 19376 | ;; |
| 19377 | psos*) |
| 19378 | # FIXME: insert proper C++ library support |
| 19379 | ld_shlibs_CXX=no |
| 19380 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19381 | sunos4*) |
| 19382 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19383 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19384 | # Sun C++ 4.x |
| 19385 | # FIXME: insert proper C++ library support |
| 19386 | ld_shlibs_CXX=no |
| 19387 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19388 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19389 | # Lucid |
| 19390 | # FIXME: insert proper C++ library support |
| 19391 | ld_shlibs_CXX=no |
| 19392 | ;; |
| 19393 | *) |
| 19394 | # FIXME: insert proper C++ library support |
| 19395 | ld_shlibs_CXX=no |
| 19396 | ;; |
| 19397 | esac |
| 19398 | ;; |
| 19399 | solaris*) |
| 19400 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19401 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19402 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19403 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19404 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19405 | 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] | 19406 | 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] | 19407 | $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] | 19408 | |
| 19409 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19410 | hardcode_shlibpath_var_CXX=no |
| 19411 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19412 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19413 | *) |
| 19414 | # The C++ compiler is used as linker so we must use $wl |
| 19415 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19416 | # linker. We must also pass each convience library through |
| 19417 | # to the system linker between allextract/defaultextract. |
| 19418 | # The C++ compiler will combine linker options so we |
| 19419 | # cannot just pass the convience library names through |
| 19420 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19421 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19422 | 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] | 19423 | ;; |
| 19424 | esac |
| 19425 | link_all_deplibs_CXX=yes |
| 19426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19427 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19428 | |
| 19429 | # Archives containing C++ object files must be created using |
| 19430 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19431 | # necessary to make sure instantiated templates are included |
| 19432 | # in the archive. |
| 19433 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19434 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19435 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19436 | # Green Hills C++ Compiler |
| 19437 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19438 | |
| 19439 | # The C++ compiler must be used to create the archive. |
| 19440 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19441 | ;; |
| 19442 | *) |
| 19443 | # GNU C++ compiler with Solaris linker |
| 19444 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19445 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19446 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19447 | 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] | 19448 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19449 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19451 | # Commands to make compiler produce verbose output that lists |
| 19452 | # what "hidden" libraries, object files and flags are used when |
| 19453 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19454 | 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] | 19455 | else |
| 19456 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19457 | # platform. |
| 19458 | 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] | 19459 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19460 | $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] | 19461 | |
| 19462 | # Commands to make compiler produce verbose output that lists |
| 19463 | # what "hidden" libraries, object files and flags are used when |
| 19464 | # linking a shared library. |
| 19465 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19466 | fi |
| 19467 | |
| 19468 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19469 | fi |
| 19470 | ;; |
| 19471 | esac |
| 19472 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19473 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19474 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19475 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19476 | hardcode_shlibpath_var_CXX=no |
| 19477 | runpath_var='LD_RUN_PATH' |
| 19478 | |
| 19479 | case $cc_basename in |
| 19480 | CC*) |
| 19481 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19482 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19483 | ;; |
| 19484 | *) |
| 19485 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19486 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19487 | ;; |
| 19488 | esac |
| 19489 | ;; |
| 19490 | sysv5* | sco3.2v5* | sco5v6*) |
| 19491 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19492 | # link with -lc, and that would cause any symbols used from libc to |
| 19493 | # always be unresolved, which means just about no library would |
| 19494 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19495 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19496 | # as -z defs. |
| 19497 | # For security reasons, it is highly recommended that you always |
| 19498 | # use absolute paths for naming shared libraries, and exclude the |
| 19499 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19500 | # requires that you compile everything twice, which is a pain. |
| 19501 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19502 | # non-empty value in the environment. Most likely only useful for |
| 19503 | # creating official distributions of packages. |
| 19504 | # This is a hack until libtool officially supports absolute path |
| 19505 | # names for shared libraries. |
| 19506 | no_undefined_flag_CXX='${wl}-z,text' |
| 19507 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19508 | archive_cmds_need_lc_CXX=no |
| 19509 | hardcode_shlibpath_var_CXX=no |
| 19510 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19511 | hardcode_libdir_separator_CXX=':' |
| 19512 | link_all_deplibs_CXX=yes |
| 19513 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19514 | runpath_var='LD_RUN_PATH' |
| 19515 | |
| 19516 | case $cc_basename in |
| 19517 | CC*) |
| 19518 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19519 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19520 | ;; |
| 19521 | *) |
| 19522 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19523 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19524 | ;; |
| 19525 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19526 | ;; |
| 19527 | tandem*) |
| 19528 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19529 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19530 | # NonStop-UX NCC 3.20 |
| 19531 | # FIXME: insert proper C++ library support |
| 19532 | ld_shlibs_CXX=no |
| 19533 | ;; |
| 19534 | *) |
| 19535 | # FIXME: insert proper C++ library support |
| 19536 | ld_shlibs_CXX=no |
| 19537 | ;; |
| 19538 | esac |
| 19539 | ;; |
| 19540 | vxworks*) |
| 19541 | # FIXME: insert proper C++ library support |
| 19542 | ld_shlibs_CXX=no |
| 19543 | ;; |
| 19544 | *) |
| 19545 | # FIXME: insert proper C++ library support |
| 19546 | ld_shlibs_CXX=no |
| 19547 | ;; |
| 19548 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19549 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19550 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19551 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19552 | |
| 19553 | GCC_CXX="$GXX" |
| 19554 | LD_CXX="$LD" |
| 19555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19556 | |
| 19557 | cat > conftest.$ac_ext <<EOF |
| 19558 | class Foo |
| 19559 | { |
| 19560 | public: |
| 19561 | Foo (void) { a = 0; } |
| 19562 | private: |
| 19563 | int a; |
| 19564 | }; |
| 19565 | EOF |
| 19566 | |
| 19567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19568 | (eval $ac_compile) 2>&5 |
| 19569 | ac_status=$? |
| 19570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19571 | (exit $ac_status); }; then |
| 19572 | # Parse the compiler output and extract the necessary |
| 19573 | # objects, libraries and library flags. |
| 19574 | |
| 19575 | # Sentinel used to keep track of whether or not we are before |
| 19576 | # the conftest object file. |
| 19577 | pre_test_object_deps_done=no |
| 19578 | |
| 19579 | # The `*' in the case matches for architectures that use `case' in |
| 19580 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19581 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19582 | 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] | 19583 | |
| 19584 | for p in `eval $output_verbose_link_cmd`; do |
| 19585 | case $p in |
| 19586 | |
| 19587 | -L* | -R* | -l*) |
| 19588 | # Some compilers place space between "-{L,R}" and the path. |
| 19589 | # Remove the space. |
| 19590 | if test $p = "-L" \ |
| 19591 | || test $p = "-R"; then |
| 19592 | prev=$p |
| 19593 | continue |
| 19594 | else |
| 19595 | prev= |
| 19596 | fi |
| 19597 | |
| 19598 | if test "$pre_test_object_deps_done" = no; then |
| 19599 | case $p in |
| 19600 | -L* | -R*) |
| 19601 | # Internal compiler library paths should come after those |
| 19602 | # provided the user. The postdeps already come after the |
| 19603 | # user supplied libs so there is no need to process them. |
| 19604 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19605 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19606 | else |
| 19607 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19608 | fi |
| 19609 | ;; |
| 19610 | # The "-l" case would never come before the object being |
| 19611 | # linked, so don't bother handling this case. |
| 19612 | esac |
| 19613 | else |
| 19614 | if test -z "$postdeps_CXX"; then |
| 19615 | postdeps_CXX="${prev}${p}" |
| 19616 | else |
| 19617 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19618 | fi |
| 19619 | fi |
| 19620 | ;; |
| 19621 | |
| 19622 | *.$objext) |
| 19623 | # This assumes that the test object file only shows up |
| 19624 | # once in the compiler output. |
| 19625 | if test "$p" = "conftest.$objext"; then |
| 19626 | pre_test_object_deps_done=yes |
| 19627 | continue |
| 19628 | fi |
| 19629 | |
| 19630 | if test "$pre_test_object_deps_done" = no; then |
| 19631 | if test -z "$predep_objects_CXX"; then |
| 19632 | predep_objects_CXX="$p" |
| 19633 | else |
| 19634 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19635 | fi |
| 19636 | else |
| 19637 | if test -z "$postdep_objects_CXX"; then |
| 19638 | postdep_objects_CXX="$p" |
| 19639 | else |
| 19640 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19641 | fi |
| 19642 | fi |
| 19643 | ;; |
| 19644 | |
| 19645 | *) ;; # Ignore the rest. |
| 19646 | |
| 19647 | esac |
| 19648 | done |
| 19649 | |
| 19650 | # Clean up. |
| 19651 | rm -f a.out a.exe |
| 19652 | else |
| 19653 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19654 | fi |
| 19655 | |
| 19656 | $rm -f confest.$objext |
| 19657 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19658 | # PORTME: override above test on systems where it is broken |
| 19659 | case $host_os in |
| 19660 | interix3*) |
| 19661 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19662 | # hack all around it, let's just trust "g++" to DTRT. |
| 19663 | predep_objects_CXX= |
| 19664 | postdep_objects_CXX= |
| 19665 | postdeps_CXX= |
| 19666 | ;; |
| 19667 | |
| 19668 | solaris*) |
| 19669 | case $cc_basename in |
| 19670 | CC*) |
| 19671 | # Adding this requires a known-good setup of shared libraries for |
| 19672 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19673 | # archive will be linked into the output, leading to subtle bugs. |
| 19674 | postdeps_CXX='-lCstd -lCrun' |
| 19675 | ;; |
| 19676 | esac |
| 19677 | ;; |
| 19678 | esac |
| 19679 | |
| 19680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19681 | case " $postdeps_CXX " in |
| 19682 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19683 | esac |
| 19684 | |
| 19685 | lt_prog_compiler_wl_CXX= |
| 19686 | lt_prog_compiler_pic_CXX= |
| 19687 | lt_prog_compiler_static_CXX= |
| 19688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19689 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19690 | 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] | 19691 | |
| 19692 | # C++ specific cases for pic, static, wl, etc. |
| 19693 | if test "$GXX" = yes; then |
| 19694 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19695 | lt_prog_compiler_static_CXX='-static' |
| 19696 | |
| 19697 | case $host_os in |
| 19698 | aix*) |
| 19699 | # All AIX code is PIC. |
| 19700 | if test "$host_cpu" = ia64; then |
| 19701 | # AIX 5 now supports IA64 processor |
| 19702 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19703 | fi |
| 19704 | ;; |
| 19705 | amigaos*) |
| 19706 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19707 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19708 | # like `-m68040'. |
| 19709 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19710 | ;; |
| 19711 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19712 | # PIC is the default for these OSes. |
| 19713 | ;; |
| 19714 | mingw* | os2* | pw32*) |
| 19715 | # This hack is so that the source file can tell whether it is being |
| 19716 | # built for inclusion in a dll (and should export symbols for example). |
| 19717 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19718 | ;; |
| 19719 | darwin* | rhapsody*) |
| 19720 | # PIC is the default on this platform |
| 19721 | # Common symbols not allowed in MH_DYLIB files |
| 19722 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19723 | ;; |
| 19724 | *djgpp*) |
| 19725 | # DJGPP does not support shared libraries at all |
| 19726 | lt_prog_compiler_pic_CXX= |
| 19727 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19728 | interix3*) |
| 19729 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19730 | # Instead, we relocate shared libraries at runtime. |
| 19731 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19732 | sysv4*MP*) |
| 19733 | if test -d /usr/nec; then |
| 19734 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19735 | fi |
| 19736 | ;; |
| 19737 | hpux*) |
| 19738 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19739 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19740 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19741 | hppa*64*|ia64*) |
| 19742 | ;; |
| 19743 | *) |
| 19744 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19745 | ;; |
| 19746 | esac |
| 19747 | ;; |
| 19748 | *) |
| 19749 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19750 | ;; |
| 19751 | esac |
| 19752 | else |
| 19753 | case $host_os in |
| 19754 | aix4* | aix5*) |
| 19755 | # All AIX code is PIC. |
| 19756 | if test "$host_cpu" = ia64; then |
| 19757 | # AIX 5 now supports IA64 processor |
| 19758 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19759 | else |
| 19760 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19761 | fi |
| 19762 | ;; |
| 19763 | chorus*) |
| 19764 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19765 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19766 | # Green Hills C++ Compiler |
| 19767 | # _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" |
| 19768 | ;; |
| 19769 | esac |
| 19770 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19771 | darwin*) |
| 19772 | # PIC is the default on this platform |
| 19773 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19774 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19775 | xlc*) |
| 19776 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19777 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19778 | ;; |
| 19779 | esac |
| 19780 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19781 | dgux*) |
| 19782 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19783 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19784 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19785 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19786 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19787 | # Green Hills C++ Compiler |
| 19788 | lt_prog_compiler_pic_CXX='-pic' |
| 19789 | ;; |
| 19790 | *) |
| 19791 | ;; |
| 19792 | esac |
| 19793 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19794 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19795 | # FreeBSD uses GNU C++ |
| 19796 | ;; |
| 19797 | hpux9* | hpux10* | hpux11*) |
| 19798 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19799 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19800 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19801 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19802 | if test "$host_cpu" != ia64; then |
| 19803 | lt_prog_compiler_pic_CXX='+Z' |
| 19804 | fi |
| 19805 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19806 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19807 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19808 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19809 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19810 | hppa*64*|ia64*) |
| 19811 | # +Z the default |
| 19812 | ;; |
| 19813 | *) |
| 19814 | lt_prog_compiler_pic_CXX='+Z' |
| 19815 | ;; |
| 19816 | esac |
| 19817 | ;; |
| 19818 | *) |
| 19819 | ;; |
| 19820 | esac |
| 19821 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19822 | interix*) |
| 19823 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19824 | # Anyone wants to do a port? |
| 19825 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19826 | irix5* | irix6* | nonstopux*) |
| 19827 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19828 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19829 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19830 | lt_prog_compiler_static_CXX='-non_shared' |
| 19831 | # CC pic flag -KPIC is the default. |
| 19832 | ;; |
| 19833 | *) |
| 19834 | ;; |
| 19835 | esac |
| 19836 | ;; |
| 19837 | linux*) |
| 19838 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19839 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19840 | # KAI C++ Compiler |
| 19841 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19842 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19843 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19844 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19845 | # Intel C++ |
| 19846 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19847 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19848 | lt_prog_compiler_static_CXX='-static' |
| 19849 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19850 | pgCC*) |
| 19851 | # Portland Group C++ compiler. |
| 19852 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19853 | lt_prog_compiler_pic_CXX='-fpic' |
| 19854 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19855 | ;; |
| 19856 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19857 | # Compaq C++ |
| 19858 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19859 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19860 | lt_prog_compiler_pic_CXX= |
| 19861 | lt_prog_compiler_static_CXX='-non_shared' |
| 19862 | ;; |
| 19863 | *) |
| 19864 | ;; |
| 19865 | esac |
| 19866 | ;; |
| 19867 | lynxos*) |
| 19868 | ;; |
| 19869 | m88k*) |
| 19870 | ;; |
| 19871 | mvs*) |
| 19872 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19873 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19874 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19875 | ;; |
| 19876 | *) |
| 19877 | ;; |
| 19878 | esac |
| 19879 | ;; |
| 19880 | netbsd*) |
| 19881 | ;; |
| 19882 | osf3* | osf4* | osf5*) |
| 19883 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19884 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19885 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19886 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19887 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19888 | # Rational C++ 2.4.1 |
| 19889 | lt_prog_compiler_pic_CXX='-pic' |
| 19890 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19891 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19892 | # Digital/Compaq C++ |
| 19893 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19894 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19895 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19896 | lt_prog_compiler_pic_CXX= |
| 19897 | lt_prog_compiler_static_CXX='-non_shared' |
| 19898 | ;; |
| 19899 | *) |
| 19900 | ;; |
| 19901 | esac |
| 19902 | ;; |
| 19903 | psos*) |
| 19904 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19905 | solaris*) |
| 19906 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19907 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19908 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19909 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19910 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19911 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19912 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19913 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19914 | # Green Hills C++ Compiler |
| 19915 | lt_prog_compiler_pic_CXX='-PIC' |
| 19916 | ;; |
| 19917 | *) |
| 19918 | ;; |
| 19919 | esac |
| 19920 | ;; |
| 19921 | sunos4*) |
| 19922 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19923 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19924 | # Sun C++ 4.x |
| 19925 | lt_prog_compiler_pic_CXX='-pic' |
| 19926 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19927 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19928 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19929 | # Lucid |
| 19930 | lt_prog_compiler_pic_CXX='-pic' |
| 19931 | ;; |
| 19932 | *) |
| 19933 | ;; |
| 19934 | esac |
| 19935 | ;; |
| 19936 | tandem*) |
| 19937 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19938 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19939 | # NonStop-UX NCC 3.20 |
| 19940 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19941 | ;; |
| 19942 | *) |
| 19943 | ;; |
| 19944 | esac |
| 19945 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19946 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19947 | case $cc_basename in |
| 19948 | CC*) |
| 19949 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19950 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19951 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19952 | ;; |
| 19953 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19954 | ;; |
| 19955 | vxworks*) |
| 19956 | ;; |
| 19957 | *) |
| 19958 | lt_prog_compiler_can_build_shared_CXX=no |
| 19959 | ;; |
| 19960 | esac |
| 19961 | fi |
| 19962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19963 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19964 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19965 | |
| 19966 | # |
| 19967 | # Check to make sure the PIC flag actually works. |
| 19968 | # |
| 19969 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19971 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19972 | 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] | 19973 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19975 | else |
| 19976 | lt_prog_compiler_pic_works_CXX=no |
| 19977 | ac_outfile=conftest.$ac_objext |
| 19978 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19979 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19980 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19981 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19982 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19983 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19984 | # The option is referenced via a variable to avoid confusing sed. |
| 19985 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19986 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19987 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19988 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 19989 | (eval echo "\"\$as_me:19989: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19990 | (eval "$lt_compile" 2>conftest.err) |
| 19991 | ac_status=$? |
| 19992 | cat conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 19993 | echo "$as_me:19993: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19994 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19995 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19996 | # So say no if there are warnings other than the usual output. |
| 19997 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19998 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19999 | 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] | 20000 | lt_prog_compiler_pic_works_CXX=yes |
| 20001 | fi |
| 20002 | fi |
| 20003 | $rm conftest* |
| 20004 | |
| 20005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20006 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 20007 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20008 | |
| 20009 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 20010 | case $lt_prog_compiler_pic_CXX in |
| 20011 | "" | " "*) ;; |
| 20012 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20013 | esac |
| 20014 | else |
| 20015 | lt_prog_compiler_pic_CXX= |
| 20016 | lt_prog_compiler_can_build_shared_CXX=no |
| 20017 | fi |
| 20018 | |
| 20019 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20020 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20021 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20022 | *djgpp*) |
| 20023 | lt_prog_compiler_pic_CXX= |
| 20024 | ;; |
| 20025 | *) |
| 20026 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20027 | ;; |
| 20028 | esac |
| 20029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20030 | # |
| 20031 | # Check to make sure the static flag actually works. |
| 20032 | # |
| 20033 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20034 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20035 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20036 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 20037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20038 | else |
| 20039 | lt_prog_compiler_static_works_CXX=no |
| 20040 | save_LDFLAGS="$LDFLAGS" |
| 20041 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20042 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20043 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20044 | # The linker can only warn and ignore the option if not recognized |
| 20045 | # So say no if there are warnings |
| 20046 | if test -s conftest.err; then |
| 20047 | # Append any errors to the config.log. |
| 20048 | cat conftest.err 1>&5 |
| 20049 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20050 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20051 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20052 | lt_prog_compiler_static_works_CXX=yes |
| 20053 | fi |
| 20054 | else |
| 20055 | lt_prog_compiler_static_works_CXX=yes |
| 20056 | fi |
| 20057 | fi |
| 20058 | $rm conftest* |
| 20059 | LDFLAGS="$save_LDFLAGS" |
| 20060 | |
| 20061 | fi |
| 20062 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 20063 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 20064 | |
| 20065 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 20066 | : |
| 20067 | else |
| 20068 | lt_prog_compiler_static_CXX= |
| 20069 | fi |
| 20070 | |
| 20071 | |
| 20072 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20073 | 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] | 20074 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20076 | else |
| 20077 | lt_cv_prog_compiler_c_o_CXX=no |
| 20078 | $rm -r conftest 2>/dev/null |
| 20079 | mkdir conftest |
| 20080 | cd conftest |
| 20081 | mkdir out |
| 20082 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20083 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20084 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20085 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20086 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20087 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20088 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20089 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20090 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20091 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20092 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 20093 | (eval echo "\"\$as_me:20093: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20094 | (eval "$lt_compile" 2>out/conftest.err) |
| 20095 | ac_status=$? |
| 20096 | cat out/conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 20097 | echo "$as_me:20097: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20098 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20099 | then |
| 20100 | # The compiler can only warn and ignore the option if not recognized |
| 20101 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20102 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20103 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20104 | 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] | 20105 | lt_cv_prog_compiler_c_o_CXX=yes |
| 20106 | fi |
| 20107 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20108 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20109 | $rm conftest* |
| 20110 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20111 | # template instantiation |
| 20112 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20113 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20114 | cd .. |
| 20115 | rmdir conftest |
| 20116 | $rm conftest* |
| 20117 | |
| 20118 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20119 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 20120 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20121 | |
| 20122 | |
| 20123 | hard_links="nottested" |
| 20124 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 20125 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20126 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20127 | 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] | 20128 | hard_links=yes |
| 20129 | $rm conftest* |
| 20130 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20131 | touch conftest.a |
| 20132 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20133 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20134 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20135 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20136 | if test "$hard_links" = no; then |
| 20137 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20138 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20139 | need_locks=warn |
| 20140 | fi |
| 20141 | else |
| 20142 | need_locks=no |
| 20143 | fi |
| 20144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20145 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20146 | 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] | 20147 | |
| 20148 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20149 | case $host_os in |
| 20150 | aix4* | aix5*) |
| 20151 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20152 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20153 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20154 | 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' |
| 20155 | else |
| 20156 | 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' |
| 20157 | fi |
| 20158 | ;; |
| 20159 | pw32*) |
| 20160 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 20161 | ;; |
| 20162 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20163 | 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] | 20164 | ;; |
| 20165 | *) |
| 20166 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20167 | ;; |
| 20168 | esac |
| 20169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20170 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 20171 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20172 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 20173 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20174 | # |
| 20175 | # Do we need to explicitly link libc? |
| 20176 | # |
| 20177 | case "x$archive_cmds_need_lc_CXX" in |
| 20178 | x|xyes) |
| 20179 | # Assume -lc should be added |
| 20180 | archive_cmds_need_lc_CXX=yes |
| 20181 | |
| 20182 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20183 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20184 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20185 | # FIXME: we may have to deal with multi-command sequences. |
| 20186 | ;; |
| 20187 | '$CC '*) |
| 20188 | # Test whether the compiler implicitly links with -lc since on some |
| 20189 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20190 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20191 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20192 | 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] | 20193 | $rm conftest* |
| 20194 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20195 | |
| 20196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20197 | (eval $ac_compile) 2>&5 |
| 20198 | ac_status=$? |
| 20199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20200 | (exit $ac_status); } 2>conftest.err; then |
| 20201 | soname=conftest |
| 20202 | lib=conftest |
| 20203 | libobjs=conftest.$ac_objext |
| 20204 | deplibs= |
| 20205 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20206 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20207 | compiler_flags=-v |
| 20208 | linker_flags=-v |
| 20209 | verstring= |
| 20210 | output_objdir=. |
| 20211 | libname=conftest |
| 20212 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20213 | allow_undefined_flag_CXX= |
| 20214 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20215 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20216 | ac_status=$? |
| 20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20218 | (exit $ac_status); } |
| 20219 | then |
| 20220 | archive_cmds_need_lc_CXX=no |
| 20221 | else |
| 20222 | archive_cmds_need_lc_CXX=yes |
| 20223 | fi |
| 20224 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20225 | else |
| 20226 | cat conftest.err 1>&5 |
| 20227 | fi |
| 20228 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20229 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20230 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20231 | ;; |
| 20232 | esac |
| 20233 | fi |
| 20234 | ;; |
| 20235 | esac |
| 20236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20237 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20238 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20239 | library_names_spec= |
| 20240 | libname_spec='lib$name' |
| 20241 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20242 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20243 | postinstall_cmds= |
| 20244 | postuninstall_cmds= |
| 20245 | finish_cmds= |
| 20246 | finish_eval= |
| 20247 | shlibpath_var= |
| 20248 | shlibpath_overrides_runpath=unknown |
| 20249 | version_type=none |
| 20250 | dynamic_linker="$host_os ld.so" |
| 20251 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20252 | if test "$GCC" = yes; then |
| 20253 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20254 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20255 | # if the path contains ";" then we assume it to be the separator |
| 20256 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20257 | # assumed that no part of a normal pathname contains ";" but that should |
| 20258 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20259 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20260 | else |
| 20261 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20262 | fi |
| 20263 | else |
| 20264 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20265 | fi |
| 20266 | need_lib_prefix=unknown |
| 20267 | hardcode_into_libs=no |
| 20268 | |
| 20269 | # when you set need_version to no, make sure it does not cause -set_version |
| 20270 | # flags to be left without arguments |
| 20271 | need_version=unknown |
| 20272 | |
| 20273 | case $host_os in |
| 20274 | aix3*) |
| 20275 | version_type=linux |
| 20276 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20277 | shlibpath_var=LIBPATH |
| 20278 | |
| 20279 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20280 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20281 | ;; |
| 20282 | |
| 20283 | aix4* | aix5*) |
| 20284 | version_type=linux |
| 20285 | need_lib_prefix=no |
| 20286 | need_version=no |
| 20287 | hardcode_into_libs=yes |
| 20288 | if test "$host_cpu" = ia64; then |
| 20289 | # AIX 5 supports IA64 |
| 20290 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20291 | shlibpath_var=LD_LIBRARY_PATH |
| 20292 | else |
| 20293 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20294 | # for dependence libraries. The import file would start with |
| 20295 | # the line `#! .'. This would cause the generated library to |
| 20296 | # depend on `.', always an invalid library. This was fixed in |
| 20297 | # development snapshots of GCC prior to 3.0. |
| 20298 | case $host_os in |
| 20299 | aix4 | aix4.[01] | aix4.[01].*) |
| 20300 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20301 | echo ' yes ' |
| 20302 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20303 | : |
| 20304 | else |
| 20305 | can_build_shared=no |
| 20306 | fi |
| 20307 | ;; |
| 20308 | esac |
| 20309 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20310 | # soname into executable. Probably we can add versioning support to |
| 20311 | # collect2, so additional links can be useful in future. |
| 20312 | if test "$aix_use_runtimelinking" = yes; then |
| 20313 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20314 | # instead of lib<name>.a to let people know that these are not |
| 20315 | # typical AIX shared libraries. |
| 20316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20317 | else |
| 20318 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20319 | # and later when we are not doing run time linking. |
| 20320 | library_names_spec='${libname}${release}.a $libname.a' |
| 20321 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20322 | fi |
| 20323 | shlibpath_var=LIBPATH |
| 20324 | fi |
| 20325 | ;; |
| 20326 | |
| 20327 | amigaos*) |
| 20328 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20329 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20330 | 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] | 20331 | ;; |
| 20332 | |
| 20333 | beos*) |
| 20334 | library_names_spec='${libname}${shared_ext}' |
| 20335 | dynamic_linker="$host_os ld.so" |
| 20336 | shlibpath_var=LIBRARY_PATH |
| 20337 | ;; |
| 20338 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20339 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20340 | version_type=linux |
| 20341 | need_version=no |
| 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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20345 | shlibpath_var=LD_LIBRARY_PATH |
| 20346 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20347 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20348 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20349 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20350 | # libtool to hard-code these into programs |
| 20351 | ;; |
| 20352 | |
| 20353 | cygwin* | mingw* | pw32*) |
| 20354 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20355 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20356 | need_version=no |
| 20357 | need_lib_prefix=no |
| 20358 | |
| 20359 | case $GCC,$host_os in |
| 20360 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20361 | library_names_spec='$libname.dll.a' |
| 20362 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20363 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20364 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20365 | dldir=$destdir/`dirname \$dlpath`~ |
| 20366 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20367 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20368 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20369 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20370 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20371 | $rm \$dlpath' |
| 20372 | shlibpath_overrides_runpath=yes |
| 20373 | |
| 20374 | case $host_os in |
| 20375 | cygwin*) |
| 20376 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20377 | 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] | 20378 | 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] | 20379 | ;; |
| 20380 | mingw*) |
| 20381 | # MinGW DLLs use traditional 'lib' prefix |
| 20382 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20383 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20384 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20385 | # It is most probably a Windows format PATH printed by |
| 20386 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20387 | # path with ; separators, and with drive letters. We can handle the |
| 20388 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20389 | # especially as we might pass files found there to a mingw objdump, |
| 20390 | # which wouldn't understand a cygwinified path. Ahh. |
| 20391 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20392 | else |
| 20393 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20394 | fi |
| 20395 | ;; |
| 20396 | pw32*) |
| 20397 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20398 | 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] | 20399 | ;; |
| 20400 | esac |
| 20401 | ;; |
| 20402 | |
| 20403 | *) |
| 20404 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20405 | ;; |
| 20406 | esac |
| 20407 | dynamic_linker='Win32 ld.exe' |
| 20408 | # FIXME: first we should search . and the directory the executable is in |
| 20409 | shlibpath_var=PATH |
| 20410 | ;; |
| 20411 | |
| 20412 | darwin* | rhapsody*) |
| 20413 | dynamic_linker="$host_os dyld" |
| 20414 | version_type=darwin |
| 20415 | need_lib_prefix=no |
| 20416 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20417 | 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] | 20418 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20419 | shlibpath_overrides_runpath=yes |
| 20420 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20421 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20422 | # 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] | 20423 | if test "$GCC" = yes; then |
| 20424 | 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"` |
| 20425 | else |
| 20426 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20427 | fi |
| 20428 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20429 | ;; |
| 20430 | |
| 20431 | dgux*) |
| 20432 | version_type=linux |
| 20433 | need_lib_prefix=no |
| 20434 | need_version=no |
| 20435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20436 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20437 | shlibpath_var=LD_LIBRARY_PATH |
| 20438 | ;; |
| 20439 | |
| 20440 | freebsd1*) |
| 20441 | dynamic_linker=no |
| 20442 | ;; |
| 20443 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20444 | kfreebsd*-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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20456 | freebsd* | dragonfly*) |
| 20457 | # DragonFly does not have aout. When/if they implement a new |
| 20458 | # versioning mechanism, adjust this. |
| 20459 | if test -x /usr/bin/objformat; then |
| 20460 | objformat=`/usr/bin/objformat` |
| 20461 | else |
| 20462 | case $host_os in |
| 20463 | freebsd[123]*) objformat=aout ;; |
| 20464 | *) objformat=elf ;; |
| 20465 | esac |
| 20466 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20467 | version_type=freebsd-$objformat |
| 20468 | case $version_type in |
| 20469 | freebsd-elf*) |
| 20470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20471 | need_version=no |
| 20472 | need_lib_prefix=no |
| 20473 | ;; |
| 20474 | freebsd-*) |
| 20475 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20476 | need_version=yes |
| 20477 | ;; |
| 20478 | esac |
| 20479 | shlibpath_var=LD_LIBRARY_PATH |
| 20480 | case $host_os in |
| 20481 | freebsd2*) |
| 20482 | shlibpath_overrides_runpath=yes |
| 20483 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20484 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20485 | shlibpath_overrides_runpath=yes |
| 20486 | hardcode_into_libs=yes |
| 20487 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20488 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20489 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20490 | shlibpath_overrides_runpath=no |
| 20491 | hardcode_into_libs=yes |
| 20492 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20493 | freebsd*) # from 4.6 on |
| 20494 | shlibpath_overrides_runpath=yes |
| 20495 | hardcode_into_libs=yes |
| 20496 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20497 | esac |
| 20498 | ;; |
| 20499 | |
| 20500 | gnu*) |
| 20501 | version_type=linux |
| 20502 | need_lib_prefix=no |
| 20503 | need_version=no |
| 20504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20505 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20506 | shlibpath_var=LD_LIBRARY_PATH |
| 20507 | hardcode_into_libs=yes |
| 20508 | ;; |
| 20509 | |
| 20510 | hpux9* | hpux10* | hpux11*) |
| 20511 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20512 | # link against other versions. |
| 20513 | version_type=sunos |
| 20514 | need_lib_prefix=no |
| 20515 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20516 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20517 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20518 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20519 | hardcode_into_libs=yes |
| 20520 | dynamic_linker="$host_os dld.so" |
| 20521 | shlibpath_var=LD_LIBRARY_PATH |
| 20522 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20524 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20525 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20526 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20527 | else |
| 20528 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20529 | fi |
| 20530 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20531 | ;; |
| 20532 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20533 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20534 | hardcode_into_libs=yes |
| 20535 | dynamic_linker="$host_os dld.sl" |
| 20536 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20537 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20539 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20540 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20541 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20542 | ;; |
| 20543 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20544 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20545 | dynamic_linker="$host_os dld.sl" |
| 20546 | shlibpath_var=SHLIB_PATH |
| 20547 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20549 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20550 | ;; |
| 20551 | esac |
| 20552 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20553 | postinstall_cmds='chmod 555 $lib' |
| 20554 | ;; |
| 20555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20556 | interix3*) |
| 20557 | version_type=linux |
| 20558 | need_lib_prefix=no |
| 20559 | need_version=no |
| 20560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20561 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20562 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20563 | shlibpath_var=LD_LIBRARY_PATH |
| 20564 | shlibpath_overrides_runpath=no |
| 20565 | hardcode_into_libs=yes |
| 20566 | ;; |
| 20567 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20568 | irix5* | irix6* | nonstopux*) |
| 20569 | case $host_os in |
| 20570 | nonstopux*) version_type=nonstopux ;; |
| 20571 | *) |
| 20572 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20573 | version_type=linux |
| 20574 | else |
| 20575 | version_type=irix |
| 20576 | fi ;; |
| 20577 | esac |
| 20578 | need_lib_prefix=no |
| 20579 | need_version=no |
| 20580 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20582 | case $host_os in |
| 20583 | irix5* | nonstopux*) |
| 20584 | libsuff= shlibsuff= |
| 20585 | ;; |
| 20586 | *) |
| 20587 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20588 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20589 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20590 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20591 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20592 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20593 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20594 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20595 | esac |
| 20596 | ;; |
| 20597 | esac |
| 20598 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20599 | shlibpath_overrides_runpath=no |
| 20600 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20601 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20602 | hardcode_into_libs=yes |
| 20603 | ;; |
| 20604 | |
| 20605 | # No shared lib support for Linux oldld, aout, or coff. |
| 20606 | linux*oldld* | linux*aout* | linux*coff*) |
| 20607 | dynamic_linker=no |
| 20608 | ;; |
| 20609 | |
| 20610 | # This must be Linux ELF. |
| 20611 | linux*) |
| 20612 | version_type=linux |
| 20613 | need_lib_prefix=no |
| 20614 | need_version=no |
| 20615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20616 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20617 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20618 | shlibpath_var=LD_LIBRARY_PATH |
| 20619 | shlibpath_overrides_runpath=no |
| 20620 | # This implies no fast_install, which is unacceptable. |
| 20621 | # Some rework will be needed to allow for fast_install |
| 20622 | # before this can be enabled. |
| 20623 | hardcode_into_libs=yes |
| 20624 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20625 | # Append ld.so.conf contents to the search path |
| 20626 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20627 | 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] | 20628 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20629 | fi |
| 20630 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20631 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20632 | # powerpc, because MkLinux only supported shared libraries with the |
| 20633 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20634 | # most powerpc-linux boxes support dynamic linking these days and |
| 20635 | # people can always --disable-shared, the test was removed, and we |
| 20636 | # assume the GNU/Linux dynamic linker is in use. |
| 20637 | dynamic_linker='GNU/Linux ld.so' |
| 20638 | ;; |
| 20639 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20640 | knetbsd*-gnu) |
| 20641 | version_type=linux |
| 20642 | need_lib_prefix=no |
| 20643 | need_version=no |
| 20644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20645 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20646 | shlibpath_var=LD_LIBRARY_PATH |
| 20647 | shlibpath_overrides_runpath=no |
| 20648 | hardcode_into_libs=yes |
| 20649 | dynamic_linker='GNU ld.so' |
| 20650 | ;; |
| 20651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20652 | netbsd*) |
| 20653 | version_type=sunos |
| 20654 | need_lib_prefix=no |
| 20655 | need_version=no |
| 20656 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20658 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20659 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20660 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20661 | 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] | 20662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20663 | dynamic_linker='NetBSD ld.elf_so' |
| 20664 | fi |
| 20665 | shlibpath_var=LD_LIBRARY_PATH |
| 20666 | shlibpath_overrides_runpath=yes |
| 20667 | hardcode_into_libs=yes |
| 20668 | ;; |
| 20669 | |
| 20670 | newsos6) |
| 20671 | version_type=linux |
| 20672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20673 | shlibpath_var=LD_LIBRARY_PATH |
| 20674 | shlibpath_overrides_runpath=yes |
| 20675 | ;; |
| 20676 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20677 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20678 | version_type=linux |
| 20679 | need_lib_prefix=no |
| 20680 | need_version=no |
| 20681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20682 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20683 | shlibpath_var=LD_LIBRARY_PATH |
| 20684 | shlibpath_overrides_runpath=yes |
| 20685 | ;; |
| 20686 | |
| 20687 | openbsd*) |
| 20688 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20689 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20690 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20691 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20692 | case $host_os in |
| 20693 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20694 | *) need_version=no ;; |
| 20695 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20697 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20698 | shlibpath_var=LD_LIBRARY_PATH |
| 20699 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20700 | case $host_os in |
| 20701 | openbsd2.[89] | openbsd2.[89].*) |
| 20702 | shlibpath_overrides_runpath=no |
| 20703 | ;; |
| 20704 | *) |
| 20705 | shlibpath_overrides_runpath=yes |
| 20706 | ;; |
| 20707 | esac |
| 20708 | else |
| 20709 | shlibpath_overrides_runpath=yes |
| 20710 | fi |
| 20711 | ;; |
| 20712 | |
| 20713 | os2*) |
| 20714 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20715 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20716 | need_lib_prefix=no |
| 20717 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20718 | dynamic_linker='OS/2 ld.exe' |
| 20719 | shlibpath_var=LIBPATH |
| 20720 | ;; |
| 20721 | |
| 20722 | osf3* | osf4* | osf5*) |
| 20723 | version_type=osf |
| 20724 | need_lib_prefix=no |
| 20725 | need_version=no |
| 20726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20728 | shlibpath_var=LD_LIBRARY_PATH |
| 20729 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20730 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20731 | ;; |
| 20732 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20733 | solaris*) |
| 20734 | version_type=linux |
| 20735 | need_lib_prefix=no |
| 20736 | need_version=no |
| 20737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20739 | shlibpath_var=LD_LIBRARY_PATH |
| 20740 | shlibpath_overrides_runpath=yes |
| 20741 | hardcode_into_libs=yes |
| 20742 | # ldd complains unless libraries are executable |
| 20743 | postinstall_cmds='chmod +x $lib' |
| 20744 | ;; |
| 20745 | |
| 20746 | sunos4*) |
| 20747 | version_type=sunos |
| 20748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20749 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20750 | shlibpath_var=LD_LIBRARY_PATH |
| 20751 | shlibpath_overrides_runpath=yes |
| 20752 | if test "$with_gnu_ld" = yes; then |
| 20753 | need_lib_prefix=no |
| 20754 | fi |
| 20755 | need_version=yes |
| 20756 | ;; |
| 20757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20758 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20759 | version_type=linux |
| 20760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20761 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20762 | shlibpath_var=LD_LIBRARY_PATH |
| 20763 | case $host_vendor in |
| 20764 | sni) |
| 20765 | shlibpath_overrides_runpath=no |
| 20766 | need_lib_prefix=no |
| 20767 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20768 | runpath_var=LD_RUN_PATH |
| 20769 | ;; |
| 20770 | siemens) |
| 20771 | need_lib_prefix=no |
| 20772 | ;; |
| 20773 | motorola) |
| 20774 | need_lib_prefix=no |
| 20775 | need_version=no |
| 20776 | shlibpath_overrides_runpath=no |
| 20777 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20778 | ;; |
| 20779 | esac |
| 20780 | ;; |
| 20781 | |
| 20782 | sysv4*MP*) |
| 20783 | if test -d /usr/nec ;then |
| 20784 | version_type=linux |
| 20785 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20786 | soname_spec='$libname${shared_ext}.$major' |
| 20787 | shlibpath_var=LD_LIBRARY_PATH |
| 20788 | fi |
| 20789 | ;; |
| 20790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20791 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20792 | version_type=freebsd-elf |
| 20793 | need_lib_prefix=no |
| 20794 | need_version=no |
| 20795 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20796 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20797 | shlibpath_var=LD_LIBRARY_PATH |
| 20798 | hardcode_into_libs=yes |
| 20799 | if test "$with_gnu_ld" = yes; then |
| 20800 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20801 | shlibpath_overrides_runpath=no |
| 20802 | else |
| 20803 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20804 | shlibpath_overrides_runpath=yes |
| 20805 | case $host_os in |
| 20806 | sco3.2v5*) |
| 20807 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20808 | ;; |
| 20809 | esac |
| 20810 | fi |
| 20811 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20812 | ;; |
| 20813 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20814 | uts4*) |
| 20815 | version_type=linux |
| 20816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20817 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20818 | shlibpath_var=LD_LIBRARY_PATH |
| 20819 | ;; |
| 20820 | |
| 20821 | *) |
| 20822 | dynamic_linker=no |
| 20823 | ;; |
| 20824 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20825 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20826 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20827 | test "$dynamic_linker" = no && can_build_shared=no |
| 20828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20829 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20830 | if test "$GCC" = yes; then |
| 20831 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20832 | fi |
| 20833 | |
| 20834 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20835 | 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] | 20836 | hardcode_action_CXX= |
| 20837 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20838 | test -n "$runpath_var_CXX" || \ |
| 20839 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20840 | |
| 20841 | # We can hardcode non-existant directories. |
| 20842 | if test "$hardcode_direct_CXX" != no && |
| 20843 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20844 | # have to relink, otherwise we might link with an installed library |
| 20845 | # when we should be linking with a yet-to-be-installed one |
| 20846 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20847 | test "$hardcode_minus_L_CXX" != no; then |
| 20848 | # Linking always hardcodes the temporary library directory. |
| 20849 | hardcode_action_CXX=relink |
| 20850 | else |
| 20851 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20852 | hardcode_action_CXX=immediate |
| 20853 | fi |
| 20854 | else |
| 20855 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20856 | # directories. |
| 20857 | hardcode_action_CXX=unsupported |
| 20858 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20859 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20860 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20861 | |
| 20862 | if test "$hardcode_action_CXX" = relink; then |
| 20863 | # Fast installation is not supported |
| 20864 | enable_fast_install=no |
| 20865 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20866 | test "$enable_shared" = no; then |
| 20867 | # Fast installation is not necessary |
| 20868 | enable_fast_install=needless |
| 20869 | fi |
| 20870 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20871 | |
| 20872 | # The else clause should only fire when bootstrapping the |
| 20873 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20874 | # with your package, and you will get complaints that there are |
| 20875 | # no rules to generate ltmain.sh. |
| 20876 | if test -f "$ltmain"; then |
| 20877 | # See if we are running on zsh, and set the options which allow our commands through |
| 20878 | # without removal of \ escapes. |
| 20879 | if test -n "${ZSH_VERSION+set}" ; then |
| 20880 | setopt NO_GLOB_SUBST |
| 20881 | fi |
| 20882 | # Now quote all the things that may contain metacharacters while being |
| 20883 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20884 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20885 | 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] | 20886 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20887 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20888 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20889 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20890 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20891 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20892 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20893 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20894 | compiler_CXX \ |
| 20895 | CC_CXX \ |
| 20896 | LD_CXX \ |
| 20897 | lt_prog_compiler_wl_CXX \ |
| 20898 | lt_prog_compiler_pic_CXX \ |
| 20899 | lt_prog_compiler_static_CXX \ |
| 20900 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20901 | export_dynamic_flag_spec_CXX \ |
| 20902 | thread_safe_flag_spec_CXX \ |
| 20903 | whole_archive_flag_spec_CXX \ |
| 20904 | enable_shared_with_static_runtimes_CXX \ |
| 20905 | old_archive_cmds_CXX \ |
| 20906 | old_archive_from_new_cmds_CXX \ |
| 20907 | predep_objects_CXX \ |
| 20908 | postdep_objects_CXX \ |
| 20909 | predeps_CXX \ |
| 20910 | postdeps_CXX \ |
| 20911 | compiler_lib_search_path_CXX \ |
| 20912 | archive_cmds_CXX \ |
| 20913 | archive_expsym_cmds_CXX \ |
| 20914 | postinstall_cmds_CXX \ |
| 20915 | postuninstall_cmds_CXX \ |
| 20916 | old_archive_from_expsyms_cmds_CXX \ |
| 20917 | allow_undefined_flag_CXX \ |
| 20918 | no_undefined_flag_CXX \ |
| 20919 | export_symbols_cmds_CXX \ |
| 20920 | hardcode_libdir_flag_spec_CXX \ |
| 20921 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20922 | hardcode_libdir_separator_CXX \ |
| 20923 | hardcode_automatic_CXX \ |
| 20924 | module_cmds_CXX \ |
| 20925 | module_expsym_cmds_CXX \ |
| 20926 | lt_cv_prog_compiler_c_o_CXX \ |
| 20927 | exclude_expsyms_CXX \ |
| 20928 | include_expsyms_CXX; do |
| 20929 | |
| 20930 | case $var in |
| 20931 | old_archive_cmds_CXX | \ |
| 20932 | old_archive_from_new_cmds_CXX | \ |
| 20933 | archive_cmds_CXX | \ |
| 20934 | archive_expsym_cmds_CXX | \ |
| 20935 | module_cmds_CXX | \ |
| 20936 | module_expsym_cmds_CXX | \ |
| 20937 | old_archive_from_expsyms_cmds_CXX | \ |
| 20938 | export_symbols_cmds_CXX | \ |
| 20939 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20940 | postinstall_cmds | postuninstall_cmds | \ |
| 20941 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20942 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20943 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20944 | 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] | 20945 | ;; |
| 20946 | *) |
| 20947 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20948 | ;; |
| 20949 | esac |
| 20950 | done |
| 20951 | |
| 20952 | case $lt_echo in |
| 20953 | *'\$0 --fallback-echo"') |
| 20954 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20955 | ;; |
| 20956 | esac |
| 20957 | |
| 20958 | cfgfile="$ofile" |
| 20959 | |
| 20960 | cat <<__EOF__ >> "$cfgfile" |
| 20961 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20962 | |
| 20963 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20964 | |
| 20965 | # Shell to use when invoking shell scripts. |
| 20966 | SHELL=$lt_SHELL |
| 20967 | |
| 20968 | # Whether or not to build shared libraries. |
| 20969 | build_libtool_libs=$enable_shared |
| 20970 | |
| 20971 | # Whether or not to build static libraries. |
| 20972 | build_old_libs=$enable_static |
| 20973 | |
| 20974 | # Whether or not to add -lc for building shared libraries. |
| 20975 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20976 | |
| 20977 | # Whether or not to disallow shared libs when runtime libs are static |
| 20978 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20979 | |
| 20980 | # Whether or not to optimize for fast installation. |
| 20981 | fast_install=$enable_fast_install |
| 20982 | |
| 20983 | # The host system. |
| 20984 | host_alias=$host_alias |
| 20985 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20986 | host_os=$host_os |
| 20987 | |
| 20988 | # The build system. |
| 20989 | build_alias=$build_alias |
| 20990 | build=$build |
| 20991 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20992 | |
| 20993 | # An echo program that does not interpret backslashes. |
| 20994 | echo=$lt_echo |
| 20995 | |
| 20996 | # The archiver. |
| 20997 | AR=$lt_AR |
| 20998 | AR_FLAGS=$lt_AR_FLAGS |
| 20999 | |
| 21000 | # A C compiler. |
| 21001 | LTCC=$lt_LTCC |
| 21002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21003 | # LTCC compiler flags. |
| 21004 | LTCFLAGS=$lt_LTCFLAGS |
| 21005 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21006 | # A language-specific compiler. |
| 21007 | CC=$lt_compiler_CXX |
| 21008 | |
| 21009 | # Is the compiler the GNU C compiler? |
| 21010 | with_gcc=$GCC_CXX |
| 21011 | |
| 21012 | # An ERE matcher. |
| 21013 | EGREP=$lt_EGREP |
| 21014 | |
| 21015 | # The linker used to build libraries. |
| 21016 | LD=$lt_LD_CXX |
| 21017 | |
| 21018 | # Whether we need hard or soft links. |
| 21019 | LN_S=$lt_LN_S |
| 21020 | |
| 21021 | # A BSD-compatible nm program. |
| 21022 | NM=$lt_NM |
| 21023 | |
| 21024 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21025 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21026 | |
| 21027 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21028 | MAGIC_CMD=$MAGIC_CMD |
| 21029 | |
| 21030 | # Used on cygwin: DLL creation program. |
| 21031 | DLLTOOL="$DLLTOOL" |
| 21032 | |
| 21033 | # Used on cygwin: object dumper. |
| 21034 | OBJDUMP="$OBJDUMP" |
| 21035 | |
| 21036 | # Used on cygwin: assembler. |
| 21037 | AS="$AS" |
| 21038 | |
| 21039 | # The name of the directory that contains temporary libtool files. |
| 21040 | objdir=$objdir |
| 21041 | |
| 21042 | # How to create reloadable object files. |
| 21043 | reload_flag=$lt_reload_flag |
| 21044 | reload_cmds=$lt_reload_cmds |
| 21045 | |
| 21046 | # How to pass a linker flag through the compiler. |
| 21047 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21048 | |
| 21049 | # Object file suffix (normally "o"). |
| 21050 | objext="$ac_objext" |
| 21051 | |
| 21052 | # Old archive suffix (normally "a"). |
| 21053 | libext="$libext" |
| 21054 | |
| 21055 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21056 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21057 | |
| 21058 | # Executable file suffix (normally ""). |
| 21059 | exeext="$exeext" |
| 21060 | |
| 21061 | # Additional compiler flags for building library objects. |
| 21062 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21063 | pic_mode=$pic_mode |
| 21064 | |
| 21065 | # What is the maximum length of a command? |
| 21066 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21067 | |
| 21068 | # Does compiler simultaneously support -c and -o options? |
| 21069 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21071 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21072 | need_locks=$lt_need_locks |
| 21073 | |
| 21074 | # Do we need the lib prefix for modules? |
| 21075 | need_lib_prefix=$need_lib_prefix |
| 21076 | |
| 21077 | # Do we need a version for libraries? |
| 21078 | need_version=$need_version |
| 21079 | |
| 21080 | # Whether dlopen is supported. |
| 21081 | dlopen_support=$enable_dlopen |
| 21082 | |
| 21083 | # Whether dlopen of programs is supported. |
| 21084 | dlopen_self=$enable_dlopen_self |
| 21085 | |
| 21086 | # Whether dlopen of statically linked programs is supported. |
| 21087 | dlopen_self_static=$enable_dlopen_self_static |
| 21088 | |
| 21089 | # Compiler flag to prevent dynamic linking. |
| 21090 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21091 | |
| 21092 | # Compiler flag to turn off builtin functions. |
| 21093 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21094 | |
| 21095 | # Compiler flag to allow reflexive dlopens. |
| 21096 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21097 | |
| 21098 | # Compiler flag to generate shared objects directly from archives. |
| 21099 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21100 | |
| 21101 | # Compiler flag to generate thread-safe objects. |
| 21102 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 21103 | |
| 21104 | # Library versioning type. |
| 21105 | version_type=$version_type |
| 21106 | |
| 21107 | # Format of library name prefix. |
| 21108 | libname_spec=$lt_libname_spec |
| 21109 | |
| 21110 | # List of archive names. First name is the real one, the rest are links. |
| 21111 | # The last name is the one that the linker finds with -lNAME. |
| 21112 | library_names_spec=$lt_library_names_spec |
| 21113 | |
| 21114 | # The coded name of the library, if different from the real name. |
| 21115 | soname_spec=$lt_soname_spec |
| 21116 | |
| 21117 | # Commands used to build and install an old-style archive. |
| 21118 | RANLIB=$lt_RANLIB |
| 21119 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21120 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21121 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21122 | |
| 21123 | # Create an old-style archive from a shared archive. |
| 21124 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21125 | |
| 21126 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21127 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21128 | |
| 21129 | # Commands used to build and install a shared archive. |
| 21130 | archive_cmds=$lt_archive_cmds_CXX |
| 21131 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21132 | postinstall_cmds=$lt_postinstall_cmds |
| 21133 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21134 | |
| 21135 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21136 | module_cmds=$lt_module_cmds_CXX |
| 21137 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21138 | |
| 21139 | # Commands to strip libraries. |
| 21140 | old_striplib=$lt_old_striplib |
| 21141 | striplib=$lt_striplib |
| 21142 | |
| 21143 | # Dependencies to place before the objects being linked to create a |
| 21144 | # shared library. |
| 21145 | predep_objects=$lt_predep_objects_CXX |
| 21146 | |
| 21147 | # Dependencies to place after the objects being linked to create a |
| 21148 | # shared library. |
| 21149 | postdep_objects=$lt_postdep_objects_CXX |
| 21150 | |
| 21151 | # Dependencies to place before the objects being linked to create a |
| 21152 | # shared library. |
| 21153 | predeps=$lt_predeps_CXX |
| 21154 | |
| 21155 | # Dependencies to place after the objects being linked to create a |
| 21156 | # shared library. |
| 21157 | postdeps=$lt_postdeps_CXX |
| 21158 | |
| 21159 | # The library search path used internally by the compiler when linking |
| 21160 | # a shared library. |
| 21161 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21162 | |
| 21163 | # Method to check whether dependent libraries are shared objects. |
| 21164 | deplibs_check_method=$lt_deplibs_check_method |
| 21165 | |
| 21166 | # Command to use when deplibs_check_method == file_magic. |
| 21167 | file_magic_cmd=$lt_file_magic_cmd |
| 21168 | |
| 21169 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21170 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21171 | |
| 21172 | # Flag that forces no undefined symbols. |
| 21173 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21174 | |
| 21175 | # Commands used to finish a libtool library installation in a directory. |
| 21176 | finish_cmds=$lt_finish_cmds |
| 21177 | |
| 21178 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21179 | finish_eval=$lt_finish_eval |
| 21180 | |
| 21181 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21182 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21183 | |
| 21184 | # Transform the output of nm in a proper C declaration |
| 21185 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21186 | |
| 21187 | # Transform the output of nm in a C name address pair |
| 21188 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21189 | |
| 21190 | # This is the shared library runtime path variable. |
| 21191 | runpath_var=$runpath_var |
| 21192 | |
| 21193 | # This is the shared library path variable. |
| 21194 | shlibpath_var=$shlibpath_var |
| 21195 | |
| 21196 | # Is shlibpath searched before the hard-coded library search path? |
| 21197 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21198 | |
| 21199 | # How to hardcode a shared library path into an executable. |
| 21200 | hardcode_action=$hardcode_action_CXX |
| 21201 | |
| 21202 | # Whether we should hardcode library paths into libraries. |
| 21203 | hardcode_into_libs=$hardcode_into_libs |
| 21204 | |
| 21205 | # Flag to hardcode \$libdir into a binary during linking. |
| 21206 | # This must work even if \$libdir does not exist. |
| 21207 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21208 | |
| 21209 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21210 | # a binary during linking. This must work even if \$libdir does |
| 21211 | # not exist. |
| 21212 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21213 | |
| 21214 | # Whether we need a single -rpath flag with a separated argument. |
| 21215 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21216 | |
| 21217 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21218 | # resulting binary. |
| 21219 | hardcode_direct=$hardcode_direct_CXX |
| 21220 | |
| 21221 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21222 | # resulting binary. |
| 21223 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21224 | |
| 21225 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21226 | # the resulting binary. |
| 21227 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21228 | |
| 21229 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21230 | # and all subsequent libraries and executables linked against it. |
| 21231 | hardcode_automatic=$hardcode_automatic_CXX |
| 21232 | |
| 21233 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21234 | # restored at relink time. |
| 21235 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21236 | |
| 21237 | # Whether libtool must link a program against all its dependency libraries. |
| 21238 | link_all_deplibs=$link_all_deplibs_CXX |
| 21239 | |
| 21240 | # Compile-time system search path for libraries |
| 21241 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21242 | |
| 21243 | # Run-time system search path for libraries |
| 21244 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21245 | |
| 21246 | # Fix the shell variable \$srcfile for the compiler. |
| 21247 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21248 | |
| 21249 | # Set to yes if exported symbols are required. |
| 21250 | always_export_symbols=$always_export_symbols_CXX |
| 21251 | |
| 21252 | # The commands to list exported symbols. |
| 21253 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21254 | |
| 21255 | # The commands to extract the exported symbol list from a shared archive. |
| 21256 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21257 | |
| 21258 | # Symbols that should not be listed in the preloaded symbols. |
| 21259 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21260 | |
| 21261 | # Symbols that must always be exported. |
| 21262 | include_expsyms=$lt_include_expsyms_CXX |
| 21263 | |
| 21264 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21265 | |
| 21266 | __EOF__ |
| 21267 | |
| 21268 | |
| 21269 | else |
| 21270 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21271 | # `config.status --recheck' to rerun these tests and create the |
| 21272 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21273 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21274 | if test -f "$ltmain_in"; then |
| 21275 | test -f Makefile && make "$ltmain" |
| 21276 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21277 | fi |
| 21278 | |
| 21279 | |
| 21280 | ac_ext=c |
| 21281 | ac_cpp='$CPP $CPPFLAGS' |
| 21282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21285 | |
| 21286 | CC=$lt_save_CC |
| 21287 | LDCXX=$LD |
| 21288 | LD=$lt_save_LD |
| 21289 | GCC=$lt_save_GCC |
| 21290 | with_gnu_ldcxx=$with_gnu_ld |
| 21291 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21292 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21293 | lt_cv_path_LD=$lt_save_path_LD |
| 21294 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21295 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21296 | |
| 21297 | else |
| 21298 | tagname="" |
| 21299 | fi |
| 21300 | ;; |
| 21301 | |
| 21302 | F77) |
| 21303 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21304 | |
| 21305 | ac_ext=f |
| 21306 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21307 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21308 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21309 | |
| 21310 | |
| 21311 | archive_cmds_need_lc_F77=no |
| 21312 | allow_undefined_flag_F77= |
| 21313 | always_export_symbols_F77=no |
| 21314 | archive_expsym_cmds_F77= |
| 21315 | export_dynamic_flag_spec_F77= |
| 21316 | hardcode_direct_F77=no |
| 21317 | hardcode_libdir_flag_spec_F77= |
| 21318 | hardcode_libdir_flag_spec_ld_F77= |
| 21319 | hardcode_libdir_separator_F77= |
| 21320 | hardcode_minus_L_F77=no |
| 21321 | hardcode_automatic_F77=no |
| 21322 | module_cmds_F77= |
| 21323 | module_expsym_cmds_F77= |
| 21324 | link_all_deplibs_F77=unknown |
| 21325 | old_archive_cmds_F77=$old_archive_cmds |
| 21326 | no_undefined_flag_F77= |
| 21327 | whole_archive_flag_spec_F77= |
| 21328 | enable_shared_with_static_runtimes_F77=no |
| 21329 | |
| 21330 | # Source file extension for f77 test sources. |
| 21331 | ac_ext=f |
| 21332 | |
| 21333 | # Object file extension for compiled f77 test sources. |
| 21334 | objext=o |
| 21335 | objext_F77=$objext |
| 21336 | |
| 21337 | # Code to be used in simple compile tests |
| 21338 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21339 | |
| 21340 | # Code to be used in simple link tests |
| 21341 | lt_simple_link_test_code=" program t\n end\n" |
| 21342 | |
| 21343 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21344 | |
| 21345 | # If no C compiler was specified, use CC. |
| 21346 | LTCC=${LTCC-"$CC"} |
| 21347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21348 | # If no C compiler flags were specified, use CFLAGS. |
| 21349 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21350 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21351 | # Allow CC to be a program name with arguments. |
| 21352 | compiler=$CC |
| 21353 | |
| 21354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21355 | # save warnings/boilerplate of simple test code |
| 21356 | ac_outfile=conftest.$ac_objext |
| 21357 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21358 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21359 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21360 | $rm conftest* |
| 21361 | |
| 21362 | ac_outfile=conftest.$ac_objext |
| 21363 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21364 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21365 | _lt_linker_boilerplate=`cat conftest.err` |
| 21366 | $rm conftest* |
| 21367 | |
| 21368 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21369 | # Allow CC to be a program name with arguments. |
| 21370 | lt_save_CC="$CC" |
| 21371 | CC=${F77-"f77"} |
| 21372 | compiler=$CC |
| 21373 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21374 | for cc_temp in $compiler""; do |
| 21375 | case $cc_temp in |
| 21376 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21377 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21378 | \-*) ;; |
| 21379 | *) break;; |
| 21380 | esac |
| 21381 | done |
| 21382 | 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] | 21383 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21385 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21386 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21387 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21388 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21389 | |
| 21390 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21391 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21392 | test "$can_build_shared" = "no" && enable_shared=no |
| 21393 | |
| 21394 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21395 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21396 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21397 | aix3*) |
| 21398 | test "$enable_shared" = yes && enable_static=no |
| 21399 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21400 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21401 | postinstall_cmds='$RANLIB $lib' |
| 21402 | fi |
| 21403 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21404 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21405 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21406 | test "$enable_shared" = yes && enable_static=no |
| 21407 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21408 | ;; |
| 21409 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21410 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21411 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21413 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21414 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21415 | # Make sure either enable_shared or enable_static is yes. |
| 21416 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21417 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21418 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21419 | |
| 21420 | GCC_F77="$G77" |
| 21421 | LD_F77="$LD" |
| 21422 | |
| 21423 | lt_prog_compiler_wl_F77= |
| 21424 | lt_prog_compiler_pic_F77= |
| 21425 | lt_prog_compiler_static_F77= |
| 21426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21427 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21428 | 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] | 21429 | |
| 21430 | if test "$GCC" = yes; then |
| 21431 | lt_prog_compiler_wl_F77='-Wl,' |
| 21432 | lt_prog_compiler_static_F77='-static' |
| 21433 | |
| 21434 | case $host_os in |
| 21435 | aix*) |
| 21436 | # All AIX code is PIC. |
| 21437 | if test "$host_cpu" = ia64; then |
| 21438 | # AIX 5 now supports IA64 processor |
| 21439 | lt_prog_compiler_static_F77='-Bstatic' |
| 21440 | fi |
| 21441 | ;; |
| 21442 | |
| 21443 | amigaos*) |
| 21444 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21445 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21446 | # like `-m68040'. |
| 21447 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21448 | ;; |
| 21449 | |
| 21450 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21451 | # PIC is the default for these OSes. |
| 21452 | ;; |
| 21453 | |
| 21454 | mingw* | pw32* | os2*) |
| 21455 | # This hack is so that the source file can tell whether it is being |
| 21456 | # built for inclusion in a dll (and should export symbols for example). |
| 21457 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21458 | ;; |
| 21459 | |
| 21460 | darwin* | rhapsody*) |
| 21461 | # PIC is the default on this platform |
| 21462 | # Common symbols not allowed in MH_DYLIB files |
| 21463 | lt_prog_compiler_pic_F77='-fno-common' |
| 21464 | ;; |
| 21465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21466 | interix3*) |
| 21467 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21468 | # Instead, we relocate shared libraries at runtime. |
| 21469 | ;; |
| 21470 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21471 | msdosdjgpp*) |
| 21472 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21473 | # on systems that don't support them. |
| 21474 | lt_prog_compiler_can_build_shared_F77=no |
| 21475 | enable_shared=no |
| 21476 | ;; |
| 21477 | |
| 21478 | sysv4*MP*) |
| 21479 | if test -d /usr/nec; then |
| 21480 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21481 | fi |
| 21482 | ;; |
| 21483 | |
| 21484 | hpux*) |
| 21485 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21486 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21487 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21488 | hppa*64*|ia64*) |
| 21489 | # +Z the default |
| 21490 | ;; |
| 21491 | *) |
| 21492 | lt_prog_compiler_pic_F77='-fPIC' |
| 21493 | ;; |
| 21494 | esac |
| 21495 | ;; |
| 21496 | |
| 21497 | *) |
| 21498 | lt_prog_compiler_pic_F77='-fPIC' |
| 21499 | ;; |
| 21500 | esac |
| 21501 | else |
| 21502 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21503 | case $host_os in |
| 21504 | aix*) |
| 21505 | lt_prog_compiler_wl_F77='-Wl,' |
| 21506 | if test "$host_cpu" = ia64; then |
| 21507 | # AIX 5 now supports IA64 processor |
| 21508 | lt_prog_compiler_static_F77='-Bstatic' |
| 21509 | else |
| 21510 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21511 | fi |
| 21512 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21513 | darwin*) |
| 21514 | # PIC is the default on this platform |
| 21515 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21516 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21517 | xlc*) |
| 21518 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21519 | lt_prog_compiler_wl_F77='-Wl,' |
| 21520 | ;; |
| 21521 | esac |
| 21522 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21523 | |
| 21524 | mingw* | pw32* | os2*) |
| 21525 | # This hack is so that the source file can tell whether it is being |
| 21526 | # built for inclusion in a dll (and should export symbols for example). |
| 21527 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21528 | ;; |
| 21529 | |
| 21530 | hpux9* | hpux10* | hpux11*) |
| 21531 | lt_prog_compiler_wl_F77='-Wl,' |
| 21532 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21533 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21534 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21535 | hppa*64*|ia64*) |
| 21536 | # +Z the default |
| 21537 | ;; |
| 21538 | *) |
| 21539 | lt_prog_compiler_pic_F77='+Z' |
| 21540 | ;; |
| 21541 | esac |
| 21542 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21543 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21544 | ;; |
| 21545 | |
| 21546 | irix5* | irix6* | nonstopux*) |
| 21547 | lt_prog_compiler_wl_F77='-Wl,' |
| 21548 | # PIC (with -KPIC) is the default. |
| 21549 | lt_prog_compiler_static_F77='-non_shared' |
| 21550 | ;; |
| 21551 | |
| 21552 | newsos6) |
| 21553 | lt_prog_compiler_pic_F77='-KPIC' |
| 21554 | lt_prog_compiler_static_F77='-Bstatic' |
| 21555 | ;; |
| 21556 | |
| 21557 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21558 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21559 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21560 | lt_prog_compiler_wl_F77='-Wl,' |
| 21561 | lt_prog_compiler_pic_F77='-KPIC' |
| 21562 | lt_prog_compiler_static_F77='-static' |
| 21563 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21564 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21565 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21566 | # which looks to be a dead project) |
| 21567 | lt_prog_compiler_wl_F77='-Wl,' |
| 21568 | lt_prog_compiler_pic_F77='-fpic' |
| 21569 | lt_prog_compiler_static_F77='-Bstatic' |
| 21570 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21571 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21572 | lt_prog_compiler_wl_F77='-Wl,' |
| 21573 | # All Alpha code is PIC. |
| 21574 | lt_prog_compiler_static_F77='-non_shared' |
| 21575 | ;; |
| 21576 | esac |
| 21577 | ;; |
| 21578 | |
| 21579 | osf3* | osf4* | osf5*) |
| 21580 | lt_prog_compiler_wl_F77='-Wl,' |
| 21581 | # All OSF/1 code is PIC. |
| 21582 | lt_prog_compiler_static_F77='-non_shared' |
| 21583 | ;; |
| 21584 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21585 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21586 | lt_prog_compiler_pic_F77='-KPIC' |
| 21587 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21588 | case $cc_basename in |
| 21589 | f77* | f90* | f95*) |
| 21590 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21591 | *) |
| 21592 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21593 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21594 | ;; |
| 21595 | |
| 21596 | sunos4*) |
| 21597 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21598 | lt_prog_compiler_pic_F77='-PIC' |
| 21599 | lt_prog_compiler_static_F77='-Bstatic' |
| 21600 | ;; |
| 21601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21602 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21603 | lt_prog_compiler_wl_F77='-Wl,' |
| 21604 | lt_prog_compiler_pic_F77='-KPIC' |
| 21605 | lt_prog_compiler_static_F77='-Bstatic' |
| 21606 | ;; |
| 21607 | |
| 21608 | sysv4*MP*) |
| 21609 | if test -d /usr/nec ;then |
| 21610 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21611 | lt_prog_compiler_static_F77='-Bstatic' |
| 21612 | fi |
| 21613 | ;; |
| 21614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21615 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21616 | lt_prog_compiler_wl_F77='-Wl,' |
| 21617 | lt_prog_compiler_pic_F77='-KPIC' |
| 21618 | lt_prog_compiler_static_F77='-Bstatic' |
| 21619 | ;; |
| 21620 | |
| 21621 | unicos*) |
| 21622 | lt_prog_compiler_wl_F77='-Wl,' |
| 21623 | lt_prog_compiler_can_build_shared_F77=no |
| 21624 | ;; |
| 21625 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21626 | uts4*) |
| 21627 | lt_prog_compiler_pic_F77='-pic' |
| 21628 | lt_prog_compiler_static_F77='-Bstatic' |
| 21629 | ;; |
| 21630 | |
| 21631 | *) |
| 21632 | lt_prog_compiler_can_build_shared_F77=no |
| 21633 | ;; |
| 21634 | esac |
| 21635 | fi |
| 21636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21637 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21638 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21639 | |
| 21640 | # |
| 21641 | # Check to make sure the PIC flag actually works. |
| 21642 | # |
| 21643 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21645 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21646 | 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] | 21647 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21649 | else |
| 21650 | lt_prog_compiler_pic_works_F77=no |
| 21651 | ac_outfile=conftest.$ac_objext |
| 21652 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21653 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21654 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21655 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21656 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21657 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21658 | # The option is referenced via a variable to avoid confusing sed. |
| 21659 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21660 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21661 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21662 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 21663 | (eval echo "\"\$as_me:21663: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21664 | (eval "$lt_compile" 2>conftest.err) |
| 21665 | ac_status=$? |
| 21666 | cat conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 21667 | echo "$as_me:21667: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21668 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21669 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21670 | # So say no if there are warnings other than the usual output. |
| 21671 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21672 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21673 | 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] | 21674 | lt_prog_compiler_pic_works_F77=yes |
| 21675 | fi |
| 21676 | fi |
| 21677 | $rm conftest* |
| 21678 | |
| 21679 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21680 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21681 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21682 | |
| 21683 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21684 | case $lt_prog_compiler_pic_F77 in |
| 21685 | "" | " "*) ;; |
| 21686 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21687 | esac |
| 21688 | else |
| 21689 | lt_prog_compiler_pic_F77= |
| 21690 | lt_prog_compiler_can_build_shared_F77=no |
| 21691 | fi |
| 21692 | |
| 21693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21694 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21695 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21696 | *djgpp*) |
| 21697 | lt_prog_compiler_pic_F77= |
| 21698 | ;; |
| 21699 | *) |
| 21700 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21701 | ;; |
| 21702 | esac |
| 21703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21704 | # |
| 21705 | # Check to make sure the static flag actually works. |
| 21706 | # |
| 21707 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21708 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21709 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21710 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21712 | else |
| 21713 | lt_prog_compiler_static_works_F77=no |
| 21714 | save_LDFLAGS="$LDFLAGS" |
| 21715 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21716 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21717 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21718 | # The linker can only warn and ignore the option if not recognized |
| 21719 | # So say no if there are warnings |
| 21720 | if test -s conftest.err; then |
| 21721 | # Append any errors to the config.log. |
| 21722 | cat conftest.err 1>&5 |
| 21723 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21724 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21725 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21726 | lt_prog_compiler_static_works_F77=yes |
| 21727 | fi |
| 21728 | else |
| 21729 | lt_prog_compiler_static_works_F77=yes |
| 21730 | fi |
| 21731 | fi |
| 21732 | $rm conftest* |
| 21733 | LDFLAGS="$save_LDFLAGS" |
| 21734 | |
| 21735 | fi |
| 21736 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21737 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21738 | |
| 21739 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21740 | : |
| 21741 | else |
| 21742 | lt_prog_compiler_static_F77= |
| 21743 | fi |
| 21744 | |
| 21745 | |
| 21746 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21747 | 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] | 21748 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21750 | else |
| 21751 | lt_cv_prog_compiler_c_o_F77=no |
| 21752 | $rm -r conftest 2>/dev/null |
| 21753 | mkdir conftest |
| 21754 | cd conftest |
| 21755 | mkdir out |
| 21756 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21757 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21758 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21759 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21760 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21761 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21762 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21763 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21764 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21765 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21766 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 21767 | (eval echo "\"\$as_me:21767: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21768 | (eval "$lt_compile" 2>out/conftest.err) |
| 21769 | ac_status=$? |
| 21770 | cat out/conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 21771 | echo "$as_me:21771: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21772 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21773 | then |
| 21774 | # The compiler can only warn and ignore the option if not recognized |
| 21775 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21776 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21777 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21778 | 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] | 21779 | lt_cv_prog_compiler_c_o_F77=yes |
| 21780 | fi |
| 21781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21782 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21783 | $rm conftest* |
| 21784 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21785 | # template instantiation |
| 21786 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21787 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21788 | cd .. |
| 21789 | rmdir conftest |
| 21790 | $rm conftest* |
| 21791 | |
| 21792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21793 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21794 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21795 | |
| 21796 | |
| 21797 | hard_links="nottested" |
| 21798 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21799 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21800 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21801 | 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] | 21802 | hard_links=yes |
| 21803 | $rm conftest* |
| 21804 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21805 | touch conftest.a |
| 21806 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21807 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21808 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21809 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21810 | if test "$hard_links" = no; then |
| 21811 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21812 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21813 | need_locks=warn |
| 21814 | fi |
| 21815 | else |
| 21816 | need_locks=no |
| 21817 | fi |
| 21818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21819 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21820 | 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] | 21821 | |
| 21822 | runpath_var= |
| 21823 | allow_undefined_flag_F77= |
| 21824 | enable_shared_with_static_runtimes_F77=no |
| 21825 | archive_cmds_F77= |
| 21826 | archive_expsym_cmds_F77= |
| 21827 | old_archive_From_new_cmds_F77= |
| 21828 | old_archive_from_expsyms_cmds_F77= |
| 21829 | export_dynamic_flag_spec_F77= |
| 21830 | whole_archive_flag_spec_F77= |
| 21831 | thread_safe_flag_spec_F77= |
| 21832 | hardcode_libdir_flag_spec_F77= |
| 21833 | hardcode_libdir_flag_spec_ld_F77= |
| 21834 | hardcode_libdir_separator_F77= |
| 21835 | hardcode_direct_F77=no |
| 21836 | hardcode_minus_L_F77=no |
| 21837 | hardcode_shlibpath_var_F77=unsupported |
| 21838 | link_all_deplibs_F77=unknown |
| 21839 | hardcode_automatic_F77=no |
| 21840 | module_cmds_F77= |
| 21841 | module_expsym_cmds_F77= |
| 21842 | always_export_symbols_F77=no |
| 21843 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21844 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21845 | # included in the symbol list |
| 21846 | include_expsyms_F77= |
| 21847 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21848 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21849 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21850 | # as well as any symbol that contains `d'. |
| 21851 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21852 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21853 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21854 | # the symbol is explicitly referenced. Since portable code cannot |
| 21855 | # rely on this symbol name, it's probably fine to never include it in |
| 21856 | # preloaded symbol tables. |
| 21857 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21858 | # Just being paranoid about ensuring that cc_basename is set. |
| 21859 | for cc_temp in $compiler""; do |
| 21860 | case $cc_temp in |
| 21861 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21862 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21863 | \-*) ;; |
| 21864 | *) break;; |
| 21865 | esac |
| 21866 | done |
| 21867 | 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] | 21868 | |
| 21869 | case $host_os in |
| 21870 | cygwin* | mingw* | pw32*) |
| 21871 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21872 | # When not using gcc, we currently assume that we are using |
| 21873 | # Microsoft Visual C++. |
| 21874 | if test "$GCC" != yes; then |
| 21875 | with_gnu_ld=no |
| 21876 | fi |
| 21877 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21878 | interix*) |
| 21879 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21880 | with_gnu_ld=yes |
| 21881 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21882 | openbsd*) |
| 21883 | with_gnu_ld=no |
| 21884 | ;; |
| 21885 | esac |
| 21886 | |
| 21887 | ld_shlibs_F77=yes |
| 21888 | if test "$with_gnu_ld" = yes; then |
| 21889 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21890 | wlarc='${wl}' |
| 21891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21892 | # Set some defaults for GNU ld with shared library support. These |
| 21893 | # are reset later if shared libraries are not supported. Putting them |
| 21894 | # here allows them to be overridden if necessary. |
| 21895 | runpath_var=LD_RUN_PATH |
| 21896 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21897 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21898 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21899 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21900 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21901 | else |
| 21902 | whole_archive_flag_spec_F77= |
| 21903 | fi |
| 21904 | supports_anon_versioning=no |
| 21905 | case `$LD -v 2>/dev/null` in |
| 21906 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21907 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21908 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21909 | *\ 2.11.*) ;; # other 2.11 versions |
| 21910 | *) supports_anon_versioning=yes ;; |
| 21911 | esac |
| 21912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21913 | # See if GNU ld supports shared libraries. |
| 21914 | case $host_os in |
| 21915 | aix3* | aix4* | aix5*) |
| 21916 | # On AIX/PPC, the GNU linker is very broken |
| 21917 | if test "$host_cpu" != ia64; then |
| 21918 | ld_shlibs_F77=no |
| 21919 | cat <<EOF 1>&2 |
| 21920 | |
| 21921 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21922 | *** to be unable to reliably create shared libraries on AIX. |
| 21923 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21924 | *** really care for shared libraries, you may want to modify your PATH |
| 21925 | *** so that a non-GNU linker is found, and then restart. |
| 21926 | |
| 21927 | EOF |
| 21928 | fi |
| 21929 | ;; |
| 21930 | |
| 21931 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21932 | 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] | 21933 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21934 | hardcode_minus_L_F77=yes |
| 21935 | |
| 21936 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21937 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21938 | # to version 4, is to share data among multiple programs linked |
| 21939 | # with the same dynamic library. Since this doesn't match the |
| 21940 | # behavior of shared libraries on other platforms, we can't use |
| 21941 | # them. |
| 21942 | ld_shlibs_F77=no |
| 21943 | ;; |
| 21944 | |
| 21945 | beos*) |
| 21946 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21947 | allow_undefined_flag_F77=unsupported |
| 21948 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21949 | # support --undefined. This deserves some investigation. FIXME |
| 21950 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21951 | else |
| 21952 | ld_shlibs_F77=no |
| 21953 | fi |
| 21954 | ;; |
| 21955 | |
| 21956 | cygwin* | mingw* | pw32*) |
| 21957 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21958 | # as there is no search path for DLLs. |
| 21959 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21960 | allow_undefined_flag_F77=unsupported |
| 21961 | always_export_symbols_F77=no |
| 21962 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21963 | 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] | 21964 | |
| 21965 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21966 | 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] | 21967 | # If the export-symbols file already is a .def file (1st line |
| 21968 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21969 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21970 | cp $export_symbols $output_objdir/$soname.def; |
| 21971 | else |
| 21972 | echo EXPORTS > $output_objdir/$soname.def; |
| 21973 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21974 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21975 | $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] | 21976 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21977 | ld_shlibs_F77=no |
| 21978 | fi |
| 21979 | ;; |
| 21980 | |
| 21981 | interix3*) |
| 21982 | hardcode_direct_F77=no |
| 21983 | hardcode_shlibpath_var_F77=no |
| 21984 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21985 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21986 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21987 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21988 | # default) and relocated if they conflict, which is a slow very memory |
| 21989 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21990 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21991 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21992 | 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' |
| 21993 | 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' |
| 21994 | ;; |
| 21995 | |
| 21996 | linux*) |
| 21997 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21998 | tmp_addflag= |
| 21999 | case $cc_basename,$host_cpu in |
| 22000 | pgcc*) # Portland Group C compiler |
| 22001 | 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' |
| 22002 | tmp_addflag=' $pic_flag' |
| 22003 | ;; |
| 22004 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 22005 | 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' |
| 22006 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 22007 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 22008 | tmp_addflag=' -i_dynamic' ;; |
| 22009 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 22010 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 22011 | ifc* | ifort*) # Intel Fortran compiler |
| 22012 | tmp_addflag=' -nofor_main' ;; |
| 22013 | esac |
| 22014 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22015 | |
| 22016 | if test $supports_anon_versioning = yes; then |
| 22017 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22018 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22019 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 22020 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22021 | fi |
| 22022 | else |
| 22023 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22024 | fi |
| 22025 | ;; |
| 22026 | |
| 22027 | netbsd*) |
| 22028 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22029 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22030 | wlarc= |
| 22031 | else |
| 22032 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22033 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22034 | fi |
| 22035 | ;; |
| 22036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22037 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22038 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22039 | ld_shlibs_F77=no |
| 22040 | cat <<EOF 1>&2 |
| 22041 | |
| 22042 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22043 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22044 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22045 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22046 | *** your PATH or compiler configuration so that the native linker is |
| 22047 | *** used, and then restart. |
| 22048 | |
| 22049 | EOF |
| 22050 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22051 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22052 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22053 | else |
| 22054 | ld_shlibs_F77=no |
| 22055 | fi |
| 22056 | ;; |
| 22057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22058 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 22059 | case `$LD -v 2>&1` in |
| 22060 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 22061 | ld_shlibs_F77=no |
| 22062 | cat <<_LT_EOF 1>&2 |
| 22063 | |
| 22064 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 22065 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 22066 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22067 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 22068 | *** your PATH or compiler configuration so that the native linker is |
| 22069 | *** used, and then restart. |
| 22070 | |
| 22071 | _LT_EOF |
| 22072 | ;; |
| 22073 | *) |
| 22074 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22075 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 22076 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 22077 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 22078 | else |
| 22079 | ld_shlibs_F77=no |
| 22080 | fi |
| 22081 | ;; |
| 22082 | esac |
| 22083 | ;; |
| 22084 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22085 | sunos4*) |
| 22086 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22087 | wlarc= |
| 22088 | hardcode_direct_F77=yes |
| 22089 | hardcode_shlibpath_var_F77=no |
| 22090 | ;; |
| 22091 | |
| 22092 | *) |
| 22093 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22094 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22095 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22096 | else |
| 22097 | ld_shlibs_F77=no |
| 22098 | fi |
| 22099 | ;; |
| 22100 | esac |
| 22101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22102 | if test "$ld_shlibs_F77" = no; then |
| 22103 | runpath_var= |
| 22104 | hardcode_libdir_flag_spec_F77= |
| 22105 | export_dynamic_flag_spec_F77= |
| 22106 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22107 | fi |
| 22108 | else |
| 22109 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22110 | case $host_os in |
| 22111 | aix3*) |
| 22112 | allow_undefined_flag_F77=unsupported |
| 22113 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22114 | 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] | 22115 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22116 | # are no directories specified by -L. |
| 22117 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22118 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22119 | # Neither direct hardcoding nor static linking is supported with a |
| 22120 | # broken collect2. |
| 22121 | hardcode_direct_F77=unsupported |
| 22122 | fi |
| 22123 | ;; |
| 22124 | |
| 22125 | aix4* | aix5*) |
| 22126 | if test "$host_cpu" = ia64; then |
| 22127 | # On IA64, the linker does run time linking by default, so we don't |
| 22128 | # have to do anything special. |
| 22129 | aix_use_runtimelinking=no |
| 22130 | exp_sym_flag='-Bexport' |
| 22131 | no_entry_flag="" |
| 22132 | else |
| 22133 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22134 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22135 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22136 | 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' |
| 22137 | else |
| 22138 | 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' |
| 22139 | fi |
| 22140 | aix_use_runtimelinking=no |
| 22141 | |
| 22142 | # Test if we are trying to use run time linking or normal |
| 22143 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22144 | # need to do runtime linking. |
| 22145 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22146 | for ld_flag in $LDFLAGS; do |
| 22147 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22148 | aix_use_runtimelinking=yes |
| 22149 | break |
| 22150 | fi |
| 22151 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22152 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22153 | esac |
| 22154 | |
| 22155 | exp_sym_flag='-bexport' |
| 22156 | no_entry_flag='-bnoentry' |
| 22157 | fi |
| 22158 | |
| 22159 | # When large executables or shared objects are built, AIX ld can |
| 22160 | # have problems creating the table of contents. If linking a library |
| 22161 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22162 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22163 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22164 | |
| 22165 | archive_cmds_F77='' |
| 22166 | hardcode_direct_F77=yes |
| 22167 | hardcode_libdir_separator_F77=':' |
| 22168 | link_all_deplibs_F77=yes |
| 22169 | |
| 22170 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22171 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22172 | # We only want to do this on AIX 4.2 and lower, the check |
| 22173 | # below for broken collect2 doesn't work under 4.3+ |
| 22174 | collect2name=`${CC} -print-prog-name=collect2` |
| 22175 | if test -f "$collect2name" && \ |
| 22176 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22177 | then |
| 22178 | # We have reworked collect2 |
| 22179 | hardcode_direct_F77=yes |
| 22180 | else |
| 22181 | # We have old collect2 |
| 22182 | hardcode_direct_F77=unsupported |
| 22183 | # It fails to find uninstalled libraries when the uninstalled |
| 22184 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22185 | # to unsupported forces relinking |
| 22186 | hardcode_minus_L_F77=yes |
| 22187 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22188 | hardcode_libdir_separator_F77= |
| 22189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22190 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22191 | esac |
| 22192 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22193 | if test "$aix_use_runtimelinking" = yes; then |
| 22194 | shared_flag="$shared_flag "'${wl}-G' |
| 22195 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22196 | else |
| 22197 | # not using gcc |
| 22198 | if test "$host_cpu" = ia64; then |
| 22199 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22200 | # chokes on -Wl,-G. The following line is correct: |
| 22201 | shared_flag='-G' |
| 22202 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22203 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22204 | shared_flag='${wl}-G' |
| 22205 | else |
| 22206 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22207 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22208 | fi |
| 22209 | fi |
| 22210 | |
| 22211 | # It seems that -bexpall does not export symbols beginning with |
| 22212 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22213 | always_export_symbols_F77=yes |
| 22214 | if test "$aix_use_runtimelinking" = yes; then |
| 22215 | # Warning - without using the other runtime loading flags (-brtl), |
| 22216 | # -berok will link without error, but may produce a broken library. |
| 22217 | allow_undefined_flag_F77='-berok' |
| 22218 | # Determine the default libpath from the value encoded in an empty executable. |
| 22219 | cat >conftest.$ac_ext <<_ACEOF |
| 22220 | program main |
| 22221 | |
| 22222 | end |
| 22223 | _ACEOF |
| 22224 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22225 | if { (ac_try="$ac_link" |
| 22226 | case "(($ac_try" in |
| 22227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22228 | *) ac_try_echo=$ac_try;; |
| 22229 | esac |
| 22230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22231 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22232 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22234 | rm -f conftest.er1 |
| 22235 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 22237 | (exit $ac_status); } && |
| 22238 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22239 | { (case "(($ac_try" in |
| 22240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22241 | *) ac_try_echo=$ac_try;; |
| 22242 | esac |
| 22243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22244 | (eval "$ac_try") 2>&5 |
| 22245 | ac_status=$? |
| 22246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22247 | (exit $ac_status); }; } && |
| 22248 | { ac_try='test -s conftest$ac_exeext' |
| 22249 | { (case "(($ac_try" in |
| 22250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22251 | *) ac_try_echo=$ac_try;; |
| 22252 | esac |
| 22253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22254 | (eval "$ac_try") 2>&5 |
| 22255 | ac_status=$? |
| 22256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22257 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22258 | |
| 22259 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22260 | }'` |
| 22261 | # Check for a 64-bit object if we didn't find anything. |
| 22262 | 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; } |
| 22263 | }'`; fi |
| 22264 | else |
| 22265 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22268 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22270 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 22271 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22272 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22273 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22274 | |
| 22275 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22276 | 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] | 22277 | else |
| 22278 | if test "$host_cpu" = ia64; then |
| 22279 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22280 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22281 | 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] | 22282 | else |
| 22283 | # Determine the default libpath from the value encoded in an empty executable. |
| 22284 | cat >conftest.$ac_ext <<_ACEOF |
| 22285 | program main |
| 22286 | |
| 22287 | end |
| 22288 | _ACEOF |
| 22289 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22290 | if { (ac_try="$ac_link" |
| 22291 | case "(($ac_try" in |
| 22292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22293 | *) ac_try_echo=$ac_try;; |
| 22294 | esac |
| 22295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22296 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22297 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22299 | rm -f conftest.er1 |
| 22300 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 22302 | (exit $ac_status); } && |
| 22303 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22304 | { (case "(($ac_try" in |
| 22305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22306 | *) ac_try_echo=$ac_try;; |
| 22307 | esac |
| 22308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22309 | (eval "$ac_try") 2>&5 |
| 22310 | ac_status=$? |
| 22311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22312 | (exit $ac_status); }; } && |
| 22313 | { ac_try='test -s conftest$ac_exeext' |
| 22314 | { (case "(($ac_try" in |
| 22315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22316 | *) ac_try_echo=$ac_try;; |
| 22317 | esac |
| 22318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22319 | (eval "$ac_try") 2>&5 |
| 22320 | ac_status=$? |
| 22321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22322 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22323 | |
| 22324 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22325 | }'` |
| 22326 | # Check for a 64-bit object if we didn't find anything. |
| 22327 | 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; } |
| 22328 | }'`; fi |
| 22329 | else |
| 22330 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22333 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22334 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22335 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 22336 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22337 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22338 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22339 | |
| 22340 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22341 | # Warning - without using the other run time loading flags, |
| 22342 | # -berok will link without error, but may produce a broken library. |
| 22343 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22344 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22345 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22346 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22347 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22348 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22349 | 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] | 22350 | fi |
| 22351 | fi |
| 22352 | ;; |
| 22353 | |
| 22354 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22355 | 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] | 22356 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22357 | hardcode_minus_L_F77=yes |
| 22358 | # see comment about different semantics on the GNU ld section |
| 22359 | ld_shlibs_F77=no |
| 22360 | ;; |
| 22361 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22362 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22363 | export_dynamic_flag_spec_F77=-rdynamic |
| 22364 | ;; |
| 22365 | |
| 22366 | cygwin* | mingw* | pw32*) |
| 22367 | # When not using gcc, we currently assume that we are using |
| 22368 | # Microsoft Visual C++. |
| 22369 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22370 | # no search path for DLLs. |
| 22371 | hardcode_libdir_flag_spec_F77=' ' |
| 22372 | allow_undefined_flag_F77=unsupported |
| 22373 | # Tell ltmain to make .lib files, not .a files. |
| 22374 | libext=lib |
| 22375 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22376 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22377 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22378 | 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] | 22379 | # The linker will automatically build a .lib file if we build a DLL. |
| 22380 | old_archive_From_new_cmds_F77='true' |
| 22381 | # FIXME: Should let the user specify the lib program. |
| 22382 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22383 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22384 | enable_shared_with_static_runtimes_F77=yes |
| 22385 | ;; |
| 22386 | |
| 22387 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22388 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22389 | rhapsody* | darwin1.[012]) |
| 22390 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22391 | ;; |
| 22392 | *) # Darwin 1.3 on |
| 22393 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22394 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22395 | else |
| 22396 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22397 | 10.[012]) |
| 22398 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22399 | ;; |
| 22400 | 10.*) |
| 22401 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22402 | ;; |
| 22403 | esac |
| 22404 | fi |
| 22405 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22406 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22407 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22408 | hardcode_direct_F77=no |
| 22409 | hardcode_automatic_F77=yes |
| 22410 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22411 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22412 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22413 | if test "$GCC" = yes ; then |
| 22414 | output_verbose_link_cmd='echo' |
| 22415 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22416 | 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] | 22417 | # 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] | 22418 | 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}' |
| 22419 | 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] | 22420 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22421 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22422 | xlc*) |
| 22423 | output_verbose_link_cmd='echo' |
| 22424 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22425 | 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] | 22426 | # 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] | 22427 | 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}' |
| 22428 | 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] | 22429 | ;; |
| 22430 | *) |
| 22431 | ld_shlibs_F77=no |
| 22432 | ;; |
| 22433 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22434 | fi |
| 22435 | ;; |
| 22436 | |
| 22437 | dgux*) |
| 22438 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22439 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22440 | hardcode_shlibpath_var_F77=no |
| 22441 | ;; |
| 22442 | |
| 22443 | freebsd1*) |
| 22444 | ld_shlibs_F77=no |
| 22445 | ;; |
| 22446 | |
| 22447 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22448 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22449 | # does not break anything, and helps significantly (at the cost of a little |
| 22450 | # extra space). |
| 22451 | freebsd2.2*) |
| 22452 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22453 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22454 | hardcode_direct_F77=yes |
| 22455 | hardcode_shlibpath_var_F77=no |
| 22456 | ;; |
| 22457 | |
| 22458 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22459 | freebsd2*) |
| 22460 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22461 | hardcode_direct_F77=yes |
| 22462 | hardcode_minus_L_F77=yes |
| 22463 | hardcode_shlibpath_var_F77=no |
| 22464 | ;; |
| 22465 | |
| 22466 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22467 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22468 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22469 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22470 | hardcode_direct_F77=yes |
| 22471 | hardcode_shlibpath_var_F77=no |
| 22472 | ;; |
| 22473 | |
| 22474 | hpux9*) |
| 22475 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22476 | 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] | 22477 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22478 | 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] | 22479 | fi |
| 22480 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22481 | hardcode_libdir_separator_F77=: |
| 22482 | hardcode_direct_F77=yes |
| 22483 | |
| 22484 | # hardcode_minus_L: Not really in the search PATH, |
| 22485 | # but as the default location of the library. |
| 22486 | hardcode_minus_L_F77=yes |
| 22487 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22488 | ;; |
| 22489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22490 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22491 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22492 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22493 | else |
| 22494 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22495 | fi |
| 22496 | if test "$with_gnu_ld" = no; then |
| 22497 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22498 | hardcode_libdir_separator_F77=: |
| 22499 | |
| 22500 | hardcode_direct_F77=yes |
| 22501 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22502 | |
| 22503 | # hardcode_minus_L: Not really in the search PATH, |
| 22504 | # but as the default location of the library. |
| 22505 | hardcode_minus_L_F77=yes |
| 22506 | fi |
| 22507 | ;; |
| 22508 | |
| 22509 | hpux11*) |
| 22510 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22511 | case $host_cpu in |
| 22512 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22513 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22514 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22515 | ia64*) |
| 22516 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22517 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22518 | *) |
| 22519 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22520 | ;; |
| 22521 | esac |
| 22522 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22523 | case $host_cpu in |
| 22524 | hppa*64*) |
| 22525 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22526 | ;; |
| 22527 | ia64*) |
| 22528 | 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] | 22529 | ;; |
| 22530 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22531 | 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] | 22532 | ;; |
| 22533 | esac |
| 22534 | fi |
| 22535 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22536 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22537 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22539 | case $host_cpu in |
| 22540 | hppa*64*|ia64*) |
| 22541 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22542 | hardcode_direct_F77=no |
| 22543 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22544 | ;; |
| 22545 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22546 | hardcode_direct_F77=yes |
| 22547 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22548 | |
| 22549 | # hardcode_minus_L: Not really in the search PATH, |
| 22550 | # but as the default location of the library. |
| 22551 | hardcode_minus_L_F77=yes |
| 22552 | ;; |
| 22553 | esac |
| 22554 | fi |
| 22555 | ;; |
| 22556 | |
| 22557 | irix5* | irix6* | nonstopux*) |
| 22558 | if test "$GCC" = yes; then |
| 22559 | 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' |
| 22560 | else |
| 22561 | 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' |
| 22562 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22563 | fi |
| 22564 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22565 | hardcode_libdir_separator_F77=: |
| 22566 | link_all_deplibs_F77=yes |
| 22567 | ;; |
| 22568 | |
| 22569 | netbsd*) |
| 22570 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22571 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22572 | else |
| 22573 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22574 | fi |
| 22575 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22576 | hardcode_direct_F77=yes |
| 22577 | hardcode_shlibpath_var_F77=no |
| 22578 | ;; |
| 22579 | |
| 22580 | newsos6) |
| 22581 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22582 | hardcode_direct_F77=yes |
| 22583 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22584 | hardcode_libdir_separator_F77=: |
| 22585 | hardcode_shlibpath_var_F77=no |
| 22586 | ;; |
| 22587 | |
| 22588 | openbsd*) |
| 22589 | hardcode_direct_F77=yes |
| 22590 | hardcode_shlibpath_var_F77=no |
| 22591 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22592 | 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] | 22593 | 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] | 22594 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22595 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22596 | else |
| 22597 | case $host_os in |
| 22598 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22599 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22600 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22601 | ;; |
| 22602 | *) |
| 22603 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22604 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22605 | ;; |
| 22606 | esac |
| 22607 | fi |
| 22608 | ;; |
| 22609 | |
| 22610 | os2*) |
| 22611 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22612 | hardcode_minus_L_F77=yes |
| 22613 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22614 | 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] | 22615 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22616 | ;; |
| 22617 | |
| 22618 | osf3*) |
| 22619 | if test "$GCC" = yes; then |
| 22620 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22621 | 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' |
| 22622 | else |
| 22623 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22624 | 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' |
| 22625 | fi |
| 22626 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22627 | hardcode_libdir_separator_F77=: |
| 22628 | ;; |
| 22629 | |
| 22630 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22631 | if test "$GCC" = yes; then |
| 22632 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22633 | 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' |
| 22634 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22635 | else |
| 22636 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22637 | 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] | 22638 | 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] | 22639 | $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] | 22640 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22641 | # Both c and cxx compiler support -rpath directly |
| 22642 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22643 | fi |
| 22644 | hardcode_libdir_separator_F77=: |
| 22645 | ;; |
| 22646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22647 | solaris*) |
| 22648 | no_undefined_flag_F77=' -z text' |
| 22649 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22650 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22651 | 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] | 22652 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22653 | $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] | 22654 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22655 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22656 | 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] | 22657 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22658 | $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] | 22659 | fi |
| 22660 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22661 | hardcode_shlibpath_var_F77=no |
| 22662 | case $host_os in |
| 22663 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22664 | *) |
| 22665 | # The compiler driver will combine linker options so we |
| 22666 | # cannot just pass the convience library names through |
| 22667 | # without $wl, iff we do not link with $LD. |
| 22668 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22669 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22670 | case $wlarc in |
| 22671 | '') |
| 22672 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22673 | *) |
| 22674 | 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' ;; |
| 22675 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22676 | esac |
| 22677 | link_all_deplibs_F77=yes |
| 22678 | ;; |
| 22679 | |
| 22680 | sunos4*) |
| 22681 | if test "x$host_vendor" = xsequent; then |
| 22682 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22683 | # files that make .init and .fini sections work. |
| 22684 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22685 | else |
| 22686 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22687 | fi |
| 22688 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22689 | hardcode_direct_F77=yes |
| 22690 | hardcode_minus_L_F77=yes |
| 22691 | hardcode_shlibpath_var_F77=no |
| 22692 | ;; |
| 22693 | |
| 22694 | sysv4) |
| 22695 | case $host_vendor in |
| 22696 | sni) |
| 22697 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22698 | hardcode_direct_F77=yes # is this really true??? |
| 22699 | ;; |
| 22700 | siemens) |
| 22701 | ## LD is ld it makes a PLAMLIB |
| 22702 | ## CC just makes a GrossModule. |
| 22703 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22704 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22705 | hardcode_direct_F77=no |
| 22706 | ;; |
| 22707 | motorola) |
| 22708 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22709 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22710 | ;; |
| 22711 | esac |
| 22712 | runpath_var='LD_RUN_PATH' |
| 22713 | hardcode_shlibpath_var_F77=no |
| 22714 | ;; |
| 22715 | |
| 22716 | sysv4.3*) |
| 22717 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22718 | hardcode_shlibpath_var_F77=no |
| 22719 | export_dynamic_flag_spec_F77='-Bexport' |
| 22720 | ;; |
| 22721 | |
| 22722 | sysv4*MP*) |
| 22723 | if test -d /usr/nec; then |
| 22724 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22725 | hardcode_shlibpath_var_F77=no |
| 22726 | runpath_var=LD_RUN_PATH |
| 22727 | hardcode_runpath_var=yes |
| 22728 | ld_shlibs_F77=yes |
| 22729 | fi |
| 22730 | ;; |
| 22731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22732 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22733 | no_undefined_flag_F77='${wl}-z,text' |
| 22734 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22735 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22736 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22737 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22738 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22739 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22740 | 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] | 22741 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22742 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22743 | 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] | 22744 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22745 | ;; |
| 22746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22747 | sysv5* | sco3.2v5* | sco5v6*) |
| 22748 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22749 | # link with -lc, and that would cause any symbols used from libc to |
| 22750 | # always be unresolved, which means just about no library would |
| 22751 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22752 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22753 | # as -z defs. |
| 22754 | no_undefined_flag_F77='${wl}-z,text' |
| 22755 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22756 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22757 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22758 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22759 | hardcode_libdir_separator_F77=':' |
| 22760 | link_all_deplibs_F77=yes |
| 22761 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22762 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22763 | |
| 22764 | if test "$GCC" = yes; then |
| 22765 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22766 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22767 | else |
| 22768 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22769 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22770 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22771 | ;; |
| 22772 | |
| 22773 | uts4*) |
| 22774 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22775 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22776 | hardcode_shlibpath_var_F77=no |
| 22777 | ;; |
| 22778 | |
| 22779 | *) |
| 22780 | ld_shlibs_F77=no |
| 22781 | ;; |
| 22782 | esac |
| 22783 | fi |
| 22784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22785 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22786 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22787 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22788 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22789 | # |
| 22790 | # Do we need to explicitly link libc? |
| 22791 | # |
| 22792 | case "x$archive_cmds_need_lc_F77" in |
| 22793 | x|xyes) |
| 22794 | # Assume -lc should be added |
| 22795 | archive_cmds_need_lc_F77=yes |
| 22796 | |
| 22797 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22798 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22799 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22800 | # FIXME: we may have to deal with multi-command sequences. |
| 22801 | ;; |
| 22802 | '$CC '*) |
| 22803 | # Test whether the compiler implicitly links with -lc since on some |
| 22804 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22805 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22806 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22807 | 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] | 22808 | $rm conftest* |
| 22809 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22810 | |
| 22811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22812 | (eval $ac_compile) 2>&5 |
| 22813 | ac_status=$? |
| 22814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22815 | (exit $ac_status); } 2>conftest.err; then |
| 22816 | soname=conftest |
| 22817 | lib=conftest |
| 22818 | libobjs=conftest.$ac_objext |
| 22819 | deplibs= |
| 22820 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22821 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22822 | compiler_flags=-v |
| 22823 | linker_flags=-v |
| 22824 | verstring= |
| 22825 | output_objdir=. |
| 22826 | libname=conftest |
| 22827 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22828 | allow_undefined_flag_F77= |
| 22829 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22830 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22831 | ac_status=$? |
| 22832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22833 | (exit $ac_status); } |
| 22834 | then |
| 22835 | archive_cmds_need_lc_F77=no |
| 22836 | else |
| 22837 | archive_cmds_need_lc_F77=yes |
| 22838 | fi |
| 22839 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22840 | else |
| 22841 | cat conftest.err 1>&5 |
| 22842 | fi |
| 22843 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22844 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22845 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22846 | ;; |
| 22847 | esac |
| 22848 | fi |
| 22849 | ;; |
| 22850 | esac |
| 22851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22852 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22853 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22854 | library_names_spec= |
| 22855 | libname_spec='lib$name' |
| 22856 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22857 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22858 | postinstall_cmds= |
| 22859 | postuninstall_cmds= |
| 22860 | finish_cmds= |
| 22861 | finish_eval= |
| 22862 | shlibpath_var= |
| 22863 | shlibpath_overrides_runpath=unknown |
| 22864 | version_type=none |
| 22865 | dynamic_linker="$host_os ld.so" |
| 22866 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22867 | if test "$GCC" = yes; then |
| 22868 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22869 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22870 | # if the path contains ";" then we assume it to be the separator |
| 22871 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22872 | # assumed that no part of a normal pathname contains ";" but that should |
| 22873 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22874 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22875 | else |
| 22876 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22877 | fi |
| 22878 | else |
| 22879 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22880 | fi |
| 22881 | need_lib_prefix=unknown |
| 22882 | hardcode_into_libs=no |
| 22883 | |
| 22884 | # when you set need_version to no, make sure it does not cause -set_version |
| 22885 | # flags to be left without arguments |
| 22886 | need_version=unknown |
| 22887 | |
| 22888 | case $host_os in |
| 22889 | aix3*) |
| 22890 | version_type=linux |
| 22891 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22892 | shlibpath_var=LIBPATH |
| 22893 | |
| 22894 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22896 | ;; |
| 22897 | |
| 22898 | aix4* | aix5*) |
| 22899 | version_type=linux |
| 22900 | need_lib_prefix=no |
| 22901 | need_version=no |
| 22902 | hardcode_into_libs=yes |
| 22903 | if test "$host_cpu" = ia64; then |
| 22904 | # AIX 5 supports IA64 |
| 22905 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22906 | shlibpath_var=LD_LIBRARY_PATH |
| 22907 | else |
| 22908 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22909 | # for dependence libraries. The import file would start with |
| 22910 | # the line `#! .'. This would cause the generated library to |
| 22911 | # depend on `.', always an invalid library. This was fixed in |
| 22912 | # development snapshots of GCC prior to 3.0. |
| 22913 | case $host_os in |
| 22914 | aix4 | aix4.[01] | aix4.[01].*) |
| 22915 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22916 | echo ' yes ' |
| 22917 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22918 | : |
| 22919 | else |
| 22920 | can_build_shared=no |
| 22921 | fi |
| 22922 | ;; |
| 22923 | esac |
| 22924 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22925 | # soname into executable. Probably we can add versioning support to |
| 22926 | # collect2, so additional links can be useful in future. |
| 22927 | if test "$aix_use_runtimelinking" = yes; then |
| 22928 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22929 | # instead of lib<name>.a to let people know that these are not |
| 22930 | # typical AIX shared libraries. |
| 22931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22932 | else |
| 22933 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22934 | # and later when we are not doing run time linking. |
| 22935 | library_names_spec='${libname}${release}.a $libname.a' |
| 22936 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22937 | fi |
| 22938 | shlibpath_var=LIBPATH |
| 22939 | fi |
| 22940 | ;; |
| 22941 | |
| 22942 | amigaos*) |
| 22943 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22944 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22945 | 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] | 22946 | ;; |
| 22947 | |
| 22948 | beos*) |
| 22949 | library_names_spec='${libname}${shared_ext}' |
| 22950 | dynamic_linker="$host_os ld.so" |
| 22951 | shlibpath_var=LIBRARY_PATH |
| 22952 | ;; |
| 22953 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22954 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22955 | version_type=linux |
| 22956 | need_version=no |
| 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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22960 | shlibpath_var=LD_LIBRARY_PATH |
| 22961 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22962 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22963 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22964 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22965 | # libtool to hard-code these into programs |
| 22966 | ;; |
| 22967 | |
| 22968 | cygwin* | mingw* | pw32*) |
| 22969 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22970 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22971 | need_version=no |
| 22972 | need_lib_prefix=no |
| 22973 | |
| 22974 | case $GCC,$host_os in |
| 22975 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22976 | library_names_spec='$libname.dll.a' |
| 22977 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22978 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22979 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22980 | dldir=$destdir/`dirname \$dlpath`~ |
| 22981 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22982 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22983 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22984 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22985 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22986 | $rm \$dlpath' |
| 22987 | shlibpath_overrides_runpath=yes |
| 22988 | |
| 22989 | case $host_os in |
| 22990 | cygwin*) |
| 22991 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22992 | 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] | 22993 | 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] | 22994 | ;; |
| 22995 | mingw*) |
| 22996 | # MinGW DLLs use traditional 'lib' prefix |
| 22997 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22998 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22999 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 23000 | # It is most probably a Windows format PATH printed by |
| 23001 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 23002 | # path with ; separators, and with drive letters. We can handle the |
| 23003 | # drive letters (cygwin fileutils understands them), so leave them, |
| 23004 | # especially as we might pass files found there to a mingw objdump, |
| 23005 | # which wouldn't understand a cygwinified path. Ahh. |
| 23006 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23007 | else |
| 23008 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23009 | fi |
| 23010 | ;; |
| 23011 | pw32*) |
| 23012 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23013 | 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] | 23014 | ;; |
| 23015 | esac |
| 23016 | ;; |
| 23017 | |
| 23018 | *) |
| 23019 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23020 | ;; |
| 23021 | esac |
| 23022 | dynamic_linker='Win32 ld.exe' |
| 23023 | # FIXME: first we should search . and the directory the executable is in |
| 23024 | shlibpath_var=PATH |
| 23025 | ;; |
| 23026 | |
| 23027 | darwin* | rhapsody*) |
| 23028 | dynamic_linker="$host_os dyld" |
| 23029 | version_type=darwin |
| 23030 | need_lib_prefix=no |
| 23031 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23032 | 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] | 23033 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23034 | shlibpath_overrides_runpath=yes |
| 23035 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23036 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23037 | # 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] | 23038 | if test "$GCC" = yes; then |
| 23039 | 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"` |
| 23040 | else |
| 23041 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23042 | fi |
| 23043 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23044 | ;; |
| 23045 | |
| 23046 | dgux*) |
| 23047 | version_type=linux |
| 23048 | need_lib_prefix=no |
| 23049 | need_version=no |
| 23050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23051 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23052 | shlibpath_var=LD_LIBRARY_PATH |
| 23053 | ;; |
| 23054 | |
| 23055 | freebsd1*) |
| 23056 | dynamic_linker=no |
| 23057 | ;; |
| 23058 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23059 | kfreebsd*-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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23071 | freebsd* | dragonfly*) |
| 23072 | # DragonFly does not have aout. When/if they implement a new |
| 23073 | # versioning mechanism, adjust this. |
| 23074 | if test -x /usr/bin/objformat; then |
| 23075 | objformat=`/usr/bin/objformat` |
| 23076 | else |
| 23077 | case $host_os in |
| 23078 | freebsd[123]*) objformat=aout ;; |
| 23079 | *) objformat=elf ;; |
| 23080 | esac |
| 23081 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23082 | version_type=freebsd-$objformat |
| 23083 | case $version_type in |
| 23084 | freebsd-elf*) |
| 23085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23086 | need_version=no |
| 23087 | need_lib_prefix=no |
| 23088 | ;; |
| 23089 | freebsd-*) |
| 23090 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23091 | need_version=yes |
| 23092 | ;; |
| 23093 | esac |
| 23094 | shlibpath_var=LD_LIBRARY_PATH |
| 23095 | case $host_os in |
| 23096 | freebsd2*) |
| 23097 | shlibpath_overrides_runpath=yes |
| 23098 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23099 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23100 | shlibpath_overrides_runpath=yes |
| 23101 | hardcode_into_libs=yes |
| 23102 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23103 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 23104 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23105 | shlibpath_overrides_runpath=no |
| 23106 | hardcode_into_libs=yes |
| 23107 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23108 | freebsd*) # from 4.6 on |
| 23109 | shlibpath_overrides_runpath=yes |
| 23110 | hardcode_into_libs=yes |
| 23111 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23112 | esac |
| 23113 | ;; |
| 23114 | |
| 23115 | gnu*) |
| 23116 | version_type=linux |
| 23117 | need_lib_prefix=no |
| 23118 | need_version=no |
| 23119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23120 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23121 | shlibpath_var=LD_LIBRARY_PATH |
| 23122 | hardcode_into_libs=yes |
| 23123 | ;; |
| 23124 | |
| 23125 | hpux9* | hpux10* | hpux11*) |
| 23126 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23127 | # link against other versions. |
| 23128 | version_type=sunos |
| 23129 | need_lib_prefix=no |
| 23130 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23131 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23132 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23133 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23134 | hardcode_into_libs=yes |
| 23135 | dynamic_linker="$host_os dld.so" |
| 23136 | shlibpath_var=LD_LIBRARY_PATH |
| 23137 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23139 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23140 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23141 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23142 | else |
| 23143 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23144 | fi |
| 23145 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23146 | ;; |
| 23147 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23148 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23149 | hardcode_into_libs=yes |
| 23150 | dynamic_linker="$host_os dld.sl" |
| 23151 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23152 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23155 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23156 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23157 | ;; |
| 23158 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23159 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23160 | dynamic_linker="$host_os dld.sl" |
| 23161 | shlibpath_var=SHLIB_PATH |
| 23162 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23165 | ;; |
| 23166 | esac |
| 23167 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23168 | postinstall_cmds='chmod 555 $lib' |
| 23169 | ;; |
| 23170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23171 | interix3*) |
| 23172 | version_type=linux |
| 23173 | need_lib_prefix=no |
| 23174 | need_version=no |
| 23175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23176 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23177 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 23178 | shlibpath_var=LD_LIBRARY_PATH |
| 23179 | shlibpath_overrides_runpath=no |
| 23180 | hardcode_into_libs=yes |
| 23181 | ;; |
| 23182 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23183 | irix5* | irix6* | nonstopux*) |
| 23184 | case $host_os in |
| 23185 | nonstopux*) version_type=nonstopux ;; |
| 23186 | *) |
| 23187 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23188 | version_type=linux |
| 23189 | else |
| 23190 | version_type=irix |
| 23191 | fi ;; |
| 23192 | esac |
| 23193 | need_lib_prefix=no |
| 23194 | need_version=no |
| 23195 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23197 | case $host_os in |
| 23198 | irix5* | nonstopux*) |
| 23199 | libsuff= shlibsuff= |
| 23200 | ;; |
| 23201 | *) |
| 23202 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23203 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23204 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23205 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23206 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23207 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23208 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23209 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23210 | esac |
| 23211 | ;; |
| 23212 | esac |
| 23213 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23214 | shlibpath_overrides_runpath=no |
| 23215 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23216 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23217 | hardcode_into_libs=yes |
| 23218 | ;; |
| 23219 | |
| 23220 | # No shared lib support for Linux oldld, aout, or coff. |
| 23221 | linux*oldld* | linux*aout* | linux*coff*) |
| 23222 | dynamic_linker=no |
| 23223 | ;; |
| 23224 | |
| 23225 | # This must be Linux ELF. |
| 23226 | linux*) |
| 23227 | version_type=linux |
| 23228 | need_lib_prefix=no |
| 23229 | need_version=no |
| 23230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23231 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23232 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23233 | shlibpath_var=LD_LIBRARY_PATH |
| 23234 | shlibpath_overrides_runpath=no |
| 23235 | # This implies no fast_install, which is unacceptable. |
| 23236 | # Some rework will be needed to allow for fast_install |
| 23237 | # before this can be enabled. |
| 23238 | hardcode_into_libs=yes |
| 23239 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23240 | # Append ld.so.conf contents to the search path |
| 23241 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23242 | 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] | 23243 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23244 | fi |
| 23245 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23246 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23247 | # powerpc, because MkLinux only supported shared libraries with the |
| 23248 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23249 | # most powerpc-linux boxes support dynamic linking these days and |
| 23250 | # people can always --disable-shared, the test was removed, and we |
| 23251 | # assume the GNU/Linux dynamic linker is in use. |
| 23252 | dynamic_linker='GNU/Linux ld.so' |
| 23253 | ;; |
| 23254 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23255 | knetbsd*-gnu) |
| 23256 | version_type=linux |
| 23257 | need_lib_prefix=no |
| 23258 | need_version=no |
| 23259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23261 | shlibpath_var=LD_LIBRARY_PATH |
| 23262 | shlibpath_overrides_runpath=no |
| 23263 | hardcode_into_libs=yes |
| 23264 | dynamic_linker='GNU ld.so' |
| 23265 | ;; |
| 23266 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23267 | netbsd*) |
| 23268 | version_type=sunos |
| 23269 | need_lib_prefix=no |
| 23270 | need_version=no |
| 23271 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23273 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23274 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23275 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23276 | 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] | 23277 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23278 | dynamic_linker='NetBSD ld.elf_so' |
| 23279 | fi |
| 23280 | shlibpath_var=LD_LIBRARY_PATH |
| 23281 | shlibpath_overrides_runpath=yes |
| 23282 | hardcode_into_libs=yes |
| 23283 | ;; |
| 23284 | |
| 23285 | newsos6) |
| 23286 | version_type=linux |
| 23287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23288 | shlibpath_var=LD_LIBRARY_PATH |
| 23289 | shlibpath_overrides_runpath=yes |
| 23290 | ;; |
| 23291 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23292 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23293 | version_type=linux |
| 23294 | need_lib_prefix=no |
| 23295 | need_version=no |
| 23296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23297 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23298 | shlibpath_var=LD_LIBRARY_PATH |
| 23299 | shlibpath_overrides_runpath=yes |
| 23300 | ;; |
| 23301 | |
| 23302 | openbsd*) |
| 23303 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23304 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23305 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23306 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23307 | case $host_os in |
| 23308 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23309 | *) need_version=no ;; |
| 23310 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23312 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23313 | shlibpath_var=LD_LIBRARY_PATH |
| 23314 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23315 | case $host_os in |
| 23316 | openbsd2.[89] | openbsd2.[89].*) |
| 23317 | shlibpath_overrides_runpath=no |
| 23318 | ;; |
| 23319 | *) |
| 23320 | shlibpath_overrides_runpath=yes |
| 23321 | ;; |
| 23322 | esac |
| 23323 | else |
| 23324 | shlibpath_overrides_runpath=yes |
| 23325 | fi |
| 23326 | ;; |
| 23327 | |
| 23328 | os2*) |
| 23329 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23330 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23331 | need_lib_prefix=no |
| 23332 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23333 | dynamic_linker='OS/2 ld.exe' |
| 23334 | shlibpath_var=LIBPATH |
| 23335 | ;; |
| 23336 | |
| 23337 | osf3* | osf4* | osf5*) |
| 23338 | version_type=osf |
| 23339 | need_lib_prefix=no |
| 23340 | need_version=no |
| 23341 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23343 | shlibpath_var=LD_LIBRARY_PATH |
| 23344 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23345 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23346 | ;; |
| 23347 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23348 | solaris*) |
| 23349 | version_type=linux |
| 23350 | need_lib_prefix=no |
| 23351 | need_version=no |
| 23352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23353 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23354 | shlibpath_var=LD_LIBRARY_PATH |
| 23355 | shlibpath_overrides_runpath=yes |
| 23356 | hardcode_into_libs=yes |
| 23357 | # ldd complains unless libraries are executable |
| 23358 | postinstall_cmds='chmod +x $lib' |
| 23359 | ;; |
| 23360 | |
| 23361 | sunos4*) |
| 23362 | version_type=sunos |
| 23363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23364 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23365 | shlibpath_var=LD_LIBRARY_PATH |
| 23366 | shlibpath_overrides_runpath=yes |
| 23367 | if test "$with_gnu_ld" = yes; then |
| 23368 | need_lib_prefix=no |
| 23369 | fi |
| 23370 | need_version=yes |
| 23371 | ;; |
| 23372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23373 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23374 | version_type=linux |
| 23375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23376 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23377 | shlibpath_var=LD_LIBRARY_PATH |
| 23378 | case $host_vendor in |
| 23379 | sni) |
| 23380 | shlibpath_overrides_runpath=no |
| 23381 | need_lib_prefix=no |
| 23382 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23383 | runpath_var=LD_RUN_PATH |
| 23384 | ;; |
| 23385 | siemens) |
| 23386 | need_lib_prefix=no |
| 23387 | ;; |
| 23388 | motorola) |
| 23389 | need_lib_prefix=no |
| 23390 | need_version=no |
| 23391 | shlibpath_overrides_runpath=no |
| 23392 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23393 | ;; |
| 23394 | esac |
| 23395 | ;; |
| 23396 | |
| 23397 | sysv4*MP*) |
| 23398 | if test -d /usr/nec ;then |
| 23399 | version_type=linux |
| 23400 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23401 | soname_spec='$libname${shared_ext}.$major' |
| 23402 | shlibpath_var=LD_LIBRARY_PATH |
| 23403 | fi |
| 23404 | ;; |
| 23405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23406 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23407 | version_type=freebsd-elf |
| 23408 | need_lib_prefix=no |
| 23409 | need_version=no |
| 23410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23411 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23412 | shlibpath_var=LD_LIBRARY_PATH |
| 23413 | hardcode_into_libs=yes |
| 23414 | if test "$with_gnu_ld" = yes; then |
| 23415 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23416 | shlibpath_overrides_runpath=no |
| 23417 | else |
| 23418 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23419 | shlibpath_overrides_runpath=yes |
| 23420 | case $host_os in |
| 23421 | sco3.2v5*) |
| 23422 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23423 | ;; |
| 23424 | esac |
| 23425 | fi |
| 23426 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23427 | ;; |
| 23428 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23429 | uts4*) |
| 23430 | version_type=linux |
| 23431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23432 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23433 | shlibpath_var=LD_LIBRARY_PATH |
| 23434 | ;; |
| 23435 | |
| 23436 | *) |
| 23437 | dynamic_linker=no |
| 23438 | ;; |
| 23439 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23440 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23441 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23442 | test "$dynamic_linker" = no && can_build_shared=no |
| 23443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23444 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23445 | if test "$GCC" = yes; then |
| 23446 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23447 | fi |
| 23448 | |
| 23449 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23450 | 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] | 23451 | hardcode_action_F77= |
| 23452 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23453 | test -n "$runpath_var_F77" || \ |
| 23454 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23455 | |
| 23456 | # We can hardcode non-existant directories. |
| 23457 | if test "$hardcode_direct_F77" != no && |
| 23458 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23459 | # have to relink, otherwise we might link with an installed library |
| 23460 | # when we should be linking with a yet-to-be-installed one |
| 23461 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23462 | test "$hardcode_minus_L_F77" != no; then |
| 23463 | # Linking always hardcodes the temporary library directory. |
| 23464 | hardcode_action_F77=relink |
| 23465 | else |
| 23466 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23467 | hardcode_action_F77=immediate |
| 23468 | fi |
| 23469 | else |
| 23470 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23471 | # directories. |
| 23472 | hardcode_action_F77=unsupported |
| 23473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23474 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23475 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23476 | |
| 23477 | if test "$hardcode_action_F77" = relink; then |
| 23478 | # Fast installation is not supported |
| 23479 | enable_fast_install=no |
| 23480 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23481 | test "$enable_shared" = no; then |
| 23482 | # Fast installation is not necessary |
| 23483 | enable_fast_install=needless |
| 23484 | fi |
| 23485 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23486 | |
| 23487 | # The else clause should only fire when bootstrapping the |
| 23488 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23489 | # with your package, and you will get complaints that there are |
| 23490 | # no rules to generate ltmain.sh. |
| 23491 | if test -f "$ltmain"; then |
| 23492 | # See if we are running on zsh, and set the options which allow our commands through |
| 23493 | # without removal of \ escapes. |
| 23494 | if test -n "${ZSH_VERSION+set}" ; then |
| 23495 | setopt NO_GLOB_SUBST |
| 23496 | fi |
| 23497 | # Now quote all the things that may contain metacharacters while being |
| 23498 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23499 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23500 | 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] | 23501 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23502 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23503 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23504 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23505 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23506 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23507 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23508 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23509 | compiler_F77 \ |
| 23510 | CC_F77 \ |
| 23511 | LD_F77 \ |
| 23512 | lt_prog_compiler_wl_F77 \ |
| 23513 | lt_prog_compiler_pic_F77 \ |
| 23514 | lt_prog_compiler_static_F77 \ |
| 23515 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23516 | export_dynamic_flag_spec_F77 \ |
| 23517 | thread_safe_flag_spec_F77 \ |
| 23518 | whole_archive_flag_spec_F77 \ |
| 23519 | enable_shared_with_static_runtimes_F77 \ |
| 23520 | old_archive_cmds_F77 \ |
| 23521 | old_archive_from_new_cmds_F77 \ |
| 23522 | predep_objects_F77 \ |
| 23523 | postdep_objects_F77 \ |
| 23524 | predeps_F77 \ |
| 23525 | postdeps_F77 \ |
| 23526 | compiler_lib_search_path_F77 \ |
| 23527 | archive_cmds_F77 \ |
| 23528 | archive_expsym_cmds_F77 \ |
| 23529 | postinstall_cmds_F77 \ |
| 23530 | postuninstall_cmds_F77 \ |
| 23531 | old_archive_from_expsyms_cmds_F77 \ |
| 23532 | allow_undefined_flag_F77 \ |
| 23533 | no_undefined_flag_F77 \ |
| 23534 | export_symbols_cmds_F77 \ |
| 23535 | hardcode_libdir_flag_spec_F77 \ |
| 23536 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23537 | hardcode_libdir_separator_F77 \ |
| 23538 | hardcode_automatic_F77 \ |
| 23539 | module_cmds_F77 \ |
| 23540 | module_expsym_cmds_F77 \ |
| 23541 | lt_cv_prog_compiler_c_o_F77 \ |
| 23542 | exclude_expsyms_F77 \ |
| 23543 | include_expsyms_F77; do |
| 23544 | |
| 23545 | case $var in |
| 23546 | old_archive_cmds_F77 | \ |
| 23547 | old_archive_from_new_cmds_F77 | \ |
| 23548 | archive_cmds_F77 | \ |
| 23549 | archive_expsym_cmds_F77 | \ |
| 23550 | module_cmds_F77 | \ |
| 23551 | module_expsym_cmds_F77 | \ |
| 23552 | old_archive_from_expsyms_cmds_F77 | \ |
| 23553 | export_symbols_cmds_F77 | \ |
| 23554 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23555 | postinstall_cmds | postuninstall_cmds | \ |
| 23556 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23557 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23558 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23559 | 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] | 23560 | ;; |
| 23561 | *) |
| 23562 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23563 | ;; |
| 23564 | esac |
| 23565 | done |
| 23566 | |
| 23567 | case $lt_echo in |
| 23568 | *'\$0 --fallback-echo"') |
| 23569 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23570 | ;; |
| 23571 | esac |
| 23572 | |
| 23573 | cfgfile="$ofile" |
| 23574 | |
| 23575 | cat <<__EOF__ >> "$cfgfile" |
| 23576 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23577 | |
| 23578 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23579 | |
| 23580 | # Shell to use when invoking shell scripts. |
| 23581 | SHELL=$lt_SHELL |
| 23582 | |
| 23583 | # Whether or not to build shared libraries. |
| 23584 | build_libtool_libs=$enable_shared |
| 23585 | |
| 23586 | # Whether or not to build static libraries. |
| 23587 | build_old_libs=$enable_static |
| 23588 | |
| 23589 | # Whether or not to add -lc for building shared libraries. |
| 23590 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23591 | |
| 23592 | # Whether or not to disallow shared libs when runtime libs are static |
| 23593 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23594 | |
| 23595 | # Whether or not to optimize for fast installation. |
| 23596 | fast_install=$enable_fast_install |
| 23597 | |
| 23598 | # The host system. |
| 23599 | host_alias=$host_alias |
| 23600 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23601 | host_os=$host_os |
| 23602 | |
| 23603 | # The build system. |
| 23604 | build_alias=$build_alias |
| 23605 | build=$build |
| 23606 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23607 | |
| 23608 | # An echo program that does not interpret backslashes. |
| 23609 | echo=$lt_echo |
| 23610 | |
| 23611 | # The archiver. |
| 23612 | AR=$lt_AR |
| 23613 | AR_FLAGS=$lt_AR_FLAGS |
| 23614 | |
| 23615 | # A C compiler. |
| 23616 | LTCC=$lt_LTCC |
| 23617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23618 | # LTCC compiler flags. |
| 23619 | LTCFLAGS=$lt_LTCFLAGS |
| 23620 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23621 | # A language-specific compiler. |
| 23622 | CC=$lt_compiler_F77 |
| 23623 | |
| 23624 | # Is the compiler the GNU C compiler? |
| 23625 | with_gcc=$GCC_F77 |
| 23626 | |
| 23627 | # An ERE matcher. |
| 23628 | EGREP=$lt_EGREP |
| 23629 | |
| 23630 | # The linker used to build libraries. |
| 23631 | LD=$lt_LD_F77 |
| 23632 | |
| 23633 | # Whether we need hard or soft links. |
| 23634 | LN_S=$lt_LN_S |
| 23635 | |
| 23636 | # A BSD-compatible nm program. |
| 23637 | NM=$lt_NM |
| 23638 | |
| 23639 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23640 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23641 | |
| 23642 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23643 | MAGIC_CMD=$MAGIC_CMD |
| 23644 | |
| 23645 | # Used on cygwin: DLL creation program. |
| 23646 | DLLTOOL="$DLLTOOL" |
| 23647 | |
| 23648 | # Used on cygwin: object dumper. |
| 23649 | OBJDUMP="$OBJDUMP" |
| 23650 | |
| 23651 | # Used on cygwin: assembler. |
| 23652 | AS="$AS" |
| 23653 | |
| 23654 | # The name of the directory that contains temporary libtool files. |
| 23655 | objdir=$objdir |
| 23656 | |
| 23657 | # How to create reloadable object files. |
| 23658 | reload_flag=$lt_reload_flag |
| 23659 | reload_cmds=$lt_reload_cmds |
| 23660 | |
| 23661 | # How to pass a linker flag through the compiler. |
| 23662 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23663 | |
| 23664 | # Object file suffix (normally "o"). |
| 23665 | objext="$ac_objext" |
| 23666 | |
| 23667 | # Old archive suffix (normally "a"). |
| 23668 | libext="$libext" |
| 23669 | |
| 23670 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23671 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23672 | |
| 23673 | # Executable file suffix (normally ""). |
| 23674 | exeext="$exeext" |
| 23675 | |
| 23676 | # Additional compiler flags for building library objects. |
| 23677 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23678 | pic_mode=$pic_mode |
| 23679 | |
| 23680 | # What is the maximum length of a command? |
| 23681 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23682 | |
| 23683 | # Does compiler simultaneously support -c and -o options? |
| 23684 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23686 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23687 | need_locks=$lt_need_locks |
| 23688 | |
| 23689 | # Do we need the lib prefix for modules? |
| 23690 | need_lib_prefix=$need_lib_prefix |
| 23691 | |
| 23692 | # Do we need a version for libraries? |
| 23693 | need_version=$need_version |
| 23694 | |
| 23695 | # Whether dlopen is supported. |
| 23696 | dlopen_support=$enable_dlopen |
| 23697 | |
| 23698 | # Whether dlopen of programs is supported. |
| 23699 | dlopen_self=$enable_dlopen_self |
| 23700 | |
| 23701 | # Whether dlopen of statically linked programs is supported. |
| 23702 | dlopen_self_static=$enable_dlopen_self_static |
| 23703 | |
| 23704 | # Compiler flag to prevent dynamic linking. |
| 23705 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23706 | |
| 23707 | # Compiler flag to turn off builtin functions. |
| 23708 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23709 | |
| 23710 | # Compiler flag to allow reflexive dlopens. |
| 23711 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23712 | |
| 23713 | # Compiler flag to generate shared objects directly from archives. |
| 23714 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23715 | |
| 23716 | # Compiler flag to generate thread-safe objects. |
| 23717 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23718 | |
| 23719 | # Library versioning type. |
| 23720 | version_type=$version_type |
| 23721 | |
| 23722 | # Format of library name prefix. |
| 23723 | libname_spec=$lt_libname_spec |
| 23724 | |
| 23725 | # List of archive names. First name is the real one, the rest are links. |
| 23726 | # The last name is the one that the linker finds with -lNAME. |
| 23727 | library_names_spec=$lt_library_names_spec |
| 23728 | |
| 23729 | # The coded name of the library, if different from the real name. |
| 23730 | soname_spec=$lt_soname_spec |
| 23731 | |
| 23732 | # Commands used to build and install an old-style archive. |
| 23733 | RANLIB=$lt_RANLIB |
| 23734 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23735 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23736 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23737 | |
| 23738 | # Create an old-style archive from a shared archive. |
| 23739 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23740 | |
| 23741 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23742 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23743 | |
| 23744 | # Commands used to build and install a shared archive. |
| 23745 | archive_cmds=$lt_archive_cmds_F77 |
| 23746 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23747 | postinstall_cmds=$lt_postinstall_cmds |
| 23748 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23749 | |
| 23750 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23751 | module_cmds=$lt_module_cmds_F77 |
| 23752 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23753 | |
| 23754 | # Commands to strip libraries. |
| 23755 | old_striplib=$lt_old_striplib |
| 23756 | striplib=$lt_striplib |
| 23757 | |
| 23758 | # Dependencies to place before the objects being linked to create a |
| 23759 | # shared library. |
| 23760 | predep_objects=$lt_predep_objects_F77 |
| 23761 | |
| 23762 | # Dependencies to place after the objects being linked to create a |
| 23763 | # shared library. |
| 23764 | postdep_objects=$lt_postdep_objects_F77 |
| 23765 | |
| 23766 | # Dependencies to place before the objects being linked to create a |
| 23767 | # shared library. |
| 23768 | predeps=$lt_predeps_F77 |
| 23769 | |
| 23770 | # Dependencies to place after the objects being linked to create a |
| 23771 | # shared library. |
| 23772 | postdeps=$lt_postdeps_F77 |
| 23773 | |
| 23774 | # The library search path used internally by the compiler when linking |
| 23775 | # a shared library. |
| 23776 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23777 | |
| 23778 | # Method to check whether dependent libraries are shared objects. |
| 23779 | deplibs_check_method=$lt_deplibs_check_method |
| 23780 | |
| 23781 | # Command to use when deplibs_check_method == file_magic. |
| 23782 | file_magic_cmd=$lt_file_magic_cmd |
| 23783 | |
| 23784 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23785 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23786 | |
| 23787 | # Flag that forces no undefined symbols. |
| 23788 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23789 | |
| 23790 | # Commands used to finish a libtool library installation in a directory. |
| 23791 | finish_cmds=$lt_finish_cmds |
| 23792 | |
| 23793 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23794 | finish_eval=$lt_finish_eval |
| 23795 | |
| 23796 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23797 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23798 | |
| 23799 | # Transform the output of nm in a proper C declaration |
| 23800 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23801 | |
| 23802 | # Transform the output of nm in a C name address pair |
| 23803 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23804 | |
| 23805 | # This is the shared library runtime path variable. |
| 23806 | runpath_var=$runpath_var |
| 23807 | |
| 23808 | # This is the shared library path variable. |
| 23809 | shlibpath_var=$shlibpath_var |
| 23810 | |
| 23811 | # Is shlibpath searched before the hard-coded library search path? |
| 23812 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23813 | |
| 23814 | # How to hardcode a shared library path into an executable. |
| 23815 | hardcode_action=$hardcode_action_F77 |
| 23816 | |
| 23817 | # Whether we should hardcode library paths into libraries. |
| 23818 | hardcode_into_libs=$hardcode_into_libs |
| 23819 | |
| 23820 | # Flag to hardcode \$libdir into a binary during linking. |
| 23821 | # This must work even if \$libdir does not exist. |
| 23822 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23823 | |
| 23824 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23825 | # a binary during linking. This must work even if \$libdir does |
| 23826 | # not exist. |
| 23827 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23828 | |
| 23829 | # Whether we need a single -rpath flag with a separated argument. |
| 23830 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23831 | |
| 23832 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23833 | # resulting binary. |
| 23834 | hardcode_direct=$hardcode_direct_F77 |
| 23835 | |
| 23836 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23837 | # resulting binary. |
| 23838 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23839 | |
| 23840 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23841 | # the resulting binary. |
| 23842 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23843 | |
| 23844 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23845 | # and all subsequent libraries and executables linked against it. |
| 23846 | hardcode_automatic=$hardcode_automatic_F77 |
| 23847 | |
| 23848 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23849 | # restored at relink time. |
| 23850 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23851 | |
| 23852 | # Whether libtool must link a program against all its dependency libraries. |
| 23853 | link_all_deplibs=$link_all_deplibs_F77 |
| 23854 | |
| 23855 | # Compile-time system search path for libraries |
| 23856 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23857 | |
| 23858 | # Run-time system search path for libraries |
| 23859 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23860 | |
| 23861 | # Fix the shell variable \$srcfile for the compiler. |
| 23862 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23863 | |
| 23864 | # Set to yes if exported symbols are required. |
| 23865 | always_export_symbols=$always_export_symbols_F77 |
| 23866 | |
| 23867 | # The commands to list exported symbols. |
| 23868 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23869 | |
| 23870 | # The commands to extract the exported symbol list from a shared archive. |
| 23871 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23872 | |
| 23873 | # Symbols that should not be listed in the preloaded symbols. |
| 23874 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23875 | |
| 23876 | # Symbols that must always be exported. |
| 23877 | include_expsyms=$lt_include_expsyms_F77 |
| 23878 | |
| 23879 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23880 | |
| 23881 | __EOF__ |
| 23882 | |
| 23883 | |
| 23884 | else |
| 23885 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23886 | # `config.status --recheck' to rerun these tests and create the |
| 23887 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23888 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23889 | if test -f "$ltmain_in"; then |
| 23890 | test -f Makefile && make "$ltmain" |
| 23891 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23892 | fi |
| 23893 | |
| 23894 | |
| 23895 | ac_ext=c |
| 23896 | ac_cpp='$CPP $CPPFLAGS' |
| 23897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23900 | |
| 23901 | CC="$lt_save_CC" |
| 23902 | |
| 23903 | else |
| 23904 | tagname="" |
| 23905 | fi |
| 23906 | ;; |
| 23907 | |
| 23908 | GCJ) |
| 23909 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23910 | ac_ext=c |
| 23911 | ac_cpp='$CPP $CPPFLAGS' |
| 23912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23915 | |
| 23916 | |
| 23917 | # Source file extension for Java test sources. |
| 23918 | ac_ext=java |
| 23919 | |
| 23920 | # Object file extension for compiled Java test sources. |
| 23921 | objext=o |
| 23922 | objext_GCJ=$objext |
| 23923 | |
| 23924 | # Code to be used in simple compile tests |
| 23925 | lt_simple_compile_test_code="class foo {}\n" |
| 23926 | |
| 23927 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23928 | 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] | 23929 | |
| 23930 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23931 | |
| 23932 | # If no C compiler was specified, use CC. |
| 23933 | LTCC=${LTCC-"$CC"} |
| 23934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23935 | # If no C compiler flags were specified, use CFLAGS. |
| 23936 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23937 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23938 | # Allow CC to be a program name with arguments. |
| 23939 | compiler=$CC |
| 23940 | |
| 23941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23942 | # save warnings/boilerplate of simple test code |
| 23943 | ac_outfile=conftest.$ac_objext |
| 23944 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23945 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23946 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23947 | $rm conftest* |
| 23948 | |
| 23949 | ac_outfile=conftest.$ac_objext |
| 23950 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23951 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23952 | _lt_linker_boilerplate=`cat conftest.err` |
| 23953 | $rm conftest* |
| 23954 | |
| 23955 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23956 | # Allow CC to be a program name with arguments. |
| 23957 | lt_save_CC="$CC" |
| 23958 | CC=${GCJ-"gcj"} |
| 23959 | compiler=$CC |
| 23960 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23961 | for cc_temp in $compiler""; do |
| 23962 | case $cc_temp in |
| 23963 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23964 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23965 | \-*) ;; |
| 23966 | *) break;; |
| 23967 | esac |
| 23968 | done |
| 23969 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23970 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23971 | |
| 23972 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23973 | archive_cmds_need_lc_GCJ=no |
| 23974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23975 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23976 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23977 | |
| 23978 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23979 | |
| 23980 | if test "$GCC" = yes; then |
| 23981 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23982 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23984 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23985 | 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] | 23986 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23988 | else |
| 23989 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23990 | ac_outfile=conftest.$ac_objext |
| 23991 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23992 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23993 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23994 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23995 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23996 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23997 | # The option is referenced via a variable to avoid confusing sed. |
| 23998 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23999 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24000 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24001 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 24002 | (eval echo "\"\$as_me:24002: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24003 | (eval "$lt_compile" 2>conftest.err) |
| 24004 | ac_status=$? |
| 24005 | cat conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 24006 | echo "$as_me:24006: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24007 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24008 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24009 | # So say no if there are warnings other than the usual output. |
| 24010 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24011 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24012 | 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] | 24013 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 24014 | fi |
| 24015 | fi |
| 24016 | $rm conftest* |
| 24017 | |
| 24018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24019 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 24020 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24021 | |
| 24022 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 24023 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 24024 | else |
| 24025 | : |
| 24026 | fi |
| 24027 | |
| 24028 | fi |
| 24029 | |
| 24030 | lt_prog_compiler_wl_GCJ= |
| 24031 | lt_prog_compiler_pic_GCJ= |
| 24032 | lt_prog_compiler_static_GCJ= |
| 24033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24034 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 24035 | 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] | 24036 | |
| 24037 | if test "$GCC" = yes; then |
| 24038 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24039 | lt_prog_compiler_static_GCJ='-static' |
| 24040 | |
| 24041 | case $host_os in |
| 24042 | aix*) |
| 24043 | # All AIX code is PIC. |
| 24044 | if test "$host_cpu" = ia64; then |
| 24045 | # AIX 5 now supports IA64 processor |
| 24046 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24047 | fi |
| 24048 | ;; |
| 24049 | |
| 24050 | amigaos*) |
| 24051 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 24052 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 24053 | # like `-m68040'. |
| 24054 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 24055 | ;; |
| 24056 | |
| 24057 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 24058 | # PIC is the default for these OSes. |
| 24059 | ;; |
| 24060 | |
| 24061 | mingw* | pw32* | os2*) |
| 24062 | # This hack is so that the source file can tell whether it is being |
| 24063 | # built for inclusion in a dll (and should export symbols for example). |
| 24064 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24065 | ;; |
| 24066 | |
| 24067 | darwin* | rhapsody*) |
| 24068 | # PIC is the default on this platform |
| 24069 | # Common symbols not allowed in MH_DYLIB files |
| 24070 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 24071 | ;; |
| 24072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24073 | interix3*) |
| 24074 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 24075 | # Instead, we relocate shared libraries at runtime. |
| 24076 | ;; |
| 24077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24078 | msdosdjgpp*) |
| 24079 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 24080 | # on systems that don't support them. |
| 24081 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24082 | enable_shared=no |
| 24083 | ;; |
| 24084 | |
| 24085 | sysv4*MP*) |
| 24086 | if test -d /usr/nec; then |
| 24087 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 24088 | fi |
| 24089 | ;; |
| 24090 | |
| 24091 | hpux*) |
| 24092 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24093 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24094 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24095 | hppa*64*|ia64*) |
| 24096 | # +Z the default |
| 24097 | ;; |
| 24098 | *) |
| 24099 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24100 | ;; |
| 24101 | esac |
| 24102 | ;; |
| 24103 | |
| 24104 | *) |
| 24105 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24106 | ;; |
| 24107 | esac |
| 24108 | else |
| 24109 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 24110 | case $host_os in |
| 24111 | aix*) |
| 24112 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24113 | if test "$host_cpu" = ia64; then |
| 24114 | # AIX 5 now supports IA64 processor |
| 24115 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24116 | else |
| 24117 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 24118 | fi |
| 24119 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24120 | darwin*) |
| 24121 | # PIC is the default on this platform |
| 24122 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24123 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24124 | xlc*) |
| 24125 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 24126 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24127 | ;; |
| 24128 | esac |
| 24129 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24130 | |
| 24131 | mingw* | pw32* | os2*) |
| 24132 | # This hack is so that the source file can tell whether it is being |
| 24133 | # built for inclusion in a dll (and should export symbols for example). |
| 24134 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24135 | ;; |
| 24136 | |
| 24137 | hpux9* | hpux10* | hpux11*) |
| 24138 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24139 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24140 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24141 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24142 | hppa*64*|ia64*) |
| 24143 | # +Z the default |
| 24144 | ;; |
| 24145 | *) |
| 24146 | lt_prog_compiler_pic_GCJ='+Z' |
| 24147 | ;; |
| 24148 | esac |
| 24149 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 24150 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 24151 | ;; |
| 24152 | |
| 24153 | irix5* | irix6* | nonstopux*) |
| 24154 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24155 | # PIC (with -KPIC) is the default. |
| 24156 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24157 | ;; |
| 24158 | |
| 24159 | newsos6) |
| 24160 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24161 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24162 | ;; |
| 24163 | |
| 24164 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24165 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24166 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24167 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24168 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24169 | lt_prog_compiler_static_GCJ='-static' |
| 24170 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24171 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 24172 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 24173 | # which looks to be a dead project) |
| 24174 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24175 | lt_prog_compiler_pic_GCJ='-fpic' |
| 24176 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24177 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24178 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24179 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24180 | # All Alpha code is PIC. |
| 24181 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24182 | ;; |
| 24183 | esac |
| 24184 | ;; |
| 24185 | |
| 24186 | osf3* | osf4* | osf5*) |
| 24187 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24188 | # All OSF/1 code is PIC. |
| 24189 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24190 | ;; |
| 24191 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24192 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24193 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24194 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24195 | case $cc_basename in |
| 24196 | f77* | f90* | f95*) |
| 24197 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24198 | *) |
| 24199 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24200 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24201 | ;; |
| 24202 | |
| 24203 | sunos4*) |
| 24204 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24205 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24206 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24207 | ;; |
| 24208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24209 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24210 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24211 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24212 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24213 | ;; |
| 24214 | |
| 24215 | sysv4*MP*) |
| 24216 | if test -d /usr/nec ;then |
| 24217 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24218 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24219 | fi |
| 24220 | ;; |
| 24221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24222 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24223 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24224 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24225 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24226 | ;; |
| 24227 | |
| 24228 | unicos*) |
| 24229 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24230 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24231 | ;; |
| 24232 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24233 | uts4*) |
| 24234 | lt_prog_compiler_pic_GCJ='-pic' |
| 24235 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24236 | ;; |
| 24237 | |
| 24238 | *) |
| 24239 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24240 | ;; |
| 24241 | esac |
| 24242 | fi |
| 24243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24244 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24245 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24246 | |
| 24247 | # |
| 24248 | # Check to make sure the PIC flag actually works. |
| 24249 | # |
| 24250 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24252 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24253 | 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] | 24254 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24256 | else |
| 24257 | lt_prog_compiler_pic_works_GCJ=no |
| 24258 | ac_outfile=conftest.$ac_objext |
| 24259 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24260 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24261 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24262 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24263 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24264 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24265 | # The option is referenced via a variable to avoid confusing sed. |
| 24266 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24267 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24268 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24269 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 24270 | (eval echo "\"\$as_me:24270: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24271 | (eval "$lt_compile" 2>conftest.err) |
| 24272 | ac_status=$? |
| 24273 | cat conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 24274 | echo "$as_me:24274: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24275 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24276 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24277 | # So say no if there are warnings other than the usual output. |
| 24278 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24279 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24280 | 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] | 24281 | lt_prog_compiler_pic_works_GCJ=yes |
| 24282 | fi |
| 24283 | fi |
| 24284 | $rm conftest* |
| 24285 | |
| 24286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24287 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24288 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24289 | |
| 24290 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24291 | case $lt_prog_compiler_pic_GCJ in |
| 24292 | "" | " "*) ;; |
| 24293 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24294 | esac |
| 24295 | else |
| 24296 | lt_prog_compiler_pic_GCJ= |
| 24297 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24298 | fi |
| 24299 | |
| 24300 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24301 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24302 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24303 | *djgpp*) |
| 24304 | lt_prog_compiler_pic_GCJ= |
| 24305 | ;; |
| 24306 | *) |
| 24307 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24308 | ;; |
| 24309 | esac |
| 24310 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24311 | # |
| 24312 | # Check to make sure the static flag actually works. |
| 24313 | # |
| 24314 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24315 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24316 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24317 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24319 | else |
| 24320 | lt_prog_compiler_static_works_GCJ=no |
| 24321 | save_LDFLAGS="$LDFLAGS" |
| 24322 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24323 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24324 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24325 | # The linker can only warn and ignore the option if not recognized |
| 24326 | # So say no if there are warnings |
| 24327 | if test -s conftest.err; then |
| 24328 | # Append any errors to the config.log. |
| 24329 | cat conftest.err 1>&5 |
| 24330 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24331 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24332 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24333 | lt_prog_compiler_static_works_GCJ=yes |
| 24334 | fi |
| 24335 | else |
| 24336 | lt_prog_compiler_static_works_GCJ=yes |
| 24337 | fi |
| 24338 | fi |
| 24339 | $rm conftest* |
| 24340 | LDFLAGS="$save_LDFLAGS" |
| 24341 | |
| 24342 | fi |
| 24343 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24344 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24345 | |
| 24346 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24347 | : |
| 24348 | else |
| 24349 | lt_prog_compiler_static_GCJ= |
| 24350 | fi |
| 24351 | |
| 24352 | |
| 24353 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24354 | 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] | 24355 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24357 | else |
| 24358 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24359 | $rm -r conftest 2>/dev/null |
| 24360 | mkdir conftest |
| 24361 | cd conftest |
| 24362 | mkdir out |
| 24363 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24364 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24365 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24366 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24367 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24368 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24369 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24370 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24371 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24372 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24373 | -e 's:$: $lt_compiler_flag:'` |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 24374 | (eval echo "\"\$as_me:24374: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24375 | (eval "$lt_compile" 2>out/conftest.err) |
| 24376 | ac_status=$? |
| 24377 | cat out/conftest.err >&5 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame^] | 24378 | echo "$as_me:24378: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24379 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24380 | then |
| 24381 | # The compiler can only warn and ignore the option if not recognized |
| 24382 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24383 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24384 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24385 | 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] | 24386 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24387 | fi |
| 24388 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24389 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24390 | $rm conftest* |
| 24391 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24392 | # template instantiation |
| 24393 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24394 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24395 | cd .. |
| 24396 | rmdir conftest |
| 24397 | $rm conftest* |
| 24398 | |
| 24399 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24400 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24401 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24402 | |
| 24403 | |
| 24404 | hard_links="nottested" |
| 24405 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24406 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24407 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24408 | 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] | 24409 | hard_links=yes |
| 24410 | $rm conftest* |
| 24411 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24412 | touch conftest.a |
| 24413 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24414 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24415 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24416 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24417 | if test "$hard_links" = no; then |
| 24418 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24419 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24420 | need_locks=warn |
| 24421 | fi |
| 24422 | else |
| 24423 | need_locks=no |
| 24424 | fi |
| 24425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24426 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24427 | 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] | 24428 | |
| 24429 | runpath_var= |
| 24430 | allow_undefined_flag_GCJ= |
| 24431 | enable_shared_with_static_runtimes_GCJ=no |
| 24432 | archive_cmds_GCJ= |
| 24433 | archive_expsym_cmds_GCJ= |
| 24434 | old_archive_From_new_cmds_GCJ= |
| 24435 | old_archive_from_expsyms_cmds_GCJ= |
| 24436 | export_dynamic_flag_spec_GCJ= |
| 24437 | whole_archive_flag_spec_GCJ= |
| 24438 | thread_safe_flag_spec_GCJ= |
| 24439 | hardcode_libdir_flag_spec_GCJ= |
| 24440 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24441 | hardcode_libdir_separator_GCJ= |
| 24442 | hardcode_direct_GCJ=no |
| 24443 | hardcode_minus_L_GCJ=no |
| 24444 | hardcode_shlibpath_var_GCJ=unsupported |
| 24445 | link_all_deplibs_GCJ=unknown |
| 24446 | hardcode_automatic_GCJ=no |
| 24447 | module_cmds_GCJ= |
| 24448 | module_expsym_cmds_GCJ= |
| 24449 | always_export_symbols_GCJ=no |
| 24450 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24451 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24452 | # included in the symbol list |
| 24453 | include_expsyms_GCJ= |
| 24454 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24455 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24456 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24457 | # as well as any symbol that contains `d'. |
| 24458 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24459 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24460 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24461 | # the symbol is explicitly referenced. Since portable code cannot |
| 24462 | # rely on this symbol name, it's probably fine to never include it in |
| 24463 | # preloaded symbol tables. |
| 24464 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24465 | # Just being paranoid about ensuring that cc_basename is set. |
| 24466 | for cc_temp in $compiler""; do |
| 24467 | case $cc_temp in |
| 24468 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24469 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24470 | \-*) ;; |
| 24471 | *) break;; |
| 24472 | esac |
| 24473 | done |
| 24474 | 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] | 24475 | |
| 24476 | case $host_os in |
| 24477 | cygwin* | mingw* | pw32*) |
| 24478 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24479 | # When not using gcc, we currently assume that we are using |
| 24480 | # Microsoft Visual C++. |
| 24481 | if test "$GCC" != yes; then |
| 24482 | with_gnu_ld=no |
| 24483 | fi |
| 24484 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24485 | interix*) |
| 24486 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24487 | with_gnu_ld=yes |
| 24488 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24489 | openbsd*) |
| 24490 | with_gnu_ld=no |
| 24491 | ;; |
| 24492 | esac |
| 24493 | |
| 24494 | ld_shlibs_GCJ=yes |
| 24495 | if test "$with_gnu_ld" = yes; then |
| 24496 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24497 | wlarc='${wl}' |
| 24498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24499 | # Set some defaults for GNU ld with shared library support. These |
| 24500 | # are reset later if shared libraries are not supported. Putting them |
| 24501 | # here allows them to be overridden if necessary. |
| 24502 | runpath_var=LD_RUN_PATH |
| 24503 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24504 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24505 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24506 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24507 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24508 | else |
| 24509 | whole_archive_flag_spec_GCJ= |
| 24510 | fi |
| 24511 | supports_anon_versioning=no |
| 24512 | case `$LD -v 2>/dev/null` in |
| 24513 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24514 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24515 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24516 | *\ 2.11.*) ;; # other 2.11 versions |
| 24517 | *) supports_anon_versioning=yes ;; |
| 24518 | esac |
| 24519 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24520 | # See if GNU ld supports shared libraries. |
| 24521 | case $host_os in |
| 24522 | aix3* | aix4* | aix5*) |
| 24523 | # On AIX/PPC, the GNU linker is very broken |
| 24524 | if test "$host_cpu" != ia64; then |
| 24525 | ld_shlibs_GCJ=no |
| 24526 | cat <<EOF 1>&2 |
| 24527 | |
| 24528 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24529 | *** to be unable to reliably create shared libraries on AIX. |
| 24530 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24531 | *** really care for shared libraries, you may want to modify your PATH |
| 24532 | *** so that a non-GNU linker is found, and then restart. |
| 24533 | |
| 24534 | EOF |
| 24535 | fi |
| 24536 | ;; |
| 24537 | |
| 24538 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24539 | 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] | 24540 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24541 | hardcode_minus_L_GCJ=yes |
| 24542 | |
| 24543 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24544 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24545 | # to version 4, is to share data among multiple programs linked |
| 24546 | # with the same dynamic library. Since this doesn't match the |
| 24547 | # behavior of shared libraries on other platforms, we can't use |
| 24548 | # them. |
| 24549 | ld_shlibs_GCJ=no |
| 24550 | ;; |
| 24551 | |
| 24552 | beos*) |
| 24553 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24554 | allow_undefined_flag_GCJ=unsupported |
| 24555 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24556 | # support --undefined. This deserves some investigation. FIXME |
| 24557 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24558 | else |
| 24559 | ld_shlibs_GCJ=no |
| 24560 | fi |
| 24561 | ;; |
| 24562 | |
| 24563 | cygwin* | mingw* | pw32*) |
| 24564 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24565 | # as there is no search path for DLLs. |
| 24566 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24567 | allow_undefined_flag_GCJ=unsupported |
| 24568 | always_export_symbols_GCJ=no |
| 24569 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24570 | 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] | 24571 | |
| 24572 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24573 | 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] | 24574 | # If the export-symbols file already is a .def file (1st line |
| 24575 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24576 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24577 | cp $export_symbols $output_objdir/$soname.def; |
| 24578 | else |
| 24579 | echo EXPORTS > $output_objdir/$soname.def; |
| 24580 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24581 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24582 | $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] | 24583 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24584 | ld_shlibs_GCJ=no |
| 24585 | fi |
| 24586 | ;; |
| 24587 | |
| 24588 | interix3*) |
| 24589 | hardcode_direct_GCJ=no |
| 24590 | hardcode_shlibpath_var_GCJ=no |
| 24591 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24592 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24593 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24594 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24595 | # default) and relocated if they conflict, which is a slow very memory |
| 24596 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24597 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24598 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24599 | 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' |
| 24600 | 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' |
| 24601 | ;; |
| 24602 | |
| 24603 | linux*) |
| 24604 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24605 | tmp_addflag= |
| 24606 | case $cc_basename,$host_cpu in |
| 24607 | pgcc*) # Portland Group C compiler |
| 24608 | 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' |
| 24609 | tmp_addflag=' $pic_flag' |
| 24610 | ;; |
| 24611 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24612 | 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' |
| 24613 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24614 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24615 | tmp_addflag=' -i_dynamic' ;; |
| 24616 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24617 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24618 | ifc* | ifort*) # Intel Fortran compiler |
| 24619 | tmp_addflag=' -nofor_main' ;; |
| 24620 | esac |
| 24621 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24622 | |
| 24623 | if test $supports_anon_versioning = yes; then |
| 24624 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24625 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24626 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24627 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24628 | fi |
| 24629 | else |
| 24630 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24631 | fi |
| 24632 | ;; |
| 24633 | |
| 24634 | netbsd*) |
| 24635 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24636 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24637 | wlarc= |
| 24638 | else |
| 24639 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24640 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24641 | fi |
| 24642 | ;; |
| 24643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24644 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24645 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24646 | ld_shlibs_GCJ=no |
| 24647 | cat <<EOF 1>&2 |
| 24648 | |
| 24649 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24650 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24651 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24652 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24653 | *** your PATH or compiler configuration so that the native linker is |
| 24654 | *** used, and then restart. |
| 24655 | |
| 24656 | EOF |
| 24657 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24658 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24659 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24660 | else |
| 24661 | ld_shlibs_GCJ=no |
| 24662 | fi |
| 24663 | ;; |
| 24664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24665 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24666 | case `$LD -v 2>&1` in |
| 24667 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24668 | ld_shlibs_GCJ=no |
| 24669 | cat <<_LT_EOF 1>&2 |
| 24670 | |
| 24671 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24672 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24673 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24674 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24675 | *** your PATH or compiler configuration so that the native linker is |
| 24676 | *** used, and then restart. |
| 24677 | |
| 24678 | _LT_EOF |
| 24679 | ;; |
| 24680 | *) |
| 24681 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24682 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24683 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24684 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24685 | else |
| 24686 | ld_shlibs_GCJ=no |
| 24687 | fi |
| 24688 | ;; |
| 24689 | esac |
| 24690 | ;; |
| 24691 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24692 | sunos4*) |
| 24693 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24694 | wlarc= |
| 24695 | hardcode_direct_GCJ=yes |
| 24696 | hardcode_shlibpath_var_GCJ=no |
| 24697 | ;; |
| 24698 | |
| 24699 | *) |
| 24700 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24701 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24702 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24703 | else |
| 24704 | ld_shlibs_GCJ=no |
| 24705 | fi |
| 24706 | ;; |
| 24707 | esac |
| 24708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24709 | if test "$ld_shlibs_GCJ" = no; then |
| 24710 | runpath_var= |
| 24711 | hardcode_libdir_flag_spec_GCJ= |
| 24712 | export_dynamic_flag_spec_GCJ= |
| 24713 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24714 | fi |
| 24715 | else |
| 24716 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24717 | case $host_os in |
| 24718 | aix3*) |
| 24719 | allow_undefined_flag_GCJ=unsupported |
| 24720 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24721 | 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] | 24722 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24723 | # are no directories specified by -L. |
| 24724 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24725 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24726 | # Neither direct hardcoding nor static linking is supported with a |
| 24727 | # broken collect2. |
| 24728 | hardcode_direct_GCJ=unsupported |
| 24729 | fi |
| 24730 | ;; |
| 24731 | |
| 24732 | aix4* | aix5*) |
| 24733 | if test "$host_cpu" = ia64; then |
| 24734 | # On IA64, the linker does run time linking by default, so we don't |
| 24735 | # have to do anything special. |
| 24736 | aix_use_runtimelinking=no |
| 24737 | exp_sym_flag='-Bexport' |
| 24738 | no_entry_flag="" |
| 24739 | else |
| 24740 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24741 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24742 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24743 | 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' |
| 24744 | else |
| 24745 | 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' |
| 24746 | fi |
| 24747 | aix_use_runtimelinking=no |
| 24748 | |
| 24749 | # Test if we are trying to use run time linking or normal |
| 24750 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24751 | # need to do runtime linking. |
| 24752 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24753 | for ld_flag in $LDFLAGS; do |
| 24754 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24755 | aix_use_runtimelinking=yes |
| 24756 | break |
| 24757 | fi |
| 24758 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24759 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24760 | esac |
| 24761 | |
| 24762 | exp_sym_flag='-bexport' |
| 24763 | no_entry_flag='-bnoentry' |
| 24764 | fi |
| 24765 | |
| 24766 | # When large executables or shared objects are built, AIX ld can |
| 24767 | # have problems creating the table of contents. If linking a library |
| 24768 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24769 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24770 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24771 | |
| 24772 | archive_cmds_GCJ='' |
| 24773 | hardcode_direct_GCJ=yes |
| 24774 | hardcode_libdir_separator_GCJ=':' |
| 24775 | link_all_deplibs_GCJ=yes |
| 24776 | |
| 24777 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24778 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24779 | # We only want to do this on AIX 4.2 and lower, the check |
| 24780 | # below for broken collect2 doesn't work under 4.3+ |
| 24781 | collect2name=`${CC} -print-prog-name=collect2` |
| 24782 | if test -f "$collect2name" && \ |
| 24783 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24784 | then |
| 24785 | # We have reworked collect2 |
| 24786 | hardcode_direct_GCJ=yes |
| 24787 | else |
| 24788 | # We have old collect2 |
| 24789 | hardcode_direct_GCJ=unsupported |
| 24790 | # It fails to find uninstalled libraries when the uninstalled |
| 24791 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24792 | # to unsupported forces relinking |
| 24793 | hardcode_minus_L_GCJ=yes |
| 24794 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24795 | hardcode_libdir_separator_GCJ= |
| 24796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24797 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24798 | esac |
| 24799 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24800 | if test "$aix_use_runtimelinking" = yes; then |
| 24801 | shared_flag="$shared_flag "'${wl}-G' |
| 24802 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24803 | else |
| 24804 | # not using gcc |
| 24805 | if test "$host_cpu" = ia64; then |
| 24806 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24807 | # chokes on -Wl,-G. The following line is correct: |
| 24808 | shared_flag='-G' |
| 24809 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24810 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24811 | shared_flag='${wl}-G' |
| 24812 | else |
| 24813 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24814 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24815 | fi |
| 24816 | fi |
| 24817 | |
| 24818 | # It seems that -bexpall does not export symbols beginning with |
| 24819 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24820 | always_export_symbols_GCJ=yes |
| 24821 | if test "$aix_use_runtimelinking" = yes; then |
| 24822 | # Warning - without using the other runtime loading flags (-brtl), |
| 24823 | # -berok will link without error, but may produce a broken library. |
| 24824 | allow_undefined_flag_GCJ='-berok' |
| 24825 | # Determine the default libpath from the value encoded in an empty executable. |
| 24826 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24827 | /* confdefs.h. */ |
| 24828 | _ACEOF |
| 24829 | cat confdefs.h >>conftest.$ac_ext |
| 24830 | cat >>conftest.$ac_ext <<_ACEOF |
| 24831 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24832 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24833 | int |
| 24834 | main () |
| 24835 | { |
| 24836 | |
| 24837 | ; |
| 24838 | return 0; |
| 24839 | } |
| 24840 | _ACEOF |
| 24841 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24842 | if { (ac_try="$ac_link" |
| 24843 | case "(($ac_try" in |
| 24844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24845 | *) ac_try_echo=$ac_try;; |
| 24846 | esac |
| 24847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24848 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24849 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24851 | rm -f conftest.er1 |
| 24852 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 24854 | (exit $ac_status); } && |
| 24855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24856 | { (case "(($ac_try" in |
| 24857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24858 | *) ac_try_echo=$ac_try;; |
| 24859 | esac |
| 24860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24861 | (eval "$ac_try") 2>&5 |
| 24862 | ac_status=$? |
| 24863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24864 | (exit $ac_status); }; } && |
| 24865 | { ac_try='test -s conftest$ac_exeext' |
| 24866 | { (case "(($ac_try" in |
| 24867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24868 | *) ac_try_echo=$ac_try;; |
| 24869 | esac |
| 24870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24871 | (eval "$ac_try") 2>&5 |
| 24872 | ac_status=$? |
| 24873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24874 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24875 | |
| 24876 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24877 | }'` |
| 24878 | # Check for a 64-bit object if we didn't find anything. |
| 24879 | 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; } |
| 24880 | }'`; fi |
| 24881 | else |
| 24882 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24885 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24886 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24887 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 24888 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24889 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24890 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24891 | |
| 24892 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24893 | 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] | 24894 | else |
| 24895 | if test "$host_cpu" = ia64; then |
| 24896 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24897 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24898 | 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] | 24899 | else |
| 24900 | # Determine the default libpath from the value encoded in an empty executable. |
| 24901 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24902 | /* confdefs.h. */ |
| 24903 | _ACEOF |
| 24904 | cat confdefs.h >>conftest.$ac_ext |
| 24905 | cat >>conftest.$ac_ext <<_ACEOF |
| 24906 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24907 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24908 | int |
| 24909 | main () |
| 24910 | { |
| 24911 | |
| 24912 | ; |
| 24913 | return 0; |
| 24914 | } |
| 24915 | _ACEOF |
| 24916 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24917 | if { (ac_try="$ac_link" |
| 24918 | case "(($ac_try" in |
| 24919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24920 | *) ac_try_echo=$ac_try;; |
| 24921 | esac |
| 24922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24923 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24924 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24926 | rm -f conftest.er1 |
| 24927 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 24929 | (exit $ac_status); } && |
| 24930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24931 | { (case "(($ac_try" in |
| 24932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24933 | *) ac_try_echo=$ac_try;; |
| 24934 | esac |
| 24935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24936 | (eval "$ac_try") 2>&5 |
| 24937 | ac_status=$? |
| 24938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24939 | (exit $ac_status); }; } && |
| 24940 | { ac_try='test -s conftest$ac_exeext' |
| 24941 | { (case "(($ac_try" in |
| 24942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24943 | *) ac_try_echo=$ac_try;; |
| 24944 | esac |
| 24945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24946 | (eval "$ac_try") 2>&5 |
| 24947 | ac_status=$? |
| 24948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24949 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24950 | |
| 24951 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24952 | }'` |
| 24953 | # Check for a 64-bit object if we didn't find anything. |
| 24954 | 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; } |
| 24955 | }'`; fi |
| 24956 | else |
| 24957 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24962 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 24963 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24964 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24965 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24966 | |
| 24967 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24968 | # Warning - without using the other run time loading flags, |
| 24969 | # -berok will link without error, but may produce a broken library. |
| 24970 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24971 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24972 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24973 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24974 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24975 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24976 | 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] | 24977 | fi |
| 24978 | fi |
| 24979 | ;; |
| 24980 | |
| 24981 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24982 | 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] | 24983 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24984 | hardcode_minus_L_GCJ=yes |
| 24985 | # see comment about different semantics on the GNU ld section |
| 24986 | ld_shlibs_GCJ=no |
| 24987 | ;; |
| 24988 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24989 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24990 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24991 | ;; |
| 24992 | |
| 24993 | cygwin* | mingw* | pw32*) |
| 24994 | # When not using gcc, we currently assume that we are using |
| 24995 | # Microsoft Visual C++. |
| 24996 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24997 | # no search path for DLLs. |
| 24998 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24999 | allow_undefined_flag_GCJ=unsupported |
| 25000 | # Tell ltmain to make .lib files, not .a files. |
| 25001 | libext=lib |
| 25002 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25003 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25004 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25005 | 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] | 25006 | # The linker will automatically build a .lib file if we build a DLL. |
| 25007 | old_archive_From_new_cmds_GCJ='true' |
| 25008 | # FIXME: Should let the user specify the lib program. |
| 25009 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25010 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25011 | enable_shared_with_static_runtimes_GCJ=yes |
| 25012 | ;; |
| 25013 | |
| 25014 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25015 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25016 | rhapsody* | darwin1.[012]) |
| 25017 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 25018 | ;; |
| 25019 | *) # Darwin 1.3 on |
| 25020 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 25021 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25022 | else |
| 25023 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 25024 | 10.[012]) |
| 25025 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25026 | ;; |
| 25027 | 10.*) |
| 25028 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 25029 | ;; |
| 25030 | esac |
| 25031 | fi |
| 25032 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25033 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25034 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25035 | hardcode_direct_GCJ=no |
| 25036 | hardcode_automatic_GCJ=yes |
| 25037 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25038 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25039 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25040 | if test "$GCC" = yes ; then |
| 25041 | output_verbose_link_cmd='echo' |
| 25042 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25043 | 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] | 25044 | # 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] | 25045 | 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}' |
| 25046 | 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] | 25047 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25048 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25049 | xlc*) |
| 25050 | output_verbose_link_cmd='echo' |
| 25051 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25052 | 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] | 25053 | # 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] | 25054 | 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}' |
| 25055 | 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] | 25056 | ;; |
| 25057 | *) |
| 25058 | ld_shlibs_GCJ=no |
| 25059 | ;; |
| 25060 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25061 | fi |
| 25062 | ;; |
| 25063 | |
| 25064 | dgux*) |
| 25065 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25066 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25067 | hardcode_shlibpath_var_GCJ=no |
| 25068 | ;; |
| 25069 | |
| 25070 | freebsd1*) |
| 25071 | ld_shlibs_GCJ=no |
| 25072 | ;; |
| 25073 | |
| 25074 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25075 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25076 | # does not break anything, and helps significantly (at the cost of a little |
| 25077 | # extra space). |
| 25078 | freebsd2.2*) |
| 25079 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25080 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25081 | hardcode_direct_GCJ=yes |
| 25082 | hardcode_shlibpath_var_GCJ=no |
| 25083 | ;; |
| 25084 | |
| 25085 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25086 | freebsd2*) |
| 25087 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25088 | hardcode_direct_GCJ=yes |
| 25089 | hardcode_minus_L_GCJ=yes |
| 25090 | hardcode_shlibpath_var_GCJ=no |
| 25091 | ;; |
| 25092 | |
| 25093 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25094 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25095 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25096 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25097 | hardcode_direct_GCJ=yes |
| 25098 | hardcode_shlibpath_var_GCJ=no |
| 25099 | ;; |
| 25100 | |
| 25101 | hpux9*) |
| 25102 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25103 | 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] | 25104 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25105 | 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] | 25106 | fi |
| 25107 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25108 | hardcode_libdir_separator_GCJ=: |
| 25109 | hardcode_direct_GCJ=yes |
| 25110 | |
| 25111 | # hardcode_minus_L: Not really in the search PATH, |
| 25112 | # but as the default location of the library. |
| 25113 | hardcode_minus_L_GCJ=yes |
| 25114 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25115 | ;; |
| 25116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25117 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25118 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25119 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25120 | else |
| 25121 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25122 | fi |
| 25123 | if test "$with_gnu_ld" = no; then |
| 25124 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25125 | hardcode_libdir_separator_GCJ=: |
| 25126 | |
| 25127 | hardcode_direct_GCJ=yes |
| 25128 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25129 | |
| 25130 | # hardcode_minus_L: Not really in the search PATH, |
| 25131 | # but as the default location of the library. |
| 25132 | hardcode_minus_L_GCJ=yes |
| 25133 | fi |
| 25134 | ;; |
| 25135 | |
| 25136 | hpux11*) |
| 25137 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25138 | case $host_cpu in |
| 25139 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25140 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25141 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25142 | ia64*) |
| 25143 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25144 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25145 | *) |
| 25146 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25147 | ;; |
| 25148 | esac |
| 25149 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25150 | case $host_cpu in |
| 25151 | hppa*64*) |
| 25152 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25153 | ;; |
| 25154 | ia64*) |
| 25155 | 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] | 25156 | ;; |
| 25157 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25158 | 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] | 25159 | ;; |
| 25160 | esac |
| 25161 | fi |
| 25162 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25163 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25164 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25166 | case $host_cpu in |
| 25167 | hppa*64*|ia64*) |
| 25168 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 25169 | hardcode_direct_GCJ=no |
| 25170 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25171 | ;; |
| 25172 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25173 | hardcode_direct_GCJ=yes |
| 25174 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25175 | |
| 25176 | # hardcode_minus_L: Not really in the search PATH, |
| 25177 | # but as the default location of the library. |
| 25178 | hardcode_minus_L_GCJ=yes |
| 25179 | ;; |
| 25180 | esac |
| 25181 | fi |
| 25182 | ;; |
| 25183 | |
| 25184 | irix5* | irix6* | nonstopux*) |
| 25185 | if test "$GCC" = yes; then |
| 25186 | 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' |
| 25187 | else |
| 25188 | 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' |
| 25189 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25190 | fi |
| 25191 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25192 | hardcode_libdir_separator_GCJ=: |
| 25193 | link_all_deplibs_GCJ=yes |
| 25194 | ;; |
| 25195 | |
| 25196 | netbsd*) |
| 25197 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25198 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25199 | else |
| 25200 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25201 | fi |
| 25202 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25203 | hardcode_direct_GCJ=yes |
| 25204 | hardcode_shlibpath_var_GCJ=no |
| 25205 | ;; |
| 25206 | |
| 25207 | newsos6) |
| 25208 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25209 | hardcode_direct_GCJ=yes |
| 25210 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25211 | hardcode_libdir_separator_GCJ=: |
| 25212 | hardcode_shlibpath_var_GCJ=no |
| 25213 | ;; |
| 25214 | |
| 25215 | openbsd*) |
| 25216 | hardcode_direct_GCJ=yes |
| 25217 | hardcode_shlibpath_var_GCJ=no |
| 25218 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25219 | 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] | 25220 | 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] | 25221 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25222 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25223 | else |
| 25224 | case $host_os in |
| 25225 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25226 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25227 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25228 | ;; |
| 25229 | *) |
| 25230 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25231 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25232 | ;; |
| 25233 | esac |
| 25234 | fi |
| 25235 | ;; |
| 25236 | |
| 25237 | os2*) |
| 25238 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25239 | hardcode_minus_L_GCJ=yes |
| 25240 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25241 | 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] | 25242 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25243 | ;; |
| 25244 | |
| 25245 | osf3*) |
| 25246 | if test "$GCC" = yes; then |
| 25247 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25248 | 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' |
| 25249 | else |
| 25250 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25251 | 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' |
| 25252 | fi |
| 25253 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25254 | hardcode_libdir_separator_GCJ=: |
| 25255 | ;; |
| 25256 | |
| 25257 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25258 | if test "$GCC" = yes; then |
| 25259 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25260 | 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' |
| 25261 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25262 | else |
| 25263 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25264 | 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] | 25265 | 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] | 25266 | $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] | 25267 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25268 | # Both c and cxx compiler support -rpath directly |
| 25269 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25270 | fi |
| 25271 | hardcode_libdir_separator_GCJ=: |
| 25272 | ;; |
| 25273 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25274 | solaris*) |
| 25275 | no_undefined_flag_GCJ=' -z text' |
| 25276 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25277 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25278 | 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] | 25279 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25280 | $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] | 25281 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25282 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25283 | 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] | 25284 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25285 | $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] | 25286 | fi |
| 25287 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25288 | hardcode_shlibpath_var_GCJ=no |
| 25289 | case $host_os in |
| 25290 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25291 | *) |
| 25292 | # The compiler driver will combine linker options so we |
| 25293 | # cannot just pass the convience library names through |
| 25294 | # without $wl, iff we do not link with $LD. |
| 25295 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25296 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25297 | case $wlarc in |
| 25298 | '') |
| 25299 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25300 | *) |
| 25301 | 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' ;; |
| 25302 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25303 | esac |
| 25304 | link_all_deplibs_GCJ=yes |
| 25305 | ;; |
| 25306 | |
| 25307 | sunos4*) |
| 25308 | if test "x$host_vendor" = xsequent; then |
| 25309 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25310 | # files that make .init and .fini sections work. |
| 25311 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25312 | else |
| 25313 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25314 | fi |
| 25315 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25316 | hardcode_direct_GCJ=yes |
| 25317 | hardcode_minus_L_GCJ=yes |
| 25318 | hardcode_shlibpath_var_GCJ=no |
| 25319 | ;; |
| 25320 | |
| 25321 | sysv4) |
| 25322 | case $host_vendor in |
| 25323 | sni) |
| 25324 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25325 | hardcode_direct_GCJ=yes # is this really true??? |
| 25326 | ;; |
| 25327 | siemens) |
| 25328 | ## LD is ld it makes a PLAMLIB |
| 25329 | ## CC just makes a GrossModule. |
| 25330 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25331 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25332 | hardcode_direct_GCJ=no |
| 25333 | ;; |
| 25334 | motorola) |
| 25335 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25336 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25337 | ;; |
| 25338 | esac |
| 25339 | runpath_var='LD_RUN_PATH' |
| 25340 | hardcode_shlibpath_var_GCJ=no |
| 25341 | ;; |
| 25342 | |
| 25343 | sysv4.3*) |
| 25344 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25345 | hardcode_shlibpath_var_GCJ=no |
| 25346 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25347 | ;; |
| 25348 | |
| 25349 | sysv4*MP*) |
| 25350 | if test -d /usr/nec; then |
| 25351 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25352 | hardcode_shlibpath_var_GCJ=no |
| 25353 | runpath_var=LD_RUN_PATH |
| 25354 | hardcode_runpath_var=yes |
| 25355 | ld_shlibs_GCJ=yes |
| 25356 | fi |
| 25357 | ;; |
| 25358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25359 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25360 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25361 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25362 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25363 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25364 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25365 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25366 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25367 | 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] | 25368 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25369 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25370 | 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] | 25371 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25372 | ;; |
| 25373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25374 | sysv5* | sco3.2v5* | sco5v6*) |
| 25375 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25376 | # link with -lc, and that would cause any symbols used from libc to |
| 25377 | # always be unresolved, which means just about no library would |
| 25378 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25379 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25380 | # as -z defs. |
| 25381 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25382 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25383 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25384 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25385 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25386 | hardcode_libdir_separator_GCJ=':' |
| 25387 | link_all_deplibs_GCJ=yes |
| 25388 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25389 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25390 | |
| 25391 | if test "$GCC" = yes; then |
| 25392 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25393 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25394 | else |
| 25395 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25396 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25397 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25398 | ;; |
| 25399 | |
| 25400 | uts4*) |
| 25401 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25402 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25403 | hardcode_shlibpath_var_GCJ=no |
| 25404 | ;; |
| 25405 | |
| 25406 | *) |
| 25407 | ld_shlibs_GCJ=no |
| 25408 | ;; |
| 25409 | esac |
| 25410 | fi |
| 25411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25412 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25413 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25414 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25415 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25416 | # |
| 25417 | # Do we need to explicitly link libc? |
| 25418 | # |
| 25419 | case "x$archive_cmds_need_lc_GCJ" in |
| 25420 | x|xyes) |
| 25421 | # Assume -lc should be added |
| 25422 | archive_cmds_need_lc_GCJ=yes |
| 25423 | |
| 25424 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25425 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25426 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25427 | # FIXME: we may have to deal with multi-command sequences. |
| 25428 | ;; |
| 25429 | '$CC '*) |
| 25430 | # Test whether the compiler implicitly links with -lc since on some |
| 25431 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25432 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25433 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25434 | 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] | 25435 | $rm conftest* |
| 25436 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25437 | |
| 25438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25439 | (eval $ac_compile) 2>&5 |
| 25440 | ac_status=$? |
| 25441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25442 | (exit $ac_status); } 2>conftest.err; then |
| 25443 | soname=conftest |
| 25444 | lib=conftest |
| 25445 | libobjs=conftest.$ac_objext |
| 25446 | deplibs= |
| 25447 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25448 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25449 | compiler_flags=-v |
| 25450 | linker_flags=-v |
| 25451 | verstring= |
| 25452 | output_objdir=. |
| 25453 | libname=conftest |
| 25454 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25455 | allow_undefined_flag_GCJ= |
| 25456 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25457 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25458 | ac_status=$? |
| 25459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25460 | (exit $ac_status); } |
| 25461 | then |
| 25462 | archive_cmds_need_lc_GCJ=no |
| 25463 | else |
| 25464 | archive_cmds_need_lc_GCJ=yes |
| 25465 | fi |
| 25466 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25467 | else |
| 25468 | cat conftest.err 1>&5 |
| 25469 | fi |
| 25470 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25471 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25472 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25473 | ;; |
| 25474 | esac |
| 25475 | fi |
| 25476 | ;; |
| 25477 | esac |
| 25478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25479 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25480 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25481 | library_names_spec= |
| 25482 | libname_spec='lib$name' |
| 25483 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25484 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25485 | postinstall_cmds= |
| 25486 | postuninstall_cmds= |
| 25487 | finish_cmds= |
| 25488 | finish_eval= |
| 25489 | shlibpath_var= |
| 25490 | shlibpath_overrides_runpath=unknown |
| 25491 | version_type=none |
| 25492 | dynamic_linker="$host_os ld.so" |
| 25493 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25494 | if test "$GCC" = yes; then |
| 25495 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25496 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25497 | # if the path contains ";" then we assume it to be the separator |
| 25498 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25499 | # assumed that no part of a normal pathname contains ";" but that should |
| 25500 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25501 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25502 | else |
| 25503 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25504 | fi |
| 25505 | else |
| 25506 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25507 | fi |
| 25508 | need_lib_prefix=unknown |
| 25509 | hardcode_into_libs=no |
| 25510 | |
| 25511 | # when you set need_version to no, make sure it does not cause -set_version |
| 25512 | # flags to be left without arguments |
| 25513 | need_version=unknown |
| 25514 | |
| 25515 | case $host_os in |
| 25516 | aix3*) |
| 25517 | version_type=linux |
| 25518 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25519 | shlibpath_var=LIBPATH |
| 25520 | |
| 25521 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25522 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25523 | ;; |
| 25524 | |
| 25525 | aix4* | aix5*) |
| 25526 | version_type=linux |
| 25527 | need_lib_prefix=no |
| 25528 | need_version=no |
| 25529 | hardcode_into_libs=yes |
| 25530 | if test "$host_cpu" = ia64; then |
| 25531 | # AIX 5 supports IA64 |
| 25532 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25533 | shlibpath_var=LD_LIBRARY_PATH |
| 25534 | else |
| 25535 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25536 | # for dependence libraries. The import file would start with |
| 25537 | # the line `#! .'. This would cause the generated library to |
| 25538 | # depend on `.', always an invalid library. This was fixed in |
| 25539 | # development snapshots of GCC prior to 3.0. |
| 25540 | case $host_os in |
| 25541 | aix4 | aix4.[01] | aix4.[01].*) |
| 25542 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25543 | echo ' yes ' |
| 25544 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25545 | : |
| 25546 | else |
| 25547 | can_build_shared=no |
| 25548 | fi |
| 25549 | ;; |
| 25550 | esac |
| 25551 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25552 | # soname into executable. Probably we can add versioning support to |
| 25553 | # collect2, so additional links can be useful in future. |
| 25554 | if test "$aix_use_runtimelinking" = yes; then |
| 25555 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25556 | # instead of lib<name>.a to let people know that these are not |
| 25557 | # typical AIX shared libraries. |
| 25558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25559 | else |
| 25560 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25561 | # and later when we are not doing run time linking. |
| 25562 | library_names_spec='${libname}${release}.a $libname.a' |
| 25563 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25564 | fi |
| 25565 | shlibpath_var=LIBPATH |
| 25566 | fi |
| 25567 | ;; |
| 25568 | |
| 25569 | amigaos*) |
| 25570 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25571 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25572 | 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] | 25573 | ;; |
| 25574 | |
| 25575 | beos*) |
| 25576 | library_names_spec='${libname}${shared_ext}' |
| 25577 | dynamic_linker="$host_os ld.so" |
| 25578 | shlibpath_var=LIBRARY_PATH |
| 25579 | ;; |
| 25580 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25581 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25582 | version_type=linux |
| 25583 | need_version=no |
| 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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25587 | shlibpath_var=LD_LIBRARY_PATH |
| 25588 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25589 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25590 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25591 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25592 | # libtool to hard-code these into programs |
| 25593 | ;; |
| 25594 | |
| 25595 | cygwin* | mingw* | pw32*) |
| 25596 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25597 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25598 | need_version=no |
| 25599 | need_lib_prefix=no |
| 25600 | |
| 25601 | case $GCC,$host_os in |
| 25602 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25603 | library_names_spec='$libname.dll.a' |
| 25604 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25605 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25606 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25607 | dldir=$destdir/`dirname \$dlpath`~ |
| 25608 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25609 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25610 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25611 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25612 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25613 | $rm \$dlpath' |
| 25614 | shlibpath_overrides_runpath=yes |
| 25615 | |
| 25616 | case $host_os in |
| 25617 | cygwin*) |
| 25618 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25619 | 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] | 25620 | 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] | 25621 | ;; |
| 25622 | mingw*) |
| 25623 | # MinGW DLLs use traditional 'lib' prefix |
| 25624 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25625 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25626 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25627 | # It is most probably a Windows format PATH printed by |
| 25628 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25629 | # path with ; separators, and with drive letters. We can handle the |
| 25630 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25631 | # especially as we might pass files found there to a mingw objdump, |
| 25632 | # which wouldn't understand a cygwinified path. Ahh. |
| 25633 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25634 | else |
| 25635 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25636 | fi |
| 25637 | ;; |
| 25638 | pw32*) |
| 25639 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25640 | 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] | 25641 | ;; |
| 25642 | esac |
| 25643 | ;; |
| 25644 | |
| 25645 | *) |
| 25646 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25647 | ;; |
| 25648 | esac |
| 25649 | dynamic_linker='Win32 ld.exe' |
| 25650 | # FIXME: first we should search . and the directory the executable is in |
| 25651 | shlibpath_var=PATH |
| 25652 | ;; |
| 25653 | |
| 25654 | darwin* | rhapsody*) |
| 25655 | dynamic_linker="$host_os dyld" |
| 25656 | version_type=darwin |
| 25657 | need_lib_prefix=no |
| 25658 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25659 | 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] | 25660 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25661 | shlibpath_overrides_runpath=yes |
| 25662 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25663 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25664 | # 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] | 25665 | if test "$GCC" = yes; then |
| 25666 | 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"` |
| 25667 | else |
| 25668 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25669 | fi |
| 25670 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25671 | ;; |
| 25672 | |
| 25673 | dgux*) |
| 25674 | version_type=linux |
| 25675 | need_lib_prefix=no |
| 25676 | need_version=no |
| 25677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25678 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25679 | shlibpath_var=LD_LIBRARY_PATH |
| 25680 | ;; |
| 25681 | |
| 25682 | freebsd1*) |
| 25683 | dynamic_linker=no |
| 25684 | ;; |
| 25685 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25686 | kfreebsd*-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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25698 | freebsd* | dragonfly*) |
| 25699 | # DragonFly does not have aout. When/if they implement a new |
| 25700 | # versioning mechanism, adjust this. |
| 25701 | if test -x /usr/bin/objformat; then |
| 25702 | objformat=`/usr/bin/objformat` |
| 25703 | else |
| 25704 | case $host_os in |
| 25705 | freebsd[123]*) objformat=aout ;; |
| 25706 | *) objformat=elf ;; |
| 25707 | esac |
| 25708 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25709 | version_type=freebsd-$objformat |
| 25710 | case $version_type in |
| 25711 | freebsd-elf*) |
| 25712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25713 | need_version=no |
| 25714 | need_lib_prefix=no |
| 25715 | ;; |
| 25716 | freebsd-*) |
| 25717 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25718 | need_version=yes |
| 25719 | ;; |
| 25720 | esac |
| 25721 | shlibpath_var=LD_LIBRARY_PATH |
| 25722 | case $host_os in |
| 25723 | freebsd2*) |
| 25724 | shlibpath_overrides_runpath=yes |
| 25725 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25726 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25727 | shlibpath_overrides_runpath=yes |
| 25728 | hardcode_into_libs=yes |
| 25729 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25730 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25731 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25732 | shlibpath_overrides_runpath=no |
| 25733 | hardcode_into_libs=yes |
| 25734 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25735 | freebsd*) # from 4.6 on |
| 25736 | shlibpath_overrides_runpath=yes |
| 25737 | hardcode_into_libs=yes |
| 25738 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25739 | esac |
| 25740 | ;; |
| 25741 | |
| 25742 | gnu*) |
| 25743 | version_type=linux |
| 25744 | need_lib_prefix=no |
| 25745 | need_version=no |
| 25746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25747 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25748 | shlibpath_var=LD_LIBRARY_PATH |
| 25749 | hardcode_into_libs=yes |
| 25750 | ;; |
| 25751 | |
| 25752 | hpux9* | hpux10* | hpux11*) |
| 25753 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25754 | # link against other versions. |
| 25755 | version_type=sunos |
| 25756 | need_lib_prefix=no |
| 25757 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25758 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25759 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25760 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25761 | hardcode_into_libs=yes |
| 25762 | dynamic_linker="$host_os dld.so" |
| 25763 | shlibpath_var=LD_LIBRARY_PATH |
| 25764 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25766 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25767 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25768 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25769 | else |
| 25770 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25771 | fi |
| 25772 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25773 | ;; |
| 25774 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25775 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25776 | hardcode_into_libs=yes |
| 25777 | dynamic_linker="$host_os dld.sl" |
| 25778 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25779 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25781 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25782 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25783 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25784 | ;; |
| 25785 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25786 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25787 | dynamic_linker="$host_os dld.sl" |
| 25788 | shlibpath_var=SHLIB_PATH |
| 25789 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25791 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25792 | ;; |
| 25793 | esac |
| 25794 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25795 | postinstall_cmds='chmod 555 $lib' |
| 25796 | ;; |
| 25797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25798 | interix3*) |
| 25799 | version_type=linux |
| 25800 | need_lib_prefix=no |
| 25801 | need_version=no |
| 25802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25803 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25804 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25805 | shlibpath_var=LD_LIBRARY_PATH |
| 25806 | shlibpath_overrides_runpath=no |
| 25807 | hardcode_into_libs=yes |
| 25808 | ;; |
| 25809 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25810 | irix5* | irix6* | nonstopux*) |
| 25811 | case $host_os in |
| 25812 | nonstopux*) version_type=nonstopux ;; |
| 25813 | *) |
| 25814 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25815 | version_type=linux |
| 25816 | else |
| 25817 | version_type=irix |
| 25818 | fi ;; |
| 25819 | esac |
| 25820 | need_lib_prefix=no |
| 25821 | need_version=no |
| 25822 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25824 | case $host_os in |
| 25825 | irix5* | nonstopux*) |
| 25826 | libsuff= shlibsuff= |
| 25827 | ;; |
| 25828 | *) |
| 25829 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25830 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25831 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25832 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25833 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25834 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25835 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25836 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25837 | esac |
| 25838 | ;; |
| 25839 | esac |
| 25840 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25841 | shlibpath_overrides_runpath=no |
| 25842 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25843 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25844 | hardcode_into_libs=yes |
| 25845 | ;; |
| 25846 | |
| 25847 | # No shared lib support for Linux oldld, aout, or coff. |
| 25848 | linux*oldld* | linux*aout* | linux*coff*) |
| 25849 | dynamic_linker=no |
| 25850 | ;; |
| 25851 | |
| 25852 | # This must be Linux ELF. |
| 25853 | linux*) |
| 25854 | version_type=linux |
| 25855 | need_lib_prefix=no |
| 25856 | need_version=no |
| 25857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25858 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25859 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25860 | shlibpath_var=LD_LIBRARY_PATH |
| 25861 | shlibpath_overrides_runpath=no |
| 25862 | # This implies no fast_install, which is unacceptable. |
| 25863 | # Some rework will be needed to allow for fast_install |
| 25864 | # before this can be enabled. |
| 25865 | hardcode_into_libs=yes |
| 25866 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25867 | # Append ld.so.conf contents to the search path |
| 25868 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25869 | 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] | 25870 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25871 | fi |
| 25872 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25873 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25874 | # powerpc, because MkLinux only supported shared libraries with the |
| 25875 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25876 | # most powerpc-linux boxes support dynamic linking these days and |
| 25877 | # people can always --disable-shared, the test was removed, and we |
| 25878 | # assume the GNU/Linux dynamic linker is in use. |
| 25879 | dynamic_linker='GNU/Linux ld.so' |
| 25880 | ;; |
| 25881 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25882 | knetbsd*-gnu) |
| 25883 | version_type=linux |
| 25884 | need_lib_prefix=no |
| 25885 | need_version=no |
| 25886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25888 | shlibpath_var=LD_LIBRARY_PATH |
| 25889 | shlibpath_overrides_runpath=no |
| 25890 | hardcode_into_libs=yes |
| 25891 | dynamic_linker='GNU ld.so' |
| 25892 | ;; |
| 25893 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25894 | netbsd*) |
| 25895 | version_type=sunos |
| 25896 | need_lib_prefix=no |
| 25897 | need_version=no |
| 25898 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25900 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25901 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25902 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25903 | 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] | 25904 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25905 | dynamic_linker='NetBSD ld.elf_so' |
| 25906 | fi |
| 25907 | shlibpath_var=LD_LIBRARY_PATH |
| 25908 | shlibpath_overrides_runpath=yes |
| 25909 | hardcode_into_libs=yes |
| 25910 | ;; |
| 25911 | |
| 25912 | newsos6) |
| 25913 | version_type=linux |
| 25914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25915 | shlibpath_var=LD_LIBRARY_PATH |
| 25916 | shlibpath_overrides_runpath=yes |
| 25917 | ;; |
| 25918 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25919 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25920 | version_type=linux |
| 25921 | need_lib_prefix=no |
| 25922 | need_version=no |
| 25923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25925 | shlibpath_var=LD_LIBRARY_PATH |
| 25926 | shlibpath_overrides_runpath=yes |
| 25927 | ;; |
| 25928 | |
| 25929 | openbsd*) |
| 25930 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25931 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25932 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25933 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25934 | case $host_os in |
| 25935 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25936 | *) need_version=no ;; |
| 25937 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25939 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25940 | shlibpath_var=LD_LIBRARY_PATH |
| 25941 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25942 | case $host_os in |
| 25943 | openbsd2.[89] | openbsd2.[89].*) |
| 25944 | shlibpath_overrides_runpath=no |
| 25945 | ;; |
| 25946 | *) |
| 25947 | shlibpath_overrides_runpath=yes |
| 25948 | ;; |
| 25949 | esac |
| 25950 | else |
| 25951 | shlibpath_overrides_runpath=yes |
| 25952 | fi |
| 25953 | ;; |
| 25954 | |
| 25955 | os2*) |
| 25956 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25957 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25958 | need_lib_prefix=no |
| 25959 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25960 | dynamic_linker='OS/2 ld.exe' |
| 25961 | shlibpath_var=LIBPATH |
| 25962 | ;; |
| 25963 | |
| 25964 | osf3* | osf4* | osf5*) |
| 25965 | version_type=osf |
| 25966 | need_lib_prefix=no |
| 25967 | need_version=no |
| 25968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25970 | shlibpath_var=LD_LIBRARY_PATH |
| 25971 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25972 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25973 | ;; |
| 25974 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25975 | solaris*) |
| 25976 | version_type=linux |
| 25977 | need_lib_prefix=no |
| 25978 | need_version=no |
| 25979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25981 | shlibpath_var=LD_LIBRARY_PATH |
| 25982 | shlibpath_overrides_runpath=yes |
| 25983 | hardcode_into_libs=yes |
| 25984 | # ldd complains unless libraries are executable |
| 25985 | postinstall_cmds='chmod +x $lib' |
| 25986 | ;; |
| 25987 | |
| 25988 | sunos4*) |
| 25989 | version_type=sunos |
| 25990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25991 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25992 | shlibpath_var=LD_LIBRARY_PATH |
| 25993 | shlibpath_overrides_runpath=yes |
| 25994 | if test "$with_gnu_ld" = yes; then |
| 25995 | need_lib_prefix=no |
| 25996 | fi |
| 25997 | need_version=yes |
| 25998 | ;; |
| 25999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26000 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26001 | version_type=linux |
| 26002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26004 | shlibpath_var=LD_LIBRARY_PATH |
| 26005 | case $host_vendor in |
| 26006 | sni) |
| 26007 | shlibpath_overrides_runpath=no |
| 26008 | need_lib_prefix=no |
| 26009 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 26010 | runpath_var=LD_RUN_PATH |
| 26011 | ;; |
| 26012 | siemens) |
| 26013 | need_lib_prefix=no |
| 26014 | ;; |
| 26015 | motorola) |
| 26016 | need_lib_prefix=no |
| 26017 | need_version=no |
| 26018 | shlibpath_overrides_runpath=no |
| 26019 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 26020 | ;; |
| 26021 | esac |
| 26022 | ;; |
| 26023 | |
| 26024 | sysv4*MP*) |
| 26025 | if test -d /usr/nec ;then |
| 26026 | version_type=linux |
| 26027 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 26028 | soname_spec='$libname${shared_ext}.$major' |
| 26029 | shlibpath_var=LD_LIBRARY_PATH |
| 26030 | fi |
| 26031 | ;; |
| 26032 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26033 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 26034 | version_type=freebsd-elf |
| 26035 | need_lib_prefix=no |
| 26036 | need_version=no |
| 26037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26038 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26039 | shlibpath_var=LD_LIBRARY_PATH |
| 26040 | hardcode_into_libs=yes |
| 26041 | if test "$with_gnu_ld" = yes; then |
| 26042 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 26043 | shlibpath_overrides_runpath=no |
| 26044 | else |
| 26045 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 26046 | shlibpath_overrides_runpath=yes |
| 26047 | case $host_os in |
| 26048 | sco3.2v5*) |
| 26049 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 26050 | ;; |
| 26051 | esac |
| 26052 | fi |
| 26053 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 26054 | ;; |
| 26055 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26056 | uts4*) |
| 26057 | version_type=linux |
| 26058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26059 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26060 | shlibpath_var=LD_LIBRARY_PATH |
| 26061 | ;; |
| 26062 | |
| 26063 | *) |
| 26064 | dynamic_linker=no |
| 26065 | ;; |
| 26066 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26067 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 26068 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26069 | test "$dynamic_linker" = no && can_build_shared=no |
| 26070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26071 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 26072 | if test "$GCC" = yes; then |
| 26073 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 26074 | fi |
| 26075 | |
| 26076 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 26077 | 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] | 26078 | hardcode_action_GCJ= |
| 26079 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 26080 | test -n "$runpath_var_GCJ" || \ |
| 26081 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 26082 | |
| 26083 | # We can hardcode non-existant directories. |
| 26084 | if test "$hardcode_direct_GCJ" != no && |
| 26085 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 26086 | # have to relink, otherwise we might link with an installed library |
| 26087 | # when we should be linking with a yet-to-be-installed one |
| 26088 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 26089 | test "$hardcode_minus_L_GCJ" != no; then |
| 26090 | # Linking always hardcodes the temporary library directory. |
| 26091 | hardcode_action_GCJ=relink |
| 26092 | else |
| 26093 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 26094 | hardcode_action_GCJ=immediate |
| 26095 | fi |
| 26096 | else |
| 26097 | # We cannot hardcode anything, or else we can only hardcode existing |
| 26098 | # directories. |
| 26099 | hardcode_action_GCJ=unsupported |
| 26100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26101 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 26102 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26103 | |
| 26104 | if test "$hardcode_action_GCJ" = relink; then |
| 26105 | # Fast installation is not supported |
| 26106 | enable_fast_install=no |
| 26107 | elif test "$shlibpath_overrides_runpath" = yes || |
| 26108 | test "$enable_shared" = no; then |
| 26109 | # Fast installation is not necessary |
| 26110 | enable_fast_install=needless |
| 26111 | fi |
| 26112 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26113 | |
| 26114 | # The else clause should only fire when bootstrapping the |
| 26115 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26116 | # with your package, and you will get complaints that there are |
| 26117 | # no rules to generate ltmain.sh. |
| 26118 | if test -f "$ltmain"; then |
| 26119 | # See if we are running on zsh, and set the options which allow our commands through |
| 26120 | # without removal of \ escapes. |
| 26121 | if test -n "${ZSH_VERSION+set}" ; then |
| 26122 | setopt NO_GLOB_SUBST |
| 26123 | fi |
| 26124 | # Now quote all the things that may contain metacharacters while being |
| 26125 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26126 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26127 | 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] | 26128 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26129 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26130 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26131 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26132 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26133 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26134 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26135 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26136 | compiler_GCJ \ |
| 26137 | CC_GCJ \ |
| 26138 | LD_GCJ \ |
| 26139 | lt_prog_compiler_wl_GCJ \ |
| 26140 | lt_prog_compiler_pic_GCJ \ |
| 26141 | lt_prog_compiler_static_GCJ \ |
| 26142 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 26143 | export_dynamic_flag_spec_GCJ \ |
| 26144 | thread_safe_flag_spec_GCJ \ |
| 26145 | whole_archive_flag_spec_GCJ \ |
| 26146 | enable_shared_with_static_runtimes_GCJ \ |
| 26147 | old_archive_cmds_GCJ \ |
| 26148 | old_archive_from_new_cmds_GCJ \ |
| 26149 | predep_objects_GCJ \ |
| 26150 | postdep_objects_GCJ \ |
| 26151 | predeps_GCJ \ |
| 26152 | postdeps_GCJ \ |
| 26153 | compiler_lib_search_path_GCJ \ |
| 26154 | archive_cmds_GCJ \ |
| 26155 | archive_expsym_cmds_GCJ \ |
| 26156 | postinstall_cmds_GCJ \ |
| 26157 | postuninstall_cmds_GCJ \ |
| 26158 | old_archive_from_expsyms_cmds_GCJ \ |
| 26159 | allow_undefined_flag_GCJ \ |
| 26160 | no_undefined_flag_GCJ \ |
| 26161 | export_symbols_cmds_GCJ \ |
| 26162 | hardcode_libdir_flag_spec_GCJ \ |
| 26163 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 26164 | hardcode_libdir_separator_GCJ \ |
| 26165 | hardcode_automatic_GCJ \ |
| 26166 | module_cmds_GCJ \ |
| 26167 | module_expsym_cmds_GCJ \ |
| 26168 | lt_cv_prog_compiler_c_o_GCJ \ |
| 26169 | exclude_expsyms_GCJ \ |
| 26170 | include_expsyms_GCJ; do |
| 26171 | |
| 26172 | case $var in |
| 26173 | old_archive_cmds_GCJ | \ |
| 26174 | old_archive_from_new_cmds_GCJ | \ |
| 26175 | archive_cmds_GCJ | \ |
| 26176 | archive_expsym_cmds_GCJ | \ |
| 26177 | module_cmds_GCJ | \ |
| 26178 | module_expsym_cmds_GCJ | \ |
| 26179 | old_archive_from_expsyms_cmds_GCJ | \ |
| 26180 | export_symbols_cmds_GCJ | \ |
| 26181 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26182 | postinstall_cmds | postuninstall_cmds | \ |
| 26183 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26184 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26185 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26186 | 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] | 26187 | ;; |
| 26188 | *) |
| 26189 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26190 | ;; |
| 26191 | esac |
| 26192 | done |
| 26193 | |
| 26194 | case $lt_echo in |
| 26195 | *'\$0 --fallback-echo"') |
| 26196 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26197 | ;; |
| 26198 | esac |
| 26199 | |
| 26200 | cfgfile="$ofile" |
| 26201 | |
| 26202 | cat <<__EOF__ >> "$cfgfile" |
| 26203 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26204 | |
| 26205 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26206 | |
| 26207 | # Shell to use when invoking shell scripts. |
| 26208 | SHELL=$lt_SHELL |
| 26209 | |
| 26210 | # Whether or not to build shared libraries. |
| 26211 | build_libtool_libs=$enable_shared |
| 26212 | |
| 26213 | # Whether or not to build static libraries. |
| 26214 | build_old_libs=$enable_static |
| 26215 | |
| 26216 | # Whether or not to add -lc for building shared libraries. |
| 26217 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26218 | |
| 26219 | # Whether or not to disallow shared libs when runtime libs are static |
| 26220 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26221 | |
| 26222 | # Whether or not to optimize for fast installation. |
| 26223 | fast_install=$enable_fast_install |
| 26224 | |
| 26225 | # The host system. |
| 26226 | host_alias=$host_alias |
| 26227 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26228 | host_os=$host_os |
| 26229 | |
| 26230 | # The build system. |
| 26231 | build_alias=$build_alias |
| 26232 | build=$build |
| 26233 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26234 | |
| 26235 | # An echo program that does not interpret backslashes. |
| 26236 | echo=$lt_echo |
| 26237 | |
| 26238 | # The archiver. |
| 26239 | AR=$lt_AR |
| 26240 | AR_FLAGS=$lt_AR_FLAGS |
| 26241 | |
| 26242 | # A C compiler. |
| 26243 | LTCC=$lt_LTCC |
| 26244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26245 | # LTCC compiler flags. |
| 26246 | LTCFLAGS=$lt_LTCFLAGS |
| 26247 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26248 | # A language-specific compiler. |
| 26249 | CC=$lt_compiler_GCJ |
| 26250 | |
| 26251 | # Is the compiler the GNU C compiler? |
| 26252 | with_gcc=$GCC_GCJ |
| 26253 | |
| 26254 | # An ERE matcher. |
| 26255 | EGREP=$lt_EGREP |
| 26256 | |
| 26257 | # The linker used to build libraries. |
| 26258 | LD=$lt_LD_GCJ |
| 26259 | |
| 26260 | # Whether we need hard or soft links. |
| 26261 | LN_S=$lt_LN_S |
| 26262 | |
| 26263 | # A BSD-compatible nm program. |
| 26264 | NM=$lt_NM |
| 26265 | |
| 26266 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26267 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26268 | |
| 26269 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26270 | MAGIC_CMD=$MAGIC_CMD |
| 26271 | |
| 26272 | # Used on cygwin: DLL creation program. |
| 26273 | DLLTOOL="$DLLTOOL" |
| 26274 | |
| 26275 | # Used on cygwin: object dumper. |
| 26276 | OBJDUMP="$OBJDUMP" |
| 26277 | |
| 26278 | # Used on cygwin: assembler. |
| 26279 | AS="$AS" |
| 26280 | |
| 26281 | # The name of the directory that contains temporary libtool files. |
| 26282 | objdir=$objdir |
| 26283 | |
| 26284 | # How to create reloadable object files. |
| 26285 | reload_flag=$lt_reload_flag |
| 26286 | reload_cmds=$lt_reload_cmds |
| 26287 | |
| 26288 | # How to pass a linker flag through the compiler. |
| 26289 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26290 | |
| 26291 | # Object file suffix (normally "o"). |
| 26292 | objext="$ac_objext" |
| 26293 | |
| 26294 | # Old archive suffix (normally "a"). |
| 26295 | libext="$libext" |
| 26296 | |
| 26297 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26298 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26299 | |
| 26300 | # Executable file suffix (normally ""). |
| 26301 | exeext="$exeext" |
| 26302 | |
| 26303 | # Additional compiler flags for building library objects. |
| 26304 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26305 | pic_mode=$pic_mode |
| 26306 | |
| 26307 | # What is the maximum length of a command? |
| 26308 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26309 | |
| 26310 | # Does compiler simultaneously support -c and -o options? |
| 26311 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26313 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26314 | need_locks=$lt_need_locks |
| 26315 | |
| 26316 | # Do we need the lib prefix for modules? |
| 26317 | need_lib_prefix=$need_lib_prefix |
| 26318 | |
| 26319 | # Do we need a version for libraries? |
| 26320 | need_version=$need_version |
| 26321 | |
| 26322 | # Whether dlopen is supported. |
| 26323 | dlopen_support=$enable_dlopen |
| 26324 | |
| 26325 | # Whether dlopen of programs is supported. |
| 26326 | dlopen_self=$enable_dlopen_self |
| 26327 | |
| 26328 | # Whether dlopen of statically linked programs is supported. |
| 26329 | dlopen_self_static=$enable_dlopen_self_static |
| 26330 | |
| 26331 | # Compiler flag to prevent dynamic linking. |
| 26332 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26333 | |
| 26334 | # Compiler flag to turn off builtin functions. |
| 26335 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26336 | |
| 26337 | # Compiler flag to allow reflexive dlopens. |
| 26338 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26339 | |
| 26340 | # Compiler flag to generate shared objects directly from archives. |
| 26341 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26342 | |
| 26343 | # Compiler flag to generate thread-safe objects. |
| 26344 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26345 | |
| 26346 | # Library versioning type. |
| 26347 | version_type=$version_type |
| 26348 | |
| 26349 | # Format of library name prefix. |
| 26350 | libname_spec=$lt_libname_spec |
| 26351 | |
| 26352 | # List of archive names. First name is the real one, the rest are links. |
| 26353 | # The last name is the one that the linker finds with -lNAME. |
| 26354 | library_names_spec=$lt_library_names_spec |
| 26355 | |
| 26356 | # The coded name of the library, if different from the real name. |
| 26357 | soname_spec=$lt_soname_spec |
| 26358 | |
| 26359 | # Commands used to build and install an old-style archive. |
| 26360 | RANLIB=$lt_RANLIB |
| 26361 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26362 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26363 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26364 | |
| 26365 | # Create an old-style archive from a shared archive. |
| 26366 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26367 | |
| 26368 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26369 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26370 | |
| 26371 | # Commands used to build and install a shared archive. |
| 26372 | archive_cmds=$lt_archive_cmds_GCJ |
| 26373 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26374 | postinstall_cmds=$lt_postinstall_cmds |
| 26375 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26376 | |
| 26377 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26378 | module_cmds=$lt_module_cmds_GCJ |
| 26379 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26380 | |
| 26381 | # Commands to strip libraries. |
| 26382 | old_striplib=$lt_old_striplib |
| 26383 | striplib=$lt_striplib |
| 26384 | |
| 26385 | # Dependencies to place before the objects being linked to create a |
| 26386 | # shared library. |
| 26387 | predep_objects=$lt_predep_objects_GCJ |
| 26388 | |
| 26389 | # Dependencies to place after the objects being linked to create a |
| 26390 | # shared library. |
| 26391 | postdep_objects=$lt_postdep_objects_GCJ |
| 26392 | |
| 26393 | # Dependencies to place before the objects being linked to create a |
| 26394 | # shared library. |
| 26395 | predeps=$lt_predeps_GCJ |
| 26396 | |
| 26397 | # Dependencies to place after the objects being linked to create a |
| 26398 | # shared library. |
| 26399 | postdeps=$lt_postdeps_GCJ |
| 26400 | |
| 26401 | # The library search path used internally by the compiler when linking |
| 26402 | # a shared library. |
| 26403 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26404 | |
| 26405 | # Method to check whether dependent libraries are shared objects. |
| 26406 | deplibs_check_method=$lt_deplibs_check_method |
| 26407 | |
| 26408 | # Command to use when deplibs_check_method == file_magic. |
| 26409 | file_magic_cmd=$lt_file_magic_cmd |
| 26410 | |
| 26411 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26412 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26413 | |
| 26414 | # Flag that forces no undefined symbols. |
| 26415 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26416 | |
| 26417 | # Commands used to finish a libtool library installation in a directory. |
| 26418 | finish_cmds=$lt_finish_cmds |
| 26419 | |
| 26420 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26421 | finish_eval=$lt_finish_eval |
| 26422 | |
| 26423 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26424 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26425 | |
| 26426 | # Transform the output of nm in a proper C declaration |
| 26427 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26428 | |
| 26429 | # Transform the output of nm in a C name address pair |
| 26430 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26431 | |
| 26432 | # This is the shared library runtime path variable. |
| 26433 | runpath_var=$runpath_var |
| 26434 | |
| 26435 | # This is the shared library path variable. |
| 26436 | shlibpath_var=$shlibpath_var |
| 26437 | |
| 26438 | # Is shlibpath searched before the hard-coded library search path? |
| 26439 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26440 | |
| 26441 | # How to hardcode a shared library path into an executable. |
| 26442 | hardcode_action=$hardcode_action_GCJ |
| 26443 | |
| 26444 | # Whether we should hardcode library paths into libraries. |
| 26445 | hardcode_into_libs=$hardcode_into_libs |
| 26446 | |
| 26447 | # Flag to hardcode \$libdir into a binary during linking. |
| 26448 | # This must work even if \$libdir does not exist. |
| 26449 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26450 | |
| 26451 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26452 | # a binary during linking. This must work even if \$libdir does |
| 26453 | # not exist. |
| 26454 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26455 | |
| 26456 | # Whether we need a single -rpath flag with a separated argument. |
| 26457 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26458 | |
| 26459 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26460 | # resulting binary. |
| 26461 | hardcode_direct=$hardcode_direct_GCJ |
| 26462 | |
| 26463 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26464 | # resulting binary. |
| 26465 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26466 | |
| 26467 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26468 | # the resulting binary. |
| 26469 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26470 | |
| 26471 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26472 | # and all subsequent libraries and executables linked against it. |
| 26473 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26474 | |
| 26475 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26476 | # restored at relink time. |
| 26477 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26478 | |
| 26479 | # Whether libtool must link a program against all its dependency libraries. |
| 26480 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26481 | |
| 26482 | # Compile-time system search path for libraries |
| 26483 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26484 | |
| 26485 | # Run-time system search path for libraries |
| 26486 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26487 | |
| 26488 | # Fix the shell variable \$srcfile for the compiler. |
| 26489 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26490 | |
| 26491 | # Set to yes if exported symbols are required. |
| 26492 | always_export_symbols=$always_export_symbols_GCJ |
| 26493 | |
| 26494 | # The commands to list exported symbols. |
| 26495 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26496 | |
| 26497 | # The commands to extract the exported symbol list from a shared archive. |
| 26498 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26499 | |
| 26500 | # Symbols that should not be listed in the preloaded symbols. |
| 26501 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26502 | |
| 26503 | # Symbols that must always be exported. |
| 26504 | include_expsyms=$lt_include_expsyms_GCJ |
| 26505 | |
| 26506 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26507 | |
| 26508 | __EOF__ |
| 26509 | |
| 26510 | |
| 26511 | else |
| 26512 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26513 | # `config.status --recheck' to rerun these tests and create the |
| 26514 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26515 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26516 | if test -f "$ltmain_in"; then |
| 26517 | test -f Makefile && make "$ltmain" |
| 26518 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26519 | fi |
| 26520 | |
| 26521 | |
| 26522 | ac_ext=c |
| 26523 | ac_cpp='$CPP $CPPFLAGS' |
| 26524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26527 | |
| 26528 | CC="$lt_save_CC" |
| 26529 | |
| 26530 | else |
| 26531 | tagname="" |
| 26532 | fi |
| 26533 | ;; |
| 26534 | |
| 26535 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26536 | ac_ext=c |
| 26537 | ac_cpp='$CPP $CPPFLAGS' |
| 26538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26541 | |
| 26542 | |
| 26543 | # Source file extension for RC test sources. |
| 26544 | ac_ext=rc |
| 26545 | |
| 26546 | # Object file extension for compiled RC test sources. |
| 26547 | objext=o |
| 26548 | objext_RC=$objext |
| 26549 | |
| 26550 | # Code to be used in simple compile tests |
| 26551 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26552 | |
| 26553 | # Code to be used in simple link tests |
| 26554 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26555 | |
| 26556 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26557 | |
| 26558 | # If no C compiler was specified, use CC. |
| 26559 | LTCC=${LTCC-"$CC"} |
| 26560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26561 | # If no C compiler flags were specified, use CFLAGS. |
| 26562 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26563 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26564 | # Allow CC to be a program name with arguments. |
| 26565 | compiler=$CC |
| 26566 | |
| 26567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26568 | # save warnings/boilerplate of simple test code |
| 26569 | ac_outfile=conftest.$ac_objext |
| 26570 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26571 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26572 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26573 | $rm conftest* |
| 26574 | |
| 26575 | ac_outfile=conftest.$ac_objext |
| 26576 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26577 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26578 | _lt_linker_boilerplate=`cat conftest.err` |
| 26579 | $rm conftest* |
| 26580 | |
| 26581 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26582 | # Allow CC to be a program name with arguments. |
| 26583 | lt_save_CC="$CC" |
| 26584 | CC=${RC-"windres"} |
| 26585 | compiler=$CC |
| 26586 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26587 | for cc_temp in $compiler""; do |
| 26588 | case $cc_temp in |
| 26589 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26590 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26591 | \-*) ;; |
| 26592 | *) break;; |
| 26593 | esac |
| 26594 | done |
| 26595 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26596 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26597 | lt_cv_prog_compiler_c_o_RC=yes |
| 26598 | |
| 26599 | # The else clause should only fire when bootstrapping the |
| 26600 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26601 | # with your package, and you will get complaints that there are |
| 26602 | # no rules to generate ltmain.sh. |
| 26603 | if test -f "$ltmain"; then |
| 26604 | # See if we are running on zsh, and set the options which allow our commands through |
| 26605 | # without removal of \ escapes. |
| 26606 | if test -n "${ZSH_VERSION+set}" ; then |
| 26607 | setopt NO_GLOB_SUBST |
| 26608 | fi |
| 26609 | # Now quote all the things that may contain metacharacters while being |
| 26610 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26611 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26612 | 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] | 26613 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26614 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26615 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26616 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26617 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26618 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26619 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26620 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26621 | compiler_RC \ |
| 26622 | CC_RC \ |
| 26623 | LD_RC \ |
| 26624 | lt_prog_compiler_wl_RC \ |
| 26625 | lt_prog_compiler_pic_RC \ |
| 26626 | lt_prog_compiler_static_RC \ |
| 26627 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26628 | export_dynamic_flag_spec_RC \ |
| 26629 | thread_safe_flag_spec_RC \ |
| 26630 | whole_archive_flag_spec_RC \ |
| 26631 | enable_shared_with_static_runtimes_RC \ |
| 26632 | old_archive_cmds_RC \ |
| 26633 | old_archive_from_new_cmds_RC \ |
| 26634 | predep_objects_RC \ |
| 26635 | postdep_objects_RC \ |
| 26636 | predeps_RC \ |
| 26637 | postdeps_RC \ |
| 26638 | compiler_lib_search_path_RC \ |
| 26639 | archive_cmds_RC \ |
| 26640 | archive_expsym_cmds_RC \ |
| 26641 | postinstall_cmds_RC \ |
| 26642 | postuninstall_cmds_RC \ |
| 26643 | old_archive_from_expsyms_cmds_RC \ |
| 26644 | allow_undefined_flag_RC \ |
| 26645 | no_undefined_flag_RC \ |
| 26646 | export_symbols_cmds_RC \ |
| 26647 | hardcode_libdir_flag_spec_RC \ |
| 26648 | hardcode_libdir_flag_spec_ld_RC \ |
| 26649 | hardcode_libdir_separator_RC \ |
| 26650 | hardcode_automatic_RC \ |
| 26651 | module_cmds_RC \ |
| 26652 | module_expsym_cmds_RC \ |
| 26653 | lt_cv_prog_compiler_c_o_RC \ |
| 26654 | exclude_expsyms_RC \ |
| 26655 | include_expsyms_RC; do |
| 26656 | |
| 26657 | case $var in |
| 26658 | old_archive_cmds_RC | \ |
| 26659 | old_archive_from_new_cmds_RC | \ |
| 26660 | archive_cmds_RC | \ |
| 26661 | archive_expsym_cmds_RC | \ |
| 26662 | module_cmds_RC | \ |
| 26663 | module_expsym_cmds_RC | \ |
| 26664 | old_archive_from_expsyms_cmds_RC | \ |
| 26665 | export_symbols_cmds_RC | \ |
| 26666 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26667 | postinstall_cmds | postuninstall_cmds | \ |
| 26668 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26669 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26670 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26671 | 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] | 26672 | ;; |
| 26673 | *) |
| 26674 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26675 | ;; |
| 26676 | esac |
| 26677 | done |
| 26678 | |
| 26679 | case $lt_echo in |
| 26680 | *'\$0 --fallback-echo"') |
| 26681 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26682 | ;; |
| 26683 | esac |
| 26684 | |
| 26685 | cfgfile="$ofile" |
| 26686 | |
| 26687 | cat <<__EOF__ >> "$cfgfile" |
| 26688 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26689 | |
| 26690 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26691 | |
| 26692 | # Shell to use when invoking shell scripts. |
| 26693 | SHELL=$lt_SHELL |
| 26694 | |
| 26695 | # Whether or not to build shared libraries. |
| 26696 | build_libtool_libs=$enable_shared |
| 26697 | |
| 26698 | # Whether or not to build static libraries. |
| 26699 | build_old_libs=$enable_static |
| 26700 | |
| 26701 | # Whether or not to add -lc for building shared libraries. |
| 26702 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26703 | |
| 26704 | # Whether or not to disallow shared libs when runtime libs are static |
| 26705 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26706 | |
| 26707 | # Whether or not to optimize for fast installation. |
| 26708 | fast_install=$enable_fast_install |
| 26709 | |
| 26710 | # The host system. |
| 26711 | host_alias=$host_alias |
| 26712 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26713 | host_os=$host_os |
| 26714 | |
| 26715 | # The build system. |
| 26716 | build_alias=$build_alias |
| 26717 | build=$build |
| 26718 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26719 | |
| 26720 | # An echo program that does not interpret backslashes. |
| 26721 | echo=$lt_echo |
| 26722 | |
| 26723 | # The archiver. |
| 26724 | AR=$lt_AR |
| 26725 | AR_FLAGS=$lt_AR_FLAGS |
| 26726 | |
| 26727 | # A C compiler. |
| 26728 | LTCC=$lt_LTCC |
| 26729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26730 | # LTCC compiler flags. |
| 26731 | LTCFLAGS=$lt_LTCFLAGS |
| 26732 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26733 | # A language-specific compiler. |
| 26734 | CC=$lt_compiler_RC |
| 26735 | |
| 26736 | # Is the compiler the GNU C compiler? |
| 26737 | with_gcc=$GCC_RC |
| 26738 | |
| 26739 | # An ERE matcher. |
| 26740 | EGREP=$lt_EGREP |
| 26741 | |
| 26742 | # The linker used to build libraries. |
| 26743 | LD=$lt_LD_RC |
| 26744 | |
| 26745 | # Whether we need hard or soft links. |
| 26746 | LN_S=$lt_LN_S |
| 26747 | |
| 26748 | # A BSD-compatible nm program. |
| 26749 | NM=$lt_NM |
| 26750 | |
| 26751 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26752 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26753 | |
| 26754 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26755 | MAGIC_CMD=$MAGIC_CMD |
| 26756 | |
| 26757 | # Used on cygwin: DLL creation program. |
| 26758 | DLLTOOL="$DLLTOOL" |
| 26759 | |
| 26760 | # Used on cygwin: object dumper. |
| 26761 | OBJDUMP="$OBJDUMP" |
| 26762 | |
| 26763 | # Used on cygwin: assembler. |
| 26764 | AS="$AS" |
| 26765 | |
| 26766 | # The name of the directory that contains temporary libtool files. |
| 26767 | objdir=$objdir |
| 26768 | |
| 26769 | # How to create reloadable object files. |
| 26770 | reload_flag=$lt_reload_flag |
| 26771 | reload_cmds=$lt_reload_cmds |
| 26772 | |
| 26773 | # How to pass a linker flag through the compiler. |
| 26774 | wl=$lt_lt_prog_compiler_wl_RC |
| 26775 | |
| 26776 | # Object file suffix (normally "o"). |
| 26777 | objext="$ac_objext" |
| 26778 | |
| 26779 | # Old archive suffix (normally "a"). |
| 26780 | libext="$libext" |
| 26781 | |
| 26782 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26783 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26784 | |
| 26785 | # Executable file suffix (normally ""). |
| 26786 | exeext="$exeext" |
| 26787 | |
| 26788 | # Additional compiler flags for building library objects. |
| 26789 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26790 | pic_mode=$pic_mode |
| 26791 | |
| 26792 | # What is the maximum length of a command? |
| 26793 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26794 | |
| 26795 | # Does compiler simultaneously support -c and -o options? |
| 26796 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26798 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26799 | need_locks=$lt_need_locks |
| 26800 | |
| 26801 | # Do we need the lib prefix for modules? |
| 26802 | need_lib_prefix=$need_lib_prefix |
| 26803 | |
| 26804 | # Do we need a version for libraries? |
| 26805 | need_version=$need_version |
| 26806 | |
| 26807 | # Whether dlopen is supported. |
| 26808 | dlopen_support=$enable_dlopen |
| 26809 | |
| 26810 | # Whether dlopen of programs is supported. |
| 26811 | dlopen_self=$enable_dlopen_self |
| 26812 | |
| 26813 | # Whether dlopen of statically linked programs is supported. |
| 26814 | dlopen_self_static=$enable_dlopen_self_static |
| 26815 | |
| 26816 | # Compiler flag to prevent dynamic linking. |
| 26817 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26818 | |
| 26819 | # Compiler flag to turn off builtin functions. |
| 26820 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26821 | |
| 26822 | # Compiler flag to allow reflexive dlopens. |
| 26823 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26824 | |
| 26825 | # Compiler flag to generate shared objects directly from archives. |
| 26826 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26827 | |
| 26828 | # Compiler flag to generate thread-safe objects. |
| 26829 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26830 | |
| 26831 | # Library versioning type. |
| 26832 | version_type=$version_type |
| 26833 | |
| 26834 | # Format of library name prefix. |
| 26835 | libname_spec=$lt_libname_spec |
| 26836 | |
| 26837 | # List of archive names. First name is the real one, the rest are links. |
| 26838 | # The last name is the one that the linker finds with -lNAME. |
| 26839 | library_names_spec=$lt_library_names_spec |
| 26840 | |
| 26841 | # The coded name of the library, if different from the real name. |
| 26842 | soname_spec=$lt_soname_spec |
| 26843 | |
| 26844 | # Commands used to build and install an old-style archive. |
| 26845 | RANLIB=$lt_RANLIB |
| 26846 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26847 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26848 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26849 | |
| 26850 | # Create an old-style archive from a shared archive. |
| 26851 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26852 | |
| 26853 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26854 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26855 | |
| 26856 | # Commands used to build and install a shared archive. |
| 26857 | archive_cmds=$lt_archive_cmds_RC |
| 26858 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26859 | postinstall_cmds=$lt_postinstall_cmds |
| 26860 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26861 | |
| 26862 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26863 | module_cmds=$lt_module_cmds_RC |
| 26864 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26865 | |
| 26866 | # Commands to strip libraries. |
| 26867 | old_striplib=$lt_old_striplib |
| 26868 | striplib=$lt_striplib |
| 26869 | |
| 26870 | # Dependencies to place before the objects being linked to create a |
| 26871 | # shared library. |
| 26872 | predep_objects=$lt_predep_objects_RC |
| 26873 | |
| 26874 | # Dependencies to place after the objects being linked to create a |
| 26875 | # shared library. |
| 26876 | postdep_objects=$lt_postdep_objects_RC |
| 26877 | |
| 26878 | # Dependencies to place before the objects being linked to create a |
| 26879 | # shared library. |
| 26880 | predeps=$lt_predeps_RC |
| 26881 | |
| 26882 | # Dependencies to place after the objects being linked to create a |
| 26883 | # shared library. |
| 26884 | postdeps=$lt_postdeps_RC |
| 26885 | |
| 26886 | # The library search path used internally by the compiler when linking |
| 26887 | # a shared library. |
| 26888 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26889 | |
| 26890 | # Method to check whether dependent libraries are shared objects. |
| 26891 | deplibs_check_method=$lt_deplibs_check_method |
| 26892 | |
| 26893 | # Command to use when deplibs_check_method == file_magic. |
| 26894 | file_magic_cmd=$lt_file_magic_cmd |
| 26895 | |
| 26896 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26897 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26898 | |
| 26899 | # Flag that forces no undefined symbols. |
| 26900 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26901 | |
| 26902 | # Commands used to finish a libtool library installation in a directory. |
| 26903 | finish_cmds=$lt_finish_cmds |
| 26904 | |
| 26905 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26906 | finish_eval=$lt_finish_eval |
| 26907 | |
| 26908 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26909 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26910 | |
| 26911 | # Transform the output of nm in a proper C declaration |
| 26912 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26913 | |
| 26914 | # Transform the output of nm in a C name address pair |
| 26915 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26916 | |
| 26917 | # This is the shared library runtime path variable. |
| 26918 | runpath_var=$runpath_var |
| 26919 | |
| 26920 | # This is the shared library path variable. |
| 26921 | shlibpath_var=$shlibpath_var |
| 26922 | |
| 26923 | # Is shlibpath searched before the hard-coded library search path? |
| 26924 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26925 | |
| 26926 | # How to hardcode a shared library path into an executable. |
| 26927 | hardcode_action=$hardcode_action_RC |
| 26928 | |
| 26929 | # Whether we should hardcode library paths into libraries. |
| 26930 | hardcode_into_libs=$hardcode_into_libs |
| 26931 | |
| 26932 | # Flag to hardcode \$libdir into a binary during linking. |
| 26933 | # This must work even if \$libdir does not exist. |
| 26934 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26935 | |
| 26936 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26937 | # a binary during linking. This must work even if \$libdir does |
| 26938 | # not exist. |
| 26939 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26940 | |
| 26941 | # Whether we need a single -rpath flag with a separated argument. |
| 26942 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26943 | |
| 26944 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26945 | # resulting binary. |
| 26946 | hardcode_direct=$hardcode_direct_RC |
| 26947 | |
| 26948 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26949 | # resulting binary. |
| 26950 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26951 | |
| 26952 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26953 | # the resulting binary. |
| 26954 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26955 | |
| 26956 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26957 | # and all subsequent libraries and executables linked against it. |
| 26958 | hardcode_automatic=$hardcode_automatic_RC |
| 26959 | |
| 26960 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26961 | # restored at relink time. |
| 26962 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26963 | |
| 26964 | # Whether libtool must link a program against all its dependency libraries. |
| 26965 | link_all_deplibs=$link_all_deplibs_RC |
| 26966 | |
| 26967 | # Compile-time system search path for libraries |
| 26968 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26969 | |
| 26970 | # Run-time system search path for libraries |
| 26971 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26972 | |
| 26973 | # Fix the shell variable \$srcfile for the compiler. |
| 26974 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26975 | |
| 26976 | # Set to yes if exported symbols are required. |
| 26977 | always_export_symbols=$always_export_symbols_RC |
| 26978 | |
| 26979 | # The commands to list exported symbols. |
| 26980 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26981 | |
| 26982 | # The commands to extract the exported symbol list from a shared archive. |
| 26983 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26984 | |
| 26985 | # Symbols that should not be listed in the preloaded symbols. |
| 26986 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26987 | |
| 26988 | # Symbols that must always be exported. |
| 26989 | include_expsyms=$lt_include_expsyms_RC |
| 26990 | |
| 26991 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26992 | |
| 26993 | __EOF__ |
| 26994 | |
| 26995 | |
| 26996 | else |
| 26997 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26998 | # `config.status --recheck' to rerun these tests and create the |
| 26999 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27000 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 27001 | if test -f "$ltmain_in"; then |
| 27002 | test -f Makefile && make "$ltmain" |
| 27003 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27004 | fi |
| 27005 | |
| 27006 | |
| 27007 | ac_ext=c |
| 27008 | ac_cpp='$CPP $CPPFLAGS' |
| 27009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27012 | |
| 27013 | CC="$lt_save_CC" |
| 27014 | |
| 27015 | ;; |
| 27016 | |
| 27017 | *) |
| 27018 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 27019 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 27020 | { (exit 1); exit 1; }; } |
| 27021 | ;; |
| 27022 | esac |
| 27023 | |
| 27024 | # Append the new tag name to the list of available tags. |
| 27025 | if test -n "$tagname" ; then |
| 27026 | available_tags="$available_tags $tagname" |
| 27027 | fi |
| 27028 | fi |
| 27029 | done |
| 27030 | IFS="$lt_save_ifs" |
| 27031 | |
| 27032 | # Now substitute the updated list of available tags. |
| 27033 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 27034 | mv "${ofile}T" "$ofile" |
| 27035 | chmod +x "$ofile" |
| 27036 | else |
| 27037 | rm -f "${ofile}T" |
| 27038 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 27039 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 27040 | { (exit 1); exit 1; }; } |
| 27041 | fi |
| 27042 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27043 | |
| 27044 | |
| 27045 | |
| 27046 | # This can be used to rebuild libtool when needed |
| 27047 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 27048 | |
| 27049 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27050 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27051 | |
| 27052 | # Prevent multiple expansion |
| 27053 | |
| 27054 | |
| 27055 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27056 | |
| 27057 | |
| 27058 | |
| 27059 | |
| 27060 | |
| 27061 | |
| 27062 | |
| 27063 | |
| 27064 | |
| 27065 | |
| 27066 | |
| 27067 | |
| 27068 | |
| 27069 | |
| 27070 | |
| 27071 | |
| 27072 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27073 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27074 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 27075 | |
| 27076 | cat >>confdefs.h <<\_ACEOF |
| 27077 | #define CAN_DLOPEN_SELF 1 |
| 27078 | _ACEOF |
| 27079 | |
| 27080 | fi |
| 27081 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27082 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27083 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 27084 | LLVMGXX="llvm-g++${EXEEXT}" |
| 27085 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 27086 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27087 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27089 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 27090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27091 | else |
| 27092 | case $LLVMGCC in |
| 27093 | [\\/]* | ?:[\\/]*) |
| 27094 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 27095 | ;; |
| 27096 | *) |
| 27097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27098 | for as_dir in $PATH |
| 27099 | do |
| 27100 | IFS=$as_save_IFS |
| 27101 | test -z "$as_dir" && as_dir=. |
| 27102 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27103 | 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] | 27104 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 27105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27106 | break 2 |
| 27107 | fi |
| 27108 | done |
| 27109 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27110 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27111 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27112 | ;; |
| 27113 | esac |
| 27114 | fi |
| 27115 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27116 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27117 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 27118 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27119 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27120 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27121 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27122 | fi |
| 27123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27124 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27125 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 27126 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27129 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 27130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27131 | else |
| 27132 | case $LLVMGXX in |
| 27133 | [\\/]* | ?:[\\/]*) |
| 27134 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 27135 | ;; |
| 27136 | *) |
| 27137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27138 | for as_dir in $PATH |
| 27139 | do |
| 27140 | IFS=$as_save_IFS |
| 27141 | test -z "$as_dir" && as_dir=. |
| 27142 | for ac_exec_ext in '' $ac_executable_extensions; do |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27143 | 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] | 27144 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 27145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27146 | break 2 |
| 27147 | fi |
| 27148 | done |
| 27149 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27150 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27151 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27152 | ;; |
| 27153 | esac |
| 27154 | fi |
| 27155 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27156 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27157 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 27158 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27159 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27161 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27162 | fi |
| 27163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27164 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27165 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27166 | if test -z "$LLVMGCC"; then |
| 27167 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 27168 | fi |
| 27169 | if test -z "$LLVMGXX"; then |
| 27170 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
| 27171 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27172 | LLVMGCC=$LLVMGCC |
| 27173 | |
| 27174 | LLVMGXX=$LLVMGXX |
| 27175 | |
| 27176 | fi |
| 27177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27178 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 27179 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27180 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27181 | ICC=no |
| 27182 | IXX=no |
| 27183 | case $CC in |
| 27184 | icc*|icpc*) |
| 27185 | ICC=yes |
| 27186 | IXX=yes |
| 27187 | ;; |
| 27188 | *) |
| 27189 | ;; |
| 27190 | esac |
| 27191 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27192 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27193 | then |
| 27194 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27195 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27196 | { (exit 1); exit 1; }; } |
| 27197 | fi |
| 27198 | |
| 27199 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27200 | then |
| 27201 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27202 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27203 | { (exit 1); exit 1; }; } |
| 27204 | fi |
| 27205 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27206 | if test "$GCC" = "yes" |
| 27207 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27208 | cat >conftest.$ac_ext <<_ACEOF |
| 27209 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27210 | #error Unsupported GCC version |
| 27211 | #endif |
| 27212 | |
| 27213 | _ACEOF |
| 27214 | rm -f conftest.$ac_objext |
| 27215 | if { (ac_try="$ac_compile" |
| 27216 | case "(($ac_try" in |
| 27217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27218 | *) ac_try_echo=$ac_try;; |
| 27219 | esac |
| 27220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27221 | (eval "$ac_compile") 2>conftest.er1 |
| 27222 | ac_status=$? |
| 27223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27224 | rm -f conftest.er1 |
| 27225 | cat conftest.err >&5 |
| 27226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27227 | (exit $ac_status); } && |
| 27228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27229 | { (case "(($ac_try" in |
| 27230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27231 | *) ac_try_echo=$ac_try;; |
| 27232 | esac |
| 27233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27234 | (eval "$ac_try") 2>&5 |
| 27235 | ac_status=$? |
| 27236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27237 | (exit $ac_status); }; } && |
| 27238 | { ac_try='test -s conftest.$ac_objext' |
| 27239 | { (case "(($ac_try" in |
| 27240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27241 | *) ac_try_echo=$ac_try;; |
| 27242 | esac |
| 27243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27244 | (eval "$ac_try") 2>&5 |
| 27245 | ac_status=$? |
| 27246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27247 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27248 | : |
| 27249 | else |
| 27250 | echo "$as_me: failed program was:" >&5 |
| 27251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27252 | |
| 27253 | { { 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] | 27254 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27255 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27256 | fi |
| 27257 | |
| 27258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27259 | fi |
| 27260 | |
| 27261 | if test -z "$llvm_cv_gnu_make_command" |
| 27262 | then |
| 27263 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27264 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27265 | { (exit 1); exit 1; }; } |
| 27266 | fi |
| 27267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27268 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27269 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27270 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27271 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27273 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 27274 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27275 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 27276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27277 | else |
| 27278 | ac_check_lib_save_LIBS=$LIBS |
| 27279 | LIBS="-lelf $LIBS" |
| 27280 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27281 | /* confdefs.h. */ |
| 27282 | _ACEOF |
| 27283 | cat confdefs.h >>conftest.$ac_ext |
| 27284 | cat >>conftest.$ac_ext <<_ACEOF |
| 27285 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27287 | /* Override any GCC internal prototype to avoid an error. |
| 27288 | Use char because int might match the return type of a GCC |
| 27289 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27290 | #ifdef __cplusplus |
| 27291 | extern "C" |
| 27292 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27293 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27294 | int |
| 27295 | main () |
| 27296 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27297 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27298 | ; |
| 27299 | return 0; |
| 27300 | } |
| 27301 | _ACEOF |
| 27302 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27303 | if { (ac_try="$ac_link" |
| 27304 | case "(($ac_try" in |
| 27305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27306 | *) ac_try_echo=$ac_try;; |
| 27307 | esac |
| 27308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27309 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27310 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27312 | rm -f conftest.er1 |
| 27313 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27315 | (exit $ac_status); } && |
| 27316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27317 | { (case "(($ac_try" in |
| 27318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27319 | *) ac_try_echo=$ac_try;; |
| 27320 | esac |
| 27321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27322 | (eval "$ac_try") 2>&5 |
| 27323 | ac_status=$? |
| 27324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27325 | (exit $ac_status); }; } && |
| 27326 | { ac_try='test -s conftest$ac_exeext' |
| 27327 | { (case "(($ac_try" in |
| 27328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27329 | *) ac_try_echo=$ac_try;; |
| 27330 | esac |
| 27331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27332 | (eval "$ac_try") 2>&5 |
| 27333 | ac_status=$? |
| 27334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27335 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27336 | ac_cv_lib_elf_elf_begin=yes |
| 27337 | else |
| 27338 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27341 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27342 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27343 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27344 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27345 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27346 | LIBS=$ac_check_lib_save_LIBS |
| 27347 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27348 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 27349 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27350 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 27351 | cat >>confdefs.h <<_ACEOF |
| 27352 | #define HAVE_LIBELF 1 |
| 27353 | _ACEOF |
| 27354 | |
| 27355 | LIBS="-lelf $LIBS" |
| 27356 | |
| 27357 | fi |
| 27358 | |
| 27359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27360 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27361 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27362 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27364 | else |
| 27365 | ac_check_lib_save_LIBS=$LIBS |
| 27366 | LIBS="-lm $LIBS" |
| 27367 | cat >conftest.$ac_ext <<_ACEOF |
| 27368 | /* confdefs.h. */ |
| 27369 | _ACEOF |
| 27370 | cat confdefs.h >>conftest.$ac_ext |
| 27371 | cat >>conftest.$ac_ext <<_ACEOF |
| 27372 | /* end confdefs.h. */ |
| 27373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27374 | /* Override any GCC internal prototype to avoid an error. |
| 27375 | Use char because int might match the return type of a GCC |
| 27376 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27377 | #ifdef __cplusplus |
| 27378 | extern "C" |
| 27379 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27380 | char sin (); |
| 27381 | int |
| 27382 | main () |
| 27383 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27384 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27385 | ; |
| 27386 | return 0; |
| 27387 | } |
| 27388 | _ACEOF |
| 27389 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27390 | if { (ac_try="$ac_link" |
| 27391 | case "(($ac_try" in |
| 27392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27393 | *) ac_try_echo=$ac_try;; |
| 27394 | esac |
| 27395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27396 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27397 | ac_status=$? |
| 27398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27399 | rm -f conftest.er1 |
| 27400 | cat conftest.err >&5 |
| 27401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27402 | (exit $ac_status); } && |
| 27403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27404 | { (case "(($ac_try" in |
| 27405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27406 | *) ac_try_echo=$ac_try;; |
| 27407 | esac |
| 27408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27409 | (eval "$ac_try") 2>&5 |
| 27410 | ac_status=$? |
| 27411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27412 | (exit $ac_status); }; } && |
| 27413 | { ac_try='test -s conftest$ac_exeext' |
| 27414 | { (case "(($ac_try" in |
| 27415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27416 | *) ac_try_echo=$ac_try;; |
| 27417 | esac |
| 27418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27419 | (eval "$ac_try") 2>&5 |
| 27420 | ac_status=$? |
| 27421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27422 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27423 | ac_cv_lib_m_sin=yes |
| 27424 | else |
| 27425 | echo "$as_me: failed program was:" >&5 |
| 27426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27428 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27429 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27430 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27431 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27432 | conftest$ac_exeext conftest.$ac_ext |
| 27433 | LIBS=$ac_check_lib_save_LIBS |
| 27434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27435 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27436 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27437 | if test $ac_cv_lib_m_sin = yes; then |
| 27438 | cat >>confdefs.h <<_ACEOF |
| 27439 | #define HAVE_LIBM 1 |
| 27440 | _ACEOF |
| 27441 | |
| 27442 | LIBS="-lm $LIBS" |
| 27443 | |
| 27444 | fi |
| 27445 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27446 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27448 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27449 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27450 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27452 | else |
| 27453 | ac_check_lib_save_LIBS=$LIBS |
| 27454 | LIBS="-limagehlp $LIBS" |
| 27455 | cat >conftest.$ac_ext <<_ACEOF |
| 27456 | /* confdefs.h. */ |
| 27457 | _ACEOF |
| 27458 | cat confdefs.h >>conftest.$ac_ext |
| 27459 | cat >>conftest.$ac_ext <<_ACEOF |
| 27460 | /* end confdefs.h. */ |
| 27461 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27462 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27463 | int |
| 27464 | main () |
| 27465 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27466 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27467 | ; |
| 27468 | return 0; |
| 27469 | } |
| 27470 | _ACEOF |
| 27471 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27472 | if { (ac_try="$ac_link" |
| 27473 | case "(($ac_try" in |
| 27474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27475 | *) ac_try_echo=$ac_try;; |
| 27476 | esac |
| 27477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27478 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27479 | ac_status=$? |
| 27480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27481 | rm -f conftest.er1 |
| 27482 | cat conftest.err >&5 |
| 27483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27484 | (exit $ac_status); } && |
| 27485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27486 | { (case "(($ac_try" in |
| 27487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27488 | *) ac_try_echo=$ac_try;; |
| 27489 | esac |
| 27490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27491 | (eval "$ac_try") 2>&5 |
| 27492 | ac_status=$? |
| 27493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27494 | (exit $ac_status); }; } && |
| 27495 | { ac_try='test -s conftest$ac_exeext' |
| 27496 | { (case "(($ac_try" in |
| 27497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27498 | *) ac_try_echo=$ac_try;; |
| 27499 | esac |
| 27500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27501 | (eval "$ac_try") 2>&5 |
| 27502 | ac_status=$? |
| 27503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27504 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27505 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27506 | else |
| 27507 | echo "$as_me: failed program was:" >&5 |
| 27508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27510 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27511 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27512 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27513 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27514 | conftest$ac_exeext conftest.$ac_ext |
| 27515 | LIBS=$ac_check_lib_save_LIBS |
| 27516 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27517 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27518 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27519 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27520 | cat >>confdefs.h <<_ACEOF |
| 27521 | #define HAVE_LIBIMAGEHLP 1 |
| 27522 | _ACEOF |
| 27523 | |
| 27524 | LIBS="-limagehlp $LIBS" |
| 27525 | |
| 27526 | fi |
| 27527 | |
| 27528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27529 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27530 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27531 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27533 | else |
| 27534 | ac_check_lib_save_LIBS=$LIBS |
| 27535 | LIBS="-lpsapi $LIBS" |
| 27536 | cat >conftest.$ac_ext <<_ACEOF |
| 27537 | /* confdefs.h. */ |
| 27538 | _ACEOF |
| 27539 | cat confdefs.h >>conftest.$ac_ext |
| 27540 | cat >>conftest.$ac_ext <<_ACEOF |
| 27541 | /* end confdefs.h. */ |
| 27542 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27543 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27544 | int |
| 27545 | main () |
| 27546 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27547 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27548 | ; |
| 27549 | return 0; |
| 27550 | } |
| 27551 | _ACEOF |
| 27552 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27553 | if { (ac_try="$ac_link" |
| 27554 | case "(($ac_try" in |
| 27555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27556 | *) ac_try_echo=$ac_try;; |
| 27557 | esac |
| 27558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27559 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27560 | ac_status=$? |
| 27561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27562 | rm -f conftest.er1 |
| 27563 | cat conftest.err >&5 |
| 27564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27565 | (exit $ac_status); } && |
| 27566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27567 | { (case "(($ac_try" in |
| 27568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27569 | *) ac_try_echo=$ac_try;; |
| 27570 | esac |
| 27571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27572 | (eval "$ac_try") 2>&5 |
| 27573 | ac_status=$? |
| 27574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27575 | (exit $ac_status); }; } && |
| 27576 | { ac_try='test -s conftest$ac_exeext' |
| 27577 | { (case "(($ac_try" in |
| 27578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27579 | *) ac_try_echo=$ac_try;; |
| 27580 | esac |
| 27581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27582 | (eval "$ac_try") 2>&5 |
| 27583 | ac_status=$? |
| 27584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27585 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27586 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27587 | else |
| 27588 | echo "$as_me: failed program was:" >&5 |
| 27589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27591 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27592 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27593 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27594 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27595 | conftest$ac_exeext conftest.$ac_ext |
| 27596 | LIBS=$ac_check_lib_save_LIBS |
| 27597 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27598 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27599 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27600 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27601 | cat >>confdefs.h <<_ACEOF |
| 27602 | #define HAVE_LIBPSAPI 1 |
| 27603 | _ACEOF |
| 27604 | |
| 27605 | LIBS="-lpsapi $LIBS" |
| 27606 | |
| 27607 | fi |
| 27608 | |
| 27609 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27611 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27612 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27613 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27615 | else |
| 27616 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27617 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27618 | /* confdefs.h. */ |
| 27619 | _ACEOF |
| 27620 | cat confdefs.h >>conftest.$ac_ext |
| 27621 | cat >>conftest.$ac_ext <<_ACEOF |
| 27622 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27624 | /* Override any GCC internal prototype to avoid an error. |
| 27625 | Use char because int might match the return type of a GCC |
| 27626 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27627 | #ifdef __cplusplus |
| 27628 | extern "C" |
| 27629 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27630 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27631 | int |
| 27632 | main () |
| 27633 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27634 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27635 | ; |
| 27636 | return 0; |
| 27637 | } |
| 27638 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27639 | for ac_lib in '' dl; do |
| 27640 | if test -z "$ac_lib"; then |
| 27641 | ac_res="none required" |
| 27642 | else |
| 27643 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27644 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27645 | fi |
| 27646 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27647 | if { (ac_try="$ac_link" |
| 27648 | case "(($ac_try" in |
| 27649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27650 | *) ac_try_echo=$ac_try;; |
| 27651 | esac |
| 27652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27653 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27654 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27656 | rm -f conftest.er1 |
| 27657 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27659 | (exit $ac_status); } && |
| 27660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27661 | { (case "(($ac_try" in |
| 27662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27663 | *) ac_try_echo=$ac_try;; |
| 27664 | esac |
| 27665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27666 | (eval "$ac_try") 2>&5 |
| 27667 | ac_status=$? |
| 27668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27669 | (exit $ac_status); }; } && |
| 27670 | { ac_try='test -s conftest$ac_exeext' |
| 27671 | { (case "(($ac_try" in |
| 27672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27673 | *) ac_try_echo=$ac_try;; |
| 27674 | esac |
| 27675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27676 | (eval "$ac_try") 2>&5 |
| 27677 | ac_status=$? |
| 27678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27679 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27680 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27681 | else |
| 27682 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27687 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27688 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27689 | conftest$ac_exeext |
| 27690 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27691 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27693 | done |
| 27694 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27695 | : |
| 27696 | else |
| 27697 | ac_cv_search_dlopen=no |
| 27698 | fi |
| 27699 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27700 | LIBS=$ac_func_search_save_LIBS |
| 27701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27702 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27703 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27704 | ac_res=$ac_cv_search_dlopen |
| 27705 | if test "$ac_res" != no; then |
| 27706 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27707 | |
| 27708 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27709 | #define HAVE_DLOPEN 1 |
| 27710 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27711 | |
| 27712 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27713 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27714 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27715 | fi |
| 27716 | |
| 27717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27718 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27719 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27720 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27722 | else |
| 27723 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27724 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27725 | /* confdefs.h. */ |
| 27726 | _ACEOF |
| 27727 | cat confdefs.h >>conftest.$ac_ext |
| 27728 | cat >>conftest.$ac_ext <<_ACEOF |
| 27729 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27731 | /* Override any GCC internal prototype to avoid an error. |
| 27732 | Use char because int might match the return type of a GCC |
| 27733 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27734 | #ifdef __cplusplus |
| 27735 | extern "C" |
| 27736 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27737 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27738 | int |
| 27739 | main () |
| 27740 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27741 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27742 | ; |
| 27743 | return 0; |
| 27744 | } |
| 27745 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27746 | for ac_lib in '' malloc; do |
| 27747 | if test -z "$ac_lib"; then |
| 27748 | ac_res="none required" |
| 27749 | else |
| 27750 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27751 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27752 | fi |
| 27753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27754 | if { (ac_try="$ac_link" |
| 27755 | case "(($ac_try" in |
| 27756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27757 | *) ac_try_echo=$ac_try;; |
| 27758 | esac |
| 27759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27760 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27761 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27763 | rm -f conftest.er1 |
| 27764 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27766 | (exit $ac_status); } && |
| 27767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27768 | { (case "(($ac_try" in |
| 27769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27770 | *) ac_try_echo=$ac_try;; |
| 27771 | esac |
| 27772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27773 | (eval "$ac_try") 2>&5 |
| 27774 | ac_status=$? |
| 27775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27776 | (exit $ac_status); }; } && |
| 27777 | { ac_try='test -s conftest$ac_exeext' |
| 27778 | { (case "(($ac_try" in |
| 27779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27780 | *) ac_try_echo=$ac_try;; |
| 27781 | esac |
| 27782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27783 | (eval "$ac_try") 2>&5 |
| 27784 | ac_status=$? |
| 27785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27786 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27787 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27788 | else |
| 27789 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27792 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27794 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27795 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27796 | conftest$ac_exeext |
| 27797 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27798 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27799 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27800 | done |
| 27801 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27802 | : |
| 27803 | else |
| 27804 | ac_cv_search_mallinfo=no |
| 27805 | fi |
| 27806 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27807 | LIBS=$ac_func_search_save_LIBS |
| 27808 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27809 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27810 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27811 | ac_res=$ac_cv_search_mallinfo |
| 27812 | if test "$ac_res" != no; then |
| 27813 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27814 | |
| 27815 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27816 | #define HAVE_MALLINFO 1 |
| 27817 | _ACEOF |
| 27818 | |
| 27819 | fi |
| 27820 | |
| 27821 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27822 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27824 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27825 | 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] | 27826 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27828 | else |
| 27829 | ac_check_lib_save_LIBS=$LIBS |
| 27830 | LIBS="-lpthread $LIBS" |
| 27831 | cat >conftest.$ac_ext <<_ACEOF |
| 27832 | /* confdefs.h. */ |
| 27833 | _ACEOF |
| 27834 | cat confdefs.h >>conftest.$ac_ext |
| 27835 | cat >>conftest.$ac_ext <<_ACEOF |
| 27836 | /* end confdefs.h. */ |
| 27837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27838 | /* Override any GCC internal prototype to avoid an error. |
| 27839 | Use char because int might match the return type of a GCC |
| 27840 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27841 | #ifdef __cplusplus |
| 27842 | extern "C" |
| 27843 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27844 | char pthread_mutex_init (); |
| 27845 | int |
| 27846 | main () |
| 27847 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27848 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27849 | ; |
| 27850 | return 0; |
| 27851 | } |
| 27852 | _ACEOF |
| 27853 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27854 | if { (ac_try="$ac_link" |
| 27855 | case "(($ac_try" in |
| 27856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27857 | *) ac_try_echo=$ac_try;; |
| 27858 | esac |
| 27859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27860 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27861 | ac_status=$? |
| 27862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27863 | rm -f conftest.er1 |
| 27864 | cat conftest.err >&5 |
| 27865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27866 | (exit $ac_status); } && |
| 27867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27868 | { (case "(($ac_try" in |
| 27869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27870 | *) ac_try_echo=$ac_try;; |
| 27871 | esac |
| 27872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27873 | (eval "$ac_try") 2>&5 |
| 27874 | ac_status=$? |
| 27875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27876 | (exit $ac_status); }; } && |
| 27877 | { ac_try='test -s conftest$ac_exeext' |
| 27878 | { (case "(($ac_try" in |
| 27879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27880 | *) ac_try_echo=$ac_try;; |
| 27881 | esac |
| 27882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27883 | (eval "$ac_try") 2>&5 |
| 27884 | ac_status=$? |
| 27885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27886 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27887 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27888 | else |
| 27889 | echo "$as_me: failed program was:" >&5 |
| 27890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27892 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27894 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27895 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27896 | conftest$ac_exeext conftest.$ac_ext |
| 27897 | LIBS=$ac_check_lib_save_LIBS |
| 27898 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27899 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27900 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27901 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27902 | cat >>confdefs.h <<_ACEOF |
| 27903 | #define HAVE_LIBPTHREAD 1 |
| 27904 | _ACEOF |
| 27905 | |
| 27906 | LIBS="-lpthread $LIBS" |
| 27907 | |
| 27908 | fi |
| 27909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27910 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27911 | 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] | 27912 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27914 | else |
| 27915 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27916 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27917 | /* confdefs.h. */ |
| 27918 | _ACEOF |
| 27919 | cat confdefs.h >>conftest.$ac_ext |
| 27920 | cat >>conftest.$ac_ext <<_ACEOF |
| 27921 | /* end confdefs.h. */ |
| 27922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27923 | /* Override any GCC internal prototype to avoid an error. |
| 27924 | Use char because int might match the return type of a GCC |
| 27925 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27926 | #ifdef __cplusplus |
| 27927 | extern "C" |
| 27928 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27929 | char pthread_mutex_lock (); |
| 27930 | int |
| 27931 | main () |
| 27932 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27933 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27934 | ; |
| 27935 | return 0; |
| 27936 | } |
| 27937 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27938 | for ac_lib in '' pthread; do |
| 27939 | if test -z "$ac_lib"; then |
| 27940 | ac_res="none required" |
| 27941 | else |
| 27942 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27943 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27944 | fi |
| 27945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27946 | if { (ac_try="$ac_link" |
| 27947 | case "(($ac_try" in |
| 27948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27949 | *) ac_try_echo=$ac_try;; |
| 27950 | esac |
| 27951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27952 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27953 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27955 | rm -f conftest.er1 |
| 27956 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27958 | (exit $ac_status); } && |
| 27959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27960 | { (case "(($ac_try" in |
| 27961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27962 | *) ac_try_echo=$ac_try;; |
| 27963 | esac |
| 27964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27965 | (eval "$ac_try") 2>&5 |
| 27966 | ac_status=$? |
| 27967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27968 | (exit $ac_status); }; } && |
| 27969 | { ac_try='test -s conftest$ac_exeext' |
| 27970 | { (case "(($ac_try" in |
| 27971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27972 | *) ac_try_echo=$ac_try;; |
| 27973 | esac |
| 27974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27975 | (eval "$ac_try") 2>&5 |
| 27976 | ac_status=$? |
| 27977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27978 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27979 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27980 | else |
| 27981 | echo "$as_me: failed program was:" >&5 |
| 27982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27984 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27985 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27986 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 27987 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27988 | conftest$ac_exeext |
| 27989 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27990 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27991 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27992 | done |
| 27993 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27994 | : |
| 27995 | else |
| 27996 | ac_cv_search_pthread_mutex_lock=no |
| 27997 | fi |
| 27998 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27999 | LIBS=$ac_func_search_save_LIBS |
| 28000 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28001 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 28002 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 28003 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 28004 | if test "$ac_res" != no; then |
| 28005 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28006 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28007 | cat >>confdefs.h <<\_ACEOF |
| 28008 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 28009 | _ACEOF |
| 28010 | |
| 28011 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28012 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28013 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28014 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28015 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28016 | # Check whether --with-udis86 was given. |
| 28017 | if test "${with_udis86+set}" = set; then |
| 28018 | withval=$with_udis86; |
| 28019 | USE_UDIS86=1 |
| 28020 | |
| 28021 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28022 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28023 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 28024 | esac |
| 28025 | |
| 28026 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 28027 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 28028 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 28029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28030 | else |
| 28031 | ac_check_lib_save_LIBS=$LIBS |
| 28032 | LIBS="-ludis86 $LIBS" |
| 28033 | cat >conftest.$ac_ext <<_ACEOF |
| 28034 | /* confdefs.h. */ |
| 28035 | _ACEOF |
| 28036 | cat confdefs.h >>conftest.$ac_ext |
| 28037 | cat >>conftest.$ac_ext <<_ACEOF |
| 28038 | /* end confdefs.h. */ |
| 28039 | |
| 28040 | /* Override any GCC internal prototype to avoid an error. |
| 28041 | Use char because int might match the return type of a GCC |
| 28042 | builtin and then its argument prototype would still apply. */ |
| 28043 | #ifdef __cplusplus |
| 28044 | extern "C" |
| 28045 | #endif |
| 28046 | char ud_init (); |
| 28047 | int |
| 28048 | main () |
| 28049 | { |
| 28050 | return ud_init (); |
| 28051 | ; |
| 28052 | return 0; |
| 28053 | } |
| 28054 | _ACEOF |
| 28055 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28056 | if { (ac_try="$ac_link" |
| 28057 | case "(($ac_try" in |
| 28058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28059 | *) ac_try_echo=$ac_try;; |
| 28060 | esac |
| 28061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28062 | (eval "$ac_link") 2>conftest.er1 |
| 28063 | ac_status=$? |
| 28064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28065 | rm -f conftest.er1 |
| 28066 | cat conftest.err >&5 |
| 28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28068 | (exit $ac_status); } && |
| 28069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28070 | { (case "(($ac_try" in |
| 28071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28072 | *) ac_try_echo=$ac_try;; |
| 28073 | esac |
| 28074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28075 | (eval "$ac_try") 2>&5 |
| 28076 | ac_status=$? |
| 28077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28078 | (exit $ac_status); }; } && |
| 28079 | { ac_try='test -s conftest$ac_exeext' |
| 28080 | { (case "(($ac_try" in |
| 28081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28082 | *) ac_try_echo=$ac_try;; |
| 28083 | esac |
| 28084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28085 | (eval "$ac_try") 2>&5 |
| 28086 | ac_status=$? |
| 28087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28088 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28089 | ac_cv_lib_udis86_ud_init=yes |
| 28090 | else |
| 28091 | echo "$as_me: failed program was:" >&5 |
| 28092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28093 | |
| 28094 | ac_cv_lib_udis86_ud_init=no |
| 28095 | fi |
| 28096 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28097 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28098 | conftest$ac_exeext conftest.$ac_ext |
| 28099 | LIBS=$ac_check_lib_save_LIBS |
| 28100 | fi |
| 28101 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 28102 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 28103 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 28104 | cat >>confdefs.h <<_ACEOF |
| 28105 | #define HAVE_LIBUDIS86 1 |
| 28106 | _ACEOF |
| 28107 | |
| 28108 | LIBS="-ludis86 $LIBS" |
| 28109 | |
| 28110 | else |
| 28111 | |
| 28112 | echo "Error! You need to have libudis86 around." |
| 28113 | exit -1 |
| 28114 | |
| 28115 | fi |
| 28116 | |
| 28117 | |
| 28118 | else |
| 28119 | USE_UDIS86=0 |
| 28120 | |
| 28121 | fi |
| 28122 | |
| 28123 | |
| 28124 | cat >>confdefs.h <<_ACEOF |
| 28125 | #define USE_UDIS86 $USE_UDIS86 |
| 28126 | _ACEOF |
| 28127 | |
| 28128 | |
| 28129 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28130 | |
| 28131 | |
| 28132 | |
| 28133 | |
| 28134 | |
| 28135 | ac_header_dirent=no |
| 28136 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 28137 | 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] | 28138 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 28139 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 28140 | 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] | 28141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28142 | else |
| 28143 | cat >conftest.$ac_ext <<_ACEOF |
| 28144 | /* confdefs.h. */ |
| 28145 | _ACEOF |
| 28146 | cat confdefs.h >>conftest.$ac_ext |
| 28147 | cat >>conftest.$ac_ext <<_ACEOF |
| 28148 | /* end confdefs.h. */ |
| 28149 | #include <sys/types.h> |
| 28150 | #include <$ac_hdr> |
| 28151 | |
| 28152 | int |
| 28153 | main () |
| 28154 | { |
| 28155 | if ((DIR *) 0) |
| 28156 | return 0; |
| 28157 | ; |
| 28158 | return 0; |
| 28159 | } |
| 28160 | _ACEOF |
| 28161 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28162 | if { (ac_try="$ac_compile" |
| 28163 | case "(($ac_try" in |
| 28164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28165 | *) ac_try_echo=$ac_try;; |
| 28166 | esac |
| 28167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28168 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28169 | ac_status=$? |
| 28170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28171 | rm -f conftest.er1 |
| 28172 | cat conftest.err >&5 |
| 28173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28174 | (exit $ac_status); } && |
| 28175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28176 | { (case "(($ac_try" in |
| 28177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28178 | *) ac_try_echo=$ac_try;; |
| 28179 | esac |
| 28180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28181 | (eval "$ac_try") 2>&5 |
| 28182 | ac_status=$? |
| 28183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28184 | (exit $ac_status); }; } && |
| 28185 | { ac_try='test -s conftest.$ac_objext' |
| 28186 | { (case "(($ac_try" in |
| 28187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28188 | *) ac_try_echo=$ac_try;; |
| 28189 | esac |
| 28190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28191 | (eval "$ac_try") 2>&5 |
| 28192 | ac_status=$? |
| 28193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28194 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28195 | eval "$as_ac_Header=yes" |
| 28196 | else |
| 28197 | echo "$as_me: failed program was:" >&5 |
| 28198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28200 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28201 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28202 | |
| 28203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28206 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28207 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28208 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28209 | cat >>confdefs.h <<_ACEOF |
| 28210 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 28211 | _ACEOF |
| 28212 | |
| 28213 | ac_header_dirent=$ac_hdr; break |
| 28214 | fi |
| 28215 | |
| 28216 | done |
| 28217 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 28218 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28219 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28220 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28221 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28223 | else |
| 28224 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28225 | cat >conftest.$ac_ext <<_ACEOF |
| 28226 | /* confdefs.h. */ |
| 28227 | _ACEOF |
| 28228 | cat confdefs.h >>conftest.$ac_ext |
| 28229 | cat >>conftest.$ac_ext <<_ACEOF |
| 28230 | /* end confdefs.h. */ |
| 28231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28232 | /* Override any GCC internal prototype to avoid an error. |
| 28233 | Use char because int might match the return type of a GCC |
| 28234 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28235 | #ifdef __cplusplus |
| 28236 | extern "C" |
| 28237 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28238 | char opendir (); |
| 28239 | int |
| 28240 | main () |
| 28241 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28242 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28243 | ; |
| 28244 | return 0; |
| 28245 | } |
| 28246 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28247 | for ac_lib in '' dir; do |
| 28248 | if test -z "$ac_lib"; then |
| 28249 | ac_res="none required" |
| 28250 | else |
| 28251 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28252 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28253 | fi |
| 28254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28255 | if { (ac_try="$ac_link" |
| 28256 | case "(($ac_try" in |
| 28257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28258 | *) ac_try_echo=$ac_try;; |
| 28259 | esac |
| 28260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28261 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28262 | ac_status=$? |
| 28263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28264 | rm -f conftest.er1 |
| 28265 | cat conftest.err >&5 |
| 28266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28267 | (exit $ac_status); } && |
| 28268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28269 | { (case "(($ac_try" in |
| 28270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28271 | *) ac_try_echo=$ac_try;; |
| 28272 | esac |
| 28273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28274 | (eval "$ac_try") 2>&5 |
| 28275 | ac_status=$? |
| 28276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28277 | (exit $ac_status); }; } && |
| 28278 | { ac_try='test -s conftest$ac_exeext' |
| 28279 | { (case "(($ac_try" in |
| 28280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28281 | *) ac_try_echo=$ac_try;; |
| 28282 | esac |
| 28283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28284 | (eval "$ac_try") 2>&5 |
| 28285 | ac_status=$? |
| 28286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28287 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28288 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28289 | else |
| 28290 | echo "$as_me: failed program was:" >&5 |
| 28291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28293 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28294 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28295 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28296 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28297 | conftest$ac_exeext |
| 28298 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28299 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28300 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28301 | done |
| 28302 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28303 | : |
| 28304 | else |
| 28305 | ac_cv_search_opendir=no |
| 28306 | fi |
| 28307 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28308 | LIBS=$ac_func_search_save_LIBS |
| 28309 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28310 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28311 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28312 | ac_res=$ac_cv_search_opendir |
| 28313 | if test "$ac_res" != no; then |
| 28314 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28315 | |
| 28316 | fi |
| 28317 | |
| 28318 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28319 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 28320 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28321 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28323 | else |
| 28324 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28325 | cat >conftest.$ac_ext <<_ACEOF |
| 28326 | /* confdefs.h. */ |
| 28327 | _ACEOF |
| 28328 | cat confdefs.h >>conftest.$ac_ext |
| 28329 | cat >>conftest.$ac_ext <<_ACEOF |
| 28330 | /* end confdefs.h. */ |
| 28331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28332 | /* Override any GCC internal prototype to avoid an error. |
| 28333 | Use char because int might match the return type of a GCC |
| 28334 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28335 | #ifdef __cplusplus |
| 28336 | extern "C" |
| 28337 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28338 | char opendir (); |
| 28339 | int |
| 28340 | main () |
| 28341 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28342 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28343 | ; |
| 28344 | return 0; |
| 28345 | } |
| 28346 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28347 | for ac_lib in '' x; do |
| 28348 | if test -z "$ac_lib"; then |
| 28349 | ac_res="none required" |
| 28350 | else |
| 28351 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28352 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28353 | fi |
| 28354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28355 | if { (ac_try="$ac_link" |
| 28356 | case "(($ac_try" in |
| 28357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28358 | *) ac_try_echo=$ac_try;; |
| 28359 | esac |
| 28360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28361 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28362 | ac_status=$? |
| 28363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28364 | rm -f conftest.er1 |
| 28365 | cat conftest.err >&5 |
| 28366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28367 | (exit $ac_status); } && |
| 28368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28369 | { (case "(($ac_try" in |
| 28370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28371 | *) ac_try_echo=$ac_try;; |
| 28372 | esac |
| 28373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28374 | (eval "$ac_try") 2>&5 |
| 28375 | ac_status=$? |
| 28376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28377 | (exit $ac_status); }; } && |
| 28378 | { ac_try='test -s conftest$ac_exeext' |
| 28379 | { (case "(($ac_try" in |
| 28380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28381 | *) ac_try_echo=$ac_try;; |
| 28382 | esac |
| 28383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28384 | (eval "$ac_try") 2>&5 |
| 28385 | ac_status=$? |
| 28386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28387 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28388 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28389 | else |
| 28390 | echo "$as_me: failed program was:" >&5 |
| 28391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28393 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28394 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28395 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28396 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28397 | conftest$ac_exeext |
| 28398 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28399 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28401 | done |
| 28402 | if test "${ac_cv_search_opendir+set}" = set; then |
| 28403 | : |
| 28404 | else |
| 28405 | ac_cv_search_opendir=no |
| 28406 | fi |
| 28407 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28408 | LIBS=$ac_func_search_save_LIBS |
| 28409 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28410 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 28411 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 28412 | ac_res=$ac_cv_search_opendir |
| 28413 | if test "$ac_res" != no; then |
| 28414 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28415 | |
| 28416 | fi |
| 28417 | |
| 28418 | fi |
| 28419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28420 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 28421 | 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] | 28422 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 28423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28424 | else |
| 28425 | ac_ext=c |
| 28426 | ac_cpp='$CPP $CPPFLAGS' |
| 28427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28430 | |
| 28431 | cat >conftest.$ac_ext <<_ACEOF |
| 28432 | /* confdefs.h. */ |
| 28433 | _ACEOF |
| 28434 | cat confdefs.h >>conftest.$ac_ext |
| 28435 | cat >>conftest.$ac_ext <<_ACEOF |
| 28436 | /* end confdefs.h. */ |
| 28437 | #include <sys/mman.h> |
| 28438 | #include <unistd.h> |
| 28439 | #include <fcntl.h> |
| 28440 | int |
| 28441 | main () |
| 28442 | { |
| 28443 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28444 | ; |
| 28445 | return 0; |
| 28446 | } |
| 28447 | _ACEOF |
| 28448 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28449 | if { (ac_try="$ac_compile" |
| 28450 | case "(($ac_try" in |
| 28451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28452 | *) ac_try_echo=$ac_try;; |
| 28453 | esac |
| 28454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28455 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28456 | ac_status=$? |
| 28457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28458 | rm -f conftest.er1 |
| 28459 | cat conftest.err >&5 |
| 28460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28461 | (exit $ac_status); } && |
| 28462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28463 | { (case "(($ac_try" in |
| 28464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28465 | *) ac_try_echo=$ac_try;; |
| 28466 | esac |
| 28467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28468 | (eval "$ac_try") 2>&5 |
| 28469 | ac_status=$? |
| 28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28471 | (exit $ac_status); }; } && |
| 28472 | { ac_try='test -s conftest.$ac_objext' |
| 28473 | { (case "(($ac_try" in |
| 28474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28475 | *) ac_try_echo=$ac_try;; |
| 28476 | esac |
| 28477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28478 | (eval "$ac_try") 2>&5 |
| 28479 | ac_status=$? |
| 28480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28481 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28482 | ac_cv_header_mmap_anon=yes |
| 28483 | else |
| 28484 | echo "$as_me: failed program was:" >&5 |
| 28485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28487 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28489 | |
| 28490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28491 | ac_ext=c |
| 28492 | ac_cpp='$CPP $CPPFLAGS' |
| 28493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28496 | |
| 28497 | |
| 28498 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28499 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28500 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28501 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28502 | |
| 28503 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28504 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28505 | _ACEOF |
| 28506 | |
| 28507 | fi |
| 28508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28509 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28510 | 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] | 28511 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28513 | else |
| 28514 | cat >conftest.$ac_ext <<_ACEOF |
| 28515 | /* confdefs.h. */ |
| 28516 | _ACEOF |
| 28517 | cat confdefs.h >>conftest.$ac_ext |
| 28518 | cat >>conftest.$ac_ext <<_ACEOF |
| 28519 | /* end confdefs.h. */ |
| 28520 | #include <sys/types.h> |
| 28521 | #include <sys/stat.h> |
| 28522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28523 | #if defined S_ISBLK && defined S_IFDIR |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28524 | # if S_ISBLK (S_IFDIR) |
| 28525 | You lose. |
| 28526 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28527 | #endif |
| 28528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28529 | #if defined S_ISBLK && defined S_IFCHR |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28530 | # if S_ISBLK (S_IFCHR) |
| 28531 | You lose. |
| 28532 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28533 | #endif |
| 28534 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28535 | #if defined S_ISLNK && defined S_IFREG |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28536 | # if S_ISLNK (S_IFREG) |
| 28537 | You lose. |
| 28538 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28539 | #endif |
| 28540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28541 | #if defined S_ISSOCK && defined S_IFREG |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28542 | # if S_ISSOCK (S_IFREG) |
| 28543 | You lose. |
| 28544 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28545 | #endif |
| 28546 | |
| 28547 | _ACEOF |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28549 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28550 | ac_cv_header_stat_broken=yes |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 28551 | else |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28552 | ac_cv_header_stat_broken=no |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 28553 | fi |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28554 | rm -f conftest* |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 28555 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28556 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28557 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28558 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28559 | if test $ac_cv_header_stat_broken = yes; then |
| 28560 | |
| 28561 | cat >>confdefs.h <<\_ACEOF |
| 28562 | #define STAT_MACROS_BROKEN 1 |
| 28563 | _ACEOF |
| 28564 | |
| 28565 | fi |
| 28566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28567 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28568 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28569 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28571 | else |
| 28572 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28573 | /* confdefs.h. */ |
| 28574 | _ACEOF |
| 28575 | cat confdefs.h >>conftest.$ac_ext |
| 28576 | cat >>conftest.$ac_ext <<_ACEOF |
| 28577 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28578 | #include <stdlib.h> |
| 28579 | #include <stdarg.h> |
| 28580 | #include <string.h> |
| 28581 | #include <float.h> |
| 28582 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28583 | int |
| 28584 | main () |
| 28585 | { |
| 28586 | |
| 28587 | ; |
| 28588 | return 0; |
| 28589 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28590 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28591 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28592 | if { (ac_try="$ac_compile" |
| 28593 | case "(($ac_try" in |
| 28594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28595 | *) ac_try_echo=$ac_try;; |
| 28596 | esac |
| 28597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28598 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28599 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28601 | rm -f conftest.er1 |
| 28602 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28604 | (exit $ac_status); } && |
| 28605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28606 | { (case "(($ac_try" in |
| 28607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28608 | *) ac_try_echo=$ac_try;; |
| 28609 | esac |
| 28610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28611 | (eval "$ac_try") 2>&5 |
| 28612 | ac_status=$? |
| 28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28614 | (exit $ac_status); }; } && |
| 28615 | { ac_try='test -s conftest.$ac_objext' |
| 28616 | { (case "(($ac_try" in |
| 28617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28618 | *) ac_try_echo=$ac_try;; |
| 28619 | esac |
| 28620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28621 | (eval "$ac_try") 2>&5 |
| 28622 | ac_status=$? |
| 28623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28624 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28625 | ac_cv_header_stdc=yes |
| 28626 | else |
| 28627 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28630 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28632 | |
| 28633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28634 | |
| 28635 | if test $ac_cv_header_stdc = yes; then |
| 28636 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28637 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28638 | /* confdefs.h. */ |
| 28639 | _ACEOF |
| 28640 | cat confdefs.h >>conftest.$ac_ext |
| 28641 | cat >>conftest.$ac_ext <<_ACEOF |
| 28642 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28643 | #include <string.h> |
| 28644 | |
| 28645 | _ACEOF |
| 28646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28647 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28648 | : |
| 28649 | else |
| 28650 | ac_cv_header_stdc=no |
| 28651 | fi |
| 28652 | rm -f conftest* |
| 28653 | |
| 28654 | fi |
| 28655 | |
| 28656 | if test $ac_cv_header_stdc = yes; then |
| 28657 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28658 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28659 | /* confdefs.h. */ |
| 28660 | _ACEOF |
| 28661 | cat confdefs.h >>conftest.$ac_ext |
| 28662 | cat >>conftest.$ac_ext <<_ACEOF |
| 28663 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28664 | #include <stdlib.h> |
| 28665 | |
| 28666 | _ACEOF |
| 28667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28668 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28669 | : |
| 28670 | else |
| 28671 | ac_cv_header_stdc=no |
| 28672 | fi |
| 28673 | rm -f conftest* |
| 28674 | |
| 28675 | fi |
| 28676 | |
| 28677 | if test $ac_cv_header_stdc = yes; then |
| 28678 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28679 | if test "$cross_compiling" = yes; then |
| 28680 | : |
| 28681 | else |
| 28682 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28683 | /* confdefs.h. */ |
| 28684 | _ACEOF |
| 28685 | cat confdefs.h >>conftest.$ac_ext |
| 28686 | cat >>conftest.$ac_ext <<_ACEOF |
| 28687 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28688 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28689 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28690 | #if ((' ' & 0x0FF) == 0x020) |
| 28691 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28692 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28693 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28694 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28695 | (('a' <= (c) && (c) <= 'i') \ |
| 28696 | || ('j' <= (c) && (c) <= 'r') \ |
| 28697 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28698 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28699 | #endif |
| 28700 | |
| 28701 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28702 | int |
| 28703 | main () |
| 28704 | { |
| 28705 | int i; |
| 28706 | for (i = 0; i < 256; i++) |
| 28707 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28708 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28709 | return 2; |
| 28710 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28711 | } |
| 28712 | _ACEOF |
| 28713 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28714 | if { (ac_try="$ac_link" |
| 28715 | case "(($ac_try" in |
| 28716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28717 | *) ac_try_echo=$ac_try;; |
| 28718 | esac |
| 28719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28720 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28721 | ac_status=$? |
| 28722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28723 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28724 | { (case "(($ac_try" in |
| 28725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28726 | *) ac_try_echo=$ac_try;; |
| 28727 | esac |
| 28728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28729 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28730 | ac_status=$? |
| 28731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28732 | (exit $ac_status); }; }; then |
| 28733 | : |
| 28734 | else |
| 28735 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28736 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28738 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28739 | ( exit $ac_status ) |
| 28740 | ac_cv_header_stdc=no |
| 28741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28742 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28743 | fi |
| 28744 | |
| 28745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28746 | fi |
| 28747 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28748 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28749 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28750 | if test $ac_cv_header_stdc = yes; then |
| 28751 | |
| 28752 | cat >>confdefs.h <<\_ACEOF |
| 28753 | #define STDC_HEADERS 1 |
| 28754 | _ACEOF |
| 28755 | |
| 28756 | fi |
| 28757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28758 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28759 | 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] | 28760 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28762 | else |
| 28763 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28764 | /* confdefs.h. */ |
| 28765 | _ACEOF |
| 28766 | cat confdefs.h >>conftest.$ac_ext |
| 28767 | cat >>conftest.$ac_ext <<_ACEOF |
| 28768 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28769 | #include <sys/types.h> |
| 28770 | #include <sys/wait.h> |
| 28771 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28772 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28773 | #endif |
| 28774 | #ifndef WIFEXITED |
| 28775 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28776 | #endif |
| 28777 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28778 | int |
| 28779 | main () |
| 28780 | { |
| 28781 | int s; |
| 28782 | wait (&s); |
| 28783 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28784 | ; |
| 28785 | return 0; |
| 28786 | } |
| 28787 | _ACEOF |
| 28788 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28789 | if { (ac_try="$ac_compile" |
| 28790 | case "(($ac_try" in |
| 28791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28792 | *) ac_try_echo=$ac_try;; |
| 28793 | esac |
| 28794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28795 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28796 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28798 | rm -f conftest.er1 |
| 28799 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28801 | (exit $ac_status); } && |
| 28802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28803 | { (case "(($ac_try" in |
| 28804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28805 | *) ac_try_echo=$ac_try;; |
| 28806 | esac |
| 28807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28808 | (eval "$ac_try") 2>&5 |
| 28809 | ac_status=$? |
| 28810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28811 | (exit $ac_status); }; } && |
| 28812 | { ac_try='test -s conftest.$ac_objext' |
| 28813 | { (case "(($ac_try" in |
| 28814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28815 | *) ac_try_echo=$ac_try;; |
| 28816 | esac |
| 28817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28818 | (eval "$ac_try") 2>&5 |
| 28819 | ac_status=$? |
| 28820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28821 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28822 | ac_cv_header_sys_wait_h=yes |
| 28823 | else |
| 28824 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28826 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28827 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28828 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28829 | |
| 28830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28832 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28833 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28834 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28835 | |
| 28836 | cat >>confdefs.h <<\_ACEOF |
| 28837 | #define HAVE_SYS_WAIT_H 1 |
| 28838 | _ACEOF |
| 28839 | |
| 28840 | fi |
| 28841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28842 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28843 | 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] | 28844 | if test "${ac_cv_header_time+set}" = set; then |
| 28845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28846 | else |
| 28847 | cat >conftest.$ac_ext <<_ACEOF |
| 28848 | /* confdefs.h. */ |
| 28849 | _ACEOF |
| 28850 | cat confdefs.h >>conftest.$ac_ext |
| 28851 | cat >>conftest.$ac_ext <<_ACEOF |
| 28852 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28853 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28854 | #include <sys/time.h> |
| 28855 | #include <time.h> |
| 28856 | |
| 28857 | int |
| 28858 | main () |
| 28859 | { |
| 28860 | if ((struct tm *) 0) |
| 28861 | return 0; |
| 28862 | ; |
| 28863 | return 0; |
| 28864 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28865 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28866 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28867 | if { (ac_try="$ac_compile" |
| 28868 | case "(($ac_try" in |
| 28869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28870 | *) ac_try_echo=$ac_try;; |
| 28871 | esac |
| 28872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28873 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28874 | ac_status=$? |
| 28875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28876 | rm -f conftest.er1 |
| 28877 | cat conftest.err >&5 |
| 28878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28879 | (exit $ac_status); } && |
| 28880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28881 | { (case "(($ac_try" in |
| 28882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28883 | *) ac_try_echo=$ac_try;; |
| 28884 | esac |
| 28885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28886 | (eval "$ac_try") 2>&5 |
| 28887 | ac_status=$? |
| 28888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28889 | (exit $ac_status); }; } && |
| 28890 | { ac_try='test -s conftest.$ac_objext' |
| 28891 | { (case "(($ac_try" in |
| 28892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28893 | *) ac_try_echo=$ac_try;; |
| 28894 | esac |
| 28895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28896 | (eval "$ac_try") 2>&5 |
| 28897 | ac_status=$? |
| 28898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28899 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28900 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28901 | else |
| 28902 | echo "$as_me: failed program was:" >&5 |
| 28903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28905 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28907 | |
| 28908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28910 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28911 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28912 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28913 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28914 | cat >>confdefs.h <<\_ACEOF |
| 28915 | #define TIME_WITH_SYS_TIME 1 |
| 28916 | _ACEOF |
| 28917 | |
| 28918 | fi |
| 28919 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28920 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28921 | |
| 28922 | |
| 28923 | |
| 28924 | |
| 28925 | |
| 28926 | |
| 28927 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28928 | do |
| 28929 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28931 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28933 | 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] | 28934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28935 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28936 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28937 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28938 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28939 | else |
| 28940 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28941 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28942 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28943 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28944 | /* confdefs.h. */ |
| 28945 | _ACEOF |
| 28946 | cat confdefs.h >>conftest.$ac_ext |
| 28947 | cat >>conftest.$ac_ext <<_ACEOF |
| 28948 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28949 | $ac_includes_default |
| 28950 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28951 | _ACEOF |
| 28952 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28953 | if { (ac_try="$ac_compile" |
| 28954 | case "(($ac_try" in |
| 28955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28956 | *) ac_try_echo=$ac_try;; |
| 28957 | esac |
| 28958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28959 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28960 | ac_status=$? |
| 28961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28962 | rm -f conftest.er1 |
| 28963 | cat conftest.err >&5 |
| 28964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 28965 | (exit $ac_status); } && |
| 28966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28967 | { (case "(($ac_try" in |
| 28968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28969 | *) ac_try_echo=$ac_try;; |
| 28970 | esac |
| 28971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28972 | (eval "$ac_try") 2>&5 |
| 28973 | ac_status=$? |
| 28974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28975 | (exit $ac_status); }; } && |
| 28976 | { ac_try='test -s conftest.$ac_objext' |
| 28977 | { (case "(($ac_try" in |
| 28978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28979 | *) ac_try_echo=$ac_try;; |
| 28980 | esac |
| 28981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28982 | (eval "$ac_try") 2>&5 |
| 28983 | ac_status=$? |
| 28984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28985 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28986 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28987 | else |
| 28988 | echo "$as_me: failed program was:" >&5 |
| 28989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28991 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28992 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28993 | |
| 28994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28995 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28996 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28997 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28998 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28999 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29000 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29001 | cat >conftest.$ac_ext <<_ACEOF |
| 29002 | /* confdefs.h. */ |
| 29003 | _ACEOF |
| 29004 | cat confdefs.h >>conftest.$ac_ext |
| 29005 | cat >>conftest.$ac_ext <<_ACEOF |
| 29006 | /* end confdefs.h. */ |
| 29007 | #include <$ac_header> |
| 29008 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29010 | case "(($ac_try" in |
| 29011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29012 | *) ac_try_echo=$ac_try;; |
| 29013 | esac |
| 29014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29016 | ac_status=$? |
| 29017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29018 | rm -f conftest.er1 |
| 29019 | cat conftest.err >&5 |
| 29020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29021 | (exit $ac_status); } >/dev/null; then |
| 29022 | if test -s conftest.err; then |
| 29023 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29025 | else |
| 29026 | ac_cpp_err= |
| 29027 | fi |
| 29028 | else |
| 29029 | ac_cpp_err=yes |
| 29030 | fi |
| 29031 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29032 | ac_header_preproc=yes |
| 29033 | else |
| 29034 | echo "$as_me: failed program was:" >&5 |
| 29035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29036 | |
| 29037 | ac_header_preproc=no |
| 29038 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29039 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29040 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29041 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29042 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29043 | |
| 29044 | # So? What about this header? |
| 29045 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29046 | yes:no: ) |
| 29047 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29048 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29049 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29050 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29051 | ac_header_preproc=yes |
| 29052 | ;; |
| 29053 | no:yes:* ) |
| 29054 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29055 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29056 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29057 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29058 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29059 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29060 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29061 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29062 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29063 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29064 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29065 | 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] | 29066 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29067 | ## ----------------------------------- ## |
| 29068 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29069 | ## ----------------------------------- ## |
| 29070 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29071 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29072 | ;; |
| 29073 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29074 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29076 | 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] | 29077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29078 | else |
| 29079 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29080 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29081 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29082 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29083 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29084 | |
| 29085 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29087 | cat >>confdefs.h <<_ACEOF |
| 29088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29089 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29090 | |
| 29091 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29092 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29093 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29094 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29095 | |
| 29096 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29097 | |
| 29098 | |
| 29099 | |
| 29100 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29101 | 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] | 29102 | do |
| 29103 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29104 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29105 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29107 | 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] | 29108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29109 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29110 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29112 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29113 | else |
| 29114 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29115 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29116 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29117 | cat >conftest.$ac_ext <<_ACEOF |
| 29118 | /* confdefs.h. */ |
| 29119 | _ACEOF |
| 29120 | cat confdefs.h >>conftest.$ac_ext |
| 29121 | cat >>conftest.$ac_ext <<_ACEOF |
| 29122 | /* end confdefs.h. */ |
| 29123 | $ac_includes_default |
| 29124 | #include <$ac_header> |
| 29125 | _ACEOF |
| 29126 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29127 | if { (ac_try="$ac_compile" |
| 29128 | case "(($ac_try" in |
| 29129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29130 | *) ac_try_echo=$ac_try;; |
| 29131 | esac |
| 29132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29133 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29134 | ac_status=$? |
| 29135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29136 | rm -f conftest.er1 |
| 29137 | cat conftest.err >&5 |
| 29138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29139 | (exit $ac_status); } && |
| 29140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29141 | { (case "(($ac_try" in |
| 29142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29143 | *) ac_try_echo=$ac_try;; |
| 29144 | esac |
| 29145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29146 | (eval "$ac_try") 2>&5 |
| 29147 | ac_status=$? |
| 29148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29149 | (exit $ac_status); }; } && |
| 29150 | { ac_try='test -s conftest.$ac_objext' |
| 29151 | { (case "(($ac_try" in |
| 29152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29153 | *) ac_try_echo=$ac_try;; |
| 29154 | esac |
| 29155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29156 | (eval "$ac_try") 2>&5 |
| 29157 | ac_status=$? |
| 29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29159 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29160 | ac_header_compiler=yes |
| 29161 | else |
| 29162 | echo "$as_me: failed program was:" >&5 |
| 29163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29165 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29166 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29167 | |
| 29168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29169 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29170 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29171 | |
| 29172 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29173 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29174 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29175 | cat >conftest.$ac_ext <<_ACEOF |
| 29176 | /* confdefs.h. */ |
| 29177 | _ACEOF |
| 29178 | cat confdefs.h >>conftest.$ac_ext |
| 29179 | cat >>conftest.$ac_ext <<_ACEOF |
| 29180 | /* end confdefs.h. */ |
| 29181 | #include <$ac_header> |
| 29182 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29183 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29184 | case "(($ac_try" in |
| 29185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29186 | *) ac_try_echo=$ac_try;; |
| 29187 | esac |
| 29188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29189 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29190 | ac_status=$? |
| 29191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29192 | rm -f conftest.er1 |
| 29193 | cat conftest.err >&5 |
| 29194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29195 | (exit $ac_status); } >/dev/null; then |
| 29196 | if test -s conftest.err; then |
| 29197 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29199 | else |
| 29200 | ac_cpp_err= |
| 29201 | fi |
| 29202 | else |
| 29203 | ac_cpp_err=yes |
| 29204 | fi |
| 29205 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29206 | ac_header_preproc=yes |
| 29207 | else |
| 29208 | echo "$as_me: failed program was:" >&5 |
| 29209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29210 | |
| 29211 | ac_header_preproc=no |
| 29212 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29213 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29214 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29215 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29216 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29217 | |
| 29218 | # So? What about this header? |
| 29219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29220 | yes:no: ) |
| 29221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29225 | ac_header_preproc=yes |
| 29226 | ;; |
| 29227 | no:yes:* ) |
| 29228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29239 | 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] | 29240 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29241 | ## ----------------------------------- ## |
| 29242 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29243 | ## ----------------------------------- ## |
| 29244 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29245 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29246 | ;; |
| 29247 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29248 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29250 | 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] | 29251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29252 | else |
| 29253 | eval "$as_ac_Header=\$ac_header_preproc" |
| 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; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29258 | |
| 29259 | fi |
| 29260 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29261 | cat >>confdefs.h <<_ACEOF |
| 29262 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29263 | _ACEOF |
| 29264 | |
| 29265 | fi |
| 29266 | |
| 29267 | done |
| 29268 | |
| 29269 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29270 | for ac_header in windows.h |
| 29271 | do |
| 29272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29278 | fi |
| 29279 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29281 | echo "${ECHO_T}$ac_res" >&6; } |
| 29282 | else |
| 29283 | # Is the header compilable? |
| 29284 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 29286 | cat >conftest.$ac_ext <<_ACEOF |
| 29287 | /* confdefs.h. */ |
| 29288 | _ACEOF |
| 29289 | cat confdefs.h >>conftest.$ac_ext |
| 29290 | cat >>conftest.$ac_ext <<_ACEOF |
| 29291 | /* end confdefs.h. */ |
| 29292 | $ac_includes_default |
| 29293 | #include <$ac_header> |
| 29294 | _ACEOF |
| 29295 | rm -f conftest.$ac_objext |
| 29296 | if { (ac_try="$ac_compile" |
| 29297 | case "(($ac_try" in |
| 29298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29299 | *) ac_try_echo=$ac_try;; |
| 29300 | esac |
| 29301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29302 | (eval "$ac_compile") 2>conftest.er1 |
| 29303 | ac_status=$? |
| 29304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29305 | rm -f conftest.er1 |
| 29306 | cat conftest.err >&5 |
| 29307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29308 | (exit $ac_status); } && |
| 29309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29310 | { (case "(($ac_try" in |
| 29311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29312 | *) ac_try_echo=$ac_try;; |
| 29313 | esac |
| 29314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29315 | (eval "$ac_try") 2>&5 |
| 29316 | ac_status=$? |
| 29317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29318 | (exit $ac_status); }; } && |
| 29319 | { ac_try='test -s conftest.$ac_objext' |
| 29320 | { (case "(($ac_try" in |
| 29321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29322 | *) ac_try_echo=$ac_try;; |
| 29323 | esac |
| 29324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29325 | (eval "$ac_try") 2>&5 |
| 29326 | ac_status=$? |
| 29327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29328 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29329 | ac_header_compiler=yes |
| 29330 | else |
| 29331 | echo "$as_me: failed program was:" >&5 |
| 29332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29333 | |
| 29334 | ac_header_compiler=no |
| 29335 | fi |
| 29336 | |
| 29337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29338 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29339 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 29340 | |
| 29341 | # Is the header present? |
| 29342 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29343 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 29344 | cat >conftest.$ac_ext <<_ACEOF |
| 29345 | /* confdefs.h. */ |
| 29346 | _ACEOF |
| 29347 | cat confdefs.h >>conftest.$ac_ext |
| 29348 | cat >>conftest.$ac_ext <<_ACEOF |
| 29349 | /* end confdefs.h. */ |
| 29350 | #include <$ac_header> |
| 29351 | _ACEOF |
| 29352 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29353 | case "(($ac_try" in |
| 29354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29355 | *) ac_try_echo=$ac_try;; |
| 29356 | esac |
| 29357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29358 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29359 | ac_status=$? |
| 29360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29361 | rm -f conftest.er1 |
| 29362 | cat conftest.err >&5 |
| 29363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29364 | (exit $ac_status); } >/dev/null; then |
| 29365 | if test -s conftest.err; then |
| 29366 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29368 | else |
| 29369 | ac_cpp_err= |
| 29370 | fi |
| 29371 | else |
| 29372 | ac_cpp_err=yes |
| 29373 | fi |
| 29374 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29375 | ac_header_preproc=yes |
| 29376 | else |
| 29377 | echo "$as_me: failed program was:" >&5 |
| 29378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29379 | |
| 29380 | ac_header_preproc=no |
| 29381 | fi |
| 29382 | |
| 29383 | rm -f conftest.err conftest.$ac_ext |
| 29384 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29385 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29386 | |
| 29387 | # So? What about this header? |
| 29388 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29389 | yes:no: ) |
| 29390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29394 | ac_header_preproc=yes |
| 29395 | ;; |
| 29396 | no:yes:* ) |
| 29397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29409 | ( cat <<\_ASBOX |
| 29410 | ## ----------------------------------- ## |
| 29411 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29412 | ## ----------------------------------- ## |
| 29413 | _ASBOX |
| 29414 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29415 | ;; |
| 29416 | esac |
| 29417 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29419 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29421 | else |
| 29422 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29423 | fi |
| 29424 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29425 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29426 | echo "${ECHO_T}$ac_res" >&6; } |
| 29427 | |
| 29428 | fi |
| 29429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29430 | cat >>confdefs.h <<_ACEOF |
| 29431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29432 | _ACEOF |
| 29433 | |
| 29434 | fi |
| 29435 | |
| 29436 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29437 | |
| 29438 | |
| 29439 | |
| 29440 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29441 | |
| 29442 | 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] | 29443 | do |
| 29444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29446 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29448 | 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] | 29449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29450 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29451 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29452 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29453 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29454 | else |
| 29455 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29456 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29457 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29458 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29459 | /* confdefs.h. */ |
| 29460 | _ACEOF |
| 29461 | cat confdefs.h >>conftest.$ac_ext |
| 29462 | cat >>conftest.$ac_ext <<_ACEOF |
| 29463 | /* end confdefs.h. */ |
| 29464 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29465 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29466 | _ACEOF |
| 29467 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29468 | if { (ac_try="$ac_compile" |
| 29469 | case "(($ac_try" in |
| 29470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29471 | *) ac_try_echo=$ac_try;; |
| 29472 | esac |
| 29473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29474 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29475 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29477 | rm -f conftest.er1 |
| 29478 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29480 | (exit $ac_status); } && |
| 29481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29482 | { (case "(($ac_try" in |
| 29483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29484 | *) ac_try_echo=$ac_try;; |
| 29485 | esac |
| 29486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29487 | (eval "$ac_try") 2>&5 |
| 29488 | ac_status=$? |
| 29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29490 | (exit $ac_status); }; } && |
| 29491 | { ac_try='test -s conftest.$ac_objext' |
| 29492 | { (case "(($ac_try" in |
| 29493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29494 | *) ac_try_echo=$ac_try;; |
| 29495 | esac |
| 29496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29497 | (eval "$ac_try") 2>&5 |
| 29498 | ac_status=$? |
| 29499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29500 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29501 | ac_header_compiler=yes |
| 29502 | else |
| 29503 | echo "$as_me: failed program was:" >&5 |
| 29504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29506 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29508 | |
| 29509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29510 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29511 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29512 | |
| 29513 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29514 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29515 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29516 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29517 | /* confdefs.h. */ |
| 29518 | _ACEOF |
| 29519 | cat confdefs.h >>conftest.$ac_ext |
| 29520 | cat >>conftest.$ac_ext <<_ACEOF |
| 29521 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29522 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29523 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29524 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29525 | case "(($ac_try" in |
| 29526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29527 | *) ac_try_echo=$ac_try;; |
| 29528 | esac |
| 29529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29530 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29531 | ac_status=$? |
| 29532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29533 | rm -f conftest.er1 |
| 29534 | cat conftest.err >&5 |
| 29535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29536 | (exit $ac_status); } >/dev/null; then |
| 29537 | if test -s conftest.err; then |
| 29538 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29539 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29540 | else |
| 29541 | ac_cpp_err= |
| 29542 | fi |
| 29543 | else |
| 29544 | ac_cpp_err=yes |
| 29545 | fi |
| 29546 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29547 | ac_header_preproc=yes |
| 29548 | else |
| 29549 | echo "$as_me: failed program was:" >&5 |
| 29550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29551 | |
| 29552 | ac_header_preproc=no |
| 29553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29554 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29555 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29556 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29557 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29558 | |
| 29559 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29560 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29561 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29562 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29563 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29565 | 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] | 29566 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29567 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29568 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29569 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29570 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29571 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29572 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29573 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29574 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29575 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29576 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29578 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29579 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29580 | 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] | 29581 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29582 | ## ----------------------------------- ## |
| 29583 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29584 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29585 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29586 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29587 | ;; |
| 29588 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29589 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29591 | 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] | 29592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29593 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29594 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29595 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +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; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29599 | |
| 29600 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29601 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29602 | cat >>confdefs.h <<_ACEOF |
| 29603 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29604 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29605 | |
| 29606 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29607 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29608 | done |
| 29609 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29610 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29611 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29612 | |
| 29613 | 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] | 29614 | do |
| 29615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29617 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29619 | 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] | 29620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29621 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29622 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29624 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29625 | else |
| 29626 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29627 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29628 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29629 | cat >conftest.$ac_ext <<_ACEOF |
| 29630 | /* confdefs.h. */ |
| 29631 | _ACEOF |
| 29632 | cat confdefs.h >>conftest.$ac_ext |
| 29633 | cat >>conftest.$ac_ext <<_ACEOF |
| 29634 | /* end confdefs.h. */ |
| 29635 | $ac_includes_default |
| 29636 | #include <$ac_header> |
| 29637 | _ACEOF |
| 29638 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29639 | if { (ac_try="$ac_compile" |
| 29640 | case "(($ac_try" in |
| 29641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29642 | *) ac_try_echo=$ac_try;; |
| 29643 | esac |
| 29644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29645 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29646 | ac_status=$? |
| 29647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29648 | rm -f conftest.er1 |
| 29649 | cat conftest.err >&5 |
| 29650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29651 | (exit $ac_status); } && |
| 29652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29653 | { (case "(($ac_try" in |
| 29654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29655 | *) ac_try_echo=$ac_try;; |
| 29656 | esac |
| 29657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29658 | (eval "$ac_try") 2>&5 |
| 29659 | ac_status=$? |
| 29660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29661 | (exit $ac_status); }; } && |
| 29662 | { ac_try='test -s conftest.$ac_objext' |
| 29663 | { (case "(($ac_try" in |
| 29664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29665 | *) ac_try_echo=$ac_try;; |
| 29666 | esac |
| 29667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29668 | (eval "$ac_try") 2>&5 |
| 29669 | ac_status=$? |
| 29670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29671 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29672 | ac_header_compiler=yes |
| 29673 | else |
| 29674 | echo "$as_me: failed program was:" >&5 |
| 29675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29676 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29677 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29678 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29679 | |
| 29680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29681 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29682 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29683 | |
| 29684 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29685 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29686 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29687 | cat >conftest.$ac_ext <<_ACEOF |
| 29688 | /* confdefs.h. */ |
| 29689 | _ACEOF |
| 29690 | cat confdefs.h >>conftest.$ac_ext |
| 29691 | cat >>conftest.$ac_ext <<_ACEOF |
| 29692 | /* end confdefs.h. */ |
| 29693 | #include <$ac_header> |
| 29694 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29695 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29696 | case "(($ac_try" in |
| 29697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29698 | *) ac_try_echo=$ac_try;; |
| 29699 | esac |
| 29700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29701 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29702 | ac_status=$? |
| 29703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29704 | rm -f conftest.er1 |
| 29705 | cat conftest.err >&5 |
| 29706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29707 | (exit $ac_status); } >/dev/null; then |
| 29708 | if test -s conftest.err; then |
| 29709 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29711 | else |
| 29712 | ac_cpp_err= |
| 29713 | fi |
| 29714 | else |
| 29715 | ac_cpp_err=yes |
| 29716 | fi |
| 29717 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29718 | ac_header_preproc=yes |
| 29719 | else |
| 29720 | echo "$as_me: failed program was:" >&5 |
| 29721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29722 | |
| 29723 | ac_header_preproc=no |
| 29724 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29725 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29726 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29727 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29728 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29729 | |
| 29730 | # So? What about this header? |
| 29731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29732 | yes:no: ) |
| 29733 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29734 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29736 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29737 | ac_header_preproc=yes |
| 29738 | ;; |
| 29739 | no:yes:* ) |
| 29740 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29741 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29742 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29743 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29744 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29745 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29746 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29747 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29750 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29751 | 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] | 29752 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29753 | ## ----------------------------------- ## |
| 29754 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29755 | ## ----------------------------------- ## |
| 29756 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29757 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29758 | ;; |
| 29759 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29760 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29762 | 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] | 29763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29764 | else |
| 29765 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29767 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29769 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29770 | |
| 29771 | fi |
| 29772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29773 | cat >>confdefs.h <<_ACEOF |
| 29774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29775 | _ACEOF |
| 29776 | |
| 29777 | fi |
| 29778 | |
| 29779 | done |
| 29780 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29781 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29782 | |
| 29783 | for ac_header in pthread.h |
| 29784 | do |
| 29785 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29786 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29787 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29789 | 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] | 29790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29791 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29794 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29795 | else |
| 29796 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29797 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29798 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29799 | cat >conftest.$ac_ext <<_ACEOF |
| 29800 | /* confdefs.h. */ |
| 29801 | _ACEOF |
| 29802 | cat confdefs.h >>conftest.$ac_ext |
| 29803 | cat >>conftest.$ac_ext <<_ACEOF |
| 29804 | /* end confdefs.h. */ |
| 29805 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29806 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29807 | _ACEOF |
| 29808 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29809 | if { (ac_try="$ac_compile" |
| 29810 | case "(($ac_try" in |
| 29811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29812 | *) ac_try_echo=$ac_try;; |
| 29813 | esac |
| 29814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29815 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29816 | ac_status=$? |
| 29817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29818 | rm -f conftest.er1 |
| 29819 | cat conftest.err >&5 |
| 29820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29821 | (exit $ac_status); } && |
| 29822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29823 | { (case "(($ac_try" in |
| 29824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29825 | *) ac_try_echo=$ac_try;; |
| 29826 | esac |
| 29827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29828 | (eval "$ac_try") 2>&5 |
| 29829 | ac_status=$? |
| 29830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29831 | (exit $ac_status); }; } && |
| 29832 | { ac_try='test -s conftest.$ac_objext' |
| 29833 | { (case "(($ac_try" in |
| 29834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29835 | *) ac_try_echo=$ac_try;; |
| 29836 | esac |
| 29837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29838 | (eval "$ac_try") 2>&5 |
| 29839 | ac_status=$? |
| 29840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29841 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29842 | ac_header_compiler=yes |
| 29843 | else |
| 29844 | echo "$as_me: failed program was:" >&5 |
| 29845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29847 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29849 | |
| 29850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29851 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29852 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29853 | |
| 29854 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29855 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29857 | cat >conftest.$ac_ext <<_ACEOF |
| 29858 | /* confdefs.h. */ |
| 29859 | _ACEOF |
| 29860 | cat confdefs.h >>conftest.$ac_ext |
| 29861 | cat >>conftest.$ac_ext <<_ACEOF |
| 29862 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29863 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29864 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29865 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29866 | case "(($ac_try" in |
| 29867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29868 | *) ac_try_echo=$ac_try;; |
| 29869 | esac |
| 29870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29871 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29872 | ac_status=$? |
| 29873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29874 | rm -f conftest.er1 |
| 29875 | cat conftest.err >&5 |
| 29876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 29877 | (exit $ac_status); } >/dev/null; then |
| 29878 | if test -s conftest.err; then |
| 29879 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29880 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29881 | else |
| 29882 | ac_cpp_err= |
| 29883 | fi |
| 29884 | else |
| 29885 | ac_cpp_err=yes |
| 29886 | fi |
| 29887 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29888 | ac_header_preproc=yes |
| 29889 | else |
| 29890 | echo "$as_me: failed program was:" >&5 |
| 29891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29892 | |
| 29893 | ac_header_preproc=no |
| 29894 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29895 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29896 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29897 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29898 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29899 | |
| 29900 | # So? What about this header? |
| 29901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29902 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29906 | 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] | 29907 | ac_header_preproc=yes |
| 29908 | ;; |
| 29909 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29910 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29911 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29912 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29913 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29914 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29915 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29916 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29917 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29920 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29921 | 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] | 29922 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29923 | ## ----------------------------------- ## |
| 29924 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29925 | ## ----------------------------------- ## |
| 29926 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29927 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29928 | ;; |
| 29929 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29930 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29932 | 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] | 29933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29934 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29935 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29936 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29937 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29938 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29939 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29940 | |
| 29941 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29943 | cat >>confdefs.h <<_ACEOF |
| 29944 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29945 | _ACEOF |
| 29946 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29947 | |
| 29948 | else |
| 29949 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29950 | |
| 29951 | fi |
| 29952 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 29953 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29954 | |
| 29955 | else |
| 29956 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29957 | |
| 29958 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29959 | |
| 29960 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29961 | |
| 29962 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29963 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29964 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29966 | else |
| 29967 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29968 | ac_ext=cpp |
| 29969 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29973 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29974 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29975 | if test "$cross_compiling" = yes; then |
| 29976 | ac_cv_huge_val_sanity=yes |
| 29977 | else |
| 29978 | cat >conftest.$ac_ext <<_ACEOF |
| 29979 | /* confdefs.h. */ |
| 29980 | _ACEOF |
| 29981 | cat confdefs.h >>conftest.$ac_ext |
| 29982 | cat >>conftest.$ac_ext <<_ACEOF |
| 29983 | /* end confdefs.h. */ |
| 29984 | #include <math.h> |
| 29985 | int |
| 29986 | main () |
| 29987 | { |
| 29988 | double x = HUGE_VAL; return x != x; |
| 29989 | ; |
| 29990 | return 0; |
| 29991 | } |
| 29992 | _ACEOF |
| 29993 | rm -f conftest$ac_exeext |
| 29994 | if { (ac_try="$ac_link" |
| 29995 | case "(($ac_try" in |
| 29996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29997 | *) ac_try_echo=$ac_try;; |
| 29998 | esac |
| 29999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30000 | (eval "$ac_link") 2>&5 |
| 30001 | ac_status=$? |
| 30002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 30004 | { (case "(($ac_try" in |
| 30005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30006 | *) ac_try_echo=$ac_try;; |
| 30007 | esac |
| 30008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30009 | (eval "$ac_try") 2>&5 |
| 30010 | ac_status=$? |
| 30011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30012 | (exit $ac_status); }; }; then |
| 30013 | ac_cv_huge_val_sanity=yes |
| 30014 | else |
| 30015 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30016 | echo "$as_me: failed program was:" >&5 |
| 30017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30018 | |
| 30019 | ( exit $ac_status ) |
| 30020 | ac_cv_huge_val_sanity=no |
| 30021 | fi |
| 30022 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 30023 | fi |
| 30024 | |
| 30025 | |
| 30026 | ac_ext=c |
| 30027 | ac_cpp='$CPP $CPPFLAGS' |
| 30028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30031 | |
| 30032 | |
| 30033 | fi |
| 30034 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 30035 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 30036 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 30037 | |
| 30038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30039 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 30040 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30041 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 30042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30043 | else |
| 30044 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30045 | /* confdefs.h. */ |
| 30046 | _ACEOF |
| 30047 | cat confdefs.h >>conftest.$ac_ext |
| 30048 | cat >>conftest.$ac_ext <<_ACEOF |
| 30049 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30050 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30051 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30052 | int |
| 30053 | main () |
| 30054 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30055 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30056 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30057 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30058 | return 0; |
| 30059 | ; |
| 30060 | return 0; |
| 30061 | } |
| 30062 | _ACEOF |
| 30063 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30064 | if { (ac_try="$ac_compile" |
| 30065 | case "(($ac_try" in |
| 30066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30067 | *) ac_try_echo=$ac_try;; |
| 30068 | esac |
| 30069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30070 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30071 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30073 | rm -f conftest.er1 |
| 30074 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30076 | (exit $ac_status); } && |
| 30077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30078 | { (case "(($ac_try" in |
| 30079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30080 | *) ac_try_echo=$ac_try;; |
| 30081 | esac |
| 30082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30083 | (eval "$ac_try") 2>&5 |
| 30084 | ac_status=$? |
| 30085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30086 | (exit $ac_status); }; } && |
| 30087 | { ac_try='test -s conftest.$ac_objext' |
| 30088 | { (case "(($ac_try" in |
| 30089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30090 | *) ac_try_echo=$ac_try;; |
| 30091 | esac |
| 30092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30093 | (eval "$ac_try") 2>&5 |
| 30094 | ac_status=$? |
| 30095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30096 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30097 | ac_cv_type_pid_t=yes |
| 30098 | else |
| 30099 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30102 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30104 | |
| 30105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30106 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30107 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 30108 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30109 | if test $ac_cv_type_pid_t = yes; then |
| 30110 | : |
| 30111 | else |
| 30112 | |
| 30113 | cat >>confdefs.h <<_ACEOF |
| 30114 | #define pid_t int |
| 30115 | _ACEOF |
| 30116 | |
| 30117 | fi |
| 30118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30119 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 30120 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30121 | if test "${ac_cv_type_size_t+set}" = set; then |
| 30122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30123 | else |
| 30124 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30125 | /* confdefs.h. */ |
| 30126 | _ACEOF |
| 30127 | cat confdefs.h >>conftest.$ac_ext |
| 30128 | cat >>conftest.$ac_ext <<_ACEOF |
| 30129 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30130 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30131 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30132 | int |
| 30133 | main () |
| 30134 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30135 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30136 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30137 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30138 | return 0; |
| 30139 | ; |
| 30140 | return 0; |
| 30141 | } |
| 30142 | _ACEOF |
| 30143 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30144 | if { (ac_try="$ac_compile" |
| 30145 | case "(($ac_try" in |
| 30146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30147 | *) ac_try_echo=$ac_try;; |
| 30148 | esac |
| 30149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30150 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30151 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30153 | rm -f conftest.er1 |
| 30154 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30156 | (exit $ac_status); } && |
| 30157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30158 | { (case "(($ac_try" in |
| 30159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30160 | *) ac_try_echo=$ac_try;; |
| 30161 | esac |
| 30162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30163 | (eval "$ac_try") 2>&5 |
| 30164 | ac_status=$? |
| 30165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30166 | (exit $ac_status); }; } && |
| 30167 | { ac_try='test -s conftest.$ac_objext' |
| 30168 | { (case "(($ac_try" in |
| 30169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30170 | *) ac_try_echo=$ac_try;; |
| 30171 | esac |
| 30172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30173 | (eval "$ac_try") 2>&5 |
| 30174 | ac_status=$? |
| 30175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30176 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30177 | ac_cv_type_size_t=yes |
| 30178 | else |
| 30179 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30182 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30184 | |
| 30185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30187 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 30188 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30189 | if test $ac_cv_type_size_t = yes; then |
| 30190 | : |
| 30191 | else |
| 30192 | |
| 30193 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30194 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30195 | _ACEOF |
| 30196 | |
| 30197 | fi |
| 30198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30199 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 30200 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30201 | if test "${ac_cv_type_signal+set}" = set; then |
| 30202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30203 | else |
| 30204 | cat >conftest.$ac_ext <<_ACEOF |
| 30205 | /* confdefs.h. */ |
| 30206 | _ACEOF |
| 30207 | cat confdefs.h >>conftest.$ac_ext |
| 30208 | cat >>conftest.$ac_ext <<_ACEOF |
| 30209 | /* end confdefs.h. */ |
| 30210 | #include <sys/types.h> |
| 30211 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30212 | |
| 30213 | int |
| 30214 | main () |
| 30215 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30216 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30217 | ; |
| 30218 | return 0; |
| 30219 | } |
| 30220 | _ACEOF |
| 30221 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30222 | if { (ac_try="$ac_compile" |
| 30223 | case "(($ac_try" in |
| 30224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30225 | *) ac_try_echo=$ac_try;; |
| 30226 | esac |
| 30227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30228 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30229 | ac_status=$? |
| 30230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30231 | rm -f conftest.er1 |
| 30232 | cat conftest.err >&5 |
| 30233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30234 | (exit $ac_status); } && |
| 30235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30236 | { (case "(($ac_try" in |
| 30237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30238 | *) ac_try_echo=$ac_try;; |
| 30239 | esac |
| 30240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30241 | (eval "$ac_try") 2>&5 |
| 30242 | ac_status=$? |
| 30243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30244 | (exit $ac_status); }; } && |
| 30245 | { ac_try='test -s conftest.$ac_objext' |
| 30246 | { (case "(($ac_try" in |
| 30247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30248 | *) ac_try_echo=$ac_try;; |
| 30249 | esac |
| 30250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30251 | (eval "$ac_try") 2>&5 |
| 30252 | ac_status=$? |
| 30253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30254 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30255 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30256 | else |
| 30257 | echo "$as_me: failed program was:" >&5 |
| 30258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30260 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30261 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30262 | |
| 30263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30264 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30265 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 30266 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30267 | |
| 30268 | cat >>confdefs.h <<_ACEOF |
| 30269 | #define RETSIGTYPE $ac_cv_type_signal |
| 30270 | _ACEOF |
| 30271 | |
| 30272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30273 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 30274 | 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] | 30275 | if test "${ac_cv_struct_tm+set}" = set; then |
| 30276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30277 | else |
| 30278 | cat >conftest.$ac_ext <<_ACEOF |
| 30279 | /* confdefs.h. */ |
| 30280 | _ACEOF |
| 30281 | cat confdefs.h >>conftest.$ac_ext |
| 30282 | cat >>conftest.$ac_ext <<_ACEOF |
| 30283 | /* end confdefs.h. */ |
| 30284 | #include <sys/types.h> |
| 30285 | #include <time.h> |
| 30286 | |
| 30287 | int |
| 30288 | main () |
| 30289 | { |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30290 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30291 | ; |
| 30292 | return 0; |
| 30293 | } |
| 30294 | _ACEOF |
| 30295 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30296 | if { (ac_try="$ac_compile" |
| 30297 | case "(($ac_try" in |
| 30298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30299 | *) ac_try_echo=$ac_try;; |
| 30300 | esac |
| 30301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30302 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30303 | ac_status=$? |
| 30304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30305 | rm -f conftest.er1 |
| 30306 | cat conftest.err >&5 |
| 30307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30308 | (exit $ac_status); } && |
| 30309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30310 | { (case "(($ac_try" in |
| 30311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30312 | *) ac_try_echo=$ac_try;; |
| 30313 | esac |
| 30314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30315 | (eval "$ac_try") 2>&5 |
| 30316 | ac_status=$? |
| 30317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30318 | (exit $ac_status); }; } && |
| 30319 | { ac_try='test -s conftest.$ac_objext' |
| 30320 | { (case "(($ac_try" in |
| 30321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30322 | *) ac_try_echo=$ac_try;; |
| 30323 | esac |
| 30324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30325 | (eval "$ac_try") 2>&5 |
| 30326 | ac_status=$? |
| 30327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30328 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30329 | ac_cv_struct_tm=time.h |
| 30330 | else |
| 30331 | echo "$as_me: failed program was:" >&5 |
| 30332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30334 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30335 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30336 | |
| 30337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30338 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30339 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 30340 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30341 | if test $ac_cv_struct_tm = sys/time.h; then |
| 30342 | |
| 30343 | cat >>confdefs.h <<\_ACEOF |
| 30344 | #define TM_IN_SYS_TIME 1 |
| 30345 | _ACEOF |
| 30346 | |
| 30347 | fi |
| 30348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30349 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 30350 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30351 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 30352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30353 | else |
| 30354 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30355 | /* confdefs.h. */ |
| 30356 | _ACEOF |
| 30357 | cat confdefs.h >>conftest.$ac_ext |
| 30358 | cat >>conftest.$ac_ext <<_ACEOF |
| 30359 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30360 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30361 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30362 | int |
| 30363 | main () |
| 30364 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30365 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30366 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30367 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30368 | return 0; |
| 30369 | ; |
| 30370 | return 0; |
| 30371 | } |
| 30372 | _ACEOF |
| 30373 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30374 | if { (ac_try="$ac_compile" |
| 30375 | case "(($ac_try" in |
| 30376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30377 | *) ac_try_echo=$ac_try;; |
| 30378 | esac |
| 30379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30380 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30381 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30383 | rm -f conftest.er1 |
| 30384 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30386 | (exit $ac_status); } && |
| 30387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30388 | { (case "(($ac_try" in |
| 30389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30390 | *) ac_try_echo=$ac_try;; |
| 30391 | esac |
| 30392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30393 | (eval "$ac_try") 2>&5 |
| 30394 | ac_status=$? |
| 30395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30396 | (exit $ac_status); }; } && |
| 30397 | { ac_try='test -s conftest.$ac_objext' |
| 30398 | { (case "(($ac_try" in |
| 30399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30400 | *) ac_try_echo=$ac_try;; |
| 30401 | esac |
| 30402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30403 | (eval "$ac_try") 2>&5 |
| 30404 | ac_status=$? |
| 30405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30406 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30407 | ac_cv_type_int64_t=yes |
| 30408 | else |
| 30409 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30412 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30413 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30414 | |
| 30415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30417 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 30418 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30419 | if test $ac_cv_type_int64_t = yes; then |
| 30420 | |
| 30421 | cat >>confdefs.h <<_ACEOF |
| 30422 | #define HAVE_INT64_T 1 |
| 30423 | _ACEOF |
| 30424 | |
| 30425 | |
| 30426 | else |
| 30427 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 30428 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 30429 | { (exit 1); exit 1; }; } |
| 30430 | fi |
| 30431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30432 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 30433 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30434 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 30435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30436 | else |
| 30437 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30438 | /* confdefs.h. */ |
| 30439 | _ACEOF |
| 30440 | cat confdefs.h >>conftest.$ac_ext |
| 30441 | cat >>conftest.$ac_ext <<_ACEOF |
| 30442 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30443 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30444 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30445 | int |
| 30446 | main () |
| 30447 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30448 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30449 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30450 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30451 | return 0; |
| 30452 | ; |
| 30453 | return 0; |
| 30454 | } |
| 30455 | _ACEOF |
| 30456 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30457 | if { (ac_try="$ac_compile" |
| 30458 | case "(($ac_try" in |
| 30459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30460 | *) ac_try_echo=$ac_try;; |
| 30461 | esac |
| 30462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30463 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30464 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30466 | rm -f conftest.er1 |
| 30467 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30469 | (exit $ac_status); } && |
| 30470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30471 | { (case "(($ac_try" in |
| 30472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30473 | *) ac_try_echo=$ac_try;; |
| 30474 | esac |
| 30475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30476 | (eval "$ac_try") 2>&5 |
| 30477 | ac_status=$? |
| 30478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30479 | (exit $ac_status); }; } && |
| 30480 | { ac_try='test -s conftest.$ac_objext' |
| 30481 | { (case "(($ac_try" in |
| 30482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30483 | *) ac_try_echo=$ac_try;; |
| 30484 | esac |
| 30485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30486 | (eval "$ac_try") 2>&5 |
| 30487 | ac_status=$? |
| 30488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30489 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30490 | ac_cv_type_uint64_t=yes |
| 30491 | else |
| 30492 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30494 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30495 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30496 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30497 | |
| 30498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30499 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30500 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 30501 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30502 | if test $ac_cv_type_uint64_t = yes; then |
| 30503 | |
| 30504 | cat >>confdefs.h <<_ACEOF |
| 30505 | #define HAVE_UINT64_T 1 |
| 30506 | _ACEOF |
| 30507 | |
| 30508 | |
| 30509 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30510 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 30511 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30512 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 30513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30514 | else |
| 30515 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30516 | /* confdefs.h. */ |
| 30517 | _ACEOF |
| 30518 | cat confdefs.h >>conftest.$ac_ext |
| 30519 | cat >>conftest.$ac_ext <<_ACEOF |
| 30520 | /* end confdefs.h. */ |
| 30521 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30522 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30523 | int |
| 30524 | main () |
| 30525 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30526 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30527 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30528 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30529 | return 0; |
| 30530 | ; |
| 30531 | return 0; |
| 30532 | } |
| 30533 | _ACEOF |
| 30534 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30535 | if { (ac_try="$ac_compile" |
| 30536 | case "(($ac_try" in |
| 30537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30538 | *) ac_try_echo=$ac_try;; |
| 30539 | esac |
| 30540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30541 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30542 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30544 | rm -f conftest.er1 |
| 30545 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30547 | (exit $ac_status); } && |
| 30548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30549 | { (case "(($ac_try" in |
| 30550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30551 | *) ac_try_echo=$ac_try;; |
| 30552 | esac |
| 30553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30554 | (eval "$ac_try") 2>&5 |
| 30555 | ac_status=$? |
| 30556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30557 | (exit $ac_status); }; } && |
| 30558 | { ac_try='test -s conftest.$ac_objext' |
| 30559 | { (case "(($ac_try" in |
| 30560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30561 | *) ac_try_echo=$ac_try;; |
| 30562 | esac |
| 30563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30564 | (eval "$ac_try") 2>&5 |
| 30565 | ac_status=$? |
| 30566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30567 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30568 | ac_cv_type_u_int64_t=yes |
| 30569 | else |
| 30570 | echo "$as_me: failed program was:" >&5 |
| 30571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30573 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30574 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30575 | |
| 30576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30577 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30578 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 30579 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30580 | if test $ac_cv_type_u_int64_t = yes; then |
| 30581 | |
| 30582 | cat >>confdefs.h <<_ACEOF |
| 30583 | #define HAVE_U_INT64_T 1 |
| 30584 | _ACEOF |
| 30585 | |
| 30586 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 30587 | else |
| 30588 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 30589 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 30590 | { (exit 1); exit 1; }; } |
| 30591 | fi |
| 30592 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 30593 | fi |
| 30594 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30595 | |
| 30596 | |
| 30597 | |
| 30598 | |
| 30599 | |
| 30600 | |
| 30601 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 30602 | |
| 30603 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30604 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30605 | do |
| 30606 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30607 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30608 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30609 | 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] | 30610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30611 | else |
| 30612 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30613 | /* confdefs.h. */ |
| 30614 | _ACEOF |
| 30615 | cat confdefs.h >>conftest.$ac_ext |
| 30616 | cat >>conftest.$ac_ext <<_ACEOF |
| 30617 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30618 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30619 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30620 | #define $ac_func innocuous_$ac_func |
| 30621 | |
| 30622 | /* System header to define __stub macros and hopefully few prototypes, |
| 30623 | which can conflict with char $ac_func (); below. |
| 30624 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30625 | <limits.h> exists even on freestanding compilers. */ |
| 30626 | |
| 30627 | #ifdef __STDC__ |
| 30628 | # include <limits.h> |
| 30629 | #else |
| 30630 | # include <assert.h> |
| 30631 | #endif |
| 30632 | |
| 30633 | #undef $ac_func |
| 30634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30635 | /* Override any GCC internal prototype to avoid an error. |
| 30636 | Use char because int might match the return type of a GCC |
| 30637 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30638 | #ifdef __cplusplus |
| 30639 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30640 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30641 | char $ac_func (); |
| 30642 | /* The GNU C library defines this for functions which it implements |
| 30643 | to always fail with ENOSYS. Some functions are actually named |
| 30644 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30645 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30646 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30647 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30648 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30649 | int |
| 30650 | main () |
| 30651 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30652 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30653 | ; |
| 30654 | return 0; |
| 30655 | } |
| 30656 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30658 | if { (ac_try="$ac_link" |
| 30659 | case "(($ac_try" in |
| 30660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30661 | *) ac_try_echo=$ac_try;; |
| 30662 | esac |
| 30663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30664 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30665 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30667 | rm -f conftest.er1 |
| 30668 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30670 | (exit $ac_status); } && |
| 30671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30672 | { (case "(($ac_try" in |
| 30673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30674 | *) ac_try_echo=$ac_try;; |
| 30675 | esac |
| 30676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30677 | (eval "$ac_try") 2>&5 |
| 30678 | ac_status=$? |
| 30679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30680 | (exit $ac_status); }; } && |
| 30681 | { ac_try='test -s conftest$ac_exeext' |
| 30682 | { (case "(($ac_try" in |
| 30683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30684 | *) ac_try_echo=$ac_try;; |
| 30685 | esac |
| 30686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30687 | (eval "$ac_try") 2>&5 |
| 30688 | ac_status=$? |
| 30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30690 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30691 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30692 | else |
| 30693 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30696 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30698 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30699 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30700 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30702 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30704 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30705 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30706 | cat >>confdefs.h <<_ACEOF |
| 30707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30708 | _ACEOF |
| 30709 | |
| 30710 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30711 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30712 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30713 | |
| 30714 | |
| 30715 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30716 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30717 | for ac_func in powf fmodf strtof round |
| 30718 | do |
| 30719 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30720 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30721 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30722 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30724 | else |
| 30725 | cat >conftest.$ac_ext <<_ACEOF |
| 30726 | /* confdefs.h. */ |
| 30727 | _ACEOF |
| 30728 | cat confdefs.h >>conftest.$ac_ext |
| 30729 | cat >>conftest.$ac_ext <<_ACEOF |
| 30730 | /* end confdefs.h. */ |
| 30731 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30732 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30733 | #define $ac_func innocuous_$ac_func |
| 30734 | |
| 30735 | /* System header to define __stub macros and hopefully few prototypes, |
| 30736 | which can conflict with char $ac_func (); below. |
| 30737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30738 | <limits.h> exists even on freestanding compilers. */ |
| 30739 | |
| 30740 | #ifdef __STDC__ |
| 30741 | # include <limits.h> |
| 30742 | #else |
| 30743 | # include <assert.h> |
| 30744 | #endif |
| 30745 | |
| 30746 | #undef $ac_func |
| 30747 | |
| 30748 | /* Override any GCC internal prototype to avoid an error. |
| 30749 | Use char because int might match the return type of a GCC |
| 30750 | builtin and then its argument prototype would still apply. */ |
| 30751 | #ifdef __cplusplus |
| 30752 | extern "C" |
| 30753 | #endif |
| 30754 | char $ac_func (); |
| 30755 | /* The GNU C library defines this for functions which it implements |
| 30756 | to always fail with ENOSYS. Some functions are actually named |
| 30757 | something starting with __ and the normal name is an alias. */ |
| 30758 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30759 | choke me |
| 30760 | #endif |
| 30761 | |
| 30762 | int |
| 30763 | main () |
| 30764 | { |
| 30765 | return $ac_func (); |
| 30766 | ; |
| 30767 | return 0; |
| 30768 | } |
| 30769 | _ACEOF |
| 30770 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30771 | if { (ac_try="$ac_link" |
| 30772 | case "(($ac_try" in |
| 30773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30774 | *) ac_try_echo=$ac_try;; |
| 30775 | esac |
| 30776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30777 | (eval "$ac_link") 2>conftest.er1 |
| 30778 | ac_status=$? |
| 30779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30780 | rm -f conftest.er1 |
| 30781 | cat conftest.err >&5 |
| 30782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30783 | (exit $ac_status); } && |
| 30784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30785 | { (case "(($ac_try" in |
| 30786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30787 | *) ac_try_echo=$ac_try;; |
| 30788 | esac |
| 30789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30790 | (eval "$ac_try") 2>&5 |
| 30791 | ac_status=$? |
| 30792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30793 | (exit $ac_status); }; } && |
| 30794 | { ac_try='test -s conftest$ac_exeext' |
| 30795 | { (case "(($ac_try" in |
| 30796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30797 | *) ac_try_echo=$ac_try;; |
| 30798 | esac |
| 30799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30800 | (eval "$ac_try") 2>&5 |
| 30801 | ac_status=$? |
| 30802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30803 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30804 | eval "$as_ac_var=yes" |
| 30805 | else |
| 30806 | echo "$as_me: failed program was:" >&5 |
| 30807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30808 | |
| 30809 | eval "$as_ac_var=no" |
| 30810 | fi |
| 30811 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30812 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 30813 | conftest$ac_exeext conftest.$ac_ext |
| 30814 | fi |
| 30815 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30816 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30817 | echo "${ECHO_T}$ac_res" >&6; } |
| 30818 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30819 | cat >>confdefs.h <<_ACEOF |
| 30820 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30821 | _ACEOF |
| 30822 | |
| 30823 | fi |
| 30824 | done |
| 30825 | |
| 30826 | |
| 30827 | |
| 30828 | |
| 30829 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30830 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30831 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 30832 | do |
| 30833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30834 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30836 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30838 | else |
| 30839 | cat >conftest.$ac_ext <<_ACEOF |
| 30840 | /* confdefs.h. */ |
| 30841 | _ACEOF |
| 30842 | cat confdefs.h >>conftest.$ac_ext |
| 30843 | cat >>conftest.$ac_ext <<_ACEOF |
| 30844 | /* end confdefs.h. */ |
| 30845 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30847 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30848 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30849 | /* System header to define __stub macros and hopefully few prototypes, |
| 30850 | which can conflict with char $ac_func (); below. |
| 30851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30852 | <limits.h> exists even on freestanding compilers. */ |
| 30853 | |
| 30854 | #ifdef __STDC__ |
| 30855 | # include <limits.h> |
| 30856 | #else |
| 30857 | # include <assert.h> |
| 30858 | #endif |
| 30859 | |
| 30860 | #undef $ac_func |
| 30861 | |
| 30862 | /* Override any GCC internal prototype to avoid an error. |
| 30863 | Use char because int might match the return type of a GCC |
| 30864 | builtin and then its argument prototype would still apply. */ |
| 30865 | #ifdef __cplusplus |
| 30866 | extern "C" |
| 30867 | #endif |
| 30868 | char $ac_func (); |
| 30869 | /* The GNU C library defines this for functions which it implements |
| 30870 | to always fail with ENOSYS. Some functions are actually named |
| 30871 | something starting with __ and the normal name is an alias. */ |
| 30872 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30873 | choke me |
| 30874 | #endif |
| 30875 | |
| 30876 | int |
| 30877 | main () |
| 30878 | { |
| 30879 | return $ac_func (); |
| 30880 | ; |
| 30881 | return 0; |
| 30882 | } |
| 30883 | _ACEOF |
| 30884 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30885 | if { (ac_try="$ac_link" |
| 30886 | case "(($ac_try" in |
| 30887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30888 | *) ac_try_echo=$ac_try;; |
| 30889 | esac |
| 30890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30891 | (eval "$ac_link") 2>conftest.er1 |
| 30892 | ac_status=$? |
| 30893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30894 | rm -f conftest.er1 |
| 30895 | cat conftest.err >&5 |
| 30896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30897 | (exit $ac_status); } && |
| 30898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30899 | { (case "(($ac_try" in |
| 30900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30901 | *) ac_try_echo=$ac_try;; |
| 30902 | esac |
| 30903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30904 | (eval "$ac_try") 2>&5 |
| 30905 | ac_status=$? |
| 30906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30907 | (exit $ac_status); }; } && |
| 30908 | { ac_try='test -s conftest$ac_exeext' |
| 30909 | { (case "(($ac_try" in |
| 30910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30911 | *) ac_try_echo=$ac_try;; |
| 30912 | esac |
| 30913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30914 | (eval "$ac_try") 2>&5 |
| 30915 | ac_status=$? |
| 30916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30917 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30918 | eval "$as_ac_var=yes" |
| 30919 | else |
| 30920 | echo "$as_me: failed program was:" >&5 |
| 30921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30922 | |
| 30923 | eval "$as_ac_var=no" |
| 30924 | fi |
| 30925 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 30926 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30927 | conftest$ac_exeext conftest.$ac_ext |
| 30928 | fi |
| 30929 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30930 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30931 | echo "${ECHO_T}$ac_res" >&6; } |
| 30932 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30933 | cat >>confdefs.h <<_ACEOF |
| 30934 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30935 | _ACEOF |
| 30936 | |
| 30937 | fi |
| 30938 | done |
| 30939 | |
| 30940 | |
| 30941 | |
| 30942 | |
| 30943 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30944 | do |
| 30945 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30946 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30947 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30948 | 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] | 30949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30950 | else |
| 30951 | cat >conftest.$ac_ext <<_ACEOF |
| 30952 | /* confdefs.h. */ |
| 30953 | _ACEOF |
| 30954 | cat confdefs.h >>conftest.$ac_ext |
| 30955 | cat >>conftest.$ac_ext <<_ACEOF |
| 30956 | /* end confdefs.h. */ |
| 30957 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30958 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30959 | #define $ac_func innocuous_$ac_func |
| 30960 | |
| 30961 | /* System header to define __stub macros and hopefully few prototypes, |
| 30962 | which can conflict with char $ac_func (); below. |
| 30963 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30964 | <limits.h> exists even on freestanding compilers. */ |
| 30965 | |
| 30966 | #ifdef __STDC__ |
| 30967 | # include <limits.h> |
| 30968 | #else |
| 30969 | # include <assert.h> |
| 30970 | #endif |
| 30971 | |
| 30972 | #undef $ac_func |
| 30973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30974 | /* Override any GCC internal prototype to avoid an error. |
| 30975 | Use char because int might match the return type of a GCC |
| 30976 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30977 | #ifdef __cplusplus |
| 30978 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30979 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30980 | char $ac_func (); |
| 30981 | /* The GNU C library defines this for functions which it implements |
| 30982 | to always fail with ENOSYS. Some functions are actually named |
| 30983 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30984 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30985 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30986 | #endif |
| 30987 | |
| 30988 | int |
| 30989 | main () |
| 30990 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30991 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30992 | ; |
| 30993 | return 0; |
| 30994 | } |
| 30995 | _ACEOF |
| 30996 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30997 | if { (ac_try="$ac_link" |
| 30998 | case "(($ac_try" in |
| 30999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31000 | *) ac_try_echo=$ac_try;; |
| 31001 | esac |
| 31002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31003 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31004 | ac_status=$? |
| 31005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31006 | rm -f conftest.er1 |
| 31007 | cat conftest.err >&5 |
| 31008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31009 | (exit $ac_status); } && |
| 31010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31011 | { (case "(($ac_try" in |
| 31012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31013 | *) ac_try_echo=$ac_try;; |
| 31014 | esac |
| 31015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31016 | (eval "$ac_try") 2>&5 |
| 31017 | ac_status=$? |
| 31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31019 | (exit $ac_status); }; } && |
| 31020 | { ac_try='test -s conftest$ac_exeext' |
| 31021 | { (case "(($ac_try" in |
| 31022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31023 | *) ac_try_echo=$ac_try;; |
| 31024 | esac |
| 31025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31026 | (eval "$ac_try") 2>&5 |
| 31027 | ac_status=$? |
| 31028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31029 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31030 | eval "$as_ac_var=yes" |
| 31031 | else |
| 31032 | echo "$as_me: failed program was:" >&5 |
| 31033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31035 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31036 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31037 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31038 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31039 | conftest$ac_exeext conftest.$ac_ext |
| 31040 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31041 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31042 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31043 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31044 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31045 | cat >>confdefs.h <<_ACEOF |
| 31046 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31047 | _ACEOF |
| 31048 | |
| 31049 | fi |
| 31050 | done |
| 31051 | |
| 31052 | |
| 31053 | |
| 31054 | |
| 31055 | |
| 31056 | |
| 31057 | |
| 31058 | |
| 31059 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31060 | do |
| 31061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31062 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31064 | 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] | 31065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31066 | else |
| 31067 | cat >conftest.$ac_ext <<_ACEOF |
| 31068 | /* confdefs.h. */ |
| 31069 | _ACEOF |
| 31070 | cat confdefs.h >>conftest.$ac_ext |
| 31071 | cat >>conftest.$ac_ext <<_ACEOF |
| 31072 | /* end confdefs.h. */ |
| 31073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31075 | #define $ac_func innocuous_$ac_func |
| 31076 | |
| 31077 | /* System header to define __stub macros and hopefully few prototypes, |
| 31078 | which can conflict with char $ac_func (); below. |
| 31079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31080 | <limits.h> exists even on freestanding compilers. */ |
| 31081 | |
| 31082 | #ifdef __STDC__ |
| 31083 | # include <limits.h> |
| 31084 | #else |
| 31085 | # include <assert.h> |
| 31086 | #endif |
| 31087 | |
| 31088 | #undef $ac_func |
| 31089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31090 | /* Override any GCC internal prototype to avoid an error. |
| 31091 | Use char because int might match the return type of a GCC |
| 31092 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31093 | #ifdef __cplusplus |
| 31094 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31095 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31096 | char $ac_func (); |
| 31097 | /* The GNU C library defines this for functions which it implements |
| 31098 | to always fail with ENOSYS. Some functions are actually named |
| 31099 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31100 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31101 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31102 | #endif |
| 31103 | |
| 31104 | int |
| 31105 | main () |
| 31106 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31107 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31108 | ; |
| 31109 | return 0; |
| 31110 | } |
| 31111 | _ACEOF |
| 31112 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31113 | if { (ac_try="$ac_link" |
| 31114 | case "(($ac_try" in |
| 31115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31116 | *) ac_try_echo=$ac_try;; |
| 31117 | esac |
| 31118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31119 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31120 | ac_status=$? |
| 31121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31122 | rm -f conftest.er1 |
| 31123 | cat conftest.err >&5 |
| 31124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31125 | (exit $ac_status); } && |
| 31126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31127 | { (case "(($ac_try" in |
| 31128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31129 | *) ac_try_echo=$ac_try;; |
| 31130 | esac |
| 31131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31132 | (eval "$ac_try") 2>&5 |
| 31133 | ac_status=$? |
| 31134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31135 | (exit $ac_status); }; } && |
| 31136 | { ac_try='test -s conftest$ac_exeext' |
| 31137 | { (case "(($ac_try" in |
| 31138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31139 | *) ac_try_echo=$ac_try;; |
| 31140 | esac |
| 31141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31142 | (eval "$ac_try") 2>&5 |
| 31143 | ac_status=$? |
| 31144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31145 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31146 | eval "$as_ac_var=yes" |
| 31147 | else |
| 31148 | echo "$as_me: failed program was:" >&5 |
| 31149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31151 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31152 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31153 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31154 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31155 | conftest$ac_exeext conftest.$ac_ext |
| 31156 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31157 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31158 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31159 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31160 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31161 | cat >>confdefs.h <<_ACEOF |
| 31162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31163 | _ACEOF |
| 31164 | |
| 31165 | fi |
| 31166 | done |
| 31167 | |
| 31168 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 31169 | |
| 31170 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 31171 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 31172 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31173 | do |
| 31174 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31175 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31176 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31177 | 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] | 31178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31179 | else |
| 31180 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31181 | /* confdefs.h. */ |
| 31182 | _ACEOF |
| 31183 | cat confdefs.h >>conftest.$ac_ext |
| 31184 | cat >>conftest.$ac_ext <<_ACEOF |
| 31185 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31186 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31187 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31188 | #define $ac_func innocuous_$ac_func |
| 31189 | |
| 31190 | /* System header to define __stub macros and hopefully few prototypes, |
| 31191 | which can conflict with char $ac_func (); below. |
| 31192 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31193 | <limits.h> exists even on freestanding compilers. */ |
| 31194 | |
| 31195 | #ifdef __STDC__ |
| 31196 | # include <limits.h> |
| 31197 | #else |
| 31198 | # include <assert.h> |
| 31199 | #endif |
| 31200 | |
| 31201 | #undef $ac_func |
| 31202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31203 | /* Override any GCC internal prototype to avoid an error. |
| 31204 | Use char because int might match the return type of a GCC |
| 31205 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31206 | #ifdef __cplusplus |
| 31207 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31208 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31209 | char $ac_func (); |
| 31210 | /* The GNU C library defines this for functions which it implements |
| 31211 | to always fail with ENOSYS. Some functions are actually named |
| 31212 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31213 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31214 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31215 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31216 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31217 | int |
| 31218 | main () |
| 31219 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31220 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31221 | ; |
| 31222 | return 0; |
| 31223 | } |
| 31224 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31225 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31226 | if { (ac_try="$ac_link" |
| 31227 | case "(($ac_try" in |
| 31228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31229 | *) ac_try_echo=$ac_try;; |
| 31230 | esac |
| 31231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31232 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31233 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31235 | rm -f conftest.er1 |
| 31236 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31238 | (exit $ac_status); } && |
| 31239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31240 | { (case "(($ac_try" in |
| 31241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31242 | *) ac_try_echo=$ac_try;; |
| 31243 | esac |
| 31244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31245 | (eval "$ac_try") 2>&5 |
| 31246 | ac_status=$? |
| 31247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31248 | (exit $ac_status); }; } && |
| 31249 | { ac_try='test -s conftest$ac_exeext' |
| 31250 | { (case "(($ac_try" in |
| 31251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31252 | *) ac_try_echo=$ac_try;; |
| 31253 | esac |
| 31254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31255 | (eval "$ac_try") 2>&5 |
| 31256 | ac_status=$? |
| 31257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31258 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31259 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31260 | else |
| 31261 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31264 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31266 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31267 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31268 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31270 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31271 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31272 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31273 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31274 | cat >>confdefs.h <<_ACEOF |
| 31275 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31276 | _ACEOF |
| 31277 | |
| 31278 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31279 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31280 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31281 | |
| 31282 | |
| 31283 | |
| 31284 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 31285 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31286 | do |
| 31287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31288 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31290 | 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] | 31291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31292 | else |
| 31293 | cat >conftest.$ac_ext <<_ACEOF |
| 31294 | /* confdefs.h. */ |
| 31295 | _ACEOF |
| 31296 | cat confdefs.h >>conftest.$ac_ext |
| 31297 | cat >>conftest.$ac_ext <<_ACEOF |
| 31298 | /* end confdefs.h. */ |
| 31299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31301 | #define $ac_func innocuous_$ac_func |
| 31302 | |
| 31303 | /* System header to define __stub macros and hopefully few prototypes, |
| 31304 | which can conflict with char $ac_func (); below. |
| 31305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31306 | <limits.h> exists even on freestanding compilers. */ |
| 31307 | |
| 31308 | #ifdef __STDC__ |
| 31309 | # include <limits.h> |
| 31310 | #else |
| 31311 | # include <assert.h> |
| 31312 | #endif |
| 31313 | |
| 31314 | #undef $ac_func |
| 31315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31316 | /* Override any GCC internal prototype to avoid an error. |
| 31317 | Use char because int might match the return type of a GCC |
| 31318 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31319 | #ifdef __cplusplus |
| 31320 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31321 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31322 | char $ac_func (); |
| 31323 | /* The GNU C library defines this for functions which it implements |
| 31324 | to always fail with ENOSYS. Some functions are actually named |
| 31325 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31326 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31327 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31328 | #endif |
| 31329 | |
| 31330 | int |
| 31331 | main () |
| 31332 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31333 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31334 | ; |
| 31335 | return 0; |
| 31336 | } |
| 31337 | _ACEOF |
| 31338 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31339 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31346 | ac_status=$? |
| 31347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31348 | rm -f conftest.er1 |
| 31349 | cat conftest.err >&5 |
| 31350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31351 | (exit $ac_status); } && |
| 31352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31353 | { (case "(($ac_try" in |
| 31354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31355 | *) ac_try_echo=$ac_try;; |
| 31356 | esac |
| 31357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31358 | (eval "$ac_try") 2>&5 |
| 31359 | ac_status=$? |
| 31360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31361 | (exit $ac_status); }; } && |
| 31362 | { ac_try='test -s conftest$ac_exeext' |
| 31363 | { (case "(($ac_try" in |
| 31364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31365 | *) ac_try_echo=$ac_try;; |
| 31366 | esac |
| 31367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31368 | (eval "$ac_try") 2>&5 |
| 31369 | ac_status=$? |
| 31370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31371 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31372 | eval "$as_ac_var=yes" |
| 31373 | else |
| 31374 | echo "$as_me: failed program was:" >&5 |
| 31375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31377 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31378 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31379 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31380 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31381 | conftest$ac_exeext conftest.$ac_ext |
| 31382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31383 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31384 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31385 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 31386 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31387 | cat >>confdefs.h <<_ACEOF |
| 31388 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31389 | _ACEOF |
| 31390 | |
| 31391 | fi |
| 31392 | done |
| 31393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31394 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 31395 | 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] | 31396 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31398 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31399 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31400 | ac_cpp='$CPP $CPPFLAGS' |
| 31401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31405 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31406 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31407 | else |
| 31408 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31409 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31410 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31411 | _ACEOF |
| 31412 | cat confdefs.h >>conftest.$ac_ext |
| 31413 | cat >>conftest.$ac_ext <<_ACEOF |
| 31414 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31415 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31416 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31417 | #include <stdlib.h> |
| 31418 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31419 | int |
| 31420 | main () |
| 31421 | { |
| 31422 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31423 | volatile double A, B; |
| 31424 | char Buffer[100]; |
| 31425 | A = 1; |
| 31426 | A /= 10.0; |
| 31427 | sprintf(Buffer, "%a", A); |
| 31428 | B = atof(Buffer); |
| 31429 | if (A != B) |
| 31430 | return (1); |
| 31431 | if (A != 0x1.999999999999ap-4) |
| 31432 | return (1); |
| 31433 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31434 | ; |
| 31435 | return 0; |
| 31436 | } |
| 31437 | _ACEOF |
| 31438 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31439 | if { (ac_try="$ac_link" |
| 31440 | case "(($ac_try" in |
| 31441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31442 | *) ac_try_echo=$ac_try;; |
| 31443 | esac |
| 31444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31445 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31446 | ac_status=$? |
| 31447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31449 | { (case "(($ac_try" in |
| 31450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31451 | *) ac_try_echo=$ac_try;; |
| 31452 | esac |
| 31453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31454 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31455 | ac_status=$? |
| 31456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31457 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31458 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31459 | else |
| 31460 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31461 | echo "$as_me: failed program was:" >&5 |
| 31462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31463 | |
| 31464 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31465 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31466 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31467 | 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] | 31468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31469 | |
| 31470 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31471 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31472 | ac_cpp='$CPP $CPPFLAGS' |
| 31473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31476 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31478 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 31479 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 31480 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31481 | |
| 31482 | cat >>confdefs.h <<\_ACEOF |
| 31483 | #define HAVE_PRINTF_A 1 |
| 31484 | _ACEOF |
| 31485 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31486 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 31487 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31488 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 31489 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31490 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 31491 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31492 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31494 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31495 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31496 | /* confdefs.h. */ |
| 31497 | _ACEOF |
| 31498 | cat confdefs.h >>conftest.$ac_ext |
| 31499 | cat >>conftest.$ac_ext <<_ACEOF |
| 31500 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31501 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31502 | int |
| 31503 | main () |
| 31504 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31505 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31506 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31507 | ; |
| 31508 | return 0; |
| 31509 | } |
| 31510 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31512 | if { (ac_try="$ac_link" |
| 31513 | case "(($ac_try" in |
| 31514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31515 | *) ac_try_echo=$ac_try;; |
| 31516 | esac |
| 31517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31518 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31519 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31521 | rm -f conftest.er1 |
| 31522 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31524 | (exit $ac_status); } && |
| 31525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31526 | { (case "(($ac_try" in |
| 31527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31528 | *) ac_try_echo=$ac_try;; |
| 31529 | esac |
| 31530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31531 | (eval "$ac_try") 2>&5 |
| 31532 | ac_status=$? |
| 31533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31534 | (exit $ac_status); }; } && |
| 31535 | { ac_try='test -s conftest$ac_exeext' |
| 31536 | { (case "(($ac_try" in |
| 31537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31538 | *) ac_try_echo=$ac_try;; |
| 31539 | esac |
| 31540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31541 | (eval "$ac_try") 2>&5 |
| 31542 | ac_status=$? |
| 31543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31544 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31545 | ac_cv_working_alloca_h=yes |
| 31546 | else |
| 31547 | echo "$as_me: failed program was:" >&5 |
| 31548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31550 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31552 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31553 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31554 | conftest$ac_exeext conftest.$ac_ext |
| 31555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31556 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 31557 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31558 | if test $ac_cv_working_alloca_h = yes; then |
| 31559 | |
| 31560 | cat >>confdefs.h <<\_ACEOF |
| 31561 | #define HAVE_ALLOCA_H 1 |
| 31562 | _ACEOF |
| 31563 | |
| 31564 | fi |
| 31565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31566 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 31567 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31568 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 31569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31570 | else |
| 31571 | cat >conftest.$ac_ext <<_ACEOF |
| 31572 | /* confdefs.h. */ |
| 31573 | _ACEOF |
| 31574 | cat confdefs.h >>conftest.$ac_ext |
| 31575 | cat >>conftest.$ac_ext <<_ACEOF |
| 31576 | /* end confdefs.h. */ |
| 31577 | #ifdef __GNUC__ |
| 31578 | # define alloca __builtin_alloca |
| 31579 | #else |
| 31580 | # ifdef _MSC_VER |
| 31581 | # include <malloc.h> |
| 31582 | # define alloca _alloca |
| 31583 | # else |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31584 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31585 | # include <alloca.h> |
| 31586 | # else |
| 31587 | # ifdef _AIX |
| 31588 | #pragma alloca |
| 31589 | # else |
| 31590 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 31591 | char *alloca (); |
| 31592 | # endif |
| 31593 | # endif |
| 31594 | # endif |
| 31595 | # endif |
| 31596 | #endif |
| 31597 | |
| 31598 | int |
| 31599 | main () |
| 31600 | { |
| 31601 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31602 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31603 | ; |
| 31604 | return 0; |
| 31605 | } |
| 31606 | _ACEOF |
| 31607 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31608 | if { (ac_try="$ac_link" |
| 31609 | case "(($ac_try" in |
| 31610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31611 | *) ac_try_echo=$ac_try;; |
| 31612 | esac |
| 31613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31614 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31615 | ac_status=$? |
| 31616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31617 | rm -f conftest.er1 |
| 31618 | cat conftest.err >&5 |
| 31619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31620 | (exit $ac_status); } && |
| 31621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31622 | { (case "(($ac_try" in |
| 31623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31624 | *) ac_try_echo=$ac_try;; |
| 31625 | esac |
| 31626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31627 | (eval "$ac_try") 2>&5 |
| 31628 | ac_status=$? |
| 31629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31630 | (exit $ac_status); }; } && |
| 31631 | { ac_try='test -s conftest$ac_exeext' |
| 31632 | { (case "(($ac_try" in |
| 31633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31634 | *) ac_try_echo=$ac_try;; |
| 31635 | esac |
| 31636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31637 | (eval "$ac_try") 2>&5 |
| 31638 | ac_status=$? |
| 31639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31640 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31641 | ac_cv_func_alloca_works=yes |
| 31642 | else |
| 31643 | echo "$as_me: failed program was:" >&5 |
| 31644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31646 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31648 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31649 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31650 | conftest$ac_exeext conftest.$ac_ext |
| 31651 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31652 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 31653 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31654 | |
| 31655 | if test $ac_cv_func_alloca_works = yes; then |
| 31656 | |
| 31657 | cat >>confdefs.h <<\_ACEOF |
| 31658 | #define HAVE_ALLOCA 1 |
| 31659 | _ACEOF |
| 31660 | |
| 31661 | else |
| 31662 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 31663 | # that cause trouble. Some versions do not even contain alloca or |
| 31664 | # contain a buggy version. If you still want to use their alloca, |
| 31665 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 31666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31667 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31668 | |
| 31669 | cat >>confdefs.h <<\_ACEOF |
| 31670 | #define C_ALLOCA 1 |
| 31671 | _ACEOF |
| 31672 | |
| 31673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31674 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 31675 | 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] | 31676 | if test "${ac_cv_os_cray+set}" = set; then |
| 31677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31678 | else |
| 31679 | cat >conftest.$ac_ext <<_ACEOF |
| 31680 | /* confdefs.h. */ |
| 31681 | _ACEOF |
| 31682 | cat confdefs.h >>conftest.$ac_ext |
| 31683 | cat >>conftest.$ac_ext <<_ACEOF |
| 31684 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31685 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31686 | webecray |
| 31687 | #else |
| 31688 | wenotbecray |
| 31689 | #endif |
| 31690 | |
| 31691 | _ACEOF |
| 31692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31693 | $EGREP "webecray" >/dev/null 2>&1; then |
| 31694 | ac_cv_os_cray=yes |
| 31695 | else |
| 31696 | ac_cv_os_cray=no |
| 31697 | fi |
| 31698 | rm -f conftest* |
| 31699 | |
| 31700 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31701 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 31702 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31703 | if test $ac_cv_os_cray = yes; then |
| 31704 | for ac_func in _getb67 GETB67 getb67; do |
| 31705 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31706 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31707 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31708 | 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] | 31709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31710 | else |
| 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 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31719 | #define $ac_func innocuous_$ac_func |
| 31720 | |
| 31721 | /* System header to define __stub macros and hopefully few prototypes, |
| 31722 | which can conflict with char $ac_func (); below. |
| 31723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31724 | <limits.h> exists even on freestanding compilers. */ |
| 31725 | |
| 31726 | #ifdef __STDC__ |
| 31727 | # include <limits.h> |
| 31728 | #else |
| 31729 | # include <assert.h> |
| 31730 | #endif |
| 31731 | |
| 31732 | #undef $ac_func |
| 31733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31734 | /* Override any GCC internal prototype to avoid an error. |
| 31735 | Use char because int might match the return type of a GCC |
| 31736 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31737 | #ifdef __cplusplus |
| 31738 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31739 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31740 | char $ac_func (); |
| 31741 | /* The GNU C library defines this for functions which it implements |
| 31742 | to always fail with ENOSYS. Some functions are actually named |
| 31743 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31744 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31745 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31746 | #endif |
| 31747 | |
| 31748 | int |
| 31749 | main () |
| 31750 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31751 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31752 | ; |
| 31753 | return 0; |
| 31754 | } |
| 31755 | _ACEOF |
| 31756 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31757 | if { (ac_try="$ac_link" |
| 31758 | case "(($ac_try" in |
| 31759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31760 | *) ac_try_echo=$ac_try;; |
| 31761 | esac |
| 31762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31763 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31764 | ac_status=$? |
| 31765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31766 | rm -f conftest.er1 |
| 31767 | cat conftest.err >&5 |
| 31768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31769 | (exit $ac_status); } && |
| 31770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31771 | { (case "(($ac_try" in |
| 31772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31773 | *) ac_try_echo=$ac_try;; |
| 31774 | esac |
| 31775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31776 | (eval "$ac_try") 2>&5 |
| 31777 | ac_status=$? |
| 31778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31779 | (exit $ac_status); }; } && |
| 31780 | { ac_try='test -s conftest$ac_exeext' |
| 31781 | { (case "(($ac_try" in |
| 31782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31783 | *) ac_try_echo=$ac_try;; |
| 31784 | esac |
| 31785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31786 | (eval "$ac_try") 2>&5 |
| 31787 | ac_status=$? |
| 31788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31789 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31790 | eval "$as_ac_var=yes" |
| 31791 | else |
| 31792 | echo "$as_me: failed program was:" >&5 |
| 31793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31795 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31797 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31798 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31799 | conftest$ac_exeext conftest.$ac_ext |
| 31800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31801 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31802 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31803 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31804 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31805 | |
| 31806 | cat >>confdefs.h <<_ACEOF |
| 31807 | #define CRAY_STACKSEG_END $ac_func |
| 31808 | _ACEOF |
| 31809 | |
| 31810 | break |
| 31811 | fi |
| 31812 | |
| 31813 | done |
| 31814 | fi |
| 31815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31816 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 31817 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31818 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 31819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31820 | else |
| 31821 | if test "$cross_compiling" = yes; then |
| 31822 | ac_cv_c_stack_direction=0 |
| 31823 | else |
| 31824 | cat >conftest.$ac_ext <<_ACEOF |
| 31825 | /* confdefs.h. */ |
| 31826 | _ACEOF |
| 31827 | cat confdefs.h >>conftest.$ac_ext |
| 31828 | cat >>conftest.$ac_ext <<_ACEOF |
| 31829 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31830 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31831 | int |
| 31832 | find_stack_direction () |
| 31833 | { |
| 31834 | static char *addr = 0; |
| 31835 | auto char dummy; |
| 31836 | if (addr == 0) |
| 31837 | { |
| 31838 | addr = &dummy; |
| 31839 | return find_stack_direction (); |
| 31840 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31841 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31842 | return (&dummy > addr) ? 1 : -1; |
| 31843 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31844 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31845 | int |
| 31846 | main () |
| 31847 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31848 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31849 | } |
| 31850 | _ACEOF |
| 31851 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31852 | if { (ac_try="$ac_link" |
| 31853 | case "(($ac_try" in |
| 31854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31855 | *) ac_try_echo=$ac_try;; |
| 31856 | esac |
| 31857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31858 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31859 | ac_status=$? |
| 31860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31861 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31862 | { (case "(($ac_try" in |
| 31863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31864 | *) ac_try_echo=$ac_try;; |
| 31865 | esac |
| 31866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31867 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31868 | ac_status=$? |
| 31869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31870 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31871 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31872 | else |
| 31873 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31874 | echo "$as_me: failed program was:" >&5 |
| 31875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31876 | |
| 31877 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31878 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31880 | 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] | 31881 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31882 | |
| 31883 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31884 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31885 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31886 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31887 | |
| 31888 | cat >>confdefs.h <<_ACEOF |
| 31889 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31890 | _ACEOF |
| 31891 | |
| 31892 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31893 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31894 | |
| 31895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31896 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31897 | 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] | 31898 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31900 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31901 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31902 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31906 | |
| 31907 | cat >conftest.$ac_ext <<_ACEOF |
| 31908 | /* confdefs.h. */ |
| 31909 | _ACEOF |
| 31910 | cat confdefs.h >>conftest.$ac_ext |
| 31911 | cat >>conftest.$ac_ext <<_ACEOF |
| 31912 | /* end confdefs.h. */ |
| 31913 | #include <stdlib.h> |
| 31914 | int |
| 31915 | main () |
| 31916 | { |
| 31917 | srand48(0);lrand48();drand48(); |
| 31918 | ; |
| 31919 | return 0; |
| 31920 | } |
| 31921 | _ACEOF |
| 31922 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31923 | if { (ac_try="$ac_compile" |
| 31924 | case "(($ac_try" in |
| 31925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31926 | *) ac_try_echo=$ac_try;; |
| 31927 | esac |
| 31928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31929 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31930 | ac_status=$? |
| 31931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31932 | rm -f conftest.er1 |
| 31933 | cat conftest.err >&5 |
| 31934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 31935 | (exit $ac_status); } && |
| 31936 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31937 | { (case "(($ac_try" in |
| 31938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31939 | *) ac_try_echo=$ac_try;; |
| 31940 | esac |
| 31941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31942 | (eval "$ac_try") 2>&5 |
| 31943 | ac_status=$? |
| 31944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31945 | (exit $ac_status); }; } && |
| 31946 | { ac_try='test -s conftest.$ac_objext' |
| 31947 | { (case "(($ac_try" in |
| 31948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31949 | *) ac_try_echo=$ac_try;; |
| 31950 | esac |
| 31951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31952 | (eval "$ac_try") 2>&5 |
| 31953 | ac_status=$? |
| 31954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31955 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31956 | ac_cv_func_rand48=yes |
| 31957 | else |
| 31958 | echo "$as_me: failed program was:" >&5 |
| 31959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31961 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31962 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31963 | |
| 31964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31965 | ac_ext=c |
| 31966 | ac_cpp='$CPP $CPPFLAGS' |
| 31967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31970 | |
| 31971 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31972 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31973 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31974 | |
| 31975 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31976 | |
| 31977 | cat >>confdefs.h <<\_ACEOF |
| 31978 | #define HAVE_RAND48 1 |
| 31979 | _ACEOF |
| 31980 | |
| 31981 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31982 | |
| 31983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31984 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31985 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31986 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31988 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31989 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31990 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31991 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31992 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31993 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31994 | |
| 31995 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31996 | /* confdefs.h. */ |
| 31997 | _ACEOF |
| 31998 | cat confdefs.h >>conftest.$ac_ext |
| 31999 | cat >>conftest.$ac_ext <<_ACEOF |
| 32000 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32001 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32002 | int |
| 32003 | main () |
| 32004 | { |
| 32005 | using namespace Outer::Inner; return i; |
| 32006 | ; |
| 32007 | return 0; |
| 32008 | } |
| 32009 | _ACEOF |
| 32010 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32011 | if { (ac_try="$ac_compile" |
| 32012 | case "(($ac_try" in |
| 32013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32014 | *) ac_try_echo=$ac_try;; |
| 32015 | esac |
| 32016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32017 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32018 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32020 | rm -f conftest.er1 |
| 32021 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32023 | (exit $ac_status); } && |
| 32024 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32025 | { (case "(($ac_try" in |
| 32026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32027 | *) ac_try_echo=$ac_try;; |
| 32028 | esac |
| 32029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32030 | (eval "$ac_try") 2>&5 |
| 32031 | ac_status=$? |
| 32032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32033 | (exit $ac_status); }; } && |
| 32034 | { ac_try='test -s conftest.$ac_objext' |
| 32035 | { (case "(($ac_try" in |
| 32036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32037 | *) ac_try_echo=$ac_try;; |
| 32038 | esac |
| 32039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32040 | (eval "$ac_try") 2>&5 |
| 32041 | ac_status=$? |
| 32042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32043 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32044 | ac_cv_cxx_namespaces=yes |
| 32045 | else |
| 32046 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32049 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32050 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32051 | |
| 32052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32053 | ac_ext=c |
| 32054 | ac_cpp='$CPP $CPPFLAGS' |
| 32055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32058 | |
| 32059 | |
| 32060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32061 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 32062 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32063 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 32064 | |
| 32065 | cat >>confdefs.h <<\_ACEOF |
| 32066 | #define HAVE_NAMESPACES |
| 32067 | _ACEOF |
| 32068 | |
| 32069 | fi |
| 32070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32071 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 32072 | 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] | 32073 | 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] | 32074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32075 | else |
| 32076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32077 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32078 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32082 | |
| 32083 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32084 | /* confdefs.h. */ |
| 32085 | _ACEOF |
| 32086 | cat confdefs.h >>conftest.$ac_ext |
| 32087 | cat >>conftest.$ac_ext <<_ACEOF |
| 32088 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32089 | #include <ext/hash_map> |
| 32090 | #ifdef HAVE_NAMESPACES |
| 32091 | using namespace std; |
| 32092 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32093 | int |
| 32094 | main () |
| 32095 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32096 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32097 | ; |
| 32098 | return 0; |
| 32099 | } |
| 32100 | _ACEOF |
| 32101 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32102 | if { (ac_try="$ac_compile" |
| 32103 | case "(($ac_try" in |
| 32104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32105 | *) ac_try_echo=$ac_try;; |
| 32106 | esac |
| 32107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32108 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32109 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32111 | rm -f conftest.er1 |
| 32112 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32114 | (exit $ac_status); } && |
| 32115 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32116 | { (case "(($ac_try" in |
| 32117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32118 | *) ac_try_echo=$ac_try;; |
| 32119 | esac |
| 32120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32121 | (eval "$ac_try") 2>&5 |
| 32122 | ac_status=$? |
| 32123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32124 | (exit $ac_status); }; } && |
| 32125 | { ac_try='test -s conftest.$ac_objext' |
| 32126 | { (case "(($ac_try" in |
| 32127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32128 | *) ac_try_echo=$ac_try;; |
| 32129 | esac |
| 32130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32131 | (eval "$ac_try") 2>&5 |
| 32132 | ac_status=$? |
| 32133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32134 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32135 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32136 | else |
| 32137 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32140 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32142 | |
| 32143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32144 | ac_ext=c |
| 32145 | ac_cpp='$CPP $CPPFLAGS' |
| 32146 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32147 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32148 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32149 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32150 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32151 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 32152 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32153 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 32154 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32155 | |
| 32156 | cat >>confdefs.h <<\_ACEOF |
| 32157 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 32158 | _ACEOF |
| 32159 | |
| 32160 | else |
| 32161 | |
| 32162 | cat >>confdefs.h <<\_ACEOF |
| 32163 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 32164 | _ACEOF |
| 32165 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32166 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32168 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 32169 | 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] | 32170 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 32171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32172 | else |
| 32173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32174 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32175 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32176 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32177 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32178 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32179 | |
| 32180 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32181 | /* confdefs.h. */ |
| 32182 | _ACEOF |
| 32183 | cat confdefs.h >>conftest.$ac_ext |
| 32184 | cat >>conftest.$ac_ext <<_ACEOF |
| 32185 | /* end confdefs.h. */ |
| 32186 | #include <ext/hash_map> |
| 32187 | #ifdef HAVE_NAMESPACES |
| 32188 | using namespace __gnu_cxx; |
| 32189 | #endif |
| 32190 | int |
| 32191 | main () |
| 32192 | { |
| 32193 | hash_map<int,int> t; |
| 32194 | ; |
| 32195 | return 0; |
| 32196 | } |
| 32197 | _ACEOF |
| 32198 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32199 | if { (ac_try="$ac_compile" |
| 32200 | case "(($ac_try" in |
| 32201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32202 | *) ac_try_echo=$ac_try;; |
| 32203 | esac |
| 32204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32205 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32206 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32208 | rm -f conftest.er1 |
| 32209 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32211 | (exit $ac_status); } && |
| 32212 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32213 | { (case "(($ac_try" in |
| 32214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32215 | *) ac_try_echo=$ac_try;; |
| 32216 | esac |
| 32217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32218 | (eval "$ac_try") 2>&5 |
| 32219 | ac_status=$? |
| 32220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32221 | (exit $ac_status); }; } && |
| 32222 | { ac_try='test -s conftest.$ac_objext' |
| 32223 | { (case "(($ac_try" in |
| 32224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32225 | *) ac_try_echo=$ac_try;; |
| 32226 | esac |
| 32227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32228 | (eval "$ac_try") 2>&5 |
| 32229 | ac_status=$? |
| 32230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32231 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32232 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 32233 | else |
| 32234 | echo "$as_me: failed program was:" >&5 |
| 32235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32237 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32238 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32239 | |
| 32240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32241 | ac_ext=c |
| 32242 | ac_cpp='$CPP $CPPFLAGS' |
| 32243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32246 | |
| 32247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32248 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 32249 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32250 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 32251 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32252 | |
| 32253 | cat >>confdefs.h <<\_ACEOF |
| 32254 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 32255 | _ACEOF |
| 32256 | |
| 32257 | else |
| 32258 | |
| 32259 | cat >>confdefs.h <<\_ACEOF |
| 32260 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 32261 | _ACEOF |
| 32262 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32263 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32265 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 32266 | 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] | 32267 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 32268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32269 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32271 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32272 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32273 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32274 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32275 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32276 | |
| 32277 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32278 | /* confdefs.h. */ |
| 32279 | _ACEOF |
| 32280 | cat confdefs.h >>conftest.$ac_ext |
| 32281 | cat >>conftest.$ac_ext <<_ACEOF |
| 32282 | /* end confdefs.h. */ |
| 32283 | #include <hash_map> |
| 32284 | int |
| 32285 | main () |
| 32286 | { |
| 32287 | hash_map<int,int> t; |
| 32288 | ; |
| 32289 | return 0; |
| 32290 | } |
| 32291 | _ACEOF |
| 32292 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32293 | if { (ac_try="$ac_compile" |
| 32294 | case "(($ac_try" in |
| 32295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32296 | *) ac_try_echo=$ac_try;; |
| 32297 | esac |
| 32298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32299 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32300 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32302 | rm -f conftest.er1 |
| 32303 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32305 | (exit $ac_status); } && |
| 32306 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32307 | { (case "(($ac_try" in |
| 32308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32309 | *) ac_try_echo=$ac_try;; |
| 32310 | esac |
| 32311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32312 | (eval "$ac_try") 2>&5 |
| 32313 | ac_status=$? |
| 32314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32315 | (exit $ac_status); }; } && |
| 32316 | { ac_try='test -s conftest.$ac_objext' |
| 32317 | { (case "(($ac_try" in |
| 32318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32319 | *) ac_try_echo=$ac_try;; |
| 32320 | esac |
| 32321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32322 | (eval "$ac_try") 2>&5 |
| 32323 | ac_status=$? |
| 32324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32325 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32326 | ac_cv_cxx_have_global_hash_map=yes |
| 32327 | else |
| 32328 | echo "$as_me: failed program was:" >&5 |
| 32329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32331 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32332 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32333 | |
| 32334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32335 | ac_ext=c |
| 32336 | ac_cpp='$CPP $CPPFLAGS' |
| 32337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32340 | |
| 32341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32342 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 32343 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32344 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 32345 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32346 | |
| 32347 | cat >>confdefs.h <<\_ACEOF |
| 32348 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 32349 | _ACEOF |
| 32350 | |
| 32351 | else |
| 32352 | |
| 32353 | cat >>confdefs.h <<\_ACEOF |
| 32354 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 32355 | _ACEOF |
| 32356 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32357 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32359 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 32360 | 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] | 32361 | 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] | 32362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32363 | else |
| 32364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32365 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32366 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32367 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32368 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32369 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32370 | |
| 32371 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32372 | /* confdefs.h. */ |
| 32373 | _ACEOF |
| 32374 | cat confdefs.h >>conftest.$ac_ext |
| 32375 | cat >>conftest.$ac_ext <<_ACEOF |
| 32376 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32377 | #include <ext/hash_set> |
| 32378 | #ifdef HAVE_NAMESPACES |
| 32379 | using namespace std; |
| 32380 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32381 | int |
| 32382 | main () |
| 32383 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32384 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32385 | ; |
| 32386 | return 0; |
| 32387 | } |
| 32388 | _ACEOF |
| 32389 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32390 | if { (ac_try="$ac_compile" |
| 32391 | case "(($ac_try" in |
| 32392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32393 | *) ac_try_echo=$ac_try;; |
| 32394 | esac |
| 32395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32396 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32397 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32399 | rm -f conftest.er1 |
| 32400 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32402 | (exit $ac_status); } && |
| 32403 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32404 | { (case "(($ac_try" in |
| 32405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32406 | *) ac_try_echo=$ac_try;; |
| 32407 | esac |
| 32408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32409 | (eval "$ac_try") 2>&5 |
| 32410 | ac_status=$? |
| 32411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32412 | (exit $ac_status); }; } && |
| 32413 | { ac_try='test -s conftest.$ac_objext' |
| 32414 | { (case "(($ac_try" in |
| 32415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32416 | *) ac_try_echo=$ac_try;; |
| 32417 | esac |
| 32418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32419 | (eval "$ac_try") 2>&5 |
| 32420 | ac_status=$? |
| 32421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32422 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32423 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32424 | else |
| 32425 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32428 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32429 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32430 | |
| 32431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32432 | ac_ext=c |
| 32433 | ac_cpp='$CPP $CPPFLAGS' |
| 32434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32437 | |
| 32438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32439 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 32440 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32441 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 32442 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32443 | |
| 32444 | cat >>confdefs.h <<\_ACEOF |
| 32445 | #define HAVE_STD_EXT_HASH_SET 1 |
| 32446 | _ACEOF |
| 32447 | |
| 32448 | else |
| 32449 | |
| 32450 | cat >>confdefs.h <<\_ACEOF |
| 32451 | #define HAVE_STD_EXT_HASH_SET 0 |
| 32452 | _ACEOF |
| 32453 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32454 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32456 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 32457 | 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] | 32458 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 32459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32460 | else |
| 32461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32462 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32463 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32464 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32465 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32466 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32467 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32468 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32469 | /* confdefs.h. */ |
| 32470 | _ACEOF |
| 32471 | cat confdefs.h >>conftest.$ac_ext |
| 32472 | cat >>conftest.$ac_ext <<_ACEOF |
| 32473 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32474 | #include <ext/hash_set> |
| 32475 | #ifdef HAVE_NAMESPACES |
| 32476 | using namespace __gnu_cxx; |
| 32477 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32478 | int |
| 32479 | main () |
| 32480 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32481 | hash_set<int> t; |
| 32482 | ; |
| 32483 | return 0; |
| 32484 | } |
| 32485 | _ACEOF |
| 32486 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32487 | if { (ac_try="$ac_compile" |
| 32488 | case "(($ac_try" in |
| 32489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32490 | *) ac_try_echo=$ac_try;; |
| 32491 | esac |
| 32492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32493 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32494 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32496 | rm -f conftest.er1 |
| 32497 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32499 | (exit $ac_status); } && |
| 32500 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32501 | { (case "(($ac_try" in |
| 32502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32503 | *) ac_try_echo=$ac_try;; |
| 32504 | esac |
| 32505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32506 | (eval "$ac_try") 2>&5 |
| 32507 | ac_status=$? |
| 32508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32509 | (exit $ac_status); }; } && |
| 32510 | { ac_try='test -s conftest.$ac_objext' |
| 32511 | { (case "(($ac_try" in |
| 32512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32513 | *) ac_try_echo=$ac_try;; |
| 32514 | esac |
| 32515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32516 | (eval "$ac_try") 2>&5 |
| 32517 | ac_status=$? |
| 32518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32519 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32520 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 32521 | else |
| 32522 | echo "$as_me: failed program was:" >&5 |
| 32523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32525 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32527 | |
| 32528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32529 | ac_ext=c |
| 32530 | ac_cpp='$CPP $CPPFLAGS' |
| 32531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32534 | |
| 32535 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32536 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 32537 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32538 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 32539 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32540 | |
| 32541 | cat >>confdefs.h <<\_ACEOF |
| 32542 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 32543 | _ACEOF |
| 32544 | |
| 32545 | else |
| 32546 | |
| 32547 | cat >>confdefs.h <<\_ACEOF |
| 32548 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 32549 | _ACEOF |
| 32550 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32551 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32553 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 32554 | 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] | 32555 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 32556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32557 | else |
| 32558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32559 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32560 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32564 | |
| 32565 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32566 | /* confdefs.h. */ |
| 32567 | _ACEOF |
| 32568 | cat confdefs.h >>conftest.$ac_ext |
| 32569 | cat >>conftest.$ac_ext <<_ACEOF |
| 32570 | /* end confdefs.h. */ |
| 32571 | #include <hash_set> |
| 32572 | int |
| 32573 | main () |
| 32574 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32575 | hash_set<int> t; return 0; |
| 32576 | ; |
| 32577 | return 0; |
| 32578 | } |
| 32579 | _ACEOF |
| 32580 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32581 | if { (ac_try="$ac_compile" |
| 32582 | case "(($ac_try" in |
| 32583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32584 | *) ac_try_echo=$ac_try;; |
| 32585 | esac |
| 32586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32587 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32588 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32590 | rm -f conftest.er1 |
| 32591 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32593 | (exit $ac_status); } && |
| 32594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32595 | { (case "(($ac_try" in |
| 32596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32597 | *) ac_try_echo=$ac_try;; |
| 32598 | esac |
| 32599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32600 | (eval "$ac_try") 2>&5 |
| 32601 | ac_status=$? |
| 32602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32603 | (exit $ac_status); }; } && |
| 32604 | { ac_try='test -s conftest.$ac_objext' |
| 32605 | { (case "(($ac_try" in |
| 32606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32607 | *) ac_try_echo=$ac_try;; |
| 32608 | esac |
| 32609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32610 | (eval "$ac_try") 2>&5 |
| 32611 | ac_status=$? |
| 32612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32613 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32614 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32615 | else |
| 32616 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32619 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32620 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32621 | |
| 32622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32623 | ac_ext=c |
| 32624 | ac_cpp='$CPP $CPPFLAGS' |
| 32625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32628 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32629 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32630 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 32631 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32632 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 32633 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 32634 | |
| 32635 | cat >>confdefs.h <<\_ACEOF |
| 32636 | #define HAVE_GLOBAL_HASH_SET 1 |
| 32637 | _ACEOF |
| 32638 | |
| 32639 | else |
| 32640 | |
| 32641 | cat >>confdefs.h <<\_ACEOF |
| 32642 | #define HAVE_GLOBAL_HASH_SET 0 |
| 32643 | _ACEOF |
| 32644 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 32645 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 32646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32647 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 32648 | 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] | 32649 | if test "${ac_cv_cxx_have_std_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 | { |
| 32672 | iterator<int,int,int> t; return 0; |
| 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 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +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_std_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_std_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_std_iterator" >&5 |
| 32729 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32730 | if test "$ac_cv_cxx_have_std_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_STD_ITERATOR 1 |
| 32735 | _ACEOF |
| 32736 | |
| 32737 | else |
| 32738 | |
| 32739 | cat >>confdefs.h <<\_ACEOF |
| 32740 | #define HAVE_STD_ITERATOR 0 |
| 32741 | _ACEOF |
| 32742 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32743 | fi |
| 32744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32745 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 32746 | 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] | 32747 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 32748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32749 | else |
| 32750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32751 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +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 | |
| 32757 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +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. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32763 | #include <iterator> |
| 32764 | #ifdef HAVE_NAMESPACES |
| 32765 | using namespace std; |
| 32766 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32767 | int |
| 32768 | main () |
| 32769 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32770 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32771 | ; |
| 32772 | return 0; |
| 32773 | } |
| 32774 | _ACEOF |
| 32775 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32776 | if { (ac_try="$ac_compile" |
| 32777 | case "(($ac_try" in |
| 32778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32779 | *) ac_try_echo=$ac_try;; |
| 32780 | esac |
| 32781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32782 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32783 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32785 | rm -f conftest.er1 |
| 32786 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32788 | (exit $ac_status); } && |
| 32789 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32790 | { (case "(($ac_try" in |
| 32791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32792 | *) ac_try_echo=$ac_try;; |
| 32793 | esac |
| 32794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32795 | (eval "$ac_try") 2>&5 |
| 32796 | ac_status=$? |
| 32797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32798 | (exit $ac_status); }; } && |
| 32799 | { ac_try='test -s conftest.$ac_objext' |
| 32800 | { (case "(($ac_try" in |
| 32801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32802 | *) ac_try_echo=$ac_try;; |
| 32803 | esac |
| 32804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32805 | (eval "$ac_try") 2>&5 |
| 32806 | ac_status=$? |
| 32807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32808 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32809 | ac_cv_cxx_have_bi_iterator=yes |
| 32810 | else |
| 32811 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32814 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32815 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32816 | |
| 32817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32818 | ac_ext=c |
| 32819 | ac_cpp='$CPP $CPPFLAGS' |
| 32820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32823 | |
| 32824 | |
| 32825 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32826 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 32827 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32828 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 32829 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32830 | |
| 32831 | cat >>confdefs.h <<\_ACEOF |
| 32832 | #define HAVE_BI_ITERATOR 1 |
| 32833 | _ACEOF |
| 32834 | |
| 32835 | else |
| 32836 | |
| 32837 | cat >>confdefs.h <<\_ACEOF |
| 32838 | #define HAVE_BI_ITERATOR 0 |
| 32839 | _ACEOF |
| 32840 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32841 | fi |
| 32842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32843 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32844 | 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] | 32845 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32847 | else |
| 32848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32849 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32850 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32851 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32852 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32853 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32854 | |
| 32855 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32856 | /* confdefs.h. */ |
| 32857 | _ACEOF |
| 32858 | cat confdefs.h >>conftest.$ac_ext |
| 32859 | cat >>conftest.$ac_ext <<_ACEOF |
| 32860 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32861 | #include <iterator> |
| 32862 | #ifdef HAVE_NAMESPACES |
| 32863 | using namespace std; |
| 32864 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32865 | int |
| 32866 | main () |
| 32867 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32868 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32869 | ; |
| 32870 | return 0; |
| 32871 | } |
| 32872 | _ACEOF |
| 32873 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32874 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32881 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32883 | rm -f conftest.er1 |
| 32884 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32886 | (exit $ac_status); } && |
| 32887 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32888 | { (case "(($ac_try" in |
| 32889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32890 | *) ac_try_echo=$ac_try;; |
| 32891 | esac |
| 32892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32893 | (eval "$ac_try") 2>&5 |
| 32894 | ac_status=$? |
| 32895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32896 | (exit $ac_status); }; } && |
| 32897 | { ac_try='test -s conftest.$ac_objext' |
| 32898 | { (case "(($ac_try" in |
| 32899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32900 | *) ac_try_echo=$ac_try;; |
| 32901 | esac |
| 32902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32903 | (eval "$ac_try") 2>&5 |
| 32904 | ac_status=$? |
| 32905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32906 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32907 | ac_cv_cxx_have_fwd_iterator=yes |
| 32908 | else |
| 32909 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32912 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32913 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32914 | |
| 32915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32916 | ac_ext=c |
| 32917 | ac_cpp='$CPP $CPPFLAGS' |
| 32918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32921 | |
| 32922 | |
| 32923 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32924 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32925 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32926 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32927 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32928 | |
| 32929 | cat >>confdefs.h <<\_ACEOF |
| 32930 | #define HAVE_FWD_ITERATOR 1 |
| 32931 | _ACEOF |
| 32932 | |
| 32933 | else |
| 32934 | |
| 32935 | cat >>confdefs.h <<\_ACEOF |
| 32936 | #define HAVE_FWD_ITERATOR 0 |
| 32937 | _ACEOF |
| 32938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32939 | fi |
| 32940 | |
| 32941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32942 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32943 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32944 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32946 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32947 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32948 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32949 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32950 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32951 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32952 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32953 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32954 | /* confdefs.h. */ |
| 32955 | _ACEOF |
| 32956 | cat confdefs.h >>conftest.$ac_ext |
| 32957 | cat >>conftest.$ac_ext <<_ACEOF |
| 32958 | /* end confdefs.h. */ |
| 32959 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32960 | int |
| 32961 | main () |
| 32962 | { |
| 32963 | float f; isnan(f); |
| 32964 | ; |
| 32965 | return 0; |
| 32966 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32967 | _ACEOF |
| 32968 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32969 | if { (ac_try="$ac_compile" |
| 32970 | case "(($ac_try" in |
| 32971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32972 | *) ac_try_echo=$ac_try;; |
| 32973 | esac |
| 32974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32975 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32976 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32978 | rm -f conftest.er1 |
| 32979 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 32981 | (exit $ac_status); } && |
| 32982 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32983 | { (case "(($ac_try" in |
| 32984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32985 | *) ac_try_echo=$ac_try;; |
| 32986 | esac |
| 32987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32988 | (eval "$ac_try") 2>&5 |
| 32989 | ac_status=$? |
| 32990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32991 | (exit $ac_status); }; } && |
| 32992 | { ac_try='test -s conftest.$ac_objext' |
| 32993 | { (case "(($ac_try" in |
| 32994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32995 | *) ac_try_echo=$ac_try;; |
| 32996 | esac |
| 32997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32998 | (eval "$ac_try") 2>&5 |
| 32999 | ac_status=$? |
| 33000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33001 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33002 | ac_cv_func_isnan_in_math_h=yes |
| 33003 | else |
| 33004 | echo "$as_me: failed program was:" >&5 |
| 33005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33007 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33008 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33009 | |
| 33010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33011 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33012 | ac_cpp='$CPP $CPPFLAGS' |
| 33013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33016 | |
| 33017 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33018 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 33019 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33020 | |
| 33021 | |
| 33022 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33023 | |
| 33024 | cat >>confdefs.h <<\_ACEOF |
| 33025 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 33026 | _ACEOF |
| 33027 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33028 | fi |
| 33029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33030 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 33031 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33032 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 33033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33034 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33035 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33036 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33040 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33041 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33042 | /* confdefs.h. */ |
| 33043 | _ACEOF |
| 33044 | cat confdefs.h >>conftest.$ac_ext |
| 33045 | cat >>conftest.$ac_ext <<_ACEOF |
| 33046 | /* end confdefs.h. */ |
| 33047 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33048 | int |
| 33049 | main () |
| 33050 | { |
| 33051 | float f; isnan(f); |
| 33052 | ; |
| 33053 | return 0; |
| 33054 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33055 | _ACEOF |
| 33056 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33057 | if { (ac_try="$ac_compile" |
| 33058 | case "(($ac_try" in |
| 33059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33060 | *) ac_try_echo=$ac_try;; |
| 33061 | esac |
| 33062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33063 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33064 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33066 | rm -f conftest.er1 |
| 33067 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33069 | (exit $ac_status); } && |
| 33070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33071 | { (case "(($ac_try" in |
| 33072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33073 | *) ac_try_echo=$ac_try;; |
| 33074 | esac |
| 33075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33076 | (eval "$ac_try") 2>&5 |
| 33077 | ac_status=$? |
| 33078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33079 | (exit $ac_status); }; } && |
| 33080 | { ac_try='test -s conftest.$ac_objext' |
| 33081 | { (case "(($ac_try" in |
| 33082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33083 | *) ac_try_echo=$ac_try;; |
| 33084 | esac |
| 33085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33086 | (eval "$ac_try") 2>&5 |
| 33087 | ac_status=$? |
| 33088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33089 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33090 | ac_cv_func_isnan_in_cmath=yes |
| 33091 | else |
| 33092 | echo "$as_me: failed program was:" >&5 |
| 33093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33095 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33096 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33097 | |
| 33098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33099 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33100 | ac_cpp='$CPP $CPPFLAGS' |
| 33101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33104 | |
| 33105 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33106 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 33107 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33108 | |
| 33109 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33110 | |
| 33111 | cat >>confdefs.h <<\_ACEOF |
| 33112 | #define HAVE_ISNAN_IN_CMATH 1 |
| 33113 | _ACEOF |
| 33114 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33115 | fi |
| 33116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33117 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 33118 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33119 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 33120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33121 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33122 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33123 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33124 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33125 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33127 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33128 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33129 | /* confdefs.h. */ |
| 33130 | _ACEOF |
| 33131 | cat confdefs.h >>conftest.$ac_ext |
| 33132 | cat >>conftest.$ac_ext <<_ACEOF |
| 33133 | /* end confdefs.h. */ |
| 33134 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33135 | int |
| 33136 | main () |
| 33137 | { |
| 33138 | float f; std::isnan(f); |
| 33139 | ; |
| 33140 | return 0; |
| 33141 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33142 | _ACEOF |
| 33143 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33144 | if { (ac_try="$ac_compile" |
| 33145 | case "(($ac_try" in |
| 33146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33147 | *) ac_try_echo=$ac_try;; |
| 33148 | esac |
| 33149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33150 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33151 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33153 | rm -f conftest.er1 |
| 33154 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33156 | (exit $ac_status); } && |
| 33157 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33158 | { (case "(($ac_try" in |
| 33159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33160 | *) ac_try_echo=$ac_try;; |
| 33161 | esac |
| 33162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33163 | (eval "$ac_try") 2>&5 |
| 33164 | ac_status=$? |
| 33165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33166 | (exit $ac_status); }; } && |
| 33167 | { ac_try='test -s conftest.$ac_objext' |
| 33168 | { (case "(($ac_try" in |
| 33169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33170 | *) ac_try_echo=$ac_try;; |
| 33171 | esac |
| 33172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33173 | (eval "$ac_try") 2>&5 |
| 33174 | ac_status=$? |
| 33175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33176 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33177 | ac_cv_func_std_isnan_in_cmath=yes |
| 33178 | else |
| 33179 | echo "$as_me: failed program was:" >&5 |
| 33180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33182 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33184 | |
| 33185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33186 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33187 | ac_cpp='$CPP $CPPFLAGS' |
| 33188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33191 | |
| 33192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33193 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33194 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33195 | |
| 33196 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33197 | |
| 33198 | cat >>confdefs.h <<\_ACEOF |
| 33199 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33200 | _ACEOF |
| 33201 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33202 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33203 | |
| 33204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33205 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33206 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33207 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33209 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33210 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33211 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33215 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33216 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33217 | /* confdefs.h. */ |
| 33218 | _ACEOF |
| 33219 | cat confdefs.h >>conftest.$ac_ext |
| 33220 | cat >>conftest.$ac_ext <<_ACEOF |
| 33221 | /* end confdefs.h. */ |
| 33222 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33223 | int |
| 33224 | main () |
| 33225 | { |
| 33226 | float f; isinf(f); |
| 33227 | ; |
| 33228 | return 0; |
| 33229 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33230 | _ACEOF |
| 33231 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33232 | if { (ac_try="$ac_compile" |
| 33233 | case "(($ac_try" in |
| 33234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33235 | *) ac_try_echo=$ac_try;; |
| 33236 | esac |
| 33237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33238 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33239 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33241 | rm -f conftest.er1 |
| 33242 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33244 | (exit $ac_status); } && |
| 33245 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33246 | { (case "(($ac_try" in |
| 33247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33248 | *) ac_try_echo=$ac_try;; |
| 33249 | esac |
| 33250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33251 | (eval "$ac_try") 2>&5 |
| 33252 | ac_status=$? |
| 33253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33254 | (exit $ac_status); }; } && |
| 33255 | { ac_try='test -s conftest.$ac_objext' |
| 33256 | { (case "(($ac_try" in |
| 33257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33258 | *) ac_try_echo=$ac_try;; |
| 33259 | esac |
| 33260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33261 | (eval "$ac_try") 2>&5 |
| 33262 | ac_status=$? |
| 33263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33264 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33265 | ac_cv_func_isinf_in_math_h=yes |
| 33266 | else |
| 33267 | echo "$as_me: failed program was:" >&5 |
| 33268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33270 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33271 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33272 | |
| 33273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33274 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33275 | ac_cpp='$CPP $CPPFLAGS' |
| 33276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33279 | |
| 33280 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33281 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33282 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33283 | |
| 33284 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33285 | |
| 33286 | cat >>confdefs.h <<\_ACEOF |
| 33287 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33288 | _ACEOF |
| 33289 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33290 | fi |
| 33291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33292 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33293 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33294 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33296 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33297 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33298 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33299 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33300 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33301 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33302 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33303 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33304 | /* confdefs.h. */ |
| 33305 | _ACEOF |
| 33306 | cat confdefs.h >>conftest.$ac_ext |
| 33307 | cat >>conftest.$ac_ext <<_ACEOF |
| 33308 | /* end confdefs.h. */ |
| 33309 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33310 | int |
| 33311 | main () |
| 33312 | { |
| 33313 | float f; isinf(f); |
| 33314 | ; |
| 33315 | return 0; |
| 33316 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33317 | _ACEOF |
| 33318 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33319 | if { (ac_try="$ac_compile" |
| 33320 | case "(($ac_try" in |
| 33321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33322 | *) ac_try_echo=$ac_try;; |
| 33323 | esac |
| 33324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33325 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33326 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33328 | rm -f conftest.er1 |
| 33329 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33331 | (exit $ac_status); } && |
| 33332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33333 | { (case "(($ac_try" in |
| 33334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33335 | *) ac_try_echo=$ac_try;; |
| 33336 | esac |
| 33337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33338 | (eval "$ac_try") 2>&5 |
| 33339 | ac_status=$? |
| 33340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33341 | (exit $ac_status); }; } && |
| 33342 | { ac_try='test -s conftest.$ac_objext' |
| 33343 | { (case "(($ac_try" in |
| 33344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33345 | *) ac_try_echo=$ac_try;; |
| 33346 | esac |
| 33347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33348 | (eval "$ac_try") 2>&5 |
| 33349 | ac_status=$? |
| 33350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33351 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33352 | ac_cv_func_isinf_in_cmath=yes |
| 33353 | else |
| 33354 | echo "$as_me: failed program was:" >&5 |
| 33355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33357 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33358 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33359 | |
| 33360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33361 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33362 | ac_cpp='$CPP $CPPFLAGS' |
| 33363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33366 | |
| 33367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33368 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 33369 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33370 | |
| 33371 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33372 | |
| 33373 | cat >>confdefs.h <<\_ACEOF |
| 33374 | #define HAVE_ISINF_IN_CMATH 1 |
| 33375 | _ACEOF |
| 33376 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33377 | fi |
| 33378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33379 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 33380 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33381 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 33382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33383 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33384 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33385 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33386 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33387 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33388 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33389 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33390 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33391 | /* confdefs.h. */ |
| 33392 | _ACEOF |
| 33393 | cat confdefs.h >>conftest.$ac_ext |
| 33394 | cat >>conftest.$ac_ext <<_ACEOF |
| 33395 | /* end confdefs.h. */ |
| 33396 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33397 | int |
| 33398 | main () |
| 33399 | { |
| 33400 | float f; std::isinf(f)} |
| 33401 | ; |
| 33402 | return 0; |
| 33403 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33404 | _ACEOF |
| 33405 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33406 | if { (ac_try="$ac_compile" |
| 33407 | case "(($ac_try" in |
| 33408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33409 | *) ac_try_echo=$ac_try;; |
| 33410 | esac |
| 33411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33412 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33413 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33415 | rm -f conftest.er1 |
| 33416 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33418 | (exit $ac_status); } && |
| 33419 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33420 | { (case "(($ac_try" in |
| 33421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33422 | *) ac_try_echo=$ac_try;; |
| 33423 | esac |
| 33424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33425 | (eval "$ac_try") 2>&5 |
| 33426 | ac_status=$? |
| 33427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33428 | (exit $ac_status); }; } && |
| 33429 | { ac_try='test -s conftest.$ac_objext' |
| 33430 | { (case "(($ac_try" in |
| 33431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33432 | *) ac_try_echo=$ac_try;; |
| 33433 | esac |
| 33434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33435 | (eval "$ac_try") 2>&5 |
| 33436 | ac_status=$? |
| 33437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33438 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33439 | ac_cv_func_std_isinf_in_cmath=yes |
| 33440 | else |
| 33441 | echo "$as_me: failed program was:" >&5 |
| 33442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33444 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33446 | |
| 33447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33448 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33449 | ac_cpp='$CPP $CPPFLAGS' |
| 33450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33453 | |
| 33454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33455 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 33456 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33457 | |
| 33458 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33459 | |
| 33460 | cat >>confdefs.h <<\_ACEOF |
| 33461 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 33462 | _ACEOF |
| 33463 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33464 | fi |
| 33465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33466 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 33467 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33468 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 33469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33470 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33471 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33472 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33473 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33474 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33475 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33476 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33477 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33478 | /* confdefs.h. */ |
| 33479 | _ACEOF |
| 33480 | cat confdefs.h >>conftest.$ac_ext |
| 33481 | cat >>conftest.$ac_ext <<_ACEOF |
| 33482 | /* end confdefs.h. */ |
| 33483 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33484 | int |
| 33485 | main () |
| 33486 | { |
| 33487 | float f; finite(f); |
| 33488 | ; |
| 33489 | return 0; |
| 33490 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33491 | _ACEOF |
| 33492 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33493 | if { (ac_try="$ac_compile" |
| 33494 | case "(($ac_try" in |
| 33495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33496 | *) ac_try_echo=$ac_try;; |
| 33497 | esac |
| 33498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33499 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33500 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33502 | rm -f conftest.er1 |
| 33503 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33505 | (exit $ac_status); } && |
| 33506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33507 | { (case "(($ac_try" in |
| 33508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33509 | *) ac_try_echo=$ac_try;; |
| 33510 | esac |
| 33511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33512 | (eval "$ac_try") 2>&5 |
| 33513 | ac_status=$? |
| 33514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33515 | (exit $ac_status); }; } && |
| 33516 | { ac_try='test -s conftest.$ac_objext' |
| 33517 | { (case "(($ac_try" in |
| 33518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33519 | *) ac_try_echo=$ac_try;; |
| 33520 | esac |
| 33521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33522 | (eval "$ac_try") 2>&5 |
| 33523 | ac_status=$? |
| 33524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33525 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33526 | ac_cv_func_finite_in_ieeefp_h=yes |
| 33527 | else |
| 33528 | echo "$as_me: failed program was:" >&5 |
| 33529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33531 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33532 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33533 | |
| 33534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33535 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33536 | ac_cpp='$CPP $CPPFLAGS' |
| 33537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33540 | |
| 33541 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33542 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 33543 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33544 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33545 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33546 | |
| 33547 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 33548 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 33549 | _ACEOF |
| 33550 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33551 | fi |
| 33552 | |
| 33553 | |
| 33554 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33555 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33556 | |
| 33557 | |
| 33558 | for ac_header in stdlib.h unistd.h |
| 33559 | do |
| 33560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33561 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 33562 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33564 | 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] | 33565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33567 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33568 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33569 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33570 | else |
| 33571 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33572 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 33573 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33574 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33575 | /* confdefs.h. */ |
| 33576 | _ACEOF |
| 33577 | cat confdefs.h >>conftest.$ac_ext |
| 33578 | cat >>conftest.$ac_ext <<_ACEOF |
| 33579 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33580 | $ac_includes_default |
| 33581 | #include <$ac_header> |
| 33582 | _ACEOF |
| 33583 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33584 | if { (ac_try="$ac_compile" |
| 33585 | case "(($ac_try" in |
| 33586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33587 | *) ac_try_echo=$ac_try;; |
| 33588 | esac |
| 33589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33590 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33591 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33593 | rm -f conftest.er1 |
| 33594 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33596 | (exit $ac_status); } && |
| 33597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33598 | { (case "(($ac_try" in |
| 33599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33600 | *) ac_try_echo=$ac_try;; |
| 33601 | esac |
| 33602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33603 | (eval "$ac_try") 2>&5 |
| 33604 | ac_status=$? |
| 33605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33606 | (exit $ac_status); }; } && |
| 33607 | { ac_try='test -s conftest.$ac_objext' |
| 33608 | { (case "(($ac_try" in |
| 33609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33610 | *) ac_try_echo=$ac_try;; |
| 33611 | esac |
| 33612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33613 | (eval "$ac_try") 2>&5 |
| 33614 | ac_status=$? |
| 33615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33616 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33617 | ac_header_compiler=yes |
| 33618 | else |
| 33619 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33621 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33622 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33623 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33624 | |
| 33625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33626 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 33627 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33628 | |
| 33629 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33630 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 33631 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33632 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33633 | /* confdefs.h. */ |
| 33634 | _ACEOF |
| 33635 | cat confdefs.h >>conftest.$ac_ext |
| 33636 | cat >>conftest.$ac_ext <<_ACEOF |
| 33637 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33638 | #include <$ac_header> |
| 33639 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33640 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33641 | case "(($ac_try" in |
| 33642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33643 | *) ac_try_echo=$ac_try;; |
| 33644 | esac |
| 33645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33647 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33648 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33649 | rm -f conftest.er1 |
| 33650 | cat conftest.err >&5 |
| 33651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33652 | (exit $ac_status); } >/dev/null; then |
| 33653 | if test -s conftest.err; then |
| 33654 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 33655 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 33656 | else |
| 33657 | ac_cpp_err= |
| 33658 | fi |
| 33659 | else |
| 33660 | ac_cpp_err=yes |
| 33661 | fi |
| 33662 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33663 | ac_header_preproc=yes |
| 33664 | else |
| 33665 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33667 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33668 | ac_header_preproc=no |
| 33669 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33671 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33672 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 33673 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33674 | |
| 33675 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 33677 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33678 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 33679 | 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] | 33680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 33681 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 33682 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33683 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33684 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 33685 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 33686 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33687 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 33688 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 33689 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 33690 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 33691 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 33692 | 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] | 33693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 33694 | 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] | 33695 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 33696 | 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] | 33697 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33698 | ## ----------------------------------- ## |
| 33699 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 33700 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33701 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33702 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33703 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33704 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33705 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 33706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 33707 | 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] | 33708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33709 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33710 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33711 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 33713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33714 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33715 | |
| 33716 | fi |
| 33717 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 33718 | cat >>confdefs.h <<_ACEOF |
| 33719 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 33720 | _ACEOF |
| 33721 | |
| 33722 | fi |
| 33723 | |
| 33724 | done |
| 33725 | |
| 33726 | |
| 33727 | for ac_func in getpagesize |
| 33728 | do |
| 33729 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33730 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33731 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33732 | 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] | 33733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33734 | else |
| 33735 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33736 | /* confdefs.h. */ |
| 33737 | _ACEOF |
| 33738 | cat confdefs.h >>conftest.$ac_ext |
| 33739 | cat >>conftest.$ac_ext <<_ACEOF |
| 33740 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33741 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33743 | #define $ac_func innocuous_$ac_func |
| 33744 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33745 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33746 | which can conflict with char $ac_func (); below. |
| 33747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33748 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33749 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33750 | #ifdef __STDC__ |
| 33751 | # include <limits.h> |
| 33752 | #else |
| 33753 | # include <assert.h> |
| 33754 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33755 | |
| 33756 | #undef $ac_func |
| 33757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33758 | /* Override any GCC internal prototype to avoid an error. |
| 33759 | Use char because int might match the return type of a GCC |
| 33760 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33761 | #ifdef __cplusplus |
| 33762 | extern "C" |
| 33763 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33764 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33765 | /* The GNU C library defines this for functions which it implements |
| 33766 | to always fail with ENOSYS. Some functions are actually named |
| 33767 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33768 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33769 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33770 | #endif |
| 33771 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33772 | int |
| 33773 | main () |
| 33774 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33775 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33776 | ; |
| 33777 | return 0; |
| 33778 | } |
| 33779 | _ACEOF |
| 33780 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33781 | if { (ac_try="$ac_link" |
| 33782 | case "(($ac_try" in |
| 33783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33784 | *) ac_try_echo=$ac_try;; |
| 33785 | esac |
| 33786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33787 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33788 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33790 | rm -f conftest.er1 |
| 33791 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33793 | (exit $ac_status); } && |
| 33794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33795 | { (case "(($ac_try" in |
| 33796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33797 | *) ac_try_echo=$ac_try;; |
| 33798 | esac |
| 33799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33800 | (eval "$ac_try") 2>&5 |
| 33801 | ac_status=$? |
| 33802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33803 | (exit $ac_status); }; } && |
| 33804 | { ac_try='test -s conftest$ac_exeext' |
| 33805 | { (case "(($ac_try" in |
| 33806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33807 | *) ac_try_echo=$ac_try;; |
| 33808 | esac |
| 33809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33810 | (eval "$ac_try") 2>&5 |
| 33811 | ac_status=$? |
| 33812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33813 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33814 | eval "$as_ac_var=yes" |
| 33815 | else |
| 33816 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33819 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33820 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33821 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33822 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33823 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33825 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33826 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33827 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33828 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33829 | cat >>confdefs.h <<_ACEOF |
| 33830 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33831 | _ACEOF |
| 33832 | |
| 33833 | fi |
| 33834 | done |
| 33835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33836 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33837 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33838 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33840 | else |
| 33841 | if test "$cross_compiling" = yes; then |
| 33842 | ac_cv_func_mmap_fixed_mapped=no |
| 33843 | else |
| 33844 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33845 | /* confdefs.h. */ |
| 33846 | _ACEOF |
| 33847 | cat confdefs.h >>conftest.$ac_ext |
| 33848 | cat >>conftest.$ac_ext <<_ACEOF |
| 33849 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33850 | $ac_includes_default |
| 33851 | /* malloc might have been renamed as rpl_malloc. */ |
| 33852 | #undef malloc |
| 33853 | |
| 33854 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33855 | Here is a matrix of mmap possibilities: |
| 33856 | mmap private not fixed |
| 33857 | mmap private fixed at somewhere currently unmapped |
| 33858 | mmap private fixed at somewhere already mapped |
| 33859 | mmap shared not fixed |
| 33860 | mmap shared fixed at somewhere currently unmapped |
| 33861 | mmap shared fixed at somewhere already mapped |
| 33862 | For private mappings, we should verify that changes cannot be read() |
| 33863 | back from the file, nor mmap's back from the file at a different |
| 33864 | address. (There have been systems where private was not correctly |
| 33865 | implemented like the infamous i386 svr4.0, and systems where the |
| 33866 | VM page cache was not coherent with the file system buffer cache |
| 33867 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33868 | For shared mappings, we should conversely verify that changes get |
| 33869 | propagated back to all the places they're supposed to be. |
| 33870 | |
| 33871 | Grep wants private fixed already mapped. |
| 33872 | The main things grep needs to know about mmap are: |
| 33873 | * does it exist and is it safe to write into the mmap'd area |
| 33874 | * how to use it (BSD variants) */ |
| 33875 | |
| 33876 | #include <fcntl.h> |
| 33877 | #include <sys/mman.h> |
| 33878 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33879 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33880 | char *malloc (); |
| 33881 | #endif |
| 33882 | |
| 33883 | /* This mess was copied from the GNU getpagesize.h. */ |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33884 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33885 | /* Assume that all systems that can run configure have sys/param.h. */ |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33886 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33887 | # define HAVE_SYS_PARAM_H 1 |
| 33888 | # endif |
| 33889 | |
| 33890 | # ifdef _SC_PAGESIZE |
| 33891 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33892 | # else /* no _SC_PAGESIZE */ |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 33893 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33894 | # include <sys/param.h> |
| 33895 | # ifdef EXEC_PAGESIZE |
| 33896 | # define getpagesize() EXEC_PAGESIZE |
| 33897 | # else /* no EXEC_PAGESIZE */ |
| 33898 | # ifdef NBPG |
| 33899 | # define getpagesize() NBPG * CLSIZE |
| 33900 | # ifndef CLSIZE |
| 33901 | # define CLSIZE 1 |
| 33902 | # endif /* no CLSIZE */ |
| 33903 | # else /* no NBPG */ |
| 33904 | # ifdef NBPC |
| 33905 | # define getpagesize() NBPC |
| 33906 | # else /* no NBPC */ |
| 33907 | # ifdef PAGESIZE |
| 33908 | # define getpagesize() PAGESIZE |
| 33909 | # endif /* PAGESIZE */ |
| 33910 | # endif /* no NBPC */ |
| 33911 | # endif /* no NBPG */ |
| 33912 | # endif /* no EXEC_PAGESIZE */ |
| 33913 | # else /* no HAVE_SYS_PARAM_H */ |
| 33914 | # define getpagesize() 8192 /* punt totally */ |
| 33915 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33916 | # endif /* no _SC_PAGESIZE */ |
| 33917 | |
| 33918 | #endif /* no HAVE_GETPAGESIZE */ |
| 33919 | |
| 33920 | int |
| 33921 | main () |
| 33922 | { |
| 33923 | char *data, *data2, *data3; |
| 33924 | int i, pagesize; |
| 33925 | int fd; |
| 33926 | |
| 33927 | pagesize = getpagesize (); |
| 33928 | |
| 33929 | /* First, make a file with some known garbage in it. */ |
| 33930 | data = (char *) malloc (pagesize); |
| 33931 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33932 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33933 | for (i = 0; i < pagesize; ++i) |
| 33934 | *(data + i) = rand (); |
| 33935 | umask (0); |
| 33936 | fd = creat ("conftest.mmap", 0600); |
| 33937 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33938 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33939 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33940 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33941 | close (fd); |
| 33942 | |
| 33943 | /* Next, try to mmap the file at a fixed address which already has |
| 33944 | something else allocated at it. If we can, also make sure that |
| 33945 | we see the same garbage. */ |
| 33946 | fd = open ("conftest.mmap", O_RDWR); |
| 33947 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33948 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33949 | data2 = (char *) malloc (2 * pagesize); |
| 33950 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33951 | return 1; |
| 33952 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33953 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33954 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33955 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33956 | for (i = 0; i < pagesize; ++i) |
| 33957 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33958 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33959 | |
| 33960 | /* Finally, make sure that changes to the mapped area do not |
| 33961 | percolate back to the file as seen by read(). (This is a bug on |
| 33962 | some variants of i386 svr4.0.) */ |
| 33963 | for (i = 0; i < pagesize; ++i) |
| 33964 | *(data2 + i) = *(data2 + i) + 1; |
| 33965 | data3 = (char *) malloc (pagesize); |
| 33966 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33967 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33968 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33969 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33970 | for (i = 0; i < pagesize; ++i) |
| 33971 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33972 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33973 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33974 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33975 | } |
| 33976 | _ACEOF |
| 33977 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33978 | if { (ac_try="$ac_link" |
| 33979 | case "(($ac_try" in |
| 33980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33981 | *) ac_try_echo=$ac_try;; |
| 33982 | esac |
| 33983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33984 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33985 | ac_status=$? |
| 33986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33988 | { (case "(($ac_try" in |
| 33989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33990 | *) ac_try_echo=$ac_try;; |
| 33991 | esac |
| 33992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33993 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33994 | ac_status=$? |
| 33995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33996 | (exit $ac_status); }; }; then |
| 33997 | ac_cv_func_mmap_fixed_mapped=yes |
| 33998 | else |
| 33999 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34000 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34002 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34003 | ( exit $ac_status ) |
| 34004 | ac_cv_func_mmap_fixed_mapped=no |
| 34005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34006 | 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] | 34007 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34008 | |
| 34009 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34011 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 34012 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34013 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 34014 | |
| 34015 | cat >>confdefs.h <<\_ACEOF |
| 34016 | #define HAVE_MMAP 1 |
| 34017 | _ACEOF |
| 34018 | |
| 34019 | fi |
| 34020 | rm -f conftest.mmap |
| 34021 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34022 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34023 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34024 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 34025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34026 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34027 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34028 | ac_cpp='$CPP $CPPFLAGS' |
| 34029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34032 | |
| 34033 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34034 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34035 | else |
| 34036 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34037 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34038 | /* confdefs.h. */ |
| 34039 | _ACEOF |
| 34040 | cat confdefs.h >>conftest.$ac_ext |
| 34041 | cat >>conftest.$ac_ext <<_ACEOF |
| 34042 | /* end confdefs.h. */ |
| 34043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34044 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34045 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34046 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34047 | |
| 34048 | int |
| 34049 | main () |
| 34050 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34051 | |
| 34052 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34053 | fd = creat ("foo",0777); |
| 34054 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 34055 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34056 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34057 | ; |
| 34058 | return 0; |
| 34059 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34060 | _ACEOF |
| 34061 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34062 | if { (ac_try="$ac_link" |
| 34063 | case "(($ac_try" in |
| 34064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34065 | *) ac_try_echo=$ac_try;; |
| 34066 | esac |
| 34067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34068 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34069 | ac_status=$? |
| 34070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34072 | { (case "(($ac_try" in |
| 34073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34074 | *) ac_try_echo=$ac_try;; |
| 34075 | esac |
| 34076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34077 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34078 | ac_status=$? |
| 34079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34080 | (exit $ac_status); }; }; then |
| 34081 | ac_cv_func_mmap_file=yes |
| 34082 | else |
| 34083 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34084 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34087 | ( exit $ac_status ) |
| 34088 | ac_cv_func_mmap_file=no |
| 34089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34090 | 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] | 34091 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34092 | |
| 34093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34094 | ac_ext=c |
| 34095 | ac_cpp='$CPP $CPPFLAGS' |
| 34096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34099 | |
| 34100 | |
| 34101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34102 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 34103 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34104 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34105 | |
| 34106 | cat >>confdefs.h <<\_ACEOF |
| 34107 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34108 | _ACEOF |
| 34109 | |
| 34110 | MMAP_FILE=yes |
| 34111 | |
| 34112 | fi |
| 34113 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34114 | { 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] | 34115 | 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] | 34116 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 34117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34118 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34119 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34120 | ac_cv_need_dev_zero_for_mmap=yes |
| 34121 | else |
| 34122 | ac_cv_need_dev_zero_for_mmap=no |
| 34123 | fi |
| 34124 | |
| 34125 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34126 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 34127 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34128 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 34129 | |
| 34130 | cat >>confdefs.h <<\_ACEOF |
| 34131 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 34132 | _ACEOF |
| 34133 | |
| 34134 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34135 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34136 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 34137 | then |
| 34138 | { 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] | 34139 | 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] | 34140 | fi |
| 34141 | if test "$ac_cv_func_mmap_file" = "no" |
| 34142 | then |
| 34143 | { 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] | 34144 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34145 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34146 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34147 | |
| 34148 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34149 | |
| 34150 | for ac_func in __dso_handle |
| 34151 | do |
| 34152 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34153 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34154 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34155 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34157 | else |
| 34158 | cat >conftest.$ac_ext <<_ACEOF |
| 34159 | /* confdefs.h. */ |
| 34160 | _ACEOF |
| 34161 | cat confdefs.h >>conftest.$ac_ext |
| 34162 | cat >>conftest.$ac_ext <<_ACEOF |
| 34163 | /* end confdefs.h. */ |
| 34164 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34166 | #define $ac_func innocuous_$ac_func |
| 34167 | |
| 34168 | /* System header to define __stub macros and hopefully few prototypes, |
| 34169 | which can conflict with char $ac_func (); below. |
| 34170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34171 | <limits.h> exists even on freestanding compilers. */ |
| 34172 | |
| 34173 | #ifdef __STDC__ |
| 34174 | # include <limits.h> |
| 34175 | #else |
| 34176 | # include <assert.h> |
| 34177 | #endif |
| 34178 | |
| 34179 | #undef $ac_func |
| 34180 | |
| 34181 | /* Override any GCC internal prototype to avoid an error. |
| 34182 | Use char because int might match the return type of a GCC |
| 34183 | builtin and then its argument prototype would still apply. */ |
| 34184 | #ifdef __cplusplus |
| 34185 | extern "C" |
| 34186 | #endif |
| 34187 | char $ac_func (); |
| 34188 | /* The GNU C library defines this for functions which it implements |
| 34189 | to always fail with ENOSYS. Some functions are actually named |
| 34190 | something starting with __ and the normal name is an alias. */ |
| 34191 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34192 | choke me |
| 34193 | #endif |
| 34194 | |
| 34195 | int |
| 34196 | main () |
| 34197 | { |
| 34198 | return $ac_func (); |
| 34199 | ; |
| 34200 | return 0; |
| 34201 | } |
| 34202 | _ACEOF |
| 34203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34204 | if { (ac_try="$ac_link" |
| 34205 | case "(($ac_try" in |
| 34206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34207 | *) ac_try_echo=$ac_try;; |
| 34208 | esac |
| 34209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34210 | (eval "$ac_link") 2>conftest.er1 |
| 34211 | ac_status=$? |
| 34212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34213 | rm -f conftest.er1 |
| 34214 | cat conftest.err >&5 |
| 34215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34216 | (exit $ac_status); } && |
| 34217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34218 | { (case "(($ac_try" in |
| 34219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34220 | *) ac_try_echo=$ac_try;; |
| 34221 | esac |
| 34222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34223 | (eval "$ac_try") 2>&5 |
| 34224 | ac_status=$? |
| 34225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34226 | (exit $ac_status); }; } && |
| 34227 | { ac_try='test -s conftest$ac_exeext' |
| 34228 | { (case "(($ac_try" in |
| 34229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34230 | *) ac_try_echo=$ac_try;; |
| 34231 | esac |
| 34232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34233 | (eval "$ac_try") 2>&5 |
| 34234 | ac_status=$? |
| 34235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34236 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34237 | eval "$as_ac_var=yes" |
| 34238 | else |
| 34239 | echo "$as_me: failed program was:" >&5 |
| 34240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34241 | |
| 34242 | eval "$as_ac_var=no" |
| 34243 | fi |
| 34244 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34245 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34246 | conftest$ac_exeext conftest.$ac_ext |
| 34247 | fi |
| 34248 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34249 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34250 | echo "${ECHO_T}$ac_res" >&6; } |
| 34251 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34252 | cat >>confdefs.h <<_ACEOF |
| 34253 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34254 | _ACEOF |
| 34255 | |
| 34256 | fi |
| 34257 | done |
| 34258 | |
| 34259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34260 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34261 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34262 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34264 | else |
| 34265 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34266 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34267 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 34268 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 34269 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34270 | if test $? -eq 0 ; then |
| 34271 | llvm_cv_llvmgcc_sanity="yes" |
| 34272 | fi |
| 34273 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34274 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34275 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34276 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 34277 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34278 | |
| 34279 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34280 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 34281 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34282 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34283 | LLVMCC1=$llvmcc1path |
| 34284 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34285 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34286 | LLVMCC1PLUS=$llvmcc1pluspath |
| 34287 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34288 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 34289 | LLVMGCCDIR=$llvmgccdir |
| 34290 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34291 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 34292 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 34293 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 34294 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 34295 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 34296 | LLVMGCC_VERSION=$llvmgccversion |
| 34297 | |
| 34298 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 34299 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 34300 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34301 | LLVMGCC_LANGS=$llvmgcclangs |
| 34302 | |
| 34303 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 34304 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34305 | fi |
| 34306 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34307 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 34308 | |
| 34309 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34310 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34311 | # information into substitutions that will end up in Makefile.config.in |
| 34312 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 34313 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 34314 | prefix="/usr/local" |
| 34315 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34316 | eval LLVM_PREFIX="${prefix}"; |
| 34317 | eval LLVM_BINDIR="${prefix}/bin"; |
| 34318 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34319 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 34320 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 34321 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34322 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 34323 | eval LLVM_INFODIR="${prefix}/info"; |
| 34324 | eval LLVM_MANDIR="${prefix}/man"; |
| 34325 | LLVM_CONFIGTIME=`date` |
| 34326 | |
| 34327 | |
| 34328 | |
| 34329 | |
| 34330 | |
| 34331 | |
| 34332 | |
| 34333 | |
| 34334 | |
| 34335 | |
| 34336 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34337 | # Place the various directores into the config.h file as #defines so that we |
| 34338 | # can know about the installation paths within LLVM. |
| 34339 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34340 | cat >>confdefs.h <<_ACEOF |
| 34341 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 34342 | _ACEOF |
| 34343 | |
| 34344 | |
| 34345 | cat >>confdefs.h <<_ACEOF |
| 34346 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 34347 | _ACEOF |
| 34348 | |
| 34349 | |
| 34350 | cat >>confdefs.h <<_ACEOF |
| 34351 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 34352 | _ACEOF |
| 34353 | |
| 34354 | |
| 34355 | cat >>confdefs.h <<_ACEOF |
| 34356 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 34357 | _ACEOF |
| 34358 | |
| 34359 | |
| 34360 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 34361 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34362 | _ACEOF |
| 34363 | |
| 34364 | |
| 34365 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 34366 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34367 | _ACEOF |
| 34368 | |
| 34369 | |
| 34370 | cat >>confdefs.h <<_ACEOF |
| 34371 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 34372 | _ACEOF |
| 34373 | |
| 34374 | |
| 34375 | cat >>confdefs.h <<_ACEOF |
| 34376 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 34377 | _ACEOF |
| 34378 | |
| 34379 | |
| 34380 | cat >>confdefs.h <<_ACEOF |
| 34381 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 34382 | _ACEOF |
| 34383 | |
| 34384 | |
| 34385 | cat >>confdefs.h <<_ACEOF |
| 34386 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 34387 | _ACEOF |
| 34388 | |
| 34389 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 34390 | cat >>confdefs.h <<_ACEOF |
| 34391 | #define LLVM_HOSTTRIPLE "$host" |
| 34392 | _ACEOF |
| 34393 | |
| 34394 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 34395 | # Determine which bindings to build. |
| 34396 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 34397 | BINDINGS_TO_BUILD="" |
| 34398 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 34399 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 34400 | fi |
| 34401 | fi |
| 34402 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 34403 | |
| 34404 | |
| 34405 | # This isn't really configurey, but it avoids having to repeat the list in |
| 34406 | # other files. |
| 34407 | ALL_BINDINGS=ocaml |
| 34408 | |
| 34409 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 34410 | # Do any work necessary to ensure that bindings have what they need. |
| 34411 | binding_prereqs_failed=0 |
| 34412 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 34413 | case "$a_binding" in |
| 34414 | ocaml) |
| 34415 | if test "x$OCAMLC" = x ; then |
| 34416 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 34417 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 34418 | binding_prereqs_failed=1 |
| 34419 | fi |
| 34420 | if test "x$OCAMLDEP" = x ; then |
| 34421 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 34422 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 34423 | binding_prereqs_failed=1 |
| 34424 | fi |
| 34425 | if test "x$OCAMLOPT" = x ; then |
| 34426 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 34427 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 34428 | fi |
| 34429 | if test "x$with_ocaml_libdir" != xauto ; then |
| 34430 | OCAML_LIBDIR=$with_ocaml_libdir |
| 34431 | |
| 34432 | else |
| 34433 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 34434 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 34435 | then |
| 34436 | # ocaml stdlib is beneath our prefix; use stdlib |
| 34437 | OCAML_LIBDIR=$ocaml_stdlib |
| 34438 | |
| 34439 | else |
| 34440 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 34441 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 34442 | |
| 34443 | fi |
| 34444 | fi |
| 34445 | ;; |
| 34446 | esac |
| 34447 | done |
| 34448 | if test "$binding_prereqs_failed" = 1 ; then |
| 34449 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 34450 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 34451 | { (exit 1); exit 1; }; } |
| 34452 | fi |
| 34453 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 34454 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 34455 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 34456 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 34457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34458 | else |
| 34459 | ac_ext=cpp |
| 34460 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34461 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34462 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34463 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34464 | |
| 34465 | oldcxxflags="$CXXFLAGS" |
| 34466 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 34467 | cat >conftest.$ac_ext <<_ACEOF |
| 34468 | /* confdefs.h. */ |
| 34469 | _ACEOF |
| 34470 | cat confdefs.h >>conftest.$ac_ext |
| 34471 | cat >>conftest.$ac_ext <<_ACEOF |
| 34472 | /* end confdefs.h. */ |
| 34473 | |
| 34474 | int |
| 34475 | main () |
| 34476 | { |
| 34477 | |
| 34478 | ; |
| 34479 | return 0; |
| 34480 | } |
| 34481 | _ACEOF |
| 34482 | rm -f conftest.$ac_objext |
| 34483 | if { (ac_try="$ac_compile" |
| 34484 | case "(($ac_try" in |
| 34485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34486 | *) ac_try_echo=$ac_try;; |
| 34487 | esac |
| 34488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34489 | (eval "$ac_compile") 2>conftest.er1 |
| 34490 | ac_status=$? |
| 34491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34492 | rm -f conftest.er1 |
| 34493 | cat conftest.err >&5 |
| 34494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34495 | (exit $ac_status); } && |
| 34496 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34497 | { (case "(($ac_try" in |
| 34498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34499 | *) ac_try_echo=$ac_try;; |
| 34500 | esac |
| 34501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34502 | (eval "$ac_try") 2>&5 |
| 34503 | ac_status=$? |
| 34504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34505 | (exit $ac_status); }; } && |
| 34506 | { ac_try='test -s conftest.$ac_objext' |
| 34507 | { (case "(($ac_try" in |
| 34508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34509 | *) ac_try_echo=$ac_try;; |
| 34510 | esac |
| 34511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34512 | (eval "$ac_try") 2>&5 |
| 34513 | ac_status=$? |
| 34514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34515 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 34516 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 34517 | else |
| 34518 | echo "$as_me: failed program was:" >&5 |
| 34519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34520 | |
| 34521 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 34522 | fi |
| 34523 | |
| 34524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34525 | CXXFLAGS="$oldcxxflags" |
| 34526 | ac_ext=c |
| 34527 | ac_cpp='$CPP $CPPFLAGS' |
| 34528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34531 | |
| 34532 | |
| 34533 | fi |
| 34534 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 34535 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 34536 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 34537 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 34538 | |
| 34539 | else |
| 34540 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 34541 | |
| 34542 | fi |
| 34543 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 34544 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34546 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34548 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34549 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34550 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34551 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34552 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34553 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 34554 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34555 | |
| 34556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34557 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34558 | |
| 34559 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34560 | ac_config_files="$ac_config_files llvm.spec" |
| 34561 | |
| 34562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34563 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34564 | |
| 34565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34566 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 34567 | |
| 34568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34569 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34571 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34572 | |
| 34573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34574 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34575 | |
| 34576 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34577 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34578 | |
| 34579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34580 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34581 | |
| 34582 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34583 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 34584 | |
| 34585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34586 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34587 | |
| 34588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34589 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34590 | |
| 34591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34592 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34593 | |
| 34594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34595 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34596 | |
| 34597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34598 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34599 | |
| 34600 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 34601 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 34602 | |
| 34603 | |
| 34604 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 34605 | |
| 34606 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34607 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34608 | cat >confcache <<\_ACEOF |
| 34609 | # This file is a shell script that caches the results of configure |
| 34610 | # tests run on this system so they can be shared between configure |
| 34611 | # scripts and configure runs, see configure's option --config-cache. |
| 34612 | # It is not useful on other systems. If it contains results you don't |
| 34613 | # want to keep, you may remove or edit it. |
| 34614 | # |
| 34615 | # config.status only pays attention to the cache file if you give it |
| 34616 | # the --recheck option to rerun configure. |
| 34617 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34618 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34619 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34620 | # following values. |
| 34621 | |
| 34622 | _ACEOF |
| 34623 | |
| 34624 | # The following way of writing the cache mishandles newlines in values, |
| 34625 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34626 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34627 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 34628 | # 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] | 34629 | ( |
| 34630 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34631 | eval ac_val=\$$ac_var |
| 34632 | case $ac_val in #( |
| 34633 | *${as_nl}*) |
| 34634 | case $ac_var in #( |
| 34635 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 34636 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 34637 | esac |
| 34638 | case $ac_var in #( |
| 34639 | _ | IFS | as_nl) ;; #( |
| 34640 | *) $as_unset $ac_var ;; |
| 34641 | esac ;; |
| 34642 | esac |
| 34643 | done |
| 34644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34645 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34646 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34647 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34648 | # `set' does not quote correctly, so add quotes (double-quote |
| 34649 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 34650 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34651 | "s/'/'\\\\''/g; |
| 34652 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34653 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34654 | *) |
| 34655 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34656 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34657 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34658 | esac | |
| 34659 | sort |
| 34660 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34661 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34662 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34663 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34664 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34665 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 34666 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34667 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34668 | :end' >>confcache |
| 34669 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34670 | if test -w "$cache_file"; then |
| 34671 | test "x$cache_file" != "x/dev/null" && |
| 34672 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 34673 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34674 | cat confcache >$cache_file |
| 34675 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34676 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 34677 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34678 | fi |
| 34679 | fi |
| 34680 | rm -f confcache |
| 34681 | |
| 34682 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34683 | # Let make expand exec_prefix. |
| 34684 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34686 | DEFS=-DHAVE_CONFIG_H |
| 34687 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34688 | ac_libobjs= |
| 34689 | ac_ltlibobjs= |
| 34690 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34691 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34692 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34693 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 34694 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34695 | # will be set to the directory where LIBOBJS objects are built. |
| 34696 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34697 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34698 | done |
| 34699 | LIBOBJS=$ac_libobjs |
| 34700 | |
| 34701 | LTLIBOBJS=$ac_ltlibobjs |
| 34702 | |
| 34703 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34704 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 34705 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34706 | Usually this means the macro was only invoked conditionally." >&5 |
| 34707 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 34708 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34709 | { (exit 1); exit 1; }; } |
| 34710 | fi |
| 34711 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 34712 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34713 | Usually this means the macro was only invoked conditionally." >&5 |
| 34714 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 34715 | Usually this means the macro was only invoked conditionally." >&2;} |
| 34716 | { (exit 1); exit 1; }; } |
| 34717 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34718 | |
| 34719 | : ${CONFIG_STATUS=./config.status} |
| 34720 | ac_clean_files_save=$ac_clean_files |
| 34721 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 34722 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 34723 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 34724 | cat >$CONFIG_STATUS <<_ACEOF |
| 34725 | #! $SHELL |
| 34726 | # Generated by $as_me. |
| 34727 | # Run this file to recreate the current configuration. |
| 34728 | # Compiler output produced by configure, useful for debugging |
| 34729 | # configure, is in config.log if it exists. |
| 34730 | |
| 34731 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34732 | ac_cs_recheck=false |
| 34733 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34734 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 34735 | _ACEOF |
| 34736 | |
| 34737 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34738 | ## --------------------- ## |
| 34739 | ## M4sh Initialization. ## |
| 34740 | ## --------------------- ## |
| 34741 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34742 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34743 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 34744 | emulate sh |
| 34745 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34746 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 34747 | # is contrary to our usage. Disable this feature. |
| 34748 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34749 | setopt NO_GLOB_SUBST |
| 34750 | else |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34751 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34752 | fi |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34753 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 34754 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34755 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34757 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34758 | # Avoid depending upon Character Ranges. |
| 34759 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 34760 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34761 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 34762 | as_cr_digits='0123456789' |
| 34763 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 34764 | |
| 34765 | # The user is always right. |
| 34766 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34767 | echo "#! /bin/sh" >conf$$.sh |
| 34768 | echo "exit 0" >>conf$$.sh |
| 34769 | chmod +x conf$$.sh |
| 34770 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34771 | PATH_SEPARATOR=';' |
| 34772 | else |
| 34773 | PATH_SEPARATOR=: |
| 34774 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34775 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34776 | fi |
| 34777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34778 | # Support unset when possible. |
| 34779 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 34780 | as_unset=unset |
| 34781 | else |
| 34782 | as_unset=false |
| 34783 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34785 | |
| 34786 | # IFS |
| 34787 | # We need space, tab and new line, in precisely that order. Quoting is |
| 34788 | # there to prevent editors from complaining about space-tab. |
| 34789 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 34790 | # splitting by setting IFS to empty value.) |
| 34791 | as_nl=' |
| 34792 | ' |
| 34793 | IFS=" "" $as_nl" |
| 34794 | |
| 34795 | # Find who we are. Look in the path if we contain no directory separator. |
| 34796 | case $0 in |
| 34797 | *[\\/]* ) as_myself=$0 ;; |
| 34798 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34799 | for as_dir in $PATH |
| 34800 | do |
| 34801 | IFS=$as_save_IFS |
| 34802 | test -z "$as_dir" && as_dir=. |
| 34803 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 34804 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34805 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34806 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34807 | ;; |
| 34808 | esac |
| 34809 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 34810 | # in which case we are not to be found in the path. |
| 34811 | if test "x$as_myself" = x; then |
| 34812 | as_myself=$0 |
| 34813 | fi |
| 34814 | if test ! -f "$as_myself"; then |
| 34815 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 34816 | { (exit 1); exit 1; } |
| 34817 | fi |
| 34818 | |
| 34819 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34820 | for as_var in ENV MAIL MAILPATH |
| 34821 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34822 | done |
| 34823 | PS1='$ ' |
| 34824 | PS2='> ' |
| 34825 | PS4='+ ' |
| 34826 | |
| 34827 | # NLS nuisances. |
| 34828 | for as_var in \ |
| 34829 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 34830 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 34831 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34832 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34833 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 34834 | eval $as_var=C; export $as_var |
| 34835 | else |
| 34836 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 34837 | fi |
| 34838 | done |
| 34839 | |
| 34840 | # Required to use basename. |
| 34841 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34842 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 34843 | as_expr=expr |
| 34844 | else |
| 34845 | as_expr=false |
| 34846 | fi |
| 34847 | |
| 34848 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 34849 | as_basename=basename |
| 34850 | else |
| 34851 | as_basename=false |
| 34852 | fi |
| 34853 | |
| 34854 | |
| 34855 | # Name of the executable. |
| 34856 | as_me=`$as_basename -- "$0" || |
| 34857 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 34858 | X"$0" : 'X\(//\)$' \| \ |
| 34859 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 34860 | echo X/"$0" | |
| 34861 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 34862 | s//\1/ |
| 34863 | q |
| 34864 | } |
| 34865 | /^X\/\(\/\/\)$/{ |
| 34866 | s//\1/ |
| 34867 | q |
| 34868 | } |
| 34869 | /^X\/\(\/\).*/{ |
| 34870 | s//\1/ |
| 34871 | q |
| 34872 | } |
| 34873 | s/.*/./; q'` |
| 34874 | |
| 34875 | # CDPATH. |
| 34876 | $as_unset CDPATH |
| 34877 | |
| 34878 | |
| 34879 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34880 | as_lineno_1=$LINENO |
| 34881 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34882 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34883 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34884 | |
| 34885 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 34886 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34887 | # line-number line after each line using $LINENO; the second 'sed' |
| 34888 | # does the real work. The second script uses 'N' to pair each |
| 34889 | # line-number line with the line containing $LINENO, and appends |
| 34890 | # trailing '-' during substitution so that $LINENO is not a special |
| 34891 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34892 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34893 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 34894 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 34895 | sed -n ' |
| 34896 | p |
| 34897 | /[$]LINENO/= |
| 34898 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34899 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34900 | s/[$]LINENO.*/&-/ |
| 34901 | t lineno |
| 34902 | b |
| 34903 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34904 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34905 | :loop |
| 34906 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34907 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34908 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34909 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34910 | chmod +x "$as_me.lineno" || |
| 34911 | { 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] | 34912 | { (exit 1); exit 1; }; } |
| 34913 | |
| 34914 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 34915 | # (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] | 34916 | # original and so on. Autoconf is especially sensitive to this). |
| 34917 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34918 | # Exit status is that of the last command. |
| 34919 | exit |
| 34920 | } |
| 34921 | |
| 34922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34923 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 34924 | as_dirname=dirname |
| 34925 | else |
| 34926 | as_dirname=false |
| 34927 | fi |
| 34928 | |
| 34929 | ECHO_C= ECHO_N= ECHO_T= |
| 34930 | case `echo -n x` in |
| 34931 | -n*) |
| 34932 | case `echo 'x\c'` in |
| 34933 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 34934 | *) ECHO_C='\c';; |
| 34935 | esac;; |
| 34936 | *) |
| 34937 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34938 | esac |
| 34939 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34940 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34941 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34942 | as_expr=expr |
| 34943 | else |
| 34944 | as_expr=false |
| 34945 | fi |
| 34946 | |
| 34947 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34948 | if test -d conf$$.dir; then |
| 34949 | rm -f conf$$.dir/conf$$.file |
| 34950 | else |
| 34951 | rm -f conf$$.dir |
| 34952 | mkdir conf$$.dir |
| 34953 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34954 | echo >conf$$.file |
| 34955 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34956 | as_ln_s='ln -s' |
| 34957 | # ... but there are two gotchas: |
| 34958 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 34959 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 34960 | # In both cases, we have to default to `cp -p'. |
| 34961 | 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] | 34962 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34963 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 34964 | as_ln_s=ln |
| 34965 | else |
| 34966 | as_ln_s='cp -p' |
| 34967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34968 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 34969 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34970 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34971 | if mkdir -p . 2>/dev/null; then |
| 34972 | as_mkdir_p=: |
| 34973 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34974 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34975 | as_mkdir_p=false |
| 34976 | fi |
| 34977 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34978 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 34979 | # systems may use methods other than mode bits to determine executability. |
| 34980 | cat >conf$$.file <<_ASEOF |
| 34981 | #! /bin/sh |
| 34982 | exit 0 |
| 34983 | _ASEOF |
| 34984 | chmod +x conf$$.file |
| 34985 | if test -x conf$$.file >/dev/null 2>&1; then |
| 34986 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34987 | else |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34988 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34989 | fi |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 34990 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34991 | |
| 34992 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34993 | 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] | 34994 | |
| 34995 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34996 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34997 | |
| 34998 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34999 | exec 6>&1 |
| 35000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35001 | # 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] | 35002 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35003 | # values after options handling. |
| 35004 | ac_log=" |
Tanya Lattner | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 35005 | This file was extended by llvm $as_me 2.5svn, which was |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 35006 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35007 | |
| 35008 | CONFIG_FILES = $CONFIG_FILES |
| 35009 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35010 | CONFIG_LINKS = $CONFIG_LINKS |
| 35011 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35012 | $ $0 $@ |
| 35013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35014 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35015 | " |
| 35016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35017 | _ACEOF |
| 35018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35019 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35020 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35021 | config_files="$ac_config_files" |
| 35022 | config_headers="$ac_config_headers" |
| 35023 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35025 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35026 | |
| 35027 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35028 | ac_cs_usage="\ |
| 35029 | \`$as_me' instantiates files from templates according to the |
| 35030 | current configuration. |
| 35031 | |
| 35032 | Usage: $0 [OPTIONS] [FILE]... |
| 35033 | |
| 35034 | -h, --help print this help, then exit |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 35035 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35036 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35037 | -d, --debug don't remove temporary files |
| 35038 | --recheck update $as_me by reconfiguring in the same conditions |
| 35039 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35040 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35041 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35042 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35043 | |
| 35044 | Configuration files: |
| 35045 | $config_files |
| 35046 | |
| 35047 | Configuration headers: |
| 35048 | $config_headers |
| 35049 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35050 | Configuration commands: |
| 35051 | $config_commands |
| 35052 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35053 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35055 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35056 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35057 | ac_cs_version="\\ |
Tanya Lattner | d53b4d3 | 2008-10-07 04:35:08 +0000 | [diff] [blame] | 35058 | llvm config.status 2.5svn |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 35059 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35060 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35062 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35063 | This config.status script is free software; the Free Software Foundation |
| 35064 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35065 | |
| 35066 | ac_pwd='$ac_pwd' |
| 35067 | srcdir='$srcdir' |
| 35068 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35069 | _ACEOF |
| 35070 | |
| 35071 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35072 | # If no file are specified by the user, then we need to provide default |
| 35073 | # value. By we need to know if files were specified by the user. |
| 35074 | ac_need_defaults=: |
| 35075 | while test $# != 0 |
| 35076 | do |
| 35077 | case $1 in |
| 35078 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35079 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35080 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35081 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35082 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35083 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35084 | ac_option=$1 |
| 35085 | ac_optarg=$2 |
| 35086 | ac_shift=shift |
| 35087 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35088 | esac |
| 35089 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35090 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35091 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35092 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35093 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35094 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35095 | echo "$ac_cs_version"; exit ;; |
| 35096 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35097 | debug=: ;; |
| 35098 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35099 | $ac_shift |
| 35100 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35101 | ac_need_defaults=false;; |
| 35102 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35103 | $ac_shift |
| 35104 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35105 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35106 | --he | --h) |
| 35107 | # Conflict between --help and --header |
| 35108 | { echo "$as_me: error: ambiguous option: $1 |
| 35109 | Try \`$0 --help' for more information." >&2 |
| 35110 | { (exit 1); exit 1; }; };; |
| 35111 | --help | --hel | -h ) |
| 35112 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35114 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35115 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35116 | |
| 35117 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35118 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 35119 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35120 | { (exit 1); exit 1; }; } ;; |
| 35121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35122 | *) ac_config_targets="$ac_config_targets $1" |
| 35123 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35124 | |
| 35125 | esac |
| 35126 | shift |
| 35127 | done |
| 35128 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35129 | ac_configure_extra_args= |
| 35130 | |
| 35131 | if $ac_cs_silent; then |
| 35132 | exec 6>/dev/null |
| 35133 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35134 | fi |
| 35135 | |
| 35136 | _ACEOF |
| 35137 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35138 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35139 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 35140 | CONFIG_SHELL=$SHELL |
| 35141 | export CONFIG_SHELL |
| 35142 | 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] | 35143 | fi |
| 35144 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35145 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35146 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35147 | exec 5>>config.log |
| 35148 | { |
| 35149 | echo |
| 35150 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35151 | ## Running $as_me. ## |
| 35152 | _ASBOX |
| 35153 | echo "$ac_log" |
| 35154 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35156 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35157 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35158 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35159 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35160 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35161 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35162 | |
| 35163 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35164 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35165 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35166 | |
| 35167 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35168 | for ac_config_target in $ac_config_targets |
| 35169 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35170 | case $ac_config_target in |
| 35171 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 35172 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 35173 | "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;; |
| 35174 | "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;; |
| 35175 | "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35176 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35177 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35178 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 35179 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 35180 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 35181 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 35182 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 35183 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 35184 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35185 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35186 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 35187 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 35188 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 35189 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 35190 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35191 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 35192 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35193 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35194 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 35195 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 35196 | { (exit 1); exit 1; }; };; |
| 35197 | esac |
| 35198 | done |
| 35199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35200 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35201 | # If the user did not use the arguments to specify the items to instantiate, |
| 35202 | # then the envvar interface is used. Set only those that are not. |
| 35203 | # We use the long form for the default assignment because of an extremely |
| 35204 | # bizarre bug on SunOS 4.1.3. |
| 35205 | if $ac_need_defaults; then |
| 35206 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 35207 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35208 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35209 | fi |
| 35210 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35211 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35212 | # 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] | 35213 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35214 | # Hook for its removal unless debugging. |
| 35215 | # Note that there is a small window in which the directory will not be cleaned: |
| 35216 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35217 | $debug || |
| 35218 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35219 | tmp= |
| 35220 | trap 'exit_status=$? |
| 35221 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 35222 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35223 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 35224 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35225 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35226 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35227 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35228 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35229 | test -n "$tmp" && test -d "$tmp" |
| 35230 | } || |
| 35231 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35232 | tmp=./conf$$-$RANDOM |
| 35233 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35234 | } || |
| 35235 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35236 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35237 | { (exit 1); exit 1; } |
| 35238 | } |
| 35239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35240 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35241 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35242 | # |
| 35243 | |
| 35244 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 35245 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35246 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35247 | |
| 35248 | _ACEOF |
| 35249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35250 | |
| 35251 | |
| 35252 | ac_delim='%!_!# ' |
| 35253 | for ac_last_try in false false false false false :; do |
| 35254 | cat >conf$$subs.sed <<_ACEOF |
| 35255 | SHELL!$SHELL$ac_delim |
| 35256 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 35257 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 35258 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 35259 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 35260 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 35261 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 35262 | exec_prefix!$exec_prefix$ac_delim |
| 35263 | prefix!$prefix$ac_delim |
| 35264 | program_transform_name!$program_transform_name$ac_delim |
| 35265 | bindir!$bindir$ac_delim |
| 35266 | sbindir!$sbindir$ac_delim |
| 35267 | libexecdir!$libexecdir$ac_delim |
| 35268 | datarootdir!$datarootdir$ac_delim |
| 35269 | datadir!$datadir$ac_delim |
| 35270 | sysconfdir!$sysconfdir$ac_delim |
| 35271 | sharedstatedir!$sharedstatedir$ac_delim |
| 35272 | localstatedir!$localstatedir$ac_delim |
| 35273 | includedir!$includedir$ac_delim |
| 35274 | oldincludedir!$oldincludedir$ac_delim |
| 35275 | docdir!$docdir$ac_delim |
| 35276 | infodir!$infodir$ac_delim |
| 35277 | htmldir!$htmldir$ac_delim |
| 35278 | dvidir!$dvidir$ac_delim |
| 35279 | pdfdir!$pdfdir$ac_delim |
| 35280 | psdir!$psdir$ac_delim |
| 35281 | libdir!$libdir$ac_delim |
| 35282 | localedir!$localedir$ac_delim |
| 35283 | mandir!$mandir$ac_delim |
| 35284 | DEFS!$DEFS$ac_delim |
| 35285 | ECHO_C!$ECHO_C$ac_delim |
| 35286 | ECHO_N!$ECHO_N$ac_delim |
| 35287 | ECHO_T!$ECHO_T$ac_delim |
| 35288 | LIBS!$LIBS$ac_delim |
| 35289 | build_alias!$build_alias$ac_delim |
| 35290 | host_alias!$host_alias$ac_delim |
| 35291 | target_alias!$target_alias$ac_delim |
| 35292 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 35293 | subdirs!$subdirs$ac_delim |
| 35294 | build!$build$ac_delim |
| 35295 | build_cpu!$build_cpu$ac_delim |
| 35296 | build_vendor!$build_vendor$ac_delim |
| 35297 | build_os!$build_os$ac_delim |
| 35298 | host!$host$ac_delim |
| 35299 | host_cpu!$host_cpu$ac_delim |
| 35300 | host_vendor!$host_vendor$ac_delim |
| 35301 | host_os!$host_os$ac_delim |
| 35302 | target!$target$ac_delim |
| 35303 | target_cpu!$target_cpu$ac_delim |
| 35304 | target_vendor!$target_vendor$ac_delim |
| 35305 | target_os!$target_os$ac_delim |
| 35306 | OS!$OS$ac_delim |
| 35307 | LINKALL!$LINKALL$ac_delim |
| 35308 | NOLINKALL!$NOLINKALL$ac_delim |
| 35309 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 35310 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 35311 | ARCH!$ARCH$ac_delim |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 35312 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35313 | CC!$CC$ac_delim |
| 35314 | CFLAGS!$CFLAGS$ac_delim |
| 35315 | LDFLAGS!$LDFLAGS$ac_delim |
| 35316 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 35317 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 35318 | EXEEXT!$EXEEXT$ac_delim |
| 35319 | OBJEXT!$OBJEXT$ac_delim |
| 35320 | CPP!$CPP$ac_delim |
| 35321 | GREP!$GREP$ac_delim |
| 35322 | EGREP!$EGREP$ac_delim |
| 35323 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 35324 | BUILD_CC!$BUILD_CC$ac_delim |
| 35325 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 35326 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35327 | CVSBUILD!$CVSBUILD$ac_delim |
| 35328 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 35329 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35330 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 35331 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35332 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35333 | JIT!$JIT$ac_delim |
| 35334 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 35335 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 35336 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35337 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35338 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 35339 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35340 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 35341 | CXX!$CXX$ac_delim |
| 35342 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 35343 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 35344 | LEX!$LEX$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 35345 | LEXLIB!$LEXLIB$ac_delim |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 35346 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35347 | FLEX!$FLEX$ac_delim |
| 35348 | YACC!$YACC$ac_delim |
| 35349 | YFLAGS!$YFLAGS$ac_delim |
| 35350 | BISON!$BISON$ac_delim |
| 35351 | NM!$NM$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35352 | _ACEOF |
| 35353 | |
| 35354 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 35355 | break |
| 35356 | elif $ac_last_try; then |
| 35357 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35358 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35359 | { (exit 1); exit 1; }; } |
| 35360 | else |
| 35361 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35362 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35363 | done |
| 35364 | |
| 35365 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35366 | if test -n "$ac_eof"; then |
| 35367 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35368 | ac_eof=`expr $ac_eof + 1` |
| 35369 | fi |
| 35370 | |
| 35371 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35372 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 35373 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 35374 | _ACEOF |
| 35375 | sed ' |
| 35376 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35377 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35378 | :n |
| 35379 | t n |
| 35380 | s/'"$ac_delim"'$/,g/; t |
| 35381 | s/$/\\/; p |
| 35382 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35383 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35384 | rm -f conf$$subs.sed |
| 35385 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35386 | CEOF$ac_eof |
| 35387 | _ACEOF |
| 35388 | |
| 35389 | |
| 35390 | ac_delim='%!_!# ' |
| 35391 | for ac_last_try in false false false false false :; do |
| 35392 | cat >conf$$subs.sed <<_ACEOF |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 35393 | ifGNUmake!$ifGNUmake$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 35394 | LN_S!$LN_S$ac_delim |
| 35395 | CMP!$CMP$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 35396 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35397 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35398 | FIND!$FIND$ac_delim |
| 35399 | MKDIR!$MKDIR$ac_delim |
| 35400 | MV!$MV$ac_delim |
| 35401 | RANLIB!$RANLIB$ac_delim |
| 35402 | RM!$RM$ac_delim |
| 35403 | SED!$SED$ac_delim |
| 35404 | TAR!$TAR$ac_delim |
| 35405 | BINPWD!$BINPWD$ac_delim |
| 35406 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 35407 | DOT!$DOT$ac_delim |
| 35408 | GV!$GV$ac_delim |
| 35409 | DOTTY!$DOTTY$ac_delim |
| 35410 | PERL!$PERL$ac_delim |
| 35411 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 35412 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 35413 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 35414 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 35415 | BZIP2!$BZIP2$ac_delim |
| 35416 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35417 | GROFF!$GROFF$ac_delim |
| 35418 | GZIP!$GZIP$ac_delim |
| 35419 | POD2HTML!$POD2HTML$ac_delim |
| 35420 | POD2MAN!$POD2MAN$ac_delim |
| 35421 | RUNTEST!$RUNTEST$ac_delim |
| 35422 | TCLSH!$TCLSH$ac_delim |
| 35423 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 35424 | OCAMLC!$OCAMLC$ac_delim |
| 35425 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 35426 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 35427 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 35428 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35429 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 35430 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 35431 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 35432 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 35433 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 35434 | ECHO!$ECHO$ac_delim |
| 35435 | AR!$AR$ac_delim |
| 35436 | STRIP!$STRIP$ac_delim |
| 35437 | CXXCPP!$CXXCPP$ac_delim |
| 35438 | F77!$F77$ac_delim |
| 35439 | FFLAGS!$FFLAGS$ac_delim |
| 35440 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 35441 | LIBTOOL!$LIBTOOL$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35442 | LLVMGCC!$LLVMGCC$ac_delim |
| 35443 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 35444 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 35445 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 35446 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35447 | ALLOCA!$ALLOCA$ac_delim |
| 35448 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 35449 | LLVMCC1!$LLVMCC1$ac_delim |
| 35450 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 35451 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35452 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35453 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 35454 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35455 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35456 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 35457 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 35458 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 35459 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 35460 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 35461 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 35462 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 35463 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 35464 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 35465 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 35466 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35467 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 35468 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35469 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35470 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35471 | LIBOBJS!$LIBOBJS$ac_delim |
| 35472 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 35473 | _ACEOF |
| 35474 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 35475 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35476 | break |
| 35477 | elif $ac_last_try; then |
| 35478 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 35479 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 35480 | { (exit 1); exit 1; }; } |
| 35481 | else |
| 35482 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 35483 | fi |
| 35484 | done |
| 35485 | |
| 35486 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 35487 | if test -n "$ac_eof"; then |
| 35488 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 35489 | ac_eof=`expr $ac_eof + 1` |
| 35490 | fi |
| 35491 | |
| 35492 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35493 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 35494 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 35495 | _ACEOF |
| 35496 | sed ' |
| 35497 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 35498 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 35499 | :n |
| 35500 | t n |
| 35501 | s/'"$ac_delim"'$/,g/; t |
| 35502 | s/$/\\/; p |
| 35503 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 35504 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 35505 | rm -f conf$$subs.sed |
| 35506 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35507 | :end |
| 35508 | s/|#_!!_#|//g |
| 35509 | CEOF$ac_eof |
| 35510 | _ACEOF |
| 35511 | |
| 35512 | |
| 35513 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 35514 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 35515 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 35516 | # (actually we leave an empty line to preserve line numbers). |
| 35517 | if test "x$srcdir" = x.; then |
| 35518 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 35519 | s/:*\$(srcdir):*/:/ |
| 35520 | s/:*\${srcdir}:*/:/ |
| 35521 | s/:*@srcdir@:*/:/ |
| 35522 | s/^\([^=]*=[ ]*\):*/\1/ |
| 35523 | s/:*$// |
| 35524 | s/^[^=]*=[ ]*$// |
| 35525 | }' |
| 35526 | fi |
| 35527 | |
| 35528 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35529 | fi # test -n "$CONFIG_FILES" |
| 35530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35531 | |
| 35532 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 35533 | do |
| 35534 | case $ac_tag in |
| 35535 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 35536 | esac |
| 35537 | case $ac_mode$ac_tag in |
| 35538 | :[FHL]*:*);; |
| 35539 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 35540 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 35541 | { (exit 1); exit 1; }; };; |
| 35542 | :[FH]-) ac_tag=-:-;; |
| 35543 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 35544 | esac |
| 35545 | ac_save_IFS=$IFS |
| 35546 | IFS=: |
| 35547 | set x $ac_tag |
| 35548 | IFS=$ac_save_IFS |
| 35549 | shift |
| 35550 | ac_file=$1 |
| 35551 | shift |
| 35552 | |
| 35553 | case $ac_mode in |
| 35554 | :L) ac_source=$1;; |
| 35555 | :[FH]) |
| 35556 | ac_file_inputs= |
| 35557 | for ac_f |
| 35558 | do |
| 35559 | case $ac_f in |
| 35560 | -) ac_f="$tmp/stdin";; |
| 35561 | *) # Look for the file first in the build tree, then in the source tree |
| 35562 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 35563 | # because $ac_f cannot contain `:'. |
| 35564 | test -f "$ac_f" || |
| 35565 | case $ac_f in |
| 35566 | [\\/$]*) false;; |
| 35567 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 35568 | esac || |
| 35569 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 35570 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 35571 | { (exit 1); exit 1; }; };; |
| 35572 | esac |
| 35573 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 35574 | done |
| 35575 | |
| 35576 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 35577 | # use $as_me), people would be surprised to read: |
| 35578 | # /* config.h. Generated by config.status. */ |
| 35579 | configure_input="Generated from "`IFS=: |
| 35580 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 35581 | if test x"$ac_file" != x-; then |
| 35582 | configure_input="$ac_file. $configure_input" |
| 35583 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 35584 | echo "$as_me: creating $ac_file" >&6;} |
| 35585 | fi |
| 35586 | |
| 35587 | case $ac_tag in |
| 35588 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 35589 | esac |
| 35590 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35591 | esac |
| 35592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35593 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35594 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35595 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 35596 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35597 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35598 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35599 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35600 | s//\1/ |
| 35601 | q |
| 35602 | } |
| 35603 | /^X\(\/\/\)[^/].*/{ |
| 35604 | s//\1/ |
| 35605 | q |
| 35606 | } |
| 35607 | /^X\(\/\/\)$/{ |
| 35608 | s//\1/ |
| 35609 | q |
| 35610 | } |
| 35611 | /^X\(\/\).*/{ |
| 35612 | s//\1/ |
| 35613 | q |
| 35614 | } |
| 35615 | s/.*/./; q'` |
| 35616 | { as_dir="$ac_dir" |
| 35617 | case $as_dir in #( |
| 35618 | -*) as_dir=./$as_dir;; |
| 35619 | esac |
| 35620 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35621 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35622 | while :; do |
| 35623 | case $as_dir in #( |
| 35624 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 35625 | *) as_qdir=$as_dir;; |
| 35626 | esac |
| 35627 | as_dirs="'$as_qdir' $as_dirs" |
| 35628 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35629 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35630 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35631 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35632 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35633 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35634 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35635 | s//\1/ |
| 35636 | q |
| 35637 | } |
| 35638 | /^X\(\/\/\)[^/].*/{ |
| 35639 | s//\1/ |
| 35640 | q |
| 35641 | } |
| 35642 | /^X\(\/\/\)$/{ |
| 35643 | s//\1/ |
| 35644 | q |
| 35645 | } |
| 35646 | /^X\(\/\).*/{ |
| 35647 | s//\1/ |
| 35648 | q |
| 35649 | } |
| 35650 | s/.*/./; q'` |
| 35651 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35652 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35653 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35654 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35655 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35656 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35657 | ac_builddir=. |
| 35658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35659 | case "$ac_dir" in |
| 35660 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35661 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35662 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35663 | # A ".." for each directory in $ac_dir_suffix. |
| 35664 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35665 | case $ac_top_builddir_sub in |
| 35666 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35667 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35668 | esac ;; |
| 35669 | esac |
| 35670 | ac_abs_top_builddir=$ac_pwd |
| 35671 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35672 | # for backward compatibility: |
| 35673 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35674 | |
| 35675 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35676 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35677 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35678 | ac_top_srcdir=$ac_top_builddir_sub |
| 35679 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35680 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35681 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35682 | ac_top_srcdir=$srcdir |
| 35683 | ac_abs_top_srcdir=$srcdir ;; |
| 35684 | *) # Relative name. |
| 35685 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35686 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35687 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35688 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35689 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35690 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35692 | case $ac_mode in |
| 35693 | :F) |
| 35694 | # |
| 35695 | # CONFIG_FILE |
| 35696 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35697 | |
| 35698 | case $INSTALL in |
| 35699 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35700 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35701 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35702 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35703 | |
| 35704 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35705 | # If the template does not know about datarootdir, expand it. |
| 35706 | # FIXME: This hack should be removed a few years after 2.60. |
| 35707 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 35708 | |
| 35709 | case `sed -n '/datarootdir/ { |
| 35710 | p |
| 35711 | q |
| 35712 | } |
| 35713 | /@datadir@/p |
| 35714 | /@docdir@/p |
| 35715 | /@infodir@/p |
| 35716 | /@localedir@/p |
| 35717 | /@mandir@/p |
| 35718 | ' $ac_file_inputs` in |
| 35719 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 35720 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 35721 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 35722 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 35723 | _ACEOF |
| 35724 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35725 | ac_datarootdir_hack=' |
| 35726 | s&@datadir@&$datadir&g |
| 35727 | s&@docdir@&$docdir&g |
| 35728 | s&@infodir@&$infodir&g |
| 35729 | s&@localedir@&$localedir&g |
| 35730 | s&@mandir@&$mandir&g |
| 35731 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 35732 | esac |
| 35733 | _ACEOF |
| 35734 | |
| 35735 | # Neutralize VPATH when `$srcdir' = `.'. |
| 35736 | # Shell code in configure.ac might set extrasub. |
| 35737 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35738 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35739 | sed "$ac_vpsub |
| 35740 | $extrasub |
| 35741 | _ACEOF |
| 35742 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35743 | :t |
| 35744 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35745 | s&@configure_input@&$configure_input&;t t |
| 35746 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 35747 | s&@srcdir@&$ac_srcdir&;t t |
| 35748 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 35749 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 35750 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 35751 | s&@builddir@&$ac_builddir&;t t |
| 35752 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 35753 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 35754 | s&@INSTALL@&$ac_INSTALL&;t t |
| 35755 | $ac_datarootdir_hack |
| 35756 | " $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] | 35757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35758 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 35759 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 35760 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 35761 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35762 | which seems to be undefined. Please make sure it is defined." >&5 |
| 35763 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35764 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35766 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35767 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35768 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 35769 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35770 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35771 | ;; |
| 35772 | :H) |
| 35773 | # |
| 35774 | # CONFIG_HEADER |
| 35775 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35776 | _ACEOF |
| 35777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35778 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 35779 | # substitutes the proper values into config.h.in to produce config.h. |
| 35780 | rm -f conftest.defines conftest.tail |
| 35781 | # First, append a space to every undef/define line, to ease matching. |
| 35782 | echo 's/$/ /' >conftest.defines |
| 35783 | # Then, protect against being on the right side of a sed subst, or in |
| 35784 | # an unquoted here document, in config.status. If some macros were |
| 35785 | # called several times there might be several #defines for the same |
| 35786 | # symbol, which is useless. But do not sort them, since the last |
| 35787 | # AC_DEFINE must be honored. |
| 35788 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 35789 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 35790 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 35791 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 35792 | # just an empty string. |
| 35793 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 35794 | ac_dB='\\)[ (].*,\\1define\\2' |
| 35795 | ac_dC=' ' |
| 35796 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35798 | uniq confdefs.h | |
| 35799 | sed -n ' |
| 35800 | t rset |
| 35801 | :rset |
| 35802 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 35803 | t ok |
| 35804 | d |
| 35805 | :ok |
| 35806 | s/[\\&,]/\\&/g |
| 35807 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 35808 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 35809 | ' >>conftest.defines |
| 35810 | |
| 35811 | # Remove the space that was appended to ease matching. |
| 35812 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35813 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 35814 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35815 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 35816 | echo 's/ $// |
| 35817 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35819 | # Break up conftest.defines: |
| 35820 | ac_max_sed_lines=50 |
| 35821 | |
| 35822 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 35823 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 35824 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 35825 | # et cetera. |
| 35826 | ac_in='$ac_file_inputs' |
| 35827 | ac_out='"$tmp/out1"' |
| 35828 | ac_nxt='"$tmp/out2"' |
| 35829 | |
| 35830 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35831 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35832 | # Write a here document: |
| 35833 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35834 | # First, check the format of the line: |
| 35835 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 35836 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 35837 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 35838 | b |
| 35839 | :def |
| 35840 | _ACEOF |
| 35841 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35842 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35843 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 35844 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 35845 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 35846 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35847 | rm -f conftest.defines |
| 35848 | mv conftest.tail conftest.defines |
| 35849 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35850 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35852 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35853 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35854 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35855 | echo "/* $configure_input */" >"$tmp/config.h" |
| 35856 | cat "$ac_result" >>"$tmp/config.h" |
| 35857 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35858 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 35859 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 35860 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35861 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35862 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35863 | fi |
| 35864 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35865 | echo "/* $configure_input */" |
| 35866 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35868 | rm -f "$tmp/out12" |
| 35869 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35871 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 35872 | echo "$as_me: executing $ac_file commands" >&6;} |
| 35873 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35874 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35876 | |
| 35877 | case $ac_file$ac_mode in |
| 35878 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 35879 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 35880 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 35881 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 35882 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 35883 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 35884 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 35885 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35886 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 35887 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35888 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 35889 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 35890 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 35891 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 35892 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 35893 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 35894 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 35895 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 35896 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 35897 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35898 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 35899 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 35900 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 35901 | ${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] | 35902 | |
| 35903 | esac |
| 35904 | done # for ac_tag |
| 35905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35906 | |
| 35907 | { (exit 0); exit 0; } |
| 35908 | _ACEOF |
| 35909 | chmod +x $CONFIG_STATUS |
| 35910 | ac_clean_files=$ac_clean_files_save |
| 35911 | |
| 35912 | |
| 35913 | # configure is writing to config.log, and then calls config.status. |
| 35914 | # config.status does its own redirection, appending to config.log. |
| 35915 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 35916 | # by configure, so config.status won't be able to write to it; its |
| 35917 | # output is simply discarded. So we exec the FD to /dev/null, |
| 35918 | # effectively closing config.log, so it can be properly (re)opened and |
| 35919 | # appended to by config.status. When coming back to configure, we |
| 35920 | # need to make the FD available again. |
| 35921 | if test "$no_create" != yes; then |
| 35922 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35923 | ac_config_status_args= |
| 35924 | test "$silent" = yes && |
| 35925 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35926 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35927 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35928 | exec 5>>config.log |
| 35929 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 35930 | # would make configure fail if this is the last instruction. |
| 35931 | $ac_cs_success || { (exit 1); exit 1; } |
| 35932 | fi |
| 35933 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35934 | # |
| 35935 | # CONFIG_SUBDIRS section. |
| 35936 | # |
| 35937 | if test "$no_recursion" != yes; then |
| 35938 | |
| 35939 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 35940 | ac_sub_configure_args= |
| 35941 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35942 | eval "set x $ac_configure_args" |
| 35943 | shift |
| 35944 | for ac_arg |
| 35945 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35946 | if test -n "$ac_prev"; then |
| 35947 | ac_prev= |
| 35948 | continue |
| 35949 | fi |
| 35950 | case $ac_arg in |
| 35951 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 35952 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 35953 | ac_prev=cache_file ;; |
| 35954 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 35955 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 35956 | | --c=*) |
| 35957 | ;; |
| 35958 | --config-cache | -C) |
| 35959 | ;; |
| 35960 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 35961 | ac_prev=srcdir ;; |
| 35962 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 35963 | ;; |
| 35964 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 35965 | ac_prev=prefix ;; |
| 35966 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 35967 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35968 | *) |
| 35969 | case $ac_arg in |
| 35970 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35971 | esac |
| 35972 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35973 | esac |
| 35974 | done |
| 35975 | |
| 35976 | # Always prepend --prefix to ensure using the same prefix |
| 35977 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35978 | ac_arg="--prefix=$prefix" |
| 35979 | case $ac_arg in |
| 35980 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35981 | esac |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 35982 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35983 | |
| 35984 | ac_popdir=`pwd` |
| 35985 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 35986 | |
| 35987 | # Do not complain, so a configure script can configure whichever |
| 35988 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35989 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35991 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 35992 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 35993 | echo "$ac_msg" >&6 |
| 35994 | { as_dir="$ac_dir" |
| 35995 | case $as_dir in #( |
| 35996 | -*) as_dir=./$as_dir;; |
| 35997 | esac |
| 35998 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35999 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36000 | while :; do |
| 36001 | case $as_dir in #( |
| 36002 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36003 | *) as_qdir=$as_dir;; |
| 36004 | esac |
| 36005 | as_dirs="'$as_qdir' $as_dirs" |
| 36006 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36007 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36008 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36009 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36010 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36011 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36013 | s//\1/ |
| 36014 | q |
| 36015 | } |
| 36016 | /^X\(\/\/\)[^/].*/{ |
| 36017 | s//\1/ |
| 36018 | q |
| 36019 | } |
| 36020 | /^X\(\/\/\)$/{ |
| 36021 | s//\1/ |
| 36022 | q |
| 36023 | } |
| 36024 | /^X\(\/\).*/{ |
| 36025 | s//\1/ |
| 36026 | q |
| 36027 | } |
| 36028 | s/.*/./; q'` |
| 36029 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36030 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36031 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36032 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36033 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36034 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36035 | ac_builddir=. |
| 36036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36037 | case "$ac_dir" in |
| 36038 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36039 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36040 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36041 | # A ".." for each directory in $ac_dir_suffix. |
| 36042 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36043 | case $ac_top_builddir_sub in |
| 36044 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36045 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36046 | esac ;; |
| 36047 | esac |
| 36048 | ac_abs_top_builddir=$ac_pwd |
| 36049 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36050 | # for backward compatibility: |
| 36051 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36052 | |
| 36053 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36054 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36055 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36056 | ac_top_srcdir=$ac_top_builddir_sub |
| 36057 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36058 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36059 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36060 | ac_top_srcdir=$srcdir |
| 36061 | ac_abs_top_srcdir=$srcdir ;; |
| 36062 | *) # Relative name. |
| 36063 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36064 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36065 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36066 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36067 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36068 | |
| 36069 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36070 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36071 | |
| 36072 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36073 | if test -f "$ac_srcdir/configure.gnu"; then |
| 36074 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 36075 | elif test -f "$ac_srcdir/configure"; then |
| 36076 | ac_sub_configure=$ac_srcdir/configure |
| 36077 | elif test -f "$ac_srcdir/configure.in"; then |
| 36078 | # This should be Cygnus configure. |
| 36079 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36080 | else |
| 36081 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 36082 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 36083 | ac_sub_configure= |
| 36084 | fi |
| 36085 | |
| 36086 | # The recursion is here. |
| 36087 | if test -n "$ac_sub_configure"; then |
| 36088 | # Make the cache file name correct relative to the subdirectory. |
| 36089 | case $cache_file in |
| 36090 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36091 | *) # Relative name. |
| 36092 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36093 | esac |
| 36094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36095 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 36096 | 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] | 36097 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36098 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 36099 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36100 | { { 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] | 36101 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 36102 | { (exit 1); exit 1; }; } |
| 36103 | fi |
| 36104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36105 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36106 | done |
| 36107 | fi |
| 36108 | |