John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.7svn. |
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 | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.7svn' |
| 719 | PACKAGE_STRING='llvm 2.7svn' |
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> |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 811 | HOST_OS |
| 812 | TARGET_OS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | LINKALL |
| 814 | NOLINKALL |
| 815 | LLVM_ON_UNIX |
| 816 | LLVM_ON_WIN32 |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 817 | ARCH |
| 818 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 819 | CC |
| 820 | CFLAGS |
| 821 | LDFLAGS |
| 822 | CPPFLAGS |
| 823 | ac_ct_CC |
| 824 | EXEEXT |
| 825 | OBJEXT |
| 826 | CPP |
| 827 | GREP |
| 828 | EGREP |
| 829 | LLVM_CROSS_COMPILING |
| 830 | BUILD_CC |
| 831 | BUILD_EXEEXT |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 832 | BUILD_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 833 | CVSBUILD |
| 834 | ENABLE_OPTIMIZED |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 835 | ENABLE_PROFILING |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 837 | ENABLE_EXPENSIVE_CHECKS |
| 838 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 839 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 840 | JIT |
| 841 | TARGET_HAS_JIT |
| 842 | ENABLE_DOXYGEN |
| 843 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 844 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 845 | TARGETS_TO_BUILD |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 846 | LLVM_ENUM_TARGETS |
| 847 | LLVM_ENUM_ASM_PRINTERS |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 848 | LLVM_ENUM_ASM_PARSERS |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 849 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | EXTRA_OPTIONS |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 851 | BINUTILS_INCDIR |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 852 | ENABLE_LLVMC_DYNAMIC |
| 853 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 854 | CXX |
| 855 | CXXFLAGS |
| 856 | ac_ct_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | NM |
| 858 | ifGNUmake |
| 859 | LN_S |
| 860 | CMP |
| 861 | CP |
| 862 | DATE |
| 863 | FIND |
| 864 | MKDIR |
| 865 | MV |
| 866 | RANLIB |
| 867 | RM |
| 868 | SED |
| 869 | TAR |
| 870 | BINPWD |
| 871 | GRAPHVIZ |
| 872 | DOT |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 873 | FDP |
| 874 | NEATO |
| 875 | TWOPI |
| 876 | CIRCO |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 877 | GV |
| 878 | DOTTY |
| 879 | PERL |
| 880 | HAVE_PERL |
| 881 | INSTALL_PROGRAM |
| 882 | INSTALL_SCRIPT |
| 883 | INSTALL_DATA |
| 884 | BZIP2 |
| 885 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 886 | GROFF |
| 887 | GZIP |
| 888 | POD2HTML |
| 889 | POD2MAN |
| 890 | RUNTEST |
| 891 | TCLSH |
| 892 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 893 | OCAMLC |
| 894 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 895 | OCAMLDEP |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 896 | OCAMLDOC |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 897 | GAS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 898 | INSTALL_LTDL_TRUE |
| 899 | INSTALL_LTDL_FALSE |
| 900 | CONVENIENCE_LTDL_TRUE |
| 901 | CONVENIENCE_LTDL_FALSE |
| 902 | LIBADD_DL |
| 903 | ECHO |
| 904 | AR |
| 905 | STRIP |
| 906 | CXXCPP |
| 907 | F77 |
| 908 | FFLAGS |
| 909 | ac_ct_F77 |
| 910 | LIBTOOL |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 911 | LLVMGCCCOMMAND |
| 912 | LLVMGXXCOMMAND |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 913 | LLVMGCC |
| 914 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 915 | USE_UDIS86 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 916 | USE_OPROFILE |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 917 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 918 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 919 | ALLOCA |
| 920 | MMAP_FILE |
| 921 | LLVMCC1 |
| 922 | LLVMCC1PLUS |
| 923 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 924 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 925 | LLVMGCC_VERSION |
| 926 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 927 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 928 | SHLIBEXT |
| 929 | LLVM_PREFIX |
| 930 | LLVM_BINDIR |
| 931 | LLVM_LIBDIR |
| 932 | LLVM_DATADIR |
| 933 | LLVM_DOCSDIR |
| 934 | LLVM_ETCDIR |
| 935 | LLVM_INCLUDEDIR |
| 936 | LLVM_INFODIR |
| 937 | LLVM_MANDIR |
| 938 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 939 | BINDINGS_TO_BUILD |
| 940 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 941 | OCAML_LIBDIR |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 942 | ENABLE_VISIBILITY_INLINES_HIDDEN |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 943 | RPATH |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 944 | RDYNAMIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 945 | LIBOBJS |
| 946 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 947 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 948 | ac_precious_vars='build_alias |
| 949 | host_alias |
| 950 | target_alias |
| 951 | CC |
| 952 | CFLAGS |
| 953 | LDFLAGS |
| 954 | CPPFLAGS |
| 955 | CPP |
| 956 | CXX |
| 957 | CXXFLAGS |
| 958 | CCC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 959 | CXXCPP |
| 960 | F77 |
| 961 | FFLAGS' |
| 962 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 963 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 964 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 965 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 966 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 967 | projects/llvm-reopt |
| 968 | projects/llvm-gcc |
| 969 | projects/llvm-java |
| 970 | projects/llvm-tv |
| 971 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 972 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 973 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 974 | |
| 975 | # Initialize some variables set by options. |
| 976 | ac_init_help= |
| 977 | ac_init_version=false |
| 978 | # The variables have the same names as the options, with |
| 979 | # dashes changed to underlines. |
| 980 | cache_file=/dev/null |
| 981 | exec_prefix=NONE |
| 982 | no_create= |
| 983 | no_recursion= |
| 984 | prefix=NONE |
| 985 | program_prefix=NONE |
| 986 | program_suffix=NONE |
| 987 | program_transform_name=s,x,x, |
| 988 | silent= |
| 989 | site= |
| 990 | srcdir= |
| 991 | verbose= |
| 992 | x_includes=NONE |
| 993 | x_libraries=NONE |
| 994 | |
| 995 | # Installation directory options. |
| 996 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 997 | # and all the variables that are supposed to be based on exec_prefix |
| 998 | # by default will actually change. |
| 999 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1000 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1001 | bindir='${exec_prefix}/bin' |
| 1002 | sbindir='${exec_prefix}/sbin' |
| 1003 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | datarootdir='${prefix}/share' |
| 1005 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1006 | sysconfdir='${prefix}/etc' |
| 1007 | sharedstatedir='${prefix}/com' |
| 1008 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | includedir='${prefix}/include' |
| 1010 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1011 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1012 | infodir='${datarootdir}/info' |
| 1013 | htmldir='${docdir}' |
| 1014 | dvidir='${docdir}' |
| 1015 | pdfdir='${docdir}' |
| 1016 | psdir='${docdir}' |
| 1017 | libdir='${exec_prefix}/lib' |
| 1018 | localedir='${datarootdir}/locale' |
| 1019 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1020 | |
| 1021 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1022 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1023 | for ac_option |
| 1024 | do |
| 1025 | # If the previous option needs an argument, assign it. |
| 1026 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1027 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1028 | ac_prev= |
| 1029 | continue |
| 1030 | fi |
| 1031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1032 | case $ac_option in |
| 1033 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1034 | *) ac_optarg=yes ;; |
| 1035 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1036 | |
| 1037 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1039 | case $ac_dashdash$ac_option in |
| 1040 | --) |
| 1041 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1042 | |
| 1043 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1044 | ac_prev=bindir ;; |
| 1045 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1046 | bindir=$ac_optarg ;; |
| 1047 | |
| 1048 | -build | --build | --buil | --bui | --bu) |
| 1049 | ac_prev=build_alias ;; |
| 1050 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1051 | build_alias=$ac_optarg ;; |
| 1052 | |
| 1053 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1054 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1055 | ac_prev=cache_file ;; |
| 1056 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1057 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1058 | cache_file=$ac_optarg ;; |
| 1059 | |
| 1060 | --config-cache | -C) |
| 1061 | cache_file=config.cache ;; |
| 1062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1063 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1064 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1065 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1066 | datadir=$ac_optarg ;; |
| 1067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1068 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1069 | | --dataroo | --dataro | --datar) |
| 1070 | ac_prev=datarootdir ;; |
| 1071 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1072 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1073 | datarootdir=$ac_optarg ;; |
| 1074 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1075 | -disable-* | --disable-*) |
| 1076 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1077 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1078 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1079 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1080 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1081 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1082 | eval enable_$ac_feature=no ;; |
| 1083 | |
| 1084 | -docdir | --docdir | --docdi | --doc | --do) |
| 1085 | ac_prev=docdir ;; |
| 1086 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1087 | docdir=$ac_optarg ;; |
| 1088 | |
| 1089 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1090 | ac_prev=dvidir ;; |
| 1091 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1092 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1093 | |
| 1094 | -enable-* | --enable-*) |
| 1095 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1096 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1097 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1098 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1099 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1100 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1101 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1102 | |
| 1103 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1104 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1105 | | --exec | --exe | --ex) |
| 1106 | ac_prev=exec_prefix ;; |
| 1107 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1108 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1109 | | --exec=* | --exe=* | --ex=*) |
| 1110 | exec_prefix=$ac_optarg ;; |
| 1111 | |
| 1112 | -gas | --gas | --ga | --g) |
| 1113 | # Obsolete; use --with-gas. |
| 1114 | with_gas=yes ;; |
| 1115 | |
| 1116 | -help | --help | --hel | --he | -h) |
| 1117 | ac_init_help=long ;; |
| 1118 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1119 | ac_init_help=recursive ;; |
| 1120 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1121 | ac_init_help=short ;; |
| 1122 | |
| 1123 | -host | --host | --hos | --ho) |
| 1124 | ac_prev=host_alias ;; |
| 1125 | -host=* | --host=* | --hos=* | --ho=*) |
| 1126 | host_alias=$ac_optarg ;; |
| 1127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1128 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1129 | ac_prev=htmldir ;; |
| 1130 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1131 | | --ht=*) |
| 1132 | htmldir=$ac_optarg ;; |
| 1133 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1134 | -includedir | --includedir | --includedi | --included | --include \ |
| 1135 | | --includ | --inclu | --incl | --inc) |
| 1136 | ac_prev=includedir ;; |
| 1137 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1138 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1139 | includedir=$ac_optarg ;; |
| 1140 | |
| 1141 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1142 | ac_prev=infodir ;; |
| 1143 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1144 | infodir=$ac_optarg ;; |
| 1145 | |
| 1146 | -libdir | --libdir | --libdi | --libd) |
| 1147 | ac_prev=libdir ;; |
| 1148 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1149 | libdir=$ac_optarg ;; |
| 1150 | |
| 1151 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1152 | | --libexe | --libex | --libe) |
| 1153 | ac_prev=libexecdir ;; |
| 1154 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1155 | | --libexe=* | --libex=* | --libe=*) |
| 1156 | libexecdir=$ac_optarg ;; |
| 1157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1158 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1159 | ac_prev=localedir ;; |
| 1160 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1161 | localedir=$ac_optarg ;; |
| 1162 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1163 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1164 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1165 | ac_prev=localstatedir ;; |
| 1166 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1167 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1168 | localstatedir=$ac_optarg ;; |
| 1169 | |
| 1170 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1171 | ac_prev=mandir ;; |
| 1172 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1173 | mandir=$ac_optarg ;; |
| 1174 | |
| 1175 | -nfp | --nfp | --nf) |
| 1176 | # Obsolete; use --without-fp. |
| 1177 | with_fp=no ;; |
| 1178 | |
| 1179 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1180 | | --no-cr | --no-c | -n) |
| 1181 | no_create=yes ;; |
| 1182 | |
| 1183 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1184 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1185 | no_recursion=yes ;; |
| 1186 | |
| 1187 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1188 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1189 | | --oldin | --oldi | --old | --ol | --o) |
| 1190 | ac_prev=oldincludedir ;; |
| 1191 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1192 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1193 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1194 | oldincludedir=$ac_optarg ;; |
| 1195 | |
| 1196 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1197 | ac_prev=prefix ;; |
| 1198 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1199 | prefix=$ac_optarg ;; |
| 1200 | |
| 1201 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1202 | | --program-pre | --program-pr | --program-p) |
| 1203 | ac_prev=program_prefix ;; |
| 1204 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1205 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1206 | program_prefix=$ac_optarg ;; |
| 1207 | |
| 1208 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1209 | | --program-suf | --program-su | --program-s) |
| 1210 | ac_prev=program_suffix ;; |
| 1211 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1212 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1213 | program_suffix=$ac_optarg ;; |
| 1214 | |
| 1215 | -program-transform-name | --program-transform-name \ |
| 1216 | | --program-transform-nam | --program-transform-na \ |
| 1217 | | --program-transform-n | --program-transform- \ |
| 1218 | | --program-transform | --program-transfor \ |
| 1219 | | --program-transfo | --program-transf \ |
| 1220 | | --program-trans | --program-tran \ |
| 1221 | | --progr-tra | --program-tr | --program-t) |
| 1222 | ac_prev=program_transform_name ;; |
| 1223 | -program-transform-name=* | --program-transform-name=* \ |
| 1224 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1225 | | --program-transform-n=* | --program-transform-=* \ |
| 1226 | | --program-transform=* | --program-transfor=* \ |
| 1227 | | --program-transfo=* | --program-transf=* \ |
| 1228 | | --program-trans=* | --program-tran=* \ |
| 1229 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1230 | program_transform_name=$ac_optarg ;; |
| 1231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1232 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1233 | ac_prev=pdfdir ;; |
| 1234 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1235 | pdfdir=$ac_optarg ;; |
| 1236 | |
| 1237 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1238 | ac_prev=psdir ;; |
| 1239 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1240 | psdir=$ac_optarg ;; |
| 1241 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1242 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1243 | | -silent | --silent | --silen | --sile | --sil) |
| 1244 | silent=yes ;; |
| 1245 | |
| 1246 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1247 | ac_prev=sbindir ;; |
| 1248 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1249 | | --sbi=* | --sb=*) |
| 1250 | sbindir=$ac_optarg ;; |
| 1251 | |
| 1252 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1253 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1254 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1255 | | --sha | --sh) |
| 1256 | ac_prev=sharedstatedir ;; |
| 1257 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1258 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1259 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1260 | | --sha=* | --sh=*) |
| 1261 | sharedstatedir=$ac_optarg ;; |
| 1262 | |
| 1263 | -site | --site | --sit) |
| 1264 | ac_prev=site ;; |
| 1265 | -site=* | --site=* | --sit=*) |
| 1266 | site=$ac_optarg ;; |
| 1267 | |
| 1268 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1269 | ac_prev=srcdir ;; |
| 1270 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1271 | srcdir=$ac_optarg ;; |
| 1272 | |
| 1273 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1274 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1275 | ac_prev=sysconfdir ;; |
| 1276 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1277 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1278 | sysconfdir=$ac_optarg ;; |
| 1279 | |
| 1280 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1281 | ac_prev=target_alias ;; |
| 1282 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1283 | target_alias=$ac_optarg ;; |
| 1284 | |
| 1285 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1286 | verbose=yes ;; |
| 1287 | |
| 1288 | -version | --version | --versio | --versi | --vers | -V) |
| 1289 | ac_init_version=: ;; |
| 1290 | |
| 1291 | -with-* | --with-*) |
| 1292 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1293 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +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=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1299 | |
| 1300 | -without-* | --without-*) |
| 1301 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1302 | # Reject names that are not valid shell variable names. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1303 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1304 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1305 | { (exit 1); exit 1; }; } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1306 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1307 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1308 | |
| 1309 | --x) |
| 1310 | # Obsolete; use --with-x. |
| 1311 | with_x=yes ;; |
| 1312 | |
| 1313 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1314 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1315 | ac_prev=x_includes ;; |
| 1316 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1317 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1318 | x_includes=$ac_optarg ;; |
| 1319 | |
| 1320 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1321 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1322 | ac_prev=x_libraries ;; |
| 1323 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1324 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1325 | x_libraries=$ac_optarg ;; |
| 1326 | |
| 1327 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1328 | Try \`$0 --help' for more information." >&2 |
| 1329 | { (exit 1); exit 1; }; } |
| 1330 | ;; |
| 1331 | |
| 1332 | *=*) |
| 1333 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1334 | # Reject names that are not valid shell variable names. |
| 1335 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1336 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1337 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1338 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1339 | export $ac_envvar ;; |
| 1340 | |
| 1341 | *) |
| 1342 | # FIXME: should be removed in autoconf 3.0. |
| 1343 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1344 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1345 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1346 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1347 | ;; |
| 1348 | |
| 1349 | esac |
| 1350 | done |
| 1351 | |
| 1352 | if test -n "$ac_prev"; then |
| 1353 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1354 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1355 | { (exit 1); exit 1; }; } |
| 1356 | fi |
| 1357 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1358 | # Be sure to have absolute directory names. |
| 1359 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1360 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1361 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1362 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1363 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1364 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1365 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1366 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1367 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1368 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1369 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1370 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1371 | done |
| 1372 | |
| 1373 | # There might be people who depend on the old broken behavior: `$host' |
| 1374 | # used to hold the argument of --host etc. |
| 1375 | # FIXME: To remove some day. |
| 1376 | build=$build_alias |
| 1377 | host=$host_alias |
| 1378 | target=$target_alias |
| 1379 | |
| 1380 | # FIXME: To remove some day. |
| 1381 | if test "x$host_alias" != x; then |
| 1382 | if test "x$build_alias" = x; then |
| 1383 | cross_compiling=maybe |
| 1384 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1385 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1386 | elif test "x$build_alias" != "x$host_alias"; then |
| 1387 | cross_compiling=yes |
| 1388 | fi |
| 1389 | fi |
| 1390 | |
| 1391 | ac_tool_prefix= |
| 1392 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1393 | |
| 1394 | test "$silent" = yes && exec 6>/dev/null |
| 1395 | |
| 1396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1397 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1398 | ac_ls_di=`ls -di .` && |
| 1399 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1400 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1401 | { (exit 1); exit 1; }; } |
| 1402 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1403 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1404 | { (exit 1); exit 1; }; } |
| 1405 | |
| 1406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1407 | # Find the source files, if location was not specified. |
| 1408 | if test -z "$srcdir"; then |
| 1409 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1410 | # Try the directory containing this script, then the parent directory. |
| 1411 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1412 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1413 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1414 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1415 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1416 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1417 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1418 | s//\1/ |
| 1419 | q |
| 1420 | } |
| 1421 | /^X\(\/\/\)[^/].*/{ |
| 1422 | s//\1/ |
| 1423 | q |
| 1424 | } |
| 1425 | /^X\(\/\/\)$/{ |
| 1426 | s//\1/ |
| 1427 | q |
| 1428 | } |
| 1429 | /^X\(\/\).*/{ |
| 1430 | s//\1/ |
| 1431 | q |
| 1432 | } |
| 1433 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1434 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1435 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1436 | srcdir=.. |
| 1437 | fi |
| 1438 | else |
| 1439 | ac_srcdir_defaulted=no |
| 1440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1441 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1442 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1443 | { 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] | 1444 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1446 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1447 | ac_abs_confdir=`( |
| 1448 | 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] | 1449 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1450 | pwd)` |
| 1451 | # When building in place, set srcdir=. |
| 1452 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1453 | srcdir=. |
| 1454 | fi |
| 1455 | # Remove unnecessary trailing slashes from srcdir. |
| 1456 | # Double slashes in file names in object file debugging info |
| 1457 | # mess up M-x gdb in Emacs. |
| 1458 | case $srcdir in |
| 1459 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1460 | esac |
| 1461 | for ac_var in $ac_precious_vars; do |
| 1462 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1463 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1464 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1465 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1466 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | |
| 1468 | # |
| 1469 | # Report the --help message. |
| 1470 | # |
| 1471 | if test "$ac_init_help" = "long"; then |
| 1472 | # Omit some internal or obsolete options to make the list less imposing. |
| 1473 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1474 | cat <<_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1475 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1476 | |
| 1477 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1478 | |
| 1479 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1480 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1481 | |
| 1482 | Defaults for the options are specified in brackets. |
| 1483 | |
| 1484 | Configuration: |
| 1485 | -h, --help display this help and exit |
| 1486 | --help=short display options specific to this package |
| 1487 | --help=recursive display the short help of all the included packages |
| 1488 | -V, --version display version information and exit |
| 1489 | -q, --quiet, --silent do not print \`checking...' messages |
| 1490 | --cache-file=FILE cache test results in FILE [disabled] |
| 1491 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1492 | -n, --no-create do not create output files |
| 1493 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1494 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1495 | Installation directories: |
| 1496 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1497 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1498 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1499 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | |
| 1501 | By default, \`make install' will install all the files in |
| 1502 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1503 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1504 | for instance \`--prefix=\$HOME'. |
| 1505 | |
| 1506 | For better control, use the options below. |
| 1507 | |
| 1508 | Fine tuning of the installation directories: |
| 1509 | --bindir=DIR user executables [EPREFIX/bin] |
| 1510 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1511 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1512 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1513 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1514 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1515 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1516 | --includedir=DIR C header files [PREFIX/include] |
| 1517 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1519 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1520 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1521 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1522 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1523 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1524 | --htmldir=DIR html documentation [DOCDIR] |
| 1525 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1526 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1527 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1528 | _ACEOF |
| 1529 | |
| 1530 | cat <<\_ACEOF |
| 1531 | |
| 1532 | System types: |
| 1533 | --build=BUILD configure for building on BUILD [guessed] |
| 1534 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1535 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1536 | _ACEOF |
| 1537 | fi |
| 1538 | |
| 1539 | if test -n "$ac_init_help"; then |
| 1540 | case $ac_init_help in |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1541 | short | recursive ) echo "Configuration of llvm 2.7svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | esac |
| 1543 | cat <<\_ACEOF |
| 1544 | |
| 1545 | Optional Features: |
| 1546 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1547 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1548 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1549 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1550 | --enable-assertions Compile with assertion checks enabled (default is |
| 1551 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1552 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1553 | Compile with expensive debug checks enabled (default |
| 1554 | is NO) |
| 1555 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1556 | NO) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1557 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1558 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1559 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1560 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1561 | is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1562 | --enable-targets Build specific host targets: all or |
| 1563 | target1,target2,... Valid targets are: host, x86, |
| 1564 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1565 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1566 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1567 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1568 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1569 | --enable-bindings Build specific language bindings: |
| 1570 | all,auto,none,{binding-name} (default=auto) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1571 | --enable-libffi Check for the presence of libffi (default is YES) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1572 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1573 | Win32) |
| 1574 | --enable-llvmc-dynamic-plugins |
| 1575 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1576 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1578 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1579 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1580 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1581 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1582 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1583 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1584 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1585 | |
| 1586 | Optional Packages: |
| 1587 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1588 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1589 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1590 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1591 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1592 | searches PATH) |
| 1593 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1594 | searches PATH) |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1595 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1596 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1597 | is stdlib) |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1598 | --with-binutils-include Specify path to binutils/include/ containing |
| 1599 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1600 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1601 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1602 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1603 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1604 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1605 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1606 | --with-oprofile=<prefix> |
| 1607 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | |
| 1609 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1610 | CC C compiler command |
| 1611 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1612 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1613 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1614 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1615 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1616 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1617 | CXX C++ compiler command |
| 1618 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1619 | CXXCPP C++ preprocessor |
| 1620 | F77 Fortran 77 compiler command |
| 1621 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1622 | |
| 1623 | Use these variables to override the choices made by `configure' or to help |
| 1624 | it to find libraries and programs with nonstandard names/locations. |
| 1625 | |
| 1626 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1627 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1628 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1629 | fi |
| 1630 | |
| 1631 | if test "$ac_init_help" = "recursive"; then |
| 1632 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1633 | 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] | 1634 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | ac_builddir=. |
| 1636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1637 | case "$ac_dir" in |
| 1638 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1639 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1640 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1641 | # A ".." for each directory in $ac_dir_suffix. |
| 1642 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1643 | case $ac_top_builddir_sub in |
| 1644 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1645 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1646 | esac ;; |
| 1647 | esac |
| 1648 | ac_abs_top_builddir=$ac_pwd |
| 1649 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1650 | # for backward compatibility: |
| 1651 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | |
| 1653 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1654 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1655 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | ac_top_srcdir=$ac_top_builddir_sub |
| 1657 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1658 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1659 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1660 | ac_top_srcdir=$srcdir |
| 1661 | ac_abs_top_srcdir=$srcdir ;; |
| 1662 | *) # Relative name. |
| 1663 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1664 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1665 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1666 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1667 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1669 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1670 | # Check for guested configure. |
| 1671 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1672 | echo && |
| 1673 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1674 | elif test -f "$ac_srcdir/configure"; then |
| 1675 | echo && |
| 1676 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1677 | else |
| 1678 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1679 | fi || ac_status=$? |
| 1680 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1681 | done |
| 1682 | fi |
| 1683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | if $ac_init_version; then |
| 1686 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1687 | llvm configure 2.7svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1688 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1690 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1691 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | This configure script is free software; the Free Software Foundation |
| 1693 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1694 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1695 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1696 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1697 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1699 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1700 | This file contains any messages produced by compilers while |
| 1701 | running configure, to aid debugging if configure makes a mistake. |
| 1702 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1703 | It was created by llvm $as_me 2.7svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1704 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | |
| 1706 | $ $0 $@ |
| 1707 | |
| 1708 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1709 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1710 | { |
| 1711 | cat <<_ASUNAME |
| 1712 | ## --------- ## |
| 1713 | ## Platform. ## |
| 1714 | ## --------- ## |
| 1715 | |
| 1716 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1717 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1718 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1719 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1720 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1721 | |
| 1722 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1723 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1724 | |
| 1725 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1726 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1727 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1729 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1730 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1731 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1732 | |
| 1733 | _ASUNAME |
| 1734 | |
| 1735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1736 | for as_dir in $PATH |
| 1737 | do |
| 1738 | IFS=$as_save_IFS |
| 1739 | test -z "$as_dir" && as_dir=. |
| 1740 | echo "PATH: $as_dir" |
| 1741 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1742 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1743 | |
| 1744 | } >&5 |
| 1745 | |
| 1746 | cat >&5 <<_ACEOF |
| 1747 | |
| 1748 | |
| 1749 | ## ----------- ## |
| 1750 | ## Core tests. ## |
| 1751 | ## ----------- ## |
| 1752 | |
| 1753 | _ACEOF |
| 1754 | |
| 1755 | |
| 1756 | # Keep a trace of the command line. |
| 1757 | # 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] | 1758 | # 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] | 1759 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1760 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1761 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1762 | ac_configure_args0= |
| 1763 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1764 | ac_must_keep_next=false |
| 1765 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1766 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1767 | for ac_arg |
| 1768 | do |
| 1769 | case $ac_arg in |
| 1770 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1771 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1772 | | -silent | --silent | --silen | --sile | --sil) |
| 1773 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1774 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1775 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1776 | esac |
| 1777 | case $ac_pass in |
| 1778 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1779 | 2) |
| 1780 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1781 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1782 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1783 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1784 | case $ac_arg in |
| 1785 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1786 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1787 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1788 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1789 | case "$ac_configure_args0 " in |
| 1790 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1791 | esac |
| 1792 | ;; |
| 1793 | -* ) ac_must_keep_next=true ;; |
| 1794 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1796 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1797 | ;; |
| 1798 | esac |
| 1799 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1800 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1801 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1802 | $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] | 1803 | |
| 1804 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1805 | # config.log. We remove comments because anyway the quotes in there |
| 1806 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1807 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1808 | # 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] | 1809 | trap 'exit_status=$? |
| 1810 | # Save into config.log some information that might help in debugging. |
| 1811 | { |
| 1812 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1813 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | cat <<\_ASBOX |
| 1815 | ## ---------------- ## |
| 1816 | ## Cache variables. ## |
| 1817 | ## ---------------- ## |
| 1818 | _ASBOX |
| 1819 | echo |
| 1820 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1821 | ( |
| 1822 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1823 | eval ac_val=\$$ac_var |
| 1824 | case $ac_val in #( |
| 1825 | *${as_nl}*) |
| 1826 | case $ac_var in #( |
| 1827 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1828 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1829 | esac |
| 1830 | case $ac_var in #( |
| 1831 | _ | IFS | as_nl) ;; #( |
| 1832 | *) $as_unset $ac_var ;; |
| 1833 | esac ;; |
| 1834 | esac |
| 1835 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1837 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1838 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1839 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1840 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1841 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1842 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1843 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1844 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1845 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1846 | esac | |
| 1847 | sort |
| 1848 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1849 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1850 | |
| 1851 | cat <<\_ASBOX |
| 1852 | ## ----------------- ## |
| 1853 | ## Output variables. ## |
| 1854 | ## ----------------- ## |
| 1855 | _ASBOX |
| 1856 | echo |
| 1857 | for ac_var in $ac_subst_vars |
| 1858 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1859 | eval ac_val=\$$ac_var |
| 1860 | case $ac_val in |
| 1861 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1862 | esac |
| 1863 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1864 | done | sort |
| 1865 | echo |
| 1866 | |
| 1867 | if test -n "$ac_subst_files"; then |
| 1868 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1869 | ## ------------------- ## |
| 1870 | ## File substitutions. ## |
| 1871 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1872 | _ASBOX |
| 1873 | echo |
| 1874 | for ac_var in $ac_subst_files |
| 1875 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1876 | eval ac_val=\$$ac_var |
| 1877 | case $ac_val in |
| 1878 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1879 | esac |
| 1880 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1881 | done | sort |
| 1882 | echo |
| 1883 | fi |
| 1884 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | if test -s confdefs.h; then |
| 1886 | cat <<\_ASBOX |
| 1887 | ## ----------- ## |
| 1888 | ## confdefs.h. ## |
| 1889 | ## ----------- ## |
| 1890 | _ASBOX |
| 1891 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1892 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | echo |
| 1894 | fi |
| 1895 | test "$ac_signal" != 0 && |
| 1896 | echo "$as_me: caught signal $ac_signal" |
| 1897 | echo "$as_me: exit $exit_status" |
| 1898 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1899 | rm -f core *.core core.conftest.* && |
| 1900 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1901 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1902 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1903 | for ac_signal in 1 2 13 15; do |
| 1904 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1905 | done |
| 1906 | ac_signal=0 |
| 1907 | |
| 1908 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1909 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1910 | |
| 1911 | # Predefined preprocessor variables. |
| 1912 | |
| 1913 | cat >>confdefs.h <<_ACEOF |
| 1914 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1915 | _ACEOF |
| 1916 | |
| 1917 | |
| 1918 | cat >>confdefs.h <<_ACEOF |
| 1919 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1920 | _ACEOF |
| 1921 | |
| 1922 | |
| 1923 | cat >>confdefs.h <<_ACEOF |
| 1924 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1925 | _ACEOF |
| 1926 | |
| 1927 | |
| 1928 | cat >>confdefs.h <<_ACEOF |
| 1929 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1930 | _ACEOF |
| 1931 | |
| 1932 | |
| 1933 | cat >>confdefs.h <<_ACEOF |
| 1934 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1935 | _ACEOF |
| 1936 | |
| 1937 | |
| 1938 | # Let the site file select an alternate cache file if it wants to. |
| 1939 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1940 | if test -n "$CONFIG_SITE"; then |
| 1941 | set x "$CONFIG_SITE" |
| 1942 | elif test "x$prefix" != xNONE; then |
| 1943 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1944 | else |
| 1945 | set x "$ac_default_prefix/share/config.site" \ |
| 1946 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1947 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1948 | shift |
| 1949 | for ac_site_file |
| 1950 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1951 | if test -r "$ac_site_file"; then |
| 1952 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1953 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1954 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1955 | . "$ac_site_file" |
| 1956 | fi |
| 1957 | done |
| 1958 | |
| 1959 | if test -r "$cache_file"; then |
| 1960 | # Some versions of bash will fail to source /dev/null (special |
| 1961 | # files actually), so we avoid doing that. |
| 1962 | if test -f "$cache_file"; then |
| 1963 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1964 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1965 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1966 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1967 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1968 | esac |
| 1969 | fi |
| 1970 | else |
| 1971 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1972 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1973 | >$cache_file |
| 1974 | fi |
| 1975 | |
| 1976 | # Check that the precious variables saved in the cache have kept the same |
| 1977 | # value. |
| 1978 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1979 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1980 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1981 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1982 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1983 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1984 | case $ac_old_set,$ac_new_set in |
| 1985 | set,) |
| 1986 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1987 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1988 | ac_cache_corrupted=: ;; |
| 1989 | ,set) |
| 1990 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1991 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1992 | ac_cache_corrupted=: ;; |
| 1993 | ,);; |
| 1994 | *) |
| 1995 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1996 | { 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] | 1997 | 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] | 1998 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1999 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2000 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2002 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2003 | fi;; |
| 2004 | esac |
| 2005 | # Pass precious variables to config.status. |
| 2006 | if test "$ac_new_set" = set; then |
| 2007 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2008 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2009 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2010 | esac |
| 2011 | case " $ac_configure_args " in |
| 2012 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2013 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 2014 | esac |
| 2015 | fi |
| 2016 | done |
| 2017 | if $ac_cache_corrupted; then |
| 2018 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 2019 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2020 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2021 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2022 | { (exit 1); exit 1; }; } |
| 2023 | fi |
| 2024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | |
| 2046 | |
| 2047 | |
| 2048 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2049 | ac_ext=c |
| 2050 | ac_cpp='$CPP $CPPFLAGS' |
| 2051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2054 | |
| 2055 | |
| 2056 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 2057 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2058 | |
| 2059 | |
| 2060 | |
| 2061 | |
| 2062 | |
| 2063 | |
| 2064 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2067 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2068 | ac_aux_dir=$ac_dir |
| 2069 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2070 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2071 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2072 | ac_aux_dir=$ac_dir |
| 2073 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2074 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2075 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2076 | ac_aux_dir=$ac_dir |
| 2077 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2078 | break |
| 2079 | fi |
| 2080 | done |
| 2081 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2082 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2083 | 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] | 2084 | { (exit 1); exit 1; }; } |
| 2085 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | |
| 2087 | # These three variables are undocumented and unsupported, |
| 2088 | # and are intended to be withdrawn in a future Autoconf release. |
| 2089 | # They can cause serious problems if a builder's source tree is in a directory |
| 2090 | # whose full name contains unusual characters. |
| 2091 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2092 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2093 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2096 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2097 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2098 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2099 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2100 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2101 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2102 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2103 | fi |
| 2104 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2105 | for i in `ls ${srcdir}/projects` |
| 2106 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2107 | if test -d ${srcdir}/projects/${i} ; then |
| 2108 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2109 | CVS) ;; |
| 2110 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2111 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2112 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2113 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2114 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2115 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2116 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2117 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2118 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2119 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2120 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2121 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2122 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2123 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2124 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2125 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2126 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2127 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2128 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2129 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2130 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2131 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2132 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2133 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2134 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2135 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2136 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2137 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2138 | 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] | 2139 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2140 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2141 | fi |
| 2142 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2143 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2144 | |
| 2145 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2147 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2148 | 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] | 2149 | { (exit 1); exit 1; }; } |
| 2150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2151 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2152 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | if test "${ac_cv_build+set}" = set; then |
| 2154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2155 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2156 | ac_build_alias=$build_alias |
| 2157 | test "x$ac_build_alias" = x && |
| 2158 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2159 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2160 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2161 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2162 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2163 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2164 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2165 | 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] | 2166 | { (exit 1); exit 1; }; } |
| 2167 | |
| 2168 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2169 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2170 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2171 | case $ac_cv_build in |
| 2172 | *-*-*) ;; |
| 2173 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2174 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2175 | { (exit 1); exit 1; }; };; |
| 2176 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2177 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | ac_save_IFS=$IFS; IFS='-' |
| 2179 | set x $ac_cv_build |
| 2180 | shift |
| 2181 | build_cpu=$1 |
| 2182 | build_vendor=$2 |
| 2183 | shift; shift |
| 2184 | # Remember, the first character of IFS is used to create $*, |
| 2185 | # except with old shells: |
| 2186 | build_os=$* |
| 2187 | IFS=$ac_save_IFS |
| 2188 | 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] | 2189 | |
| 2190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2191 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2192 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2193 | if test "${ac_cv_host+set}" = set; then |
| 2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2195 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2196 | if test "x$host_alias" = x; then |
| 2197 | ac_cv_host=$ac_cv_build |
| 2198 | else |
| 2199 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2200 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2201 | 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] | 2202 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2203 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2204 | |
| 2205 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2206 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2207 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2208 | case $ac_cv_host in |
| 2209 | *-*-*) ;; |
| 2210 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2211 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2212 | { (exit 1); exit 1; }; };; |
| 2213 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2214 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2215 | ac_save_IFS=$IFS; IFS='-' |
| 2216 | set x $ac_cv_host |
| 2217 | shift |
| 2218 | host_cpu=$1 |
| 2219 | host_vendor=$2 |
| 2220 | shift; shift |
| 2221 | # Remember, the first character of IFS is used to create $*, |
| 2222 | # except with old shells: |
| 2223 | host_os=$* |
| 2224 | IFS=$ac_save_IFS |
| 2225 | 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] | 2226 | |
| 2227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2228 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2229 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2230 | if test "${ac_cv_target+set}" = set; then |
| 2231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2232 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2233 | if test "x$target_alias" = x; then |
| 2234 | ac_cv_target=$ac_cv_host |
| 2235 | else |
| 2236 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2237 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2238 | 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] | 2239 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2240 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2241 | |
| 2242 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2243 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2244 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2245 | case $ac_cv_target in |
| 2246 | *-*-*) ;; |
| 2247 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2248 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2249 | { (exit 1); exit 1; }; };; |
| 2250 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2251 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2252 | ac_save_IFS=$IFS; IFS='-' |
| 2253 | set x $ac_cv_target |
| 2254 | shift |
| 2255 | target_cpu=$1 |
| 2256 | target_vendor=$2 |
| 2257 | shift; shift |
| 2258 | # Remember, the first character of IFS is used to create $*, |
| 2259 | # except with old shells: |
| 2260 | target_os=$* |
| 2261 | IFS=$ac_save_IFS |
| 2262 | 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] | 2263 | |
| 2264 | |
| 2265 | # The aliases save the names the user supplied, while $host etc. |
| 2266 | # will get canonicalized. |
| 2267 | test -n "$target_alias" && |
| 2268 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2269 | NONENONEs,x,x, && |
| 2270 | program_prefix=${target_alias}- |
| 2271 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2272 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2273 | 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] | 2274 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2276 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2277 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2278 | *-*-aix*) |
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="AIX" |
| 2282 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2283 | *-*-irix*) |
| 2284 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2285 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2286 | llvm_cv_os_type="IRIX" |
| 2287 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2288 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2289 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2290 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | llvm_cv_os_type="Cygwin" |
| 2292 | llvm_cv_platform_type="Unix" ;; |
| 2293 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2294 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2295 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2296 | llvm_cv_os_type="Darwin" |
| 2297 | llvm_cv_platform_type="Unix" ;; |
| 2298 | *-*-freebsd*) |
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" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2301 | llvm_cv_os_type="FreeBSD" |
| 2302 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2303 | *-*-openbsd*) |
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 | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2306 | llvm_cv_os_type="OpenBSD" |
| 2307 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2308 | *-*-netbsd*) |
| 2309 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2310 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2311 | llvm_cv_os_type="NetBSD" |
| 2312 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2313 | *-*-dragonfly*) |
| 2314 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2315 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2316 | llvm_cv_os_type="DragonFly" |
| 2317 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2318 | *-*-hpux*) |
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" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2321 | llvm_cv_os_type="HP-UX" |
| 2322 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2323 | *-*-interix*) |
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="Interix" |
| 2327 | llvm_cv_platform_type="Unix" ;; |
| 2328 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2329 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2330 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | llvm_cv_os_type="Linux" |
| 2332 | llvm_cv_platform_type="Unix" ;; |
| 2333 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2334 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2335 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2336 | llvm_cv_os_type="SunOS" |
| 2337 | llvm_cv_platform_type="Unix" ;; |
| 2338 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2339 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2340 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2341 | llvm_cv_os_type="Win32" |
| 2342 | llvm_cv_platform_type="Win32" ;; |
| 2343 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2344 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2345 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2346 | llvm_cv_os_type="MingW" |
| 2347 | llvm_cv_platform_type="Win32" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2348 | *-unknown-eabi*) |
| 2349 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2350 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2351 | llvm_cv_os_type="Freestanding" |
| 2352 | llvm_cv_platform_type="Unix" ;; |
| 2353 | *-unknown-elf*) |
| 2354 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2355 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2356 | llvm_cv_os_type="Freestanding" |
| 2357 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2358 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2359 | llvm_cv_link_all_option="" |
| 2360 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2361 | llvm_cv_os_type="Unknown" |
| 2362 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2363 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2365 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2366 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2367 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2368 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2369 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2370 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2372 | else |
| 2373 | case $target in |
| 2374 | *-*-aix*) |
| 2375 | llvm_cv_target_os_type="AIX" ;; |
| 2376 | *-*-irix*) |
| 2377 | llvm_cv_target_os_type="IRIX" ;; |
| 2378 | *-*-cygwin*) |
| 2379 | llvm_cv_target_os_type="Cygwin" ;; |
| 2380 | *-*-darwin*) |
| 2381 | llvm_cv_target_os_type="Darwin" ;; |
| 2382 | *-*-freebsd*) |
| 2383 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2384 | *-*-openbsd*) |
| 2385 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2386 | *-*-netbsd*) |
| 2387 | llvm_cv_target_os_type="NetBSD" ;; |
| 2388 | *-*-dragonfly*) |
| 2389 | llvm_cv_target_os_type="DragonFly" ;; |
| 2390 | *-*-hpux*) |
| 2391 | llvm_cv_target_os_type="HP-UX" ;; |
| 2392 | *-*-interix*) |
| 2393 | llvm_cv_target_os_type="Interix" ;; |
| 2394 | *-*-linux*) |
| 2395 | llvm_cv_target_os_type="Linux" ;; |
| 2396 | *-*-solaris*) |
| 2397 | llvm_cv_target_os_type="SunOS" ;; |
| 2398 | *-*-win32*) |
| 2399 | llvm_cv_target_os_type="Win32" ;; |
| 2400 | *-*-mingw*) |
| 2401 | llvm_cv_target_os_type="MingW" ;; |
| 2402 | *-unknown-eabi*) |
| 2403 | llvm_cv_target_os_type="Freestanding" ;; |
| 2404 | *) |
| 2405 | llvm_cv_target_os_type="Unknown" ;; |
| 2406 | esac |
| 2407 | fi |
| 2408 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2409 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 2410 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2411 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2412 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2413 | 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] | 2414 | { (exit 1); exit 1; }; } |
| 2415 | fi |
| 2416 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2417 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2418 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2419 | HOST_OS=$llvm_cv_os_type |
| 2420 | |
| 2421 | TARGET_OS=$llvm_cv_target_os_type |
| 2422 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2424 | LINKALL=$llvm_cv_link_all_option |
| 2425 | |
| 2426 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2427 | |
| 2428 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2429 | case $llvm_cv_platform_type in |
| 2430 | Unix) |
| 2431 | |
| 2432 | cat >>confdefs.h <<\_ACEOF |
| 2433 | #define LLVM_ON_UNIX 1 |
| 2434 | _ACEOF |
| 2435 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2436 | LLVM_ON_UNIX=1 |
| 2437 | |
| 2438 | LLVM_ON_WIN32=0 |
| 2439 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2440 | ;; |
| 2441 | Win32) |
| 2442 | |
| 2443 | cat >>confdefs.h <<\_ACEOF |
| 2444 | #define LLVM_ON_WIN32 1 |
| 2445 | _ACEOF |
| 2446 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2447 | LLVM_ON_UNIX=0 |
| 2448 | |
| 2449 | LLVM_ON_WIN32=1 |
| 2450 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2451 | ;; |
| 2452 | esac |
| 2453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2455 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2458 | else |
| 2459 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2460 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2461 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2462 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2463 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2464 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2465 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2466 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2467 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2468 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2469 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2470 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2471 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2472 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2473 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2474 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2475 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2476 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2477 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2478 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2479 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2480 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2481 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2482 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 2483 | # Determine the LLVM native architecture for the target |
| 2484 | case "$llvm_cv_target_arch" in |
| 2485 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2486 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2487 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2488 | esac |
| 2489 | |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 2490 | ARCH=$llvm_cv_target_arch |
| 2491 | |
| 2492 | |
| 2493 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2494 | ac_cpp='$CPP $CPPFLAGS' |
| 2495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2498 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2499 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2500 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2503 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2505 | else |
| 2506 | if test -n "$CC"; then |
| 2507 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2508 | else |
| 2509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2510 | for as_dir in $PATH |
| 2511 | do |
| 2512 | IFS=$as_save_IFS |
| 2513 | test -z "$as_dir" && as_dir=. |
| 2514 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2515 | 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] | 2516 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2518 | break 2 |
| 2519 | fi |
| 2520 | done |
| 2521 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2522 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2523 | |
| 2524 | fi |
| 2525 | fi |
| 2526 | CC=$ac_cv_prog_CC |
| 2527 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2529 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2530 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2532 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2533 | fi |
| 2534 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2535 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2536 | fi |
| 2537 | if test -z "$ac_cv_prog_CC"; then |
| 2538 | ac_ct_CC=$CC |
| 2539 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2540 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2543 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2545 | else |
| 2546 | if test -n "$ac_ct_CC"; then |
| 2547 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2548 | else |
| 2549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2550 | for as_dir in $PATH |
| 2551 | do |
| 2552 | IFS=$as_save_IFS |
| 2553 | test -z "$as_dir" && as_dir=. |
| 2554 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2555 | 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] | 2556 | ac_cv_prog_ac_ct_CC="gcc" |
| 2557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2558 | break 2 |
| 2559 | fi |
| 2560 | done |
| 2561 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2562 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2563 | |
| 2564 | fi |
| 2565 | fi |
| 2566 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2567 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2568 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2569 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2570 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2571 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2572 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2573 | fi |
| 2574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2575 | if test "x$ac_ct_CC" = x; then |
| 2576 | CC="" |
| 2577 | else |
| 2578 | case $cross_compiling:$ac_tool_warned in |
| 2579 | yes:) |
| 2580 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2581 | whose name does not start with the host triplet. If you think this |
| 2582 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2583 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2584 | whose name does not start with the host triplet. If you think this |
| 2585 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2586 | ac_tool_warned=yes ;; |
| 2587 | esac |
| 2588 | CC=$ac_ct_CC |
| 2589 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2590 | else |
| 2591 | CC="$ac_cv_prog_CC" |
| 2592 | fi |
| 2593 | |
| 2594 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | if test -n "$ac_tool_prefix"; then |
| 2596 | # 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] | 2597 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2600 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2602 | else |
| 2603 | if test -n "$CC"; then |
| 2604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2605 | else |
| 2606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2607 | for as_dir in $PATH |
| 2608 | do |
| 2609 | IFS=$as_save_IFS |
| 2610 | test -z "$as_dir" && as_dir=. |
| 2611 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2612 | 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] | 2613 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2615 | break 2 |
| 2616 | fi |
| 2617 | done |
| 2618 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2619 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2620 | |
| 2621 | fi |
| 2622 | fi |
| 2623 | CC=$ac_cv_prog_CC |
| 2624 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2626 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2629 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | fi |
| 2631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2632 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2633 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2634 | fi |
| 2635 | if test -z "$CC"; then |
| 2636 | # Extract the first word of "cc", so it can be a program name with args. |
| 2637 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2638 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2640 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2642 | else |
| 2643 | if test -n "$CC"; then |
| 2644 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2645 | else |
| 2646 | ac_prog_rejected=no |
| 2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2648 | for as_dir in $PATH |
| 2649 | do |
| 2650 | IFS=$as_save_IFS |
| 2651 | test -z "$as_dir" && as_dir=. |
| 2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2653 | 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] | 2654 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2655 | ac_prog_rejected=yes |
| 2656 | continue |
| 2657 | fi |
| 2658 | ac_cv_prog_CC="cc" |
| 2659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2660 | break 2 |
| 2661 | fi |
| 2662 | done |
| 2663 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2664 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2665 | |
| 2666 | if test $ac_prog_rejected = yes; then |
| 2667 | # We found a bogon in the path, so make sure we never use it. |
| 2668 | set dummy $ac_cv_prog_CC |
| 2669 | shift |
| 2670 | if test $# != 0; then |
| 2671 | # We chose a different compiler from the bogus one. |
| 2672 | # However, it has the same basename, so the bogon will be chosen |
| 2673 | # first if we set CC to just the basename; use the full file name. |
| 2674 | shift |
| 2675 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2676 | fi |
| 2677 | fi |
| 2678 | fi |
| 2679 | fi |
| 2680 | CC=$ac_cv_prog_CC |
| 2681 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2683 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +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; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +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 | fi |
| 2691 | if test -z "$CC"; then |
| 2692 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2693 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2694 | do |
| 2695 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2696 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2697 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2699 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2701 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2702 | if test -n "$CC"; then |
| 2703 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | else |
| 2705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2706 | for as_dir in $PATH |
| 2707 | do |
| 2708 | IFS=$as_save_IFS |
| 2709 | test -z "$as_dir" && as_dir=. |
| 2710 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2711 | 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] | 2712 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2714 | break 2 |
| 2715 | fi |
| 2716 | done |
| 2717 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2718 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2719 | |
| 2720 | fi |
| 2721 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2722 | CC=$ac_cv_prog_CC |
| 2723 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2724 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2725 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2726 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2727 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2728 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2729 | fi |
| 2730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2731 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2733 | done |
| 2734 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2735 | if test -z "$CC"; then |
| 2736 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2737 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2738 | do |
| 2739 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2740 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2743 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2745 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2746 | if test -n "$ac_ct_CC"; then |
| 2747 | 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] | 2748 | else |
| 2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2750 | for as_dir in $PATH |
| 2751 | do |
| 2752 | IFS=$as_save_IFS |
| 2753 | test -z "$as_dir" && as_dir=. |
| 2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2755 | 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] | 2756 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2758 | break 2 |
| 2759 | fi |
| 2760 | done |
| 2761 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2763 | |
| 2764 | fi |
| 2765 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2766 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2767 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2768 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2769 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2770 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2772 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2773 | fi |
| 2774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2775 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2776 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2777 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2779 | if test "x$ac_ct_CC" = x; then |
| 2780 | CC="" |
| 2781 | else |
| 2782 | case $cross_compiling:$ac_tool_warned in |
| 2783 | yes:) |
| 2784 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2785 | whose name does not start with the host triplet. If you think this |
| 2786 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2787 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2788 | whose name does not start with the host triplet. If you think this |
| 2789 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2790 | ac_tool_warned=yes ;; |
| 2791 | esac |
| 2792 | CC=$ac_ct_CC |
| 2793 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2794 | fi |
| 2795 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2796 | fi |
| 2797 | |
| 2798 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2799 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2800 | See \`config.log' for more details." >&5 |
| 2801 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2802 | See \`config.log' for more details." >&2;} |
| 2803 | { (exit 1); exit 1; }; } |
| 2804 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2805 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2806 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2807 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2808 | { (ac_try="$ac_compiler --version >&5" |
| 2809 | case "(($ac_try" in |
| 2810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2811 | *) ac_try_echo=$ac_try;; |
| 2812 | esac |
| 2813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2814 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2815 | ac_status=$? |
| 2816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2817 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2818 | { (ac_try="$ac_compiler -v >&5" |
| 2819 | case "(($ac_try" in |
| 2820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2821 | *) ac_try_echo=$ac_try;; |
| 2822 | esac |
| 2823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2824 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | ac_status=$? |
| 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2827 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2828 | { (ac_try="$ac_compiler -V >&5" |
| 2829 | case "(($ac_try" in |
| 2830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2831 | *) ac_try_echo=$ac_try;; |
| 2832 | esac |
| 2833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2834 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2835 | ac_status=$? |
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2837 | (exit $ac_status); } |
| 2838 | |
| 2839 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2840 | /* confdefs.h. */ |
| 2841 | _ACEOF |
| 2842 | cat confdefs.h >>conftest.$ac_ext |
| 2843 | cat >>conftest.$ac_ext <<_ACEOF |
| 2844 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2846 | int |
| 2847 | main () |
| 2848 | { |
| 2849 | |
| 2850 | ; |
| 2851 | return 0; |
| 2852 | } |
| 2853 | _ACEOF |
| 2854 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2855 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2856 | # Try to create an executable without -o first, disregard a.out. |
| 2857 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2858 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2859 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2860 | 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] | 2861 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2862 | # |
| 2863 | # List of possible output files, starting from the most likely. |
| 2864 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2865 | # only as a last resort. b.out is created by i960 compilers. |
| 2866 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2867 | # |
| 2868 | # The IRIX 6 linker writes into existing files which may not be |
| 2869 | # executable, retaining their permissions. Remove them first so a |
| 2870 | # subsequent execution test works. |
| 2871 | ac_rmfiles= |
| 2872 | for ac_file in $ac_files |
| 2873 | do |
| 2874 | case $ac_file in |
| 2875 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2876 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2877 | esac |
| 2878 | done |
| 2879 | rm -f $ac_rmfiles |
| 2880 | |
| 2881 | if { (ac_try="$ac_link_default" |
| 2882 | case "(($ac_try" in |
| 2883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2884 | *) ac_try_echo=$ac_try;; |
| 2885 | esac |
| 2886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2887 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2888 | ac_status=$? |
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2891 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2892 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2893 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2894 | # so that the user can short-circuit this test for compilers unknown to |
| 2895 | # Autoconf. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2896 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2897 | do |
| 2898 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2899 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2900 | *.$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] | 2901 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2902 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2903 | # We found the default executable, but exeext='' is most |
| 2904 | # certainly right. |
| 2905 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2906 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2907 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2908 | then :; else |
| 2909 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2910 | fi |
| 2911 | # We set ac_cv_exeext here because the later test for it is not |
| 2912 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2913 | # argument, so we may need to know it at that point already. |
| 2914 | # Even if this section looks crufty: it has the advantage of |
| 2915 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2916 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2917 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2918 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2919 | esac |
| 2920 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2921 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2922 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2923 | else |
| 2924 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2926 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2927 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2928 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2929 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2930 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | { (exit 77); exit 77; }; } |
| 2932 | fi |
| 2933 | |
| 2934 | ac_exeext=$ac_cv_exeext |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2935 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2936 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2938 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2940 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2941 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2942 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2943 | # If not cross compiling, check that we can run a simple program. |
| 2944 | if test "$cross_compiling" != yes; then |
| 2945 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2946 | { (case "(($ac_try" in |
| 2947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2948 | *) ac_try_echo=$ac_try;; |
| 2949 | esac |
| 2950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2951 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2952 | ac_status=$? |
| 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2954 | (exit $ac_status); }; }; then |
| 2955 | cross_compiling=no |
| 2956 | else |
| 2957 | if test "$cross_compiling" = maybe; then |
| 2958 | cross_compiling=yes |
| 2959 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2960 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2961 | If you meant to cross compile, use \`--host'. |
| 2962 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2963 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2964 | If you meant to cross compile, use \`--host'. |
| 2965 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2966 | { (exit 1); exit 1; }; } |
| 2967 | fi |
| 2968 | fi |
| 2969 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2970 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2971 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2973 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2974 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2975 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2976 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2977 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2978 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2979 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2980 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2982 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2983 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2984 | if { (ac_try="$ac_link" |
| 2985 | case "(($ac_try" in |
| 2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2987 | *) ac_try_echo=$ac_try;; |
| 2988 | esac |
| 2989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2990 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2991 | ac_status=$? |
| 2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2993 | (exit $ac_status); }; then |
| 2994 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2995 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2996 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2997 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2998 | for ac_file in conftest.exe conftest conftest.*; do |
| 2999 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3000 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3001 | *.$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] | 3002 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3003 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3004 | * ) break;; |
| 3005 | esac |
| 3006 | done |
| 3007 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3008 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3009 | See \`config.log' for more details." >&5 |
| 3010 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3011 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3012 | { (exit 1); exit 1; }; } |
| 3013 | fi |
| 3014 | |
| 3015 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3016 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3017 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3018 | |
| 3019 | rm -f conftest.$ac_ext |
| 3020 | EXEEXT=$ac_cv_exeext |
| 3021 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3022 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3023 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3024 | if test "${ac_cv_objext+set}" = set; then |
| 3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3026 | else |
| 3027 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3028 | /* confdefs.h. */ |
| 3029 | _ACEOF |
| 3030 | cat confdefs.h >>conftest.$ac_ext |
| 3031 | cat >>conftest.$ac_ext <<_ACEOF |
| 3032 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3034 | int |
| 3035 | main () |
| 3036 | { |
| 3037 | |
| 3038 | ; |
| 3039 | return 0; |
| 3040 | } |
| 3041 | _ACEOF |
| 3042 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3043 | if { (ac_try="$ac_compile" |
| 3044 | case "(($ac_try" in |
| 3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3046 | *) ac_try_echo=$ac_try;; |
| 3047 | esac |
| 3048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3049 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3050 | ac_status=$? |
| 3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3052 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3053 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3054 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3055 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3056 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3057 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3058 | break;; |
| 3059 | esac |
| 3060 | done |
| 3061 | else |
| 3062 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3064 | |
| 3065 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3066 | See \`config.log' for more details." >&5 |
| 3067 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3068 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3069 | { (exit 1); exit 1; }; } |
| 3070 | fi |
| 3071 | |
| 3072 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3074 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3075 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3076 | OBJEXT=$ac_cv_objext |
| 3077 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3078 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3079 | 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] | 3080 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3082 | else |
| 3083 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3084 | /* confdefs.h. */ |
| 3085 | _ACEOF |
| 3086 | cat confdefs.h >>conftest.$ac_ext |
| 3087 | cat >>conftest.$ac_ext <<_ACEOF |
| 3088 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3090 | int |
| 3091 | main () |
| 3092 | { |
| 3093 | #ifndef __GNUC__ |
| 3094 | choke me |
| 3095 | #endif |
| 3096 | |
| 3097 | ; |
| 3098 | return 0; |
| 3099 | } |
| 3100 | _ACEOF |
| 3101 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3102 | if { (ac_try="$ac_compile" |
| 3103 | case "(($ac_try" in |
| 3104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3105 | *) ac_try_echo=$ac_try;; |
| 3106 | esac |
| 3107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3108 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3109 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3111 | rm -f conftest.er1 |
| 3112 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3114 | (exit $ac_status); } && |
| 3115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3116 | { (case "(($ac_try" in |
| 3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3118 | *) ac_try_echo=$ac_try;; |
| 3119 | esac |
| 3120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3121 | (eval "$ac_try") 2>&5 |
| 3122 | ac_status=$? |
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3124 | (exit $ac_status); }; } && |
| 3125 | { ac_try='test -s conftest.$ac_objext' |
| 3126 | { (case "(($ac_try" in |
| 3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3128 | *) ac_try_echo=$ac_try;; |
| 3129 | esac |
| 3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3131 | (eval "$ac_try") 2>&5 |
| 3132 | ac_status=$? |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3135 | ac_compiler_gnu=yes |
| 3136 | else |
| 3137 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3140 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3142 | |
| 3143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3144 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3145 | |
| 3146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3147 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3148 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3149 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3150 | ac_test_CFLAGS=${CFLAGS+set} |
| 3151 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3152 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3153 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3154 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3156 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3157 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3158 | ac_c_werror_flag=yes |
| 3159 | ac_cv_prog_cc_g=no |
| 3160 | CFLAGS="-g" |
| 3161 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3162 | /* confdefs.h. */ |
| 3163 | _ACEOF |
| 3164 | cat confdefs.h >>conftest.$ac_ext |
| 3165 | cat >>conftest.$ac_ext <<_ACEOF |
| 3166 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3167 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3168 | int |
| 3169 | main () |
| 3170 | { |
| 3171 | |
| 3172 | ; |
| 3173 | return 0; |
| 3174 | } |
| 3175 | _ACEOF |
| 3176 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3177 | if { (ac_try="$ac_compile" |
| 3178 | case "(($ac_try" in |
| 3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3180 | *) ac_try_echo=$ac_try;; |
| 3181 | esac |
| 3182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3183 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3184 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3186 | rm -f conftest.er1 |
| 3187 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3189 | (exit $ac_status); } && |
| 3190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3191 | { (case "(($ac_try" in |
| 3192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3193 | *) ac_try_echo=$ac_try;; |
| 3194 | esac |
| 3195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3196 | (eval "$ac_try") 2>&5 |
| 3197 | ac_status=$? |
| 3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3199 | (exit $ac_status); }; } && |
| 3200 | { ac_try='test -s conftest.$ac_objext' |
| 3201 | { (case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
| 3205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3206 | (eval "$ac_try") 2>&5 |
| 3207 | ac_status=$? |
| 3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3209 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3210 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3211 | else |
| 3212 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3215 | CFLAGS="" |
| 3216 | cat >conftest.$ac_ext <<_ACEOF |
| 3217 | /* confdefs.h. */ |
| 3218 | _ACEOF |
| 3219 | cat confdefs.h >>conftest.$ac_ext |
| 3220 | cat >>conftest.$ac_ext <<_ACEOF |
| 3221 | /* end confdefs.h. */ |
| 3222 | |
| 3223 | int |
| 3224 | main () |
| 3225 | { |
| 3226 | |
| 3227 | ; |
| 3228 | return 0; |
| 3229 | } |
| 3230 | _ACEOF |
| 3231 | rm -f conftest.$ac_objext |
| 3232 | if { (ac_try="$ac_compile" |
| 3233 | case "(($ac_try" in |
| 3234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3235 | *) ac_try_echo=$ac_try;; |
| 3236 | esac |
| 3237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3238 | (eval "$ac_compile") 2>conftest.er1 |
| 3239 | ac_status=$? |
| 3240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3241 | rm -f conftest.er1 |
| 3242 | cat conftest.err >&5 |
| 3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3244 | (exit $ac_status); } && |
| 3245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3246 | { (case "(($ac_try" in |
| 3247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3248 | *) ac_try_echo=$ac_try;; |
| 3249 | esac |
| 3250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3251 | (eval "$ac_try") 2>&5 |
| 3252 | ac_status=$? |
| 3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3254 | (exit $ac_status); }; } && |
| 3255 | { ac_try='test -s conftest.$ac_objext' |
| 3256 | { (case "(($ac_try" in |
| 3257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3258 | *) ac_try_echo=$ac_try;; |
| 3259 | esac |
| 3260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3261 | (eval "$ac_try") 2>&5 |
| 3262 | ac_status=$? |
| 3263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3264 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3265 | : |
| 3266 | else |
| 3267 | echo "$as_me: failed program was:" >&5 |
| 3268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3269 | |
| 3270 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3271 | CFLAGS="-g" |
| 3272 | cat >conftest.$ac_ext <<_ACEOF |
| 3273 | /* confdefs.h. */ |
| 3274 | _ACEOF |
| 3275 | cat confdefs.h >>conftest.$ac_ext |
| 3276 | cat >>conftest.$ac_ext <<_ACEOF |
| 3277 | /* end confdefs.h. */ |
| 3278 | |
| 3279 | int |
| 3280 | main () |
| 3281 | { |
| 3282 | |
| 3283 | ; |
| 3284 | return 0; |
| 3285 | } |
| 3286 | _ACEOF |
| 3287 | rm -f conftest.$ac_objext |
| 3288 | if { (ac_try="$ac_compile" |
| 3289 | case "(($ac_try" in |
| 3290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3291 | *) ac_try_echo=$ac_try;; |
| 3292 | esac |
| 3293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3294 | (eval "$ac_compile") 2>conftest.er1 |
| 3295 | ac_status=$? |
| 3296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3297 | rm -f conftest.er1 |
| 3298 | cat conftest.err >&5 |
| 3299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3300 | (exit $ac_status); } && |
| 3301 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3302 | { (case "(($ac_try" in |
| 3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3304 | *) ac_try_echo=$ac_try;; |
| 3305 | esac |
| 3306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3307 | (eval "$ac_try") 2>&5 |
| 3308 | ac_status=$? |
| 3309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3310 | (exit $ac_status); }; } && |
| 3311 | { ac_try='test -s conftest.$ac_objext' |
| 3312 | { (case "(($ac_try" in |
| 3313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3314 | *) ac_try_echo=$ac_try;; |
| 3315 | esac |
| 3316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3317 | (eval "$ac_try") 2>&5 |
| 3318 | ac_status=$? |
| 3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3320 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3321 | ac_cv_prog_cc_g=yes |
| 3322 | else |
| 3323 | echo "$as_me: failed program was:" >&5 |
| 3324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3325 | |
| 3326 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3327 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3328 | |
| 3329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | |
| 3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3333 | fi |
| 3334 | |
| 3335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3336 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3337 | fi |
| 3338 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3339 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3340 | if test "$ac_test_CFLAGS" = set; then |
| 3341 | CFLAGS=$ac_save_CFLAGS |
| 3342 | elif test $ac_cv_prog_cc_g = yes; then |
| 3343 | if test "$GCC" = yes; then |
| 3344 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3345 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3346 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3347 | fi |
| 3348 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3349 | if test "$GCC" = yes; then |
| 3350 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3351 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3352 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3353 | fi |
| 3354 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3355 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3356 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3357 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3359 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3360 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | ac_save_CC=$CC |
| 3362 | cat >conftest.$ac_ext <<_ACEOF |
| 3363 | /* confdefs.h. */ |
| 3364 | _ACEOF |
| 3365 | cat confdefs.h >>conftest.$ac_ext |
| 3366 | cat >>conftest.$ac_ext <<_ACEOF |
| 3367 | /* end confdefs.h. */ |
| 3368 | #include <stdarg.h> |
| 3369 | #include <stdio.h> |
| 3370 | #include <sys/types.h> |
| 3371 | #include <sys/stat.h> |
| 3372 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3373 | struct buf { int x; }; |
| 3374 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3375 | static char *e (p, i) |
| 3376 | char **p; |
| 3377 | int i; |
| 3378 | { |
| 3379 | return p[i]; |
| 3380 | } |
| 3381 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3382 | { |
| 3383 | char *s; |
| 3384 | va_list v; |
| 3385 | va_start (v,p); |
| 3386 | s = g (p, va_arg (v,int)); |
| 3387 | va_end (v); |
| 3388 | return s; |
| 3389 | } |
| 3390 | |
| 3391 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3392 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3393 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3394 | 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] | 3395 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3396 | 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] | 3397 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3398 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3400 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3401 | inside strings and character constants. */ |
| 3402 | #define FOO(x) 'x' |
| 3403 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3405 | int test (int i, double x); |
| 3406 | struct s1 {int (*f) (int a);}; |
| 3407 | struct s2 {int (*f) (double a);}; |
| 3408 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3409 | int argc; |
| 3410 | char **argv; |
| 3411 | int |
| 3412 | main () |
| 3413 | { |
| 3414 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3415 | ; |
| 3416 | return 0; |
| 3417 | } |
| 3418 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3419 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3420 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | do |
| 3422 | CC="$ac_save_CC $ac_arg" |
| 3423 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3424 | if { (ac_try="$ac_compile" |
| 3425 | case "(($ac_try" in |
| 3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3427 | *) ac_try_echo=$ac_try;; |
| 3428 | esac |
| 3429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3430 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3431 | ac_status=$? |
| 3432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3433 | rm -f conftest.er1 |
| 3434 | cat conftest.err >&5 |
| 3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3436 | (exit $ac_status); } && |
| 3437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3438 | { (case "(($ac_try" in |
| 3439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3440 | *) ac_try_echo=$ac_try;; |
| 3441 | esac |
| 3442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3443 | (eval "$ac_try") 2>&5 |
| 3444 | ac_status=$? |
| 3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3446 | (exit $ac_status); }; } && |
| 3447 | { ac_try='test -s conftest.$ac_objext' |
| 3448 | { (case "(($ac_try" in |
| 3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3450 | *) ac_try_echo=$ac_try;; |
| 3451 | esac |
| 3452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3453 | (eval "$ac_try") 2>&5 |
| 3454 | ac_status=$? |
| 3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3456 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3457 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3458 | else |
| 3459 | echo "$as_me: failed program was:" >&5 |
| 3460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3462 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3463 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3464 | |
| 3465 | rm -f core conftest.err conftest.$ac_objext |
| 3466 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3468 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3469 | CC=$ac_save_CC |
| 3470 | |
| 3471 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3472 | # AC_CACHE_VAL |
| 3473 | case "x$ac_cv_prog_cc_c89" in |
| 3474 | x) |
| 3475 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3476 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3477 | xno) |
| 3478 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3479 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3480 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3481 | CC="$CC $ac_cv_prog_cc_c89" |
| 3482 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3483 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3484 | esac |
| 3485 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3486 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3487 | ac_ext=c |
| 3488 | ac_cpp='$CPP $CPPFLAGS' |
| 3489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3492 | |
| 3493 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3494 | ac_ext=c |
| 3495 | ac_cpp='$CPP $CPPFLAGS' |
| 3496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3499 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3500 | 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] | 3501 | # On Suns, sometimes $CPP names a directory. |
| 3502 | if test -n "$CPP" && test -d "$CPP"; then |
| 3503 | CPP= |
| 3504 | fi |
| 3505 | if test -z "$CPP"; then |
| 3506 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3508 | else |
| 3509 | # Double quotes because CPP needs to be expanded |
| 3510 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3511 | do |
| 3512 | ac_preproc_ok=false |
| 3513 | for ac_c_preproc_warn_flag in '' yes |
| 3514 | do |
| 3515 | # Use a header file that comes with gcc, so configuring glibc |
| 3516 | # with a fresh cross-compiler works. |
| 3517 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3518 | # <limits.h> exists even on freestanding compilers. |
| 3519 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3520 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3521 | cat >conftest.$ac_ext <<_ACEOF |
| 3522 | /* confdefs.h. */ |
| 3523 | _ACEOF |
| 3524 | cat confdefs.h >>conftest.$ac_ext |
| 3525 | cat >>conftest.$ac_ext <<_ACEOF |
| 3526 | /* end confdefs.h. */ |
| 3527 | #ifdef __STDC__ |
| 3528 | # include <limits.h> |
| 3529 | #else |
| 3530 | # include <assert.h> |
| 3531 | #endif |
| 3532 | Syntax error |
| 3533 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3535 | case "(($ac_try" in |
| 3536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3537 | *) ac_try_echo=$ac_try;; |
| 3538 | esac |
| 3539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3541 | ac_status=$? |
| 3542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3543 | rm -f conftest.er1 |
| 3544 | cat conftest.err >&5 |
| 3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3546 | (exit $ac_status); } >/dev/null; then |
| 3547 | if test -s conftest.err; then |
| 3548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3550 | else |
| 3551 | ac_cpp_err= |
| 3552 | fi |
| 3553 | else |
| 3554 | ac_cpp_err=yes |
| 3555 | fi |
| 3556 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3557 | : |
| 3558 | else |
| 3559 | echo "$as_me: failed program was:" >&5 |
| 3560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3561 | |
| 3562 | # Broken: fails on valid input. |
| 3563 | continue |
| 3564 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3565 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3566 | rm -f conftest.err conftest.$ac_ext |
| 3567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3568 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3569 | # can be detected and how. |
| 3570 | cat >conftest.$ac_ext <<_ACEOF |
| 3571 | /* confdefs.h. */ |
| 3572 | _ACEOF |
| 3573 | cat confdefs.h >>conftest.$ac_ext |
| 3574 | cat >>conftest.$ac_ext <<_ACEOF |
| 3575 | /* end confdefs.h. */ |
| 3576 | #include <ac_nonexistent.h> |
| 3577 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3578 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3579 | case "(($ac_try" in |
| 3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3581 | *) ac_try_echo=$ac_try;; |
| 3582 | esac |
| 3583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3584 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3585 | ac_status=$? |
| 3586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3587 | rm -f conftest.er1 |
| 3588 | cat conftest.err >&5 |
| 3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3590 | (exit $ac_status); } >/dev/null; then |
| 3591 | if test -s conftest.err; then |
| 3592 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3594 | else |
| 3595 | ac_cpp_err= |
| 3596 | fi |
| 3597 | else |
| 3598 | ac_cpp_err=yes |
| 3599 | fi |
| 3600 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3601 | # Broken: success on invalid input. |
| 3602 | continue |
| 3603 | else |
| 3604 | echo "$as_me: failed program was:" >&5 |
| 3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3606 | |
| 3607 | # Passes both tests. |
| 3608 | ac_preproc_ok=: |
| 3609 | break |
| 3610 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3611 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3612 | rm -f conftest.err conftest.$ac_ext |
| 3613 | |
| 3614 | done |
| 3615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3616 | rm -f conftest.err conftest.$ac_ext |
| 3617 | if $ac_preproc_ok; then |
| 3618 | break |
| 3619 | fi |
| 3620 | |
| 3621 | done |
| 3622 | ac_cv_prog_CPP=$CPP |
| 3623 | |
| 3624 | fi |
| 3625 | CPP=$ac_cv_prog_CPP |
| 3626 | else |
| 3627 | ac_cv_prog_CPP=$CPP |
| 3628 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3629 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3630 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3631 | ac_preproc_ok=false |
| 3632 | for ac_c_preproc_warn_flag in '' yes |
| 3633 | do |
| 3634 | # Use a header file that comes with gcc, so configuring glibc |
| 3635 | # with a fresh cross-compiler works. |
| 3636 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3637 | # <limits.h> exists even on freestanding compilers. |
| 3638 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3639 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3640 | cat >conftest.$ac_ext <<_ACEOF |
| 3641 | /* confdefs.h. */ |
| 3642 | _ACEOF |
| 3643 | cat confdefs.h >>conftest.$ac_ext |
| 3644 | cat >>conftest.$ac_ext <<_ACEOF |
| 3645 | /* end confdefs.h. */ |
| 3646 | #ifdef __STDC__ |
| 3647 | # include <limits.h> |
| 3648 | #else |
| 3649 | # include <assert.h> |
| 3650 | #endif |
| 3651 | Syntax error |
| 3652 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3653 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3654 | case "(($ac_try" in |
| 3655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3656 | *) ac_try_echo=$ac_try;; |
| 3657 | esac |
| 3658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3659 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3660 | ac_status=$? |
| 3661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3662 | rm -f conftest.er1 |
| 3663 | cat conftest.err >&5 |
| 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3665 | (exit $ac_status); } >/dev/null; then |
| 3666 | if test -s conftest.err; then |
| 3667 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3668 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3669 | else |
| 3670 | ac_cpp_err= |
| 3671 | fi |
| 3672 | else |
| 3673 | ac_cpp_err=yes |
| 3674 | fi |
| 3675 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3676 | : |
| 3677 | else |
| 3678 | echo "$as_me: failed program was:" >&5 |
| 3679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3680 | |
| 3681 | # Broken: fails on valid input. |
| 3682 | continue |
| 3683 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3684 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3685 | rm -f conftest.err conftest.$ac_ext |
| 3686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3687 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3688 | # can be detected and how. |
| 3689 | cat >conftest.$ac_ext <<_ACEOF |
| 3690 | /* confdefs.h. */ |
| 3691 | _ACEOF |
| 3692 | cat confdefs.h >>conftest.$ac_ext |
| 3693 | cat >>conftest.$ac_ext <<_ACEOF |
| 3694 | /* end confdefs.h. */ |
| 3695 | #include <ac_nonexistent.h> |
| 3696 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3697 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3698 | case "(($ac_try" in |
| 3699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3700 | *) ac_try_echo=$ac_try;; |
| 3701 | esac |
| 3702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3703 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3704 | ac_status=$? |
| 3705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3706 | rm -f conftest.er1 |
| 3707 | cat conftest.err >&5 |
| 3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3709 | (exit $ac_status); } >/dev/null; then |
| 3710 | if test -s conftest.err; then |
| 3711 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3712 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3713 | else |
| 3714 | ac_cpp_err= |
| 3715 | fi |
| 3716 | else |
| 3717 | ac_cpp_err=yes |
| 3718 | fi |
| 3719 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3720 | # Broken: success on invalid input. |
| 3721 | continue |
| 3722 | else |
| 3723 | echo "$as_me: failed program was:" >&5 |
| 3724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3725 | |
| 3726 | # Passes both tests. |
| 3727 | ac_preproc_ok=: |
| 3728 | break |
| 3729 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3730 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3731 | rm -f conftest.err conftest.$ac_ext |
| 3732 | |
| 3733 | done |
| 3734 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3735 | rm -f conftest.err conftest.$ac_ext |
| 3736 | if $ac_preproc_ok; then |
| 3737 | : |
| 3738 | else |
| 3739 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3740 | See \`config.log' for more details." >&5 |
| 3741 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3742 | See \`config.log' for more details." >&2;} |
| 3743 | { (exit 1); exit 1; }; } |
| 3744 | fi |
| 3745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3746 | ac_ext=c |
| 3747 | ac_cpp='$CPP $CPPFLAGS' |
| 3748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3751 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3753 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3754 | 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] | 3755 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3757 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3758 | # Extract the first word of "grep ggrep" to use in msg output |
| 3759 | if test -z "$GREP"; then |
| 3760 | set dummy grep ggrep; ac_prog_name=$2 |
| 3761 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3763 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3764 | ac_path_GREP_found=false |
| 3765 | # 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] | 3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3767 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3768 | do |
| 3769 | IFS=$as_save_IFS |
| 3770 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3771 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3773 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3774 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3775 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3776 | # Check for GNU $ac_path_GREP |
| 3777 | case `"$ac_path_GREP" --version 2>&1` in |
| 3778 | *GNU*) |
| 3779 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3780 | *) |
| 3781 | ac_count=0 |
| 3782 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3783 | while : |
| 3784 | do |
| 3785 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3786 | mv "conftest.tmp" "conftest.in" |
| 3787 | cp "conftest.in" "conftest.nl" |
| 3788 | echo 'GREP' >> "conftest.nl" |
| 3789 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3790 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3791 | ac_count=`expr $ac_count + 1` |
| 3792 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3793 | # Best one so far, save it but keep looking for a better one |
| 3794 | ac_cv_path_GREP="$ac_path_GREP" |
| 3795 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3797 | # 10*(2^10) chars as input seems more than enough |
| 3798 | test $ac_count -gt 10 && break |
| 3799 | done |
| 3800 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3801 | esac |
| 3802 | |
| 3803 | |
| 3804 | $ac_path_GREP_found && break 3 |
| 3805 | done |
| 3806 | done |
| 3807 | |
| 3808 | done |
| 3809 | IFS=$as_save_IFS |
| 3810 | |
| 3811 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3813 | |
| 3814 | GREP="$ac_cv_path_GREP" |
| 3815 | if test -z "$GREP"; then |
| 3816 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3817 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3818 | { (exit 1); exit 1; }; } |
| 3819 | fi |
| 3820 | |
| 3821 | else |
| 3822 | ac_cv_path_GREP=$GREP |
| 3823 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3824 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3826 | fi |
| 3827 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3828 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3829 | GREP="$ac_cv_path_GREP" |
| 3830 | |
| 3831 | |
| 3832 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3833 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3834 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3836 | else |
| 3837 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3838 | then ac_cv_path_EGREP="$GREP -E" |
| 3839 | else |
| 3840 | # Extract the first word of "egrep" to use in msg output |
| 3841 | if test -z "$EGREP"; then |
| 3842 | set dummy egrep; ac_prog_name=$2 |
| 3843 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3845 | else |
| 3846 | ac_path_EGREP_found=false |
| 3847 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3849 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3850 | do |
| 3851 | IFS=$as_save_IFS |
| 3852 | test -z "$as_dir" && as_dir=. |
| 3853 | for ac_prog in egrep; do |
| 3854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3855 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3856 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3857 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3858 | # Check for GNU $ac_path_EGREP |
| 3859 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3860 | *GNU*) |
| 3861 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3862 | *) |
| 3863 | ac_count=0 |
| 3864 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3865 | while : |
| 3866 | do |
| 3867 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3868 | mv "conftest.tmp" "conftest.in" |
| 3869 | cp "conftest.in" "conftest.nl" |
| 3870 | echo 'EGREP' >> "conftest.nl" |
| 3871 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3872 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3873 | ac_count=`expr $ac_count + 1` |
| 3874 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3875 | # Best one so far, save it but keep looking for a better one |
| 3876 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3877 | ac_path_EGREP_max=$ac_count |
| 3878 | fi |
| 3879 | # 10*(2^10) chars as input seems more than enough |
| 3880 | test $ac_count -gt 10 && break |
| 3881 | done |
| 3882 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3883 | esac |
| 3884 | |
| 3885 | |
| 3886 | $ac_path_EGREP_found && break 3 |
| 3887 | done |
| 3888 | done |
| 3889 | |
| 3890 | done |
| 3891 | IFS=$as_save_IFS |
| 3892 | |
| 3893 | |
| 3894 | fi |
| 3895 | |
| 3896 | EGREP="$ac_cv_path_EGREP" |
| 3897 | if test -z "$EGREP"; then |
| 3898 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3899 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3900 | { (exit 1); exit 1; }; } |
| 3901 | fi |
| 3902 | |
| 3903 | else |
| 3904 | ac_cv_path_EGREP=$EGREP |
| 3905 | fi |
| 3906 | |
| 3907 | |
| 3908 | fi |
| 3909 | fi |
| 3910 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3911 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3912 | EGREP="$ac_cv_path_EGREP" |
| 3913 | |
| 3914 | |
| 3915 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3916 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3919 | else |
| 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 | #include <stdarg.h> |
| 3928 | #include <string.h> |
| 3929 | #include <float.h> |
| 3930 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3931 | int |
| 3932 | main () |
| 3933 | { |
| 3934 | |
| 3935 | ; |
| 3936 | return 0; |
| 3937 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3938 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3939 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3940 | if { (ac_try="$ac_compile" |
| 3941 | case "(($ac_try" in |
| 3942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3943 | *) ac_try_echo=$ac_try;; |
| 3944 | esac |
| 3945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3946 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3947 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3949 | rm -f conftest.er1 |
| 3950 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3952 | (exit $ac_status); } && |
| 3953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3954 | { (case "(($ac_try" in |
| 3955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3956 | *) ac_try_echo=$ac_try;; |
| 3957 | esac |
| 3958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3959 | (eval "$ac_try") 2>&5 |
| 3960 | ac_status=$? |
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3962 | (exit $ac_status); }; } && |
| 3963 | { ac_try='test -s conftest.$ac_objext' |
| 3964 | { (case "(($ac_try" in |
| 3965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3966 | *) ac_try_echo=$ac_try;; |
| 3967 | esac |
| 3968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3969 | (eval "$ac_try") 2>&5 |
| 3970 | ac_status=$? |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3972 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3973 | ac_cv_header_stdc=yes |
| 3974 | else |
| 3975 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3978 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3979 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3980 | |
| 3981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3982 | |
| 3983 | if test $ac_cv_header_stdc = yes; then |
| 3984 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3985 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3986 | /* confdefs.h. */ |
| 3987 | _ACEOF |
| 3988 | cat confdefs.h >>conftest.$ac_ext |
| 3989 | cat >>conftest.$ac_ext <<_ACEOF |
| 3990 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3991 | #include <string.h> |
| 3992 | |
| 3993 | _ACEOF |
| 3994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3995 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3996 | : |
| 3997 | else |
| 3998 | ac_cv_header_stdc=no |
| 3999 | fi |
| 4000 | rm -f conftest* |
| 4001 | |
| 4002 | fi |
| 4003 | |
| 4004 | if test $ac_cv_header_stdc = yes; then |
| 4005 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4006 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4007 | /* confdefs.h. */ |
| 4008 | _ACEOF |
| 4009 | cat confdefs.h >>conftest.$ac_ext |
| 4010 | cat >>conftest.$ac_ext <<_ACEOF |
| 4011 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4012 | #include <stdlib.h> |
| 4013 | |
| 4014 | _ACEOF |
| 4015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4016 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4017 | : |
| 4018 | else |
| 4019 | ac_cv_header_stdc=no |
| 4020 | fi |
| 4021 | rm -f conftest* |
| 4022 | |
| 4023 | fi |
| 4024 | |
| 4025 | if test $ac_cv_header_stdc = yes; then |
| 4026 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4027 | if test "$cross_compiling" = yes; then |
| 4028 | : |
| 4029 | else |
| 4030 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4031 | /* confdefs.h. */ |
| 4032 | _ACEOF |
| 4033 | cat confdefs.h >>conftest.$ac_ext |
| 4034 | cat >>conftest.$ac_ext <<_ACEOF |
| 4035 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4036 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4037 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4038 | #if ((' ' & 0x0FF) == 0x020) |
| 4039 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4040 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4041 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4042 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4043 | (('a' <= (c) && (c) <= 'i') \ |
| 4044 | || ('j' <= (c) && (c) <= 'r') \ |
| 4045 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4046 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4047 | #endif |
| 4048 | |
| 4049 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4050 | int |
| 4051 | main () |
| 4052 | { |
| 4053 | int i; |
| 4054 | for (i = 0; i < 256; i++) |
| 4055 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4056 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4057 | return 2; |
| 4058 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4059 | } |
| 4060 | _ACEOF |
| 4061 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4062 | if { (ac_try="$ac_link" |
| 4063 | case "(($ac_try" in |
| 4064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4065 | *) ac_try_echo=$ac_try;; |
| 4066 | esac |
| 4067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4068 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4069 | ac_status=$? |
| 4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4072 | { (case "(($ac_try" in |
| 4073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4074 | *) ac_try_echo=$ac_try;; |
| 4075 | esac |
| 4076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4077 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4078 | ac_status=$? |
| 4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4080 | (exit $ac_status); }; }; then |
| 4081 | : |
| 4082 | else |
| 4083 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4084 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4087 | ( exit $ac_status ) |
| 4088 | ac_cv_header_stdc=no |
| 4089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4090 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4091 | fi |
| 4092 | |
| 4093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4094 | fi |
| 4095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4096 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4097 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4098 | if test $ac_cv_header_stdc = yes; then |
| 4099 | |
| 4100 | cat >>confdefs.h <<\_ACEOF |
| 4101 | #define STDC_HEADERS 1 |
| 4102 | _ACEOF |
| 4103 | |
| 4104 | fi |
| 4105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4106 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | |
| 4116 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4117 | inttypes.h stdint.h unistd.h |
| 4118 | do |
| 4119 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4120 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4121 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4122 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4124 | else |
| 4125 | cat >conftest.$ac_ext <<_ACEOF |
| 4126 | /* confdefs.h. */ |
| 4127 | _ACEOF |
| 4128 | cat confdefs.h >>conftest.$ac_ext |
| 4129 | cat >>conftest.$ac_ext <<_ACEOF |
| 4130 | /* end confdefs.h. */ |
| 4131 | $ac_includes_default |
| 4132 | |
| 4133 | #include <$ac_header> |
| 4134 | _ACEOF |
| 4135 | rm -f conftest.$ac_objext |
| 4136 | if { (ac_try="$ac_compile" |
| 4137 | case "(($ac_try" in |
| 4138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4139 | *) ac_try_echo=$ac_try;; |
| 4140 | esac |
| 4141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4142 | (eval "$ac_compile") 2>conftest.er1 |
| 4143 | ac_status=$? |
| 4144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4145 | rm -f conftest.er1 |
| 4146 | cat conftest.err >&5 |
| 4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4148 | (exit $ac_status); } && |
| 4149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4150 | { (case "(($ac_try" in |
| 4151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4152 | *) ac_try_echo=$ac_try;; |
| 4153 | esac |
| 4154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4155 | (eval "$ac_try") 2>&5 |
| 4156 | ac_status=$? |
| 4157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4158 | (exit $ac_status); }; } && |
| 4159 | { ac_try='test -s conftest.$ac_objext' |
| 4160 | { (case "(($ac_try" in |
| 4161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4162 | *) ac_try_echo=$ac_try;; |
| 4163 | esac |
| 4164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4165 | (eval "$ac_try") 2>&5 |
| 4166 | ac_status=$? |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4169 | eval "$as_ac_Header=yes" |
| 4170 | else |
| 4171 | echo "$as_me: failed program was:" >&5 |
| 4172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4173 | |
| 4174 | eval "$as_ac_Header=no" |
| 4175 | fi |
| 4176 | |
| 4177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4178 | fi |
| 4179 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4180 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4181 | echo "${ECHO_T}$ac_res" >&6; } |
| 4182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4183 | cat >>confdefs.h <<_ACEOF |
| 4184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4185 | _ACEOF |
| 4186 | |
| 4187 | fi |
| 4188 | |
| 4189 | done |
| 4190 | |
| 4191 | |
| 4192 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4193 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4194 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4196 | else |
| 4197 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4198 | cat >conftest.$ac_ext <<_ACEOF |
| 4199 | /* confdefs.h. */ |
| 4200 | _ACEOF |
| 4201 | cat confdefs.h >>conftest.$ac_ext |
| 4202 | cat >>conftest.$ac_ext <<_ACEOF |
| 4203 | /* end confdefs.h. */ |
| 4204 | #include <sys/types.h> |
| 4205 | #include <sys/param.h> |
| 4206 | |
| 4207 | int |
| 4208 | main () |
| 4209 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4210 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4211 | bogus endian macros |
| 4212 | #endif |
| 4213 | |
| 4214 | ; |
| 4215 | return 0; |
| 4216 | } |
| 4217 | _ACEOF |
| 4218 | rm -f conftest.$ac_objext |
| 4219 | if { (ac_try="$ac_compile" |
| 4220 | case "(($ac_try" in |
| 4221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4222 | *) ac_try_echo=$ac_try;; |
| 4223 | esac |
| 4224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4225 | (eval "$ac_compile") 2>conftest.er1 |
| 4226 | ac_status=$? |
| 4227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4228 | rm -f conftest.er1 |
| 4229 | cat conftest.err >&5 |
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4231 | (exit $ac_status); } && |
| 4232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4233 | { (case "(($ac_try" in |
| 4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4235 | *) ac_try_echo=$ac_try;; |
| 4236 | esac |
| 4237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4238 | (eval "$ac_try") 2>&5 |
| 4239 | ac_status=$? |
| 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4241 | (exit $ac_status); }; } && |
| 4242 | { ac_try='test -s conftest.$ac_objext' |
| 4243 | { (case "(($ac_try" in |
| 4244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4245 | *) ac_try_echo=$ac_try;; |
| 4246 | esac |
| 4247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4248 | (eval "$ac_try") 2>&5 |
| 4249 | ac_status=$? |
| 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4251 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4252 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4253 | cat >conftest.$ac_ext <<_ACEOF |
| 4254 | /* confdefs.h. */ |
| 4255 | _ACEOF |
| 4256 | cat confdefs.h >>conftest.$ac_ext |
| 4257 | cat >>conftest.$ac_ext <<_ACEOF |
| 4258 | /* end confdefs.h. */ |
| 4259 | #include <sys/types.h> |
| 4260 | #include <sys/param.h> |
| 4261 | |
| 4262 | int |
| 4263 | main () |
| 4264 | { |
| 4265 | #if BYTE_ORDER != BIG_ENDIAN |
| 4266 | not big endian |
| 4267 | #endif |
| 4268 | |
| 4269 | ; |
| 4270 | return 0; |
| 4271 | } |
| 4272 | _ACEOF |
| 4273 | rm -f conftest.$ac_objext |
| 4274 | if { (ac_try="$ac_compile" |
| 4275 | case "(($ac_try" in |
| 4276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4277 | *) ac_try_echo=$ac_try;; |
| 4278 | esac |
| 4279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4280 | (eval "$ac_compile") 2>conftest.er1 |
| 4281 | ac_status=$? |
| 4282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4283 | rm -f conftest.er1 |
| 4284 | cat conftest.err >&5 |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4286 | (exit $ac_status); } && |
| 4287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4288 | { (case "(($ac_try" in |
| 4289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4290 | *) ac_try_echo=$ac_try;; |
| 4291 | esac |
| 4292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4293 | (eval "$ac_try") 2>&5 |
| 4294 | ac_status=$? |
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4296 | (exit $ac_status); }; } && |
| 4297 | { ac_try='test -s conftest.$ac_objext' |
| 4298 | { (case "(($ac_try" in |
| 4299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4300 | *) ac_try_echo=$ac_try;; |
| 4301 | esac |
| 4302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4303 | (eval "$ac_try") 2>&5 |
| 4304 | ac_status=$? |
| 4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4306 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4307 | ac_cv_c_bigendian=yes |
| 4308 | else |
| 4309 | echo "$as_me: failed program was:" >&5 |
| 4310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4311 | |
| 4312 | ac_cv_c_bigendian=no |
| 4313 | fi |
| 4314 | |
| 4315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4316 | else |
| 4317 | echo "$as_me: failed program was:" >&5 |
| 4318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4319 | |
| 4320 | # It does not; compile a test program. |
| 4321 | if test "$cross_compiling" = yes; then |
| 4322 | # try to guess the endianness by grepping values into an object file |
| 4323 | ac_cv_c_bigendian=unknown |
| 4324 | cat >conftest.$ac_ext <<_ACEOF |
| 4325 | /* confdefs.h. */ |
| 4326 | _ACEOF |
| 4327 | cat confdefs.h >>conftest.$ac_ext |
| 4328 | cat >>conftest.$ac_ext <<_ACEOF |
| 4329 | /* end confdefs.h. */ |
| 4330 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4331 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4332 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4333 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4334 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4335 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4336 | int |
| 4337 | main () |
| 4338 | { |
| 4339 | _ascii (); _ebcdic (); |
| 4340 | ; |
| 4341 | return 0; |
| 4342 | } |
| 4343 | _ACEOF |
| 4344 | rm -f conftest.$ac_objext |
| 4345 | if { (ac_try="$ac_compile" |
| 4346 | case "(($ac_try" in |
| 4347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4348 | *) ac_try_echo=$ac_try;; |
| 4349 | esac |
| 4350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4351 | (eval "$ac_compile") 2>conftest.er1 |
| 4352 | ac_status=$? |
| 4353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4354 | rm -f conftest.er1 |
| 4355 | cat conftest.err >&5 |
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4357 | (exit $ac_status); } && |
| 4358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4359 | { (case "(($ac_try" in |
| 4360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4361 | *) ac_try_echo=$ac_try;; |
| 4362 | esac |
| 4363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4364 | (eval "$ac_try") 2>&5 |
| 4365 | ac_status=$? |
| 4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4367 | (exit $ac_status); }; } && |
| 4368 | { ac_try='test -s conftest.$ac_objext' |
| 4369 | { (case "(($ac_try" in |
| 4370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4371 | *) ac_try_echo=$ac_try;; |
| 4372 | esac |
| 4373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4374 | (eval "$ac_try") 2>&5 |
| 4375 | ac_status=$? |
| 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4377 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4378 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4379 | ac_cv_c_bigendian=yes |
| 4380 | fi |
| 4381 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4382 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4383 | ac_cv_c_bigendian=no |
| 4384 | else |
| 4385 | # finding both strings is unlikely to happen, but who knows? |
| 4386 | ac_cv_c_bigendian=unknown |
| 4387 | fi |
| 4388 | fi |
| 4389 | else |
| 4390 | echo "$as_me: failed program was:" >&5 |
| 4391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4392 | |
| 4393 | |
| 4394 | fi |
| 4395 | |
| 4396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4397 | else |
| 4398 | cat >conftest.$ac_ext <<_ACEOF |
| 4399 | /* confdefs.h. */ |
| 4400 | _ACEOF |
| 4401 | cat confdefs.h >>conftest.$ac_ext |
| 4402 | cat >>conftest.$ac_ext <<_ACEOF |
| 4403 | /* end confdefs.h. */ |
| 4404 | $ac_includes_default |
| 4405 | int |
| 4406 | main () |
| 4407 | { |
| 4408 | |
| 4409 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4410 | union |
| 4411 | { |
| 4412 | long int l; |
| 4413 | char c[sizeof (long int)]; |
| 4414 | } u; |
| 4415 | u.l = 1; |
| 4416 | return u.c[sizeof (long int) - 1] == 1; |
| 4417 | |
| 4418 | ; |
| 4419 | return 0; |
| 4420 | } |
| 4421 | _ACEOF |
| 4422 | rm -f conftest$ac_exeext |
| 4423 | if { (ac_try="$ac_link" |
| 4424 | case "(($ac_try" in |
| 4425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4426 | *) ac_try_echo=$ac_try;; |
| 4427 | esac |
| 4428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4429 | (eval "$ac_link") 2>&5 |
| 4430 | ac_status=$? |
| 4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4432 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4433 | { (case "(($ac_try" in |
| 4434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4435 | *) ac_try_echo=$ac_try;; |
| 4436 | esac |
| 4437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4438 | (eval "$ac_try") 2>&5 |
| 4439 | ac_status=$? |
| 4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4441 | (exit $ac_status); }; }; then |
| 4442 | ac_cv_c_bigendian=no |
| 4443 | else |
| 4444 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4445 | echo "$as_me: failed program was:" >&5 |
| 4446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4447 | |
| 4448 | ( exit $ac_status ) |
| 4449 | ac_cv_c_bigendian=yes |
| 4450 | fi |
| 4451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4452 | fi |
| 4453 | |
| 4454 | |
| 4455 | fi |
| 4456 | |
| 4457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4458 | fi |
| 4459 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4460 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4461 | case $ac_cv_c_bigendian in |
| 4462 | yes) |
| 4463 | ENDIAN=big |
| 4464 | ;; |
| 4465 | no) |
| 4466 | ENDIAN=little |
| 4467 | ;; |
| 4468 | *) |
| 4469 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4470 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4471 | echo "$as_me: error: unknown endianness |
| 4472 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4473 | { (exit 1); exit 1; }; } ;; |
| 4474 | esac |
| 4475 | |
| 4476 | |
| 4477 | if test "$cross_compiling" = yes; then |
| 4478 | LLVM_CROSS_COMPILING=1 |
| 4479 | |
| 4480 | |
| 4481 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4482 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4483 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4485 | else |
| 4486 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4487 | ac_cv_build_exeext=.exe |
| 4488 | else |
| 4489 | ac_build_prefix=${build_alias}- |
| 4490 | |
| 4491 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4492 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4493 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4495 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4497 | else |
| 4498 | if test -n "$BUILD_CC"; then |
| 4499 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4500 | else |
| 4501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4502 | for as_dir in $PATH |
| 4503 | do |
| 4504 | IFS=$as_save_IFS |
| 4505 | test -z "$as_dir" && as_dir=. |
| 4506 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4507 | 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] | 4508 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4510 | break 2 |
| 4511 | fi |
| 4512 | done |
| 4513 | done |
| 4514 | IFS=$as_save_IFS |
| 4515 | |
| 4516 | fi |
| 4517 | fi |
| 4518 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4519 | if test -n "$BUILD_CC"; then |
| 4520 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4521 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4522 | else |
| 4523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4524 | echo "${ECHO_T}no" >&6; } |
| 4525 | fi |
| 4526 | |
| 4527 | |
| 4528 | if test -z "$BUILD_CC"; then |
| 4529 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4530 | set dummy gcc; ac_word=$2 |
| 4531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4533 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4535 | else |
| 4536 | if test -n "$BUILD_CC"; then |
| 4537 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4538 | else |
| 4539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4540 | for as_dir in $PATH |
| 4541 | do |
| 4542 | IFS=$as_save_IFS |
| 4543 | test -z "$as_dir" && as_dir=. |
| 4544 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4545 | 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] | 4546 | ac_cv_prog_BUILD_CC="gcc" |
| 4547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4548 | break 2 |
| 4549 | fi |
| 4550 | done |
| 4551 | done |
| 4552 | IFS=$as_save_IFS |
| 4553 | |
| 4554 | fi |
| 4555 | fi |
| 4556 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4557 | if test -n "$BUILD_CC"; then |
| 4558 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4559 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4560 | else |
| 4561 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4562 | echo "${ECHO_T}no" >&6; } |
| 4563 | fi |
| 4564 | |
| 4565 | |
| 4566 | if test -z "$BUILD_CC"; then |
| 4567 | # Extract the first word of "cc", so it can be a program name with args. |
| 4568 | set dummy cc; ac_word=$2 |
| 4569 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4571 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4573 | else |
| 4574 | if test -n "$BUILD_CC"; then |
| 4575 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4576 | else |
| 4577 | ac_prog_rejected=no |
| 4578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4579 | for as_dir in $PATH |
| 4580 | do |
| 4581 | IFS=$as_save_IFS |
| 4582 | test -z "$as_dir" && as_dir=. |
| 4583 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4584 | 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] | 4585 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4586 | ac_prog_rejected=yes |
| 4587 | continue |
| 4588 | fi |
| 4589 | ac_cv_prog_BUILD_CC="cc" |
| 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 | if test $ac_prog_rejected = yes; then |
| 4598 | # We found a bogon in the path, so make sure we never use it. |
| 4599 | set dummy $ac_cv_prog_BUILD_CC |
| 4600 | shift |
| 4601 | if test $# != 0; then |
| 4602 | # We chose a different compiler from the bogus one. |
| 4603 | # However, it has the same basename, so the bogon will be chosen |
| 4604 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4605 | shift |
| 4606 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4607 | fi |
| 4608 | fi |
| 4609 | fi |
| 4610 | fi |
| 4611 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4612 | if test -n "$BUILD_CC"; then |
| 4613 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4614 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4615 | else |
| 4616 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4617 | echo "${ECHO_T}no" >&6; } |
| 4618 | fi |
| 4619 | |
| 4620 | |
| 4621 | fi |
| 4622 | fi |
| 4623 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4624 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4625 | { (exit 1); exit 1; }; } |
| 4626 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4627 | rm -f conftest* |
| 4628 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4629 | ac_cv_build_exeext= |
| 4630 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4631 | (eval $ac_build_link) 2>&5 |
| 4632 | ac_status=$? |
| 4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4634 | (exit $ac_status); }; then |
| 4635 | for file in conftest.*; do |
| 4636 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4637 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4638 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4639 | esac |
| 4640 | done |
| 4641 | else |
| 4642 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4643 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4644 | { (exit 1); exit 1; }; } |
| 4645 | fi |
| 4646 | rm -f conftest* |
| 4647 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4648 | fi |
| 4649 | fi |
| 4650 | |
| 4651 | BUILD_EXEEXT="" |
| 4652 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4653 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4654 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4655 | ac_build_exeext=$BUILD_EXEEXT |
| 4656 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4657 | ac_build_prefix=${build_alias}- |
| 4658 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4659 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4660 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4662 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4664 | else |
| 4665 | if test -n "$BUILD_CXX"; then |
| 4666 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4667 | else |
| 4668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4669 | for as_dir in $PATH |
| 4670 | do |
| 4671 | IFS=$as_save_IFS |
| 4672 | test -z "$as_dir" && as_dir=. |
| 4673 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4674 | 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] | 4675 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4677 | break 2 |
| 4678 | fi |
| 4679 | done |
| 4680 | done |
| 4681 | IFS=$as_save_IFS |
| 4682 | |
| 4683 | fi |
| 4684 | fi |
| 4685 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4686 | if test -n "$BUILD_CXX"; then |
| 4687 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4688 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4689 | else |
| 4690 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4691 | echo "${ECHO_T}no" >&6; } |
| 4692 | fi |
| 4693 | |
| 4694 | |
| 4695 | if test -z "$BUILD_CXX"; then |
| 4696 | # Extract the first word of "g++", so it can be a program name with args. |
| 4697 | set dummy g++; ac_word=$2 |
| 4698 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4700 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4702 | else |
| 4703 | if test -n "$BUILD_CXX"; then |
| 4704 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4705 | else |
| 4706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4707 | for as_dir in $PATH |
| 4708 | do |
| 4709 | IFS=$as_save_IFS |
| 4710 | test -z "$as_dir" && as_dir=. |
| 4711 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4712 | 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] | 4713 | ac_cv_prog_BUILD_CXX="g++" |
| 4714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4715 | break 2 |
| 4716 | fi |
| 4717 | done |
| 4718 | done |
| 4719 | IFS=$as_save_IFS |
| 4720 | |
| 4721 | fi |
| 4722 | fi |
| 4723 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4724 | if test -n "$BUILD_CXX"; then |
| 4725 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4726 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4727 | else |
| 4728 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4729 | echo "${ECHO_T}no" >&6; } |
| 4730 | fi |
| 4731 | |
| 4732 | |
| 4733 | if test -z "$BUILD_CXX"; then |
| 4734 | # Extract the first word of "c++", so it can be a program name with args. |
| 4735 | set dummy c++; ac_word=$2 |
| 4736 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4738 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4740 | else |
| 4741 | if test -n "$BUILD_CXX"; then |
| 4742 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4743 | else |
| 4744 | ac_prog_rejected=no |
| 4745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4746 | for as_dir in $PATH |
| 4747 | do |
| 4748 | IFS=$as_save_IFS |
| 4749 | test -z "$as_dir" && as_dir=. |
| 4750 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4751 | 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] | 4752 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4753 | ac_prog_rejected=yes |
| 4754 | continue |
| 4755 | fi |
| 4756 | ac_cv_prog_BUILD_CXX="c++" |
| 4757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4758 | break 2 |
| 4759 | fi |
| 4760 | done |
| 4761 | done |
| 4762 | IFS=$as_save_IFS |
| 4763 | |
| 4764 | if test $ac_prog_rejected = yes; then |
| 4765 | # We found a bogon in the path, so make sure we never use it. |
| 4766 | set dummy $ac_cv_prog_BUILD_CXX |
| 4767 | shift |
| 4768 | if test $# != 0; then |
| 4769 | # We chose a different compiler from the bogus one. |
| 4770 | # However, it has the same basename, so the bogon will be chosen |
| 4771 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4772 | shift |
| 4773 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4774 | fi |
| 4775 | fi |
| 4776 | fi |
| 4777 | fi |
| 4778 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4779 | if test -n "$BUILD_CXX"; then |
| 4780 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4781 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4782 | else |
| 4783 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4784 | echo "${ECHO_T}no" >&6; } |
| 4785 | fi |
| 4786 | |
| 4787 | |
| 4788 | fi |
| 4789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4790 | else |
| 4791 | LLVM_CROSS_COMPILING=0 |
| 4792 | |
| 4793 | fi |
| 4794 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4795 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4796 | cvsbuild="yes" |
| 4797 | optimize="no" |
| 4798 | CVSBUILD=CVSBUILD=1 |
| 4799 | |
| 4800 | else |
| 4801 | cvsbuild="no" |
| 4802 | optimize="yes" |
| 4803 | fi |
| 4804 | |
| 4805 | |
| 4806 | # Check whether --enable-optimized was given. |
| 4807 | if test "${enable_optimized+set}" = set; then |
| 4808 | enableval=$enable_optimized; |
| 4809 | else |
| 4810 | enableval=$optimize |
| 4811 | fi |
| 4812 | |
| 4813 | if test ${enableval} = "no" ; then |
| 4814 | ENABLE_OPTIMIZED= |
| 4815 | |
| 4816 | else |
| 4817 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4818 | |
| 4819 | fi |
| 4820 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4821 | # Check whether --enable-profiling was given. |
| 4822 | if test "${enable_profiling+set}" = set; then |
| 4823 | enableval=$enable_profiling; |
| 4824 | else |
| 4825 | enableval="no" |
| 4826 | fi |
| 4827 | |
| 4828 | if test ${enableval} = "no" ; then |
| 4829 | ENABLE_PROFILING= |
| 4830 | |
| 4831 | else |
| 4832 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4833 | |
| 4834 | fi |
| 4835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4836 | # Check whether --enable-assertions was given. |
| 4837 | if test "${enable_assertions+set}" = set; then |
| 4838 | enableval=$enable_assertions; |
| 4839 | else |
| 4840 | enableval="yes" |
| 4841 | fi |
| 4842 | |
| 4843 | if test ${enableval} = "yes" ; then |
| 4844 | DISABLE_ASSERTIONS= |
| 4845 | |
| 4846 | else |
| 4847 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4848 | |
| 4849 | fi |
| 4850 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4851 | # Check whether --enable-expensive-checks was given. |
| 4852 | if test "${enable_expensive_checks+set}" = set; then |
| 4853 | enableval=$enable_expensive_checks; |
| 4854 | else |
| 4855 | enableval="no" |
| 4856 | fi |
| 4857 | |
| 4858 | if test ${enableval} = "yes" ; then |
| 4859 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4860 | |
| 4861 | EXPENSIVE_CHECKS=yes |
| 4862 | |
| 4863 | else |
| 4864 | ENABLE_EXPENSIVE_CHECKS= |
| 4865 | |
| 4866 | EXPENSIVE_CHECKS=no |
| 4867 | |
| 4868 | fi |
| 4869 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4870 | # Check whether --enable-debug-runtime was given. |
| 4871 | if test "${enable_debug_runtime+set}" = set; then |
| 4872 | enableval=$enable_debug_runtime; |
| 4873 | else |
| 4874 | enableval=no |
| 4875 | fi |
| 4876 | |
| 4877 | if test ${enableval} = "no" ; then |
| 4878 | DEBUG_RUNTIME= |
| 4879 | |
| 4880 | else |
| 4881 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4882 | |
| 4883 | fi |
| 4884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4885 | # Check whether --enable-jit was given. |
| 4886 | if test "${enable_jit+set}" = set; then |
| 4887 | enableval=$enable_jit; |
| 4888 | else |
| 4889 | enableval=default |
| 4890 | fi |
| 4891 | |
| 4892 | if test ${enableval} = "no" |
| 4893 | then |
| 4894 | JIT= |
| 4895 | |
| 4896 | else |
| 4897 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4898 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4899 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4900 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4901 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4902 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4903 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4904 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4905 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4906 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4907 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4908 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4909 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4910 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4911 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4912 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4913 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4914 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4915 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4916 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4917 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4918 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4919 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4920 | Blackfin) TARGET_HAS_JIT=0 |
| 4921 | ;; |
| 4922 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4923 | ;; |
| 4924 | esac |
| 4925 | fi |
| 4926 | |
| 4927 | # Check whether --enable-doxygen was given. |
| 4928 | if test "${enable_doxygen+set}" = set; then |
| 4929 | enableval=$enable_doxygen; |
| 4930 | else |
| 4931 | enableval=default |
| 4932 | fi |
| 4933 | |
| 4934 | case "$enableval" in |
| 4935 | yes) ENABLE_DOXYGEN=1 |
| 4936 | ;; |
| 4937 | no) ENABLE_DOXYGEN=0 |
| 4938 | ;; |
| 4939 | default) ENABLE_DOXYGEN=0 |
| 4940 | ;; |
| 4941 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4942 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4943 | { (exit 1); exit 1; }; } ;; |
| 4944 | esac |
| 4945 | |
| 4946 | # Check whether --enable-threads was given. |
| 4947 | if test "${enable_threads+set}" = set; then |
| 4948 | enableval=$enable_threads; |
| 4949 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4950 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4951 | fi |
| 4952 | |
| 4953 | case "$enableval" in |
| 4954 | yes) ENABLE_THREADS=1 |
| 4955 | ;; |
| 4956 | no) ENABLE_THREADS=0 |
| 4957 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4958 | default) ENABLE_THREADS=1 |
| 4959 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4960 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4961 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4962 | { (exit 1); exit 1; }; } ;; |
| 4963 | esac |
| 4964 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4965 | cat >>confdefs.h <<_ACEOF |
| 4966 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4967 | _ACEOF |
| 4968 | |
| 4969 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4970 | # Check whether --enable-pic was given. |
| 4971 | if test "${enable_pic+set}" = set; then |
| 4972 | enableval=$enable_pic; |
| 4973 | else |
| 4974 | enableval=default |
| 4975 | fi |
| 4976 | |
| 4977 | case "$enableval" in |
| 4978 | yes) ENABLE_PIC=1 |
| 4979 | ;; |
| 4980 | no) ENABLE_PIC=0 |
| 4981 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4982 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4983 | ;; |
| 4984 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4985 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4986 | { (exit 1); exit 1; }; } ;; |
| 4987 | esac |
| 4988 | |
| 4989 | cat >>confdefs.h <<_ACEOF |
| 4990 | #define ENABLE_PIC $ENABLE_PIC |
| 4991 | _ACEOF |
| 4992 | |
| 4993 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4994 | TARGETS_TO_BUILD="" |
| 4995 | # Check whether --enable-targets was given. |
| 4996 | if test "${enable_targets+set}" = set; then |
| 4997 | enableval=$enable_targets; |
| 4998 | else |
| 4999 | enableval=all |
| 5000 | fi |
| 5001 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5002 | if test "$enableval" = host-only ; then |
| 5003 | enableval=host |
| 5004 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5005 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 5006 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5007 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5008 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5009 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5010 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5011 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5012 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5013 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5014 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5015 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5016 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5017 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 5018 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5019 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5020 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5021 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5022 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 5023 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 5024 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5025 | host) case "$llvm_cv_target_arch" in |
| 5026 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5027 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5028 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5029 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5030 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5031 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5032 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5033 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5034 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 5035 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5036 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5037 | SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5038 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5039 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5040 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5041 | { (exit 1); exit 1; }; } ;; |
| 5042 | esac ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5043 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5044 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5045 | { (exit 1); exit 1; }; } ;; |
| 5046 | esac |
| 5047 | done |
| 5048 | ;; |
| 5049 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5050 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5051 | |
| 5052 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5053 | # Determine whether we are building LLVM support for the native architecture. |
| 5054 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5055 | for a_target in $TARGETS_TO_BUILD; do |
| 5056 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5057 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5058 | |
| 5059 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5060 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5061 | _ACEOF |
| 5062 | |
| 5063 | fi |
| 5064 | done |
| 5065 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5066 | # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5067 | # Targets.def, AsmPrinters.def, and AsmParsers.def. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5068 | LLVM_ENUM_TARGETS="" |
| 5069 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5070 | LLVM_ENUM_ASM_PARSERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5071 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5072 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5073 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5074 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5075 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5076 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5077 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5078 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5079 | done |
| 5080 | |
| 5081 | |
| 5082 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5083 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5084 | # Check whether --enable-cbe-printf-a was given. |
| 5085 | if test "${enable_cbe_printf_a+set}" = set; then |
| 5086 | enableval=$enable_cbe_printf_a; |
| 5087 | else |
| 5088 | enableval=default |
| 5089 | fi |
| 5090 | |
| 5091 | case "$enableval" in |
| 5092 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5093 | ;; |
| 5094 | no) ENABLE_CBE_PRINTF_A=0 |
| 5095 | ;; |
| 5096 | default) ENABLE_CBE_PRINTF_A=1 |
| 5097 | ;; |
| 5098 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5099 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5100 | { (exit 1); exit 1; }; } ;; |
| 5101 | esac |
| 5102 | |
| 5103 | cat >>confdefs.h <<_ACEOF |
| 5104 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5105 | _ACEOF |
| 5106 | |
| 5107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5108 | |
| 5109 | # Check whether --with-llvmgccdir was given. |
| 5110 | if test "${with_llvmgccdir+set}" = set; then |
| 5111 | withval=$with_llvmgccdir; |
| 5112 | else |
| 5113 | withval=default |
| 5114 | fi |
| 5115 | |
| 5116 | case "$withval" in |
| 5117 | default) WITH_LLVMGCCDIR=default ;; |
| 5118 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 5119 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5120 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5121 | { (exit 1); exit 1; }; } ;; |
| 5122 | esac |
| 5123 | |
| 5124 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5125 | # Check whether --with-llvmgcc was given. |
| 5126 | if test "${with_llvmgcc+set}" = set; then |
| 5127 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5128 | WITH_LLVMGCCDIR="" |
| 5129 | fi |
| 5130 | |
| 5131 | |
| 5132 | |
| 5133 | # Check whether --with-llvmgxx was given. |
| 5134 | if test "${with_llvmgxx+set}" = set; then |
| 5135 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5136 | WITH_LLVMGCCDIR="" |
| 5137 | fi |
| 5138 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5139 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5140 | if test -n "$LLVMGCC"; then |
| 5141 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5142 | fi |
| 5143 | |
| 5144 | if test -n "$LLVMGXX"; then |
| 5145 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5146 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5147 | |
| 5148 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 5149 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5150 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5151 | { (exit 1); exit 1; }; }; |
| 5152 | fi |
| 5153 | |
| 5154 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 5155 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5156 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5157 | { (exit 1); exit 1; }; }; |
| 5158 | fi |
| 5159 | |
| 5160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5161 | # Check whether --with-extra-options was given. |
| 5162 | if test "${with_extra_options+set}" = set; then |
| 5163 | withval=$with_extra_options; |
| 5164 | else |
| 5165 | withval=default |
| 5166 | fi |
| 5167 | |
| 5168 | case "$withval" in |
| 5169 | default) EXTRA_OPTIONS= ;; |
| 5170 | *) EXTRA_OPTIONS=$withval ;; |
| 5171 | esac |
| 5172 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5173 | |
| 5174 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5175 | # Check whether --enable-bindings was given. |
| 5176 | if test "${enable_bindings+set}" = set; then |
| 5177 | enableval=$enable_bindings; |
| 5178 | else |
| 5179 | enableval=default |
| 5180 | fi |
| 5181 | |
| 5182 | BINDINGS_TO_BUILD="" |
| 5183 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5184 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5185 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5186 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5187 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5188 | case "$a_binding" in |
| 5189 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5190 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5191 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5192 | { (exit 1); exit 1; }; } ;; |
| 5193 | esac |
| 5194 | done |
| 5195 | ;; |
| 5196 | esac |
| 5197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5198 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5199 | # Check whether --with-ocaml-libdir was given. |
| 5200 | if test "${with_ocaml_libdir+set}" = set; then |
| 5201 | withval=$with_ocaml_libdir; |
| 5202 | else |
| 5203 | withval=auto |
| 5204 | fi |
| 5205 | |
| 5206 | case "$withval" in |
| 5207 | auto) with_ocaml_libdir="$withval" ;; |
| 5208 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5209 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5210 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5211 | { (exit 1); exit 1; }; } ;; |
| 5212 | esac |
| 5213 | |
| 5214 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5215 | # Check whether --with-binutils-include was given. |
| 5216 | if test "${with_binutils_include+set}" = set; then |
| 5217 | withval=$with_binutils_include; |
| 5218 | else |
| 5219 | withval=default |
| 5220 | fi |
| 5221 | |
| 5222 | case "$withval" in |
| 5223 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5224 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5225 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5226 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5227 | { (exit 1); exit 1; }; } ;; |
| 5228 | esac |
| 5229 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5230 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5231 | |
| 5232 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5233 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5234 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5235 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5236 | { (exit 1); exit 1; }; }; |
| 5237 | fi |
| 5238 | fi |
| 5239 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5240 | # Check whether --enable-libffi was given. |
| 5241 | if test "${enable_libffi+set}" = set; then |
| 5242 | enableval=$enable_libffi; |
| 5243 | else |
| 5244 | enableval=yes |
| 5245 | fi |
| 5246 | |
| 5247 | case "$enableval" in |
| 5248 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5249 | no) llvm_cv_enable_libffi="no" ;; |
| 5250 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
| 5251 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5252 | { (exit 1); exit 1; }; } ;; |
| 5253 | esac |
| 5254 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5255 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5256 | llvmc_dynamic="yes" |
| 5257 | else |
| 5258 | llvmc_dynamic="no" |
| 5259 | fi |
| 5260 | |
| 5261 | # Check whether --enable-llvmc-dynamic was given. |
| 5262 | if test "${enable_llvmc_dynamic+set}" = set; then |
| 5263 | enableval=$enable_llvmc_dynamic; |
| 5264 | else |
| 5265 | enableval=$llvmc_dynamic |
| 5266 | fi |
| 5267 | |
| 5268 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5269 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5270 | |
| 5271 | else |
| 5272 | ENABLE_LLVMC_DYNAMIC= |
| 5273 | |
| 5274 | fi |
| 5275 | |
| 5276 | # Check whether --enable-llvmc-dynamic-plugins was given. |
| 5277 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
| 5278 | enableval=$enable_llvmc_dynamic_plugins; |
| 5279 | else |
| 5280 | enableval=yes |
| 5281 | fi |
| 5282 | |
| 5283 | if test ${enableval} = "yes" ; then |
| 5284 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5285 | |
| 5286 | else |
| 5287 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5288 | |
| 5289 | fi |
| 5290 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5292 | ac_ext=c |
| 5293 | ac_cpp='$CPP $CPPFLAGS' |
| 5294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5297 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5298 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5299 | # On Suns, sometimes $CPP names a directory. |
| 5300 | if test -n "$CPP" && test -d "$CPP"; then |
| 5301 | CPP= |
| 5302 | fi |
| 5303 | if test -z "$CPP"; then |
| 5304 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5306 | else |
| 5307 | # Double quotes because CPP needs to be expanded |
| 5308 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5309 | do |
| 5310 | ac_preproc_ok=false |
| 5311 | for ac_c_preproc_warn_flag in '' yes |
| 5312 | do |
| 5313 | # Use a header file that comes with gcc, so configuring glibc |
| 5314 | # with a fresh cross-compiler works. |
| 5315 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5316 | # <limits.h> exists even on freestanding compilers. |
| 5317 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5318 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5319 | cat >conftest.$ac_ext <<_ACEOF |
| 5320 | /* confdefs.h. */ |
| 5321 | _ACEOF |
| 5322 | cat confdefs.h >>conftest.$ac_ext |
| 5323 | cat >>conftest.$ac_ext <<_ACEOF |
| 5324 | /* end confdefs.h. */ |
| 5325 | #ifdef __STDC__ |
| 5326 | # include <limits.h> |
| 5327 | #else |
| 5328 | # include <assert.h> |
| 5329 | #endif |
| 5330 | Syntax error |
| 5331 | _ACEOF |
| 5332 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5333 | case "(($ac_try" in |
| 5334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5335 | *) ac_try_echo=$ac_try;; |
| 5336 | esac |
| 5337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5338 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5339 | ac_status=$? |
| 5340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5341 | rm -f conftest.er1 |
| 5342 | cat conftest.err >&5 |
| 5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5344 | (exit $ac_status); } >/dev/null; then |
| 5345 | if test -s conftest.err; then |
| 5346 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5347 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5348 | else |
| 5349 | ac_cpp_err= |
| 5350 | fi |
| 5351 | else |
| 5352 | ac_cpp_err=yes |
| 5353 | fi |
| 5354 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5355 | : |
| 5356 | else |
| 5357 | echo "$as_me: failed program was:" >&5 |
| 5358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5359 | |
| 5360 | # Broken: fails on valid input. |
| 5361 | continue |
| 5362 | fi |
| 5363 | |
| 5364 | rm -f conftest.err conftest.$ac_ext |
| 5365 | |
| 5366 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5367 | # can be detected and how. |
| 5368 | cat >conftest.$ac_ext <<_ACEOF |
| 5369 | /* confdefs.h. */ |
| 5370 | _ACEOF |
| 5371 | cat confdefs.h >>conftest.$ac_ext |
| 5372 | cat >>conftest.$ac_ext <<_ACEOF |
| 5373 | /* end confdefs.h. */ |
| 5374 | #include <ac_nonexistent.h> |
| 5375 | _ACEOF |
| 5376 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5377 | case "(($ac_try" in |
| 5378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5379 | *) ac_try_echo=$ac_try;; |
| 5380 | esac |
| 5381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5383 | ac_status=$? |
| 5384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5385 | rm -f conftest.er1 |
| 5386 | cat conftest.err >&5 |
| 5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5388 | (exit $ac_status); } >/dev/null; then |
| 5389 | if test -s conftest.err; then |
| 5390 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5391 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5392 | else |
| 5393 | ac_cpp_err= |
| 5394 | fi |
| 5395 | else |
| 5396 | ac_cpp_err=yes |
| 5397 | fi |
| 5398 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5399 | # Broken: success on invalid input. |
| 5400 | continue |
| 5401 | else |
| 5402 | echo "$as_me: failed program was:" >&5 |
| 5403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5404 | |
| 5405 | # Passes both tests. |
| 5406 | ac_preproc_ok=: |
| 5407 | break |
| 5408 | fi |
| 5409 | |
| 5410 | rm -f conftest.err conftest.$ac_ext |
| 5411 | |
| 5412 | done |
| 5413 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5414 | rm -f conftest.err conftest.$ac_ext |
| 5415 | if $ac_preproc_ok; then |
| 5416 | break |
| 5417 | fi |
| 5418 | |
| 5419 | done |
| 5420 | ac_cv_prog_CPP=$CPP |
| 5421 | |
| 5422 | fi |
| 5423 | CPP=$ac_cv_prog_CPP |
| 5424 | else |
| 5425 | ac_cv_prog_CPP=$CPP |
| 5426 | fi |
| 5427 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5428 | echo "${ECHO_T}$CPP" >&6; } |
| 5429 | ac_preproc_ok=false |
| 5430 | for ac_c_preproc_warn_flag in '' yes |
| 5431 | do |
| 5432 | # Use a header file that comes with gcc, so configuring glibc |
| 5433 | # with a fresh cross-compiler works. |
| 5434 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5435 | # <limits.h> exists even on freestanding compilers. |
| 5436 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5437 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5438 | cat >conftest.$ac_ext <<_ACEOF |
| 5439 | /* confdefs.h. */ |
| 5440 | _ACEOF |
| 5441 | cat confdefs.h >>conftest.$ac_ext |
| 5442 | cat >>conftest.$ac_ext <<_ACEOF |
| 5443 | /* end confdefs.h. */ |
| 5444 | #ifdef __STDC__ |
| 5445 | # include <limits.h> |
| 5446 | #else |
| 5447 | # include <assert.h> |
| 5448 | #endif |
| 5449 | Syntax error |
| 5450 | _ACEOF |
| 5451 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5452 | case "(($ac_try" in |
| 5453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5454 | *) ac_try_echo=$ac_try;; |
| 5455 | esac |
| 5456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5458 | ac_status=$? |
| 5459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5460 | rm -f conftest.er1 |
| 5461 | cat conftest.err >&5 |
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5463 | (exit $ac_status); } >/dev/null; then |
| 5464 | if test -s conftest.err; then |
| 5465 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5467 | else |
| 5468 | ac_cpp_err= |
| 5469 | fi |
| 5470 | else |
| 5471 | ac_cpp_err=yes |
| 5472 | fi |
| 5473 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5474 | : |
| 5475 | else |
| 5476 | echo "$as_me: failed program was:" >&5 |
| 5477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5478 | |
| 5479 | # Broken: fails on valid input. |
| 5480 | continue |
| 5481 | fi |
| 5482 | |
| 5483 | rm -f conftest.err conftest.$ac_ext |
| 5484 | |
| 5485 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5486 | # can be detected and how. |
| 5487 | cat >conftest.$ac_ext <<_ACEOF |
| 5488 | /* confdefs.h. */ |
| 5489 | _ACEOF |
| 5490 | cat confdefs.h >>conftest.$ac_ext |
| 5491 | cat >>conftest.$ac_ext <<_ACEOF |
| 5492 | /* end confdefs.h. */ |
| 5493 | #include <ac_nonexistent.h> |
| 5494 | _ACEOF |
| 5495 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5496 | case "(($ac_try" in |
| 5497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5498 | *) ac_try_echo=$ac_try;; |
| 5499 | esac |
| 5500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5501 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5502 | ac_status=$? |
| 5503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5504 | rm -f conftest.er1 |
| 5505 | cat conftest.err >&5 |
| 5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5507 | (exit $ac_status); } >/dev/null; then |
| 5508 | if test -s conftest.err; then |
| 5509 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5511 | else |
| 5512 | ac_cpp_err= |
| 5513 | fi |
| 5514 | else |
| 5515 | ac_cpp_err=yes |
| 5516 | fi |
| 5517 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5518 | # Broken: success on invalid input. |
| 5519 | continue |
| 5520 | else |
| 5521 | echo "$as_me: failed program was:" >&5 |
| 5522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5523 | |
| 5524 | # Passes both tests. |
| 5525 | ac_preproc_ok=: |
| 5526 | break |
| 5527 | fi |
| 5528 | |
| 5529 | rm -f conftest.err conftest.$ac_ext |
| 5530 | |
| 5531 | done |
| 5532 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5533 | rm -f conftest.err conftest.$ac_ext |
| 5534 | if $ac_preproc_ok; then |
| 5535 | : |
| 5536 | else |
| 5537 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5538 | See \`config.log' for more details." >&5 |
| 5539 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5540 | See \`config.log' for more details." >&2;} |
| 5541 | { (exit 1); exit 1; }; } |
| 5542 | fi |
| 5543 | |
| 5544 | ac_ext=c |
| 5545 | ac_cpp='$CPP $CPPFLAGS' |
| 5546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5549 | |
| 5550 | ac_ext=c |
| 5551 | ac_cpp='$CPP $CPPFLAGS' |
| 5552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5555 | if test -n "$ac_tool_prefix"; then |
| 5556 | for ac_prog in gcc |
| 5557 | do |
| 5558 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5559 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5560 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5562 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5564 | else |
| 5565 | if test -n "$CC"; then |
| 5566 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5567 | else |
| 5568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5569 | for as_dir in $PATH |
| 5570 | do |
| 5571 | IFS=$as_save_IFS |
| 5572 | test -z "$as_dir" && as_dir=. |
| 5573 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5574 | 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] | 5575 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5577 | break 2 |
| 5578 | fi |
| 5579 | done |
| 5580 | done |
| 5581 | IFS=$as_save_IFS |
| 5582 | |
| 5583 | fi |
| 5584 | fi |
| 5585 | CC=$ac_cv_prog_CC |
| 5586 | if test -n "$CC"; then |
| 5587 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5588 | echo "${ECHO_T}$CC" >&6; } |
| 5589 | else |
| 5590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5591 | echo "${ECHO_T}no" >&6; } |
| 5592 | fi |
| 5593 | |
| 5594 | |
| 5595 | test -n "$CC" && break |
| 5596 | done |
| 5597 | fi |
| 5598 | if test -z "$CC"; then |
| 5599 | ac_ct_CC=$CC |
| 5600 | for ac_prog in gcc |
| 5601 | do |
| 5602 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5603 | set dummy $ac_prog; ac_word=$2 |
| 5604 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5606 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5608 | else |
| 5609 | if test -n "$ac_ct_CC"; then |
| 5610 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5611 | else |
| 5612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5613 | for as_dir in $PATH |
| 5614 | do |
| 5615 | IFS=$as_save_IFS |
| 5616 | test -z "$as_dir" && as_dir=. |
| 5617 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5618 | 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] | 5619 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5621 | break 2 |
| 5622 | fi |
| 5623 | done |
| 5624 | done |
| 5625 | IFS=$as_save_IFS |
| 5626 | |
| 5627 | fi |
| 5628 | fi |
| 5629 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5630 | if test -n "$ac_ct_CC"; then |
| 5631 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5632 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5633 | else |
| 5634 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5635 | echo "${ECHO_T}no" >&6; } |
| 5636 | fi |
| 5637 | |
| 5638 | |
| 5639 | test -n "$ac_ct_CC" && break |
| 5640 | done |
| 5641 | |
| 5642 | if test "x$ac_ct_CC" = x; then |
| 5643 | CC="" |
| 5644 | else |
| 5645 | case $cross_compiling:$ac_tool_warned in |
| 5646 | yes:) |
| 5647 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5648 | whose name does not start with the host triplet. If you think this |
| 5649 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5650 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5651 | whose name does not start with the host triplet. If you think this |
| 5652 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5653 | ac_tool_warned=yes ;; |
| 5654 | esac |
| 5655 | CC=$ac_ct_CC |
| 5656 | fi |
| 5657 | fi |
| 5658 | |
| 5659 | |
| 5660 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5661 | See \`config.log' for more details." >&5 |
| 5662 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5663 | See \`config.log' for more details." >&2;} |
| 5664 | { (exit 1); exit 1; }; } |
| 5665 | |
| 5666 | # Provide some information about the compiler. |
| 5667 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5668 | ac_compiler=`set X $ac_compile; echo $2` |
| 5669 | { (ac_try="$ac_compiler --version >&5" |
| 5670 | case "(($ac_try" in |
| 5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5672 | *) ac_try_echo=$ac_try;; |
| 5673 | esac |
| 5674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5675 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); } |
| 5679 | { (ac_try="$ac_compiler -v >&5" |
| 5680 | case "(($ac_try" in |
| 5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5682 | *) ac_try_echo=$ac_try;; |
| 5683 | esac |
| 5684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5685 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5686 | ac_status=$? |
| 5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5688 | (exit $ac_status); } |
| 5689 | { (ac_try="$ac_compiler -V >&5" |
| 5690 | case "(($ac_try" in |
| 5691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5692 | *) ac_try_echo=$ac_try;; |
| 5693 | esac |
| 5694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5695 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5696 | ac_status=$? |
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5698 | (exit $ac_status); } |
| 5699 | |
| 5700 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5701 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5702 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5704 | else |
| 5705 | cat >conftest.$ac_ext <<_ACEOF |
| 5706 | /* confdefs.h. */ |
| 5707 | _ACEOF |
| 5708 | cat confdefs.h >>conftest.$ac_ext |
| 5709 | cat >>conftest.$ac_ext <<_ACEOF |
| 5710 | /* end confdefs.h. */ |
| 5711 | |
| 5712 | int |
| 5713 | main () |
| 5714 | { |
| 5715 | #ifndef __GNUC__ |
| 5716 | choke me |
| 5717 | #endif |
| 5718 | |
| 5719 | ; |
| 5720 | return 0; |
| 5721 | } |
| 5722 | _ACEOF |
| 5723 | rm -f conftest.$ac_objext |
| 5724 | if { (ac_try="$ac_compile" |
| 5725 | case "(($ac_try" in |
| 5726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5727 | *) ac_try_echo=$ac_try;; |
| 5728 | esac |
| 5729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5730 | (eval "$ac_compile") 2>conftest.er1 |
| 5731 | ac_status=$? |
| 5732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5733 | rm -f conftest.er1 |
| 5734 | cat conftest.err >&5 |
| 5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5736 | (exit $ac_status); } && |
| 5737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5738 | { (case "(($ac_try" in |
| 5739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5740 | *) ac_try_echo=$ac_try;; |
| 5741 | esac |
| 5742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5743 | (eval "$ac_try") 2>&5 |
| 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); }; } && |
| 5747 | { ac_try='test -s conftest.$ac_objext' |
| 5748 | { (case "(($ac_try" in |
| 5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5750 | *) ac_try_echo=$ac_try;; |
| 5751 | esac |
| 5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5753 | (eval "$ac_try") 2>&5 |
| 5754 | ac_status=$? |
| 5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5756 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5757 | ac_compiler_gnu=yes |
| 5758 | else |
| 5759 | echo "$as_me: failed program was:" >&5 |
| 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
| 5762 | ac_compiler_gnu=no |
| 5763 | fi |
| 5764 | |
| 5765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5766 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5767 | |
| 5768 | fi |
| 5769 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5770 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5771 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5772 | ac_test_CFLAGS=${CFLAGS+set} |
| 5773 | ac_save_CFLAGS=$CFLAGS |
| 5774 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5775 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5776 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5778 | else |
| 5779 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5780 | ac_c_werror_flag=yes |
| 5781 | ac_cv_prog_cc_g=no |
| 5782 | CFLAGS="-g" |
| 5783 | cat >conftest.$ac_ext <<_ACEOF |
| 5784 | /* confdefs.h. */ |
| 5785 | _ACEOF |
| 5786 | cat confdefs.h >>conftest.$ac_ext |
| 5787 | cat >>conftest.$ac_ext <<_ACEOF |
| 5788 | /* end confdefs.h. */ |
| 5789 | |
| 5790 | int |
| 5791 | main () |
| 5792 | { |
| 5793 | |
| 5794 | ; |
| 5795 | return 0; |
| 5796 | } |
| 5797 | _ACEOF |
| 5798 | rm -f conftest.$ac_objext |
| 5799 | if { (ac_try="$ac_compile" |
| 5800 | case "(($ac_try" in |
| 5801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5802 | *) ac_try_echo=$ac_try;; |
| 5803 | esac |
| 5804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5805 | (eval "$ac_compile") 2>conftest.er1 |
| 5806 | ac_status=$? |
| 5807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5808 | rm -f conftest.er1 |
| 5809 | cat conftest.err >&5 |
| 5810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5811 | (exit $ac_status); } && |
| 5812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5813 | { (case "(($ac_try" in |
| 5814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5815 | *) ac_try_echo=$ac_try;; |
| 5816 | esac |
| 5817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5818 | (eval "$ac_try") 2>&5 |
| 5819 | ac_status=$? |
| 5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5821 | (exit $ac_status); }; } && |
| 5822 | { ac_try='test -s conftest.$ac_objext' |
| 5823 | { (case "(($ac_try" in |
| 5824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5825 | *) ac_try_echo=$ac_try;; |
| 5826 | esac |
| 5827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5828 | (eval "$ac_try") 2>&5 |
| 5829 | ac_status=$? |
| 5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5831 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5832 | ac_cv_prog_cc_g=yes |
| 5833 | else |
| 5834 | echo "$as_me: failed program was:" >&5 |
| 5835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5836 | |
| 5837 | CFLAGS="" |
| 5838 | cat >conftest.$ac_ext <<_ACEOF |
| 5839 | /* confdefs.h. */ |
| 5840 | _ACEOF |
| 5841 | cat confdefs.h >>conftest.$ac_ext |
| 5842 | cat >>conftest.$ac_ext <<_ACEOF |
| 5843 | /* end confdefs.h. */ |
| 5844 | |
| 5845 | int |
| 5846 | main () |
| 5847 | { |
| 5848 | |
| 5849 | ; |
| 5850 | return 0; |
| 5851 | } |
| 5852 | _ACEOF |
| 5853 | rm -f conftest.$ac_objext |
| 5854 | if { (ac_try="$ac_compile" |
| 5855 | case "(($ac_try" in |
| 5856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5857 | *) ac_try_echo=$ac_try;; |
| 5858 | esac |
| 5859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5860 | (eval "$ac_compile") 2>conftest.er1 |
| 5861 | ac_status=$? |
| 5862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5863 | rm -f conftest.er1 |
| 5864 | cat conftest.err >&5 |
| 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5866 | (exit $ac_status); } && |
| 5867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5868 | { (case "(($ac_try" in |
| 5869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5870 | *) ac_try_echo=$ac_try;; |
| 5871 | esac |
| 5872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5873 | (eval "$ac_try") 2>&5 |
| 5874 | ac_status=$? |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5876 | (exit $ac_status); }; } && |
| 5877 | { ac_try='test -s conftest.$ac_objext' |
| 5878 | { (case "(($ac_try" in |
| 5879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5880 | *) ac_try_echo=$ac_try;; |
| 5881 | esac |
| 5882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5883 | (eval "$ac_try") 2>&5 |
| 5884 | ac_status=$? |
| 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5886 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5887 | : |
| 5888 | else |
| 5889 | echo "$as_me: failed program was:" >&5 |
| 5890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5891 | |
| 5892 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5893 | CFLAGS="-g" |
| 5894 | cat >conftest.$ac_ext <<_ACEOF |
| 5895 | /* confdefs.h. */ |
| 5896 | _ACEOF |
| 5897 | cat confdefs.h >>conftest.$ac_ext |
| 5898 | cat >>conftest.$ac_ext <<_ACEOF |
| 5899 | /* end confdefs.h. */ |
| 5900 | |
| 5901 | int |
| 5902 | main () |
| 5903 | { |
| 5904 | |
| 5905 | ; |
| 5906 | return 0; |
| 5907 | } |
| 5908 | _ACEOF |
| 5909 | rm -f conftest.$ac_objext |
| 5910 | if { (ac_try="$ac_compile" |
| 5911 | case "(($ac_try" in |
| 5912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5913 | *) ac_try_echo=$ac_try;; |
| 5914 | esac |
| 5915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5916 | (eval "$ac_compile") 2>conftest.er1 |
| 5917 | ac_status=$? |
| 5918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5919 | rm -f conftest.er1 |
| 5920 | cat conftest.err >&5 |
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5922 | (exit $ac_status); } && |
| 5923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5924 | { (case "(($ac_try" in |
| 5925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5926 | *) ac_try_echo=$ac_try;; |
| 5927 | esac |
| 5928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5929 | (eval "$ac_try") 2>&5 |
| 5930 | ac_status=$? |
| 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5932 | (exit $ac_status); }; } && |
| 5933 | { ac_try='test -s conftest.$ac_objext' |
| 5934 | { (case "(($ac_try" in |
| 5935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5936 | *) ac_try_echo=$ac_try;; |
| 5937 | esac |
| 5938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5939 | (eval "$ac_try") 2>&5 |
| 5940 | ac_status=$? |
| 5941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5942 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5943 | ac_cv_prog_cc_g=yes |
| 5944 | else |
| 5945 | echo "$as_me: failed program was:" >&5 |
| 5946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5947 | |
| 5948 | |
| 5949 | fi |
| 5950 | |
| 5951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5952 | fi |
| 5953 | |
| 5954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5955 | fi |
| 5956 | |
| 5957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5958 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5959 | fi |
| 5960 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5961 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5962 | if test "$ac_test_CFLAGS" = set; then |
| 5963 | CFLAGS=$ac_save_CFLAGS |
| 5964 | elif test $ac_cv_prog_cc_g = yes; then |
| 5965 | if test "$GCC" = yes; then |
| 5966 | CFLAGS="-g -O2" |
| 5967 | else |
| 5968 | CFLAGS="-g" |
| 5969 | fi |
| 5970 | else |
| 5971 | if test "$GCC" = yes; then |
| 5972 | CFLAGS="-O2" |
| 5973 | else |
| 5974 | CFLAGS= |
| 5975 | fi |
| 5976 | fi |
| 5977 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5978 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5979 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5981 | else |
| 5982 | ac_cv_prog_cc_c89=no |
| 5983 | ac_save_CC=$CC |
| 5984 | cat >conftest.$ac_ext <<_ACEOF |
| 5985 | /* confdefs.h. */ |
| 5986 | _ACEOF |
| 5987 | cat confdefs.h >>conftest.$ac_ext |
| 5988 | cat >>conftest.$ac_ext <<_ACEOF |
| 5989 | /* end confdefs.h. */ |
| 5990 | #include <stdarg.h> |
| 5991 | #include <stdio.h> |
| 5992 | #include <sys/types.h> |
| 5993 | #include <sys/stat.h> |
| 5994 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5995 | struct buf { int x; }; |
| 5996 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5997 | static char *e (p, i) |
| 5998 | char **p; |
| 5999 | int i; |
| 6000 | { |
| 6001 | return p[i]; |
| 6002 | } |
| 6003 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6004 | { |
| 6005 | char *s; |
| 6006 | va_list v; |
| 6007 | va_start (v,p); |
| 6008 | s = g (p, va_arg (v,int)); |
| 6009 | va_end (v); |
| 6010 | return s; |
| 6011 | } |
| 6012 | |
| 6013 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6014 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6015 | These don't provoke an error unfortunately, instead are silently treated |
| 6016 | as 'x'. The following induces an error, until -std is added to get |
| 6017 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6018 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6019 | that's true only with -std. */ |
| 6020 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6021 | |
| 6022 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6023 | inside strings and character constants. */ |
| 6024 | #define FOO(x) 'x' |
| 6025 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6026 | |
| 6027 | int test (int i, double x); |
| 6028 | struct s1 {int (*f) (int a);}; |
| 6029 | struct s2 {int (*f) (double a);}; |
| 6030 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6031 | int argc; |
| 6032 | char **argv; |
| 6033 | int |
| 6034 | main () |
| 6035 | { |
| 6036 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6037 | ; |
| 6038 | return 0; |
| 6039 | } |
| 6040 | _ACEOF |
| 6041 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6042 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6043 | do |
| 6044 | CC="$ac_save_CC $ac_arg" |
| 6045 | rm -f conftest.$ac_objext |
| 6046 | if { (ac_try="$ac_compile" |
| 6047 | case "(($ac_try" in |
| 6048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6049 | *) ac_try_echo=$ac_try;; |
| 6050 | esac |
| 6051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6052 | (eval "$ac_compile") 2>conftest.er1 |
| 6053 | ac_status=$? |
| 6054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6055 | rm -f conftest.er1 |
| 6056 | cat conftest.err >&5 |
| 6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6058 | (exit $ac_status); } && |
| 6059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6060 | { (case "(($ac_try" in |
| 6061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6062 | *) ac_try_echo=$ac_try;; |
| 6063 | esac |
| 6064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6065 | (eval "$ac_try") 2>&5 |
| 6066 | ac_status=$? |
| 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6068 | (exit $ac_status); }; } && |
| 6069 | { ac_try='test -s conftest.$ac_objext' |
| 6070 | { (case "(($ac_try" in |
| 6071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6072 | *) ac_try_echo=$ac_try;; |
| 6073 | esac |
| 6074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6075 | (eval "$ac_try") 2>&5 |
| 6076 | ac_status=$? |
| 6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6078 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6079 | ac_cv_prog_cc_c89=$ac_arg |
| 6080 | else |
| 6081 | echo "$as_me: failed program was:" >&5 |
| 6082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6083 | |
| 6084 | |
| 6085 | fi |
| 6086 | |
| 6087 | rm -f core conftest.err conftest.$ac_objext |
| 6088 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6089 | done |
| 6090 | rm -f conftest.$ac_ext |
| 6091 | CC=$ac_save_CC |
| 6092 | |
| 6093 | fi |
| 6094 | # AC_CACHE_VAL |
| 6095 | case "x$ac_cv_prog_cc_c89" in |
| 6096 | x) |
| 6097 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6098 | echo "${ECHO_T}none needed" >&6; } ;; |
| 6099 | xno) |
| 6100 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6101 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 6102 | *) |
| 6103 | CC="$CC $ac_cv_prog_cc_c89" |
| 6104 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6105 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 6106 | esac |
| 6107 | |
| 6108 | |
| 6109 | ac_ext=c |
| 6110 | ac_cpp='$CPP $CPPFLAGS' |
| 6111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6114 | |
| 6115 | ac_ext=cpp |
| 6116 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6117 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6118 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6119 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6120 | if test -z "$CXX"; then |
| 6121 | if test -n "$CCC"; then |
| 6122 | CXX=$CCC |
| 6123 | else |
| 6124 | if test -n "$ac_tool_prefix"; then |
| 6125 | for ac_prog in g++ |
| 6126 | do |
| 6127 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6128 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6131 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6133 | else |
| 6134 | if test -n "$CXX"; then |
| 6135 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6136 | else |
| 6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6138 | for as_dir in $PATH |
| 6139 | do |
| 6140 | IFS=$as_save_IFS |
| 6141 | test -z "$as_dir" && as_dir=. |
| 6142 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6143 | 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] | 6144 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6146 | break 2 |
| 6147 | fi |
| 6148 | done |
| 6149 | done |
| 6150 | IFS=$as_save_IFS |
| 6151 | |
| 6152 | fi |
| 6153 | fi |
| 6154 | CXX=$ac_cv_prog_CXX |
| 6155 | if test -n "$CXX"; then |
| 6156 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6157 | echo "${ECHO_T}$CXX" >&6; } |
| 6158 | else |
| 6159 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6160 | echo "${ECHO_T}no" >&6; } |
| 6161 | fi |
| 6162 | |
| 6163 | |
| 6164 | test -n "$CXX" && break |
| 6165 | done |
| 6166 | fi |
| 6167 | if test -z "$CXX"; then |
| 6168 | ac_ct_CXX=$CXX |
| 6169 | for ac_prog in g++ |
| 6170 | do |
| 6171 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6172 | set dummy $ac_prog; ac_word=$2 |
| 6173 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6175 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6177 | else |
| 6178 | if test -n "$ac_ct_CXX"; then |
| 6179 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6180 | else |
| 6181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6182 | for as_dir in $PATH |
| 6183 | do |
| 6184 | IFS=$as_save_IFS |
| 6185 | test -z "$as_dir" && as_dir=. |
| 6186 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6187 | 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] | 6188 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6190 | break 2 |
| 6191 | fi |
| 6192 | done |
| 6193 | done |
| 6194 | IFS=$as_save_IFS |
| 6195 | |
| 6196 | fi |
| 6197 | fi |
| 6198 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6199 | if test -n "$ac_ct_CXX"; then |
| 6200 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6201 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 6202 | else |
| 6203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6204 | echo "${ECHO_T}no" >&6; } |
| 6205 | fi |
| 6206 | |
| 6207 | |
| 6208 | test -n "$ac_ct_CXX" && break |
| 6209 | done |
| 6210 | |
| 6211 | if test "x$ac_ct_CXX" = x; then |
| 6212 | CXX="g++" |
| 6213 | else |
| 6214 | case $cross_compiling:$ac_tool_warned in |
| 6215 | yes:) |
| 6216 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6217 | whose name does not start with the host triplet. If you think this |
| 6218 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6219 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6220 | whose name does not start with the host triplet. If you think this |
| 6221 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6222 | ac_tool_warned=yes ;; |
| 6223 | esac |
| 6224 | CXX=$ac_ct_CXX |
| 6225 | fi |
| 6226 | fi |
| 6227 | |
| 6228 | fi |
| 6229 | fi |
| 6230 | # Provide some information about the compiler. |
| 6231 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6232 | ac_compiler=`set X $ac_compile; echo $2` |
| 6233 | { (ac_try="$ac_compiler --version >&5" |
| 6234 | case "(($ac_try" in |
| 6235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6236 | *) ac_try_echo=$ac_try;; |
| 6237 | esac |
| 6238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6239 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); } |
| 6243 | { (ac_try="$ac_compiler -v >&5" |
| 6244 | case "(($ac_try" in |
| 6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6246 | *) ac_try_echo=$ac_try;; |
| 6247 | esac |
| 6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6249 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6250 | ac_status=$? |
| 6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6252 | (exit $ac_status); } |
| 6253 | { (ac_try="$ac_compiler -V >&5" |
| 6254 | case "(($ac_try" in |
| 6255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6256 | *) ac_try_echo=$ac_try;; |
| 6257 | esac |
| 6258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6259 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6260 | ac_status=$? |
| 6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6262 | (exit $ac_status); } |
| 6263 | |
| 6264 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6265 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6266 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6268 | else |
| 6269 | cat >conftest.$ac_ext <<_ACEOF |
| 6270 | /* confdefs.h. */ |
| 6271 | _ACEOF |
| 6272 | cat confdefs.h >>conftest.$ac_ext |
| 6273 | cat >>conftest.$ac_ext <<_ACEOF |
| 6274 | /* end confdefs.h. */ |
| 6275 | |
| 6276 | int |
| 6277 | main () |
| 6278 | { |
| 6279 | #ifndef __GNUC__ |
| 6280 | choke me |
| 6281 | #endif |
| 6282 | |
| 6283 | ; |
| 6284 | return 0; |
| 6285 | } |
| 6286 | _ACEOF |
| 6287 | rm -f conftest.$ac_objext |
| 6288 | if { (ac_try="$ac_compile" |
| 6289 | case "(($ac_try" in |
| 6290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6291 | *) ac_try_echo=$ac_try;; |
| 6292 | esac |
| 6293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6294 | (eval "$ac_compile") 2>conftest.er1 |
| 6295 | ac_status=$? |
| 6296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6297 | rm -f conftest.er1 |
| 6298 | cat conftest.err >&5 |
| 6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6300 | (exit $ac_status); } && |
| 6301 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6302 | { (case "(($ac_try" in |
| 6303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6304 | *) ac_try_echo=$ac_try;; |
| 6305 | esac |
| 6306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6307 | (eval "$ac_try") 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); }; } && |
| 6311 | { ac_try='test -s conftest.$ac_objext' |
| 6312 | { (case "(($ac_try" in |
| 6313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6314 | *) ac_try_echo=$ac_try;; |
| 6315 | esac |
| 6316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6317 | (eval "$ac_try") 2>&5 |
| 6318 | ac_status=$? |
| 6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6320 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6321 | ac_compiler_gnu=yes |
| 6322 | else |
| 6323 | echo "$as_me: failed program was:" >&5 |
| 6324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6325 | |
| 6326 | ac_compiler_gnu=no |
| 6327 | fi |
| 6328 | |
| 6329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6330 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6331 | |
| 6332 | fi |
| 6333 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6334 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6335 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6336 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6337 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6338 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6339 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6340 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6342 | else |
| 6343 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6344 | ac_cxx_werror_flag=yes |
| 6345 | ac_cv_prog_cxx_g=no |
| 6346 | CXXFLAGS="-g" |
| 6347 | cat >conftest.$ac_ext <<_ACEOF |
| 6348 | /* confdefs.h. */ |
| 6349 | _ACEOF |
| 6350 | cat confdefs.h >>conftest.$ac_ext |
| 6351 | cat >>conftest.$ac_ext <<_ACEOF |
| 6352 | /* end confdefs.h. */ |
| 6353 | |
| 6354 | int |
| 6355 | main () |
| 6356 | { |
| 6357 | |
| 6358 | ; |
| 6359 | return 0; |
| 6360 | } |
| 6361 | _ACEOF |
| 6362 | rm -f conftest.$ac_objext |
| 6363 | if { (ac_try="$ac_compile" |
| 6364 | case "(($ac_try" in |
| 6365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6366 | *) ac_try_echo=$ac_try;; |
| 6367 | esac |
| 6368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6369 | (eval "$ac_compile") 2>conftest.er1 |
| 6370 | ac_status=$? |
| 6371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6372 | rm -f conftest.er1 |
| 6373 | cat conftest.err >&5 |
| 6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6375 | (exit $ac_status); } && |
| 6376 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6377 | { (case "(($ac_try" in |
| 6378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6379 | *) ac_try_echo=$ac_try;; |
| 6380 | esac |
| 6381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6382 | (eval "$ac_try") 2>&5 |
| 6383 | ac_status=$? |
| 6384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6385 | (exit $ac_status); }; } && |
| 6386 | { ac_try='test -s conftest.$ac_objext' |
| 6387 | { (case "(($ac_try" in |
| 6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6389 | *) ac_try_echo=$ac_try;; |
| 6390 | esac |
| 6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6392 | (eval "$ac_try") 2>&5 |
| 6393 | ac_status=$? |
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6396 | ac_cv_prog_cxx_g=yes |
| 6397 | else |
| 6398 | echo "$as_me: failed program was:" >&5 |
| 6399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6400 | |
| 6401 | CXXFLAGS="" |
| 6402 | cat >conftest.$ac_ext <<_ACEOF |
| 6403 | /* confdefs.h. */ |
| 6404 | _ACEOF |
| 6405 | cat confdefs.h >>conftest.$ac_ext |
| 6406 | cat >>conftest.$ac_ext <<_ACEOF |
| 6407 | /* end confdefs.h. */ |
| 6408 | |
| 6409 | int |
| 6410 | main () |
| 6411 | { |
| 6412 | |
| 6413 | ; |
| 6414 | return 0; |
| 6415 | } |
| 6416 | _ACEOF |
| 6417 | rm -f conftest.$ac_objext |
| 6418 | if { (ac_try="$ac_compile" |
| 6419 | case "(($ac_try" in |
| 6420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6421 | *) ac_try_echo=$ac_try;; |
| 6422 | esac |
| 6423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6424 | (eval "$ac_compile") 2>conftest.er1 |
| 6425 | ac_status=$? |
| 6426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6427 | rm -f conftest.er1 |
| 6428 | cat conftest.err >&5 |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6430 | (exit $ac_status); } && |
| 6431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6432 | { (case "(($ac_try" in |
| 6433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6434 | *) ac_try_echo=$ac_try;; |
| 6435 | esac |
| 6436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6437 | (eval "$ac_try") 2>&5 |
| 6438 | ac_status=$? |
| 6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6440 | (exit $ac_status); }; } && |
| 6441 | { ac_try='test -s conftest.$ac_objext' |
| 6442 | { (case "(($ac_try" in |
| 6443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6444 | *) ac_try_echo=$ac_try;; |
| 6445 | esac |
| 6446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6447 | (eval "$ac_try") 2>&5 |
| 6448 | ac_status=$? |
| 6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6450 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6451 | : |
| 6452 | else |
| 6453 | echo "$as_me: failed program was:" >&5 |
| 6454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6455 | |
| 6456 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6457 | CXXFLAGS="-g" |
| 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 | int |
| 6466 | main () |
| 6467 | { |
| 6468 | |
| 6469 | ; |
| 6470 | return 0; |
| 6471 | } |
| 6472 | _ACEOF |
| 6473 | rm -f conftest.$ac_objext |
| 6474 | if { (ac_try="$ac_compile" |
| 6475 | case "(($ac_try" in |
| 6476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6477 | *) ac_try_echo=$ac_try;; |
| 6478 | esac |
| 6479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6480 | (eval "$ac_compile") 2>conftest.er1 |
| 6481 | ac_status=$? |
| 6482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6483 | rm -f conftest.er1 |
| 6484 | cat conftest.err >&5 |
| 6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6486 | (exit $ac_status); } && |
| 6487 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6488 | { (case "(($ac_try" in |
| 6489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6490 | *) ac_try_echo=$ac_try;; |
| 6491 | esac |
| 6492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6493 | (eval "$ac_try") 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); }; } && |
| 6497 | { ac_try='test -s conftest.$ac_objext' |
| 6498 | { (case "(($ac_try" in |
| 6499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6500 | *) ac_try_echo=$ac_try;; |
| 6501 | esac |
| 6502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6503 | (eval "$ac_try") 2>&5 |
| 6504 | ac_status=$? |
| 6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6506 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6507 | ac_cv_prog_cxx_g=yes |
| 6508 | else |
| 6509 | echo "$as_me: failed program was:" >&5 |
| 6510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6511 | |
| 6512 | |
| 6513 | fi |
| 6514 | |
| 6515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6516 | fi |
| 6517 | |
| 6518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6519 | fi |
| 6520 | |
| 6521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6522 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6523 | fi |
| 6524 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6525 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6526 | if test "$ac_test_CXXFLAGS" = set; then |
| 6527 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6528 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6529 | if test "$GXX" = yes; then |
| 6530 | CXXFLAGS="-g -O2" |
| 6531 | else |
| 6532 | CXXFLAGS="-g" |
| 6533 | fi |
| 6534 | else |
| 6535 | if test "$GXX" = yes; then |
| 6536 | CXXFLAGS="-O2" |
| 6537 | else |
| 6538 | CXXFLAGS= |
| 6539 | fi |
| 6540 | fi |
| 6541 | ac_ext=c |
| 6542 | ac_cpp='$CPP $CPPFLAGS' |
| 6543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6547 | |
| 6548 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6549 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6550 | if test "${lt_cv_path_NM+set}" = set; then |
| 6551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6552 | else |
| 6553 | if test -n "$NM"; then |
| 6554 | # Let the user override the test. |
| 6555 | lt_cv_path_NM="$NM" |
| 6556 | else |
| 6557 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6558 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6559 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6560 | fi |
| 6561 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6562 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6563 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6564 | IFS="$lt_save_ifs" |
| 6565 | test -z "$ac_dir" && ac_dir=. |
| 6566 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6567 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6568 | # Check to see if the nm accepts a BSD-compat flag. |
| 6569 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6570 | # nm: unknown option "B" ignored |
| 6571 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6572 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6573 | */dev/null* | *'Invalid file or object type'*) |
| 6574 | lt_cv_path_NM="$tmp_nm -B" |
| 6575 | break |
| 6576 | ;; |
| 6577 | *) |
| 6578 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6579 | */dev/null*) |
| 6580 | lt_cv_path_NM="$tmp_nm -p" |
| 6581 | break |
| 6582 | ;; |
| 6583 | *) |
| 6584 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6585 | continue # so that we can try to find one that supports BSD flags |
| 6586 | ;; |
| 6587 | esac |
| 6588 | ;; |
| 6589 | esac |
| 6590 | fi |
| 6591 | done |
| 6592 | IFS="$lt_save_ifs" |
| 6593 | done |
| 6594 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6595 | fi |
| 6596 | fi |
| 6597 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6598 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6599 | NM="$lt_cv_path_NM" |
| 6600 | |
| 6601 | |
| 6602 | |
| 6603 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6604 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6605 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6607 | else |
| 6608 | llvm_cv_gnu_make_command='' |
| 6609 | for a in "$MAKE" make gmake gnumake ; do |
| 6610 | if test -z "$a" ; then continue ; fi ; |
| 6611 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6612 | then |
| 6613 | llvm_cv_gnu_make_command=$a ; |
| 6614 | break; |
| 6615 | fi |
| 6616 | done |
| 6617 | fi |
| 6618 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6619 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6620 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6621 | ifGNUmake='' ; |
| 6622 | else |
| 6623 | ifGNUmake='#' ; |
| 6624 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6625 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6626 | fi |
| 6627 | |
| 6628 | |
| 6629 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6630 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6631 | LN_S=$as_ln_s |
| 6632 | if test "$LN_S" = "ln -s"; then |
| 6633 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6634 | echo "${ECHO_T}yes" >&6; } |
| 6635 | else |
| 6636 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6637 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6638 | fi |
| 6639 | |
| 6640 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6641 | set dummy cmp; ac_word=$2 |
| 6642 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6644 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6646 | else |
| 6647 | case $CMP in |
| 6648 | [\\/]* | ?:[\\/]*) |
| 6649 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6650 | ;; |
| 6651 | *) |
| 6652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6653 | for as_dir in $PATH |
| 6654 | do |
| 6655 | IFS=$as_save_IFS |
| 6656 | test -z "$as_dir" && as_dir=. |
| 6657 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6658 | 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] | 6659 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6661 | break 2 |
| 6662 | fi |
| 6663 | done |
| 6664 | done |
| 6665 | IFS=$as_save_IFS |
| 6666 | |
| 6667 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6668 | ;; |
| 6669 | esac |
| 6670 | fi |
| 6671 | CMP=$ac_cv_path_CMP |
| 6672 | if test -n "$CMP"; then |
| 6673 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6674 | echo "${ECHO_T}$CMP" >&6; } |
| 6675 | else |
| 6676 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6677 | echo "${ECHO_T}no" >&6; } |
| 6678 | fi |
| 6679 | |
| 6680 | |
| 6681 | # Extract the first word of "cp", so it can be a program name with args. |
| 6682 | set dummy cp; ac_word=$2 |
| 6683 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6685 | if test "${ac_cv_path_CP+set}" = set; then |
| 6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6687 | else |
| 6688 | case $CP in |
| 6689 | [\\/]* | ?:[\\/]*) |
| 6690 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6691 | ;; |
| 6692 | *) |
| 6693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6694 | for as_dir in $PATH |
| 6695 | do |
| 6696 | IFS=$as_save_IFS |
| 6697 | test -z "$as_dir" && as_dir=. |
| 6698 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6699 | 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] | 6700 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6702 | break 2 |
| 6703 | fi |
| 6704 | done |
| 6705 | done |
| 6706 | IFS=$as_save_IFS |
| 6707 | |
| 6708 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6709 | ;; |
| 6710 | esac |
| 6711 | fi |
| 6712 | CP=$ac_cv_path_CP |
| 6713 | if test -n "$CP"; then |
| 6714 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6715 | echo "${ECHO_T}$CP" >&6; } |
| 6716 | else |
| 6717 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6718 | echo "${ECHO_T}no" >&6; } |
| 6719 | fi |
| 6720 | |
| 6721 | |
| 6722 | # Extract the first word of "date", so it can be a program name with args. |
| 6723 | set dummy date; ac_word=$2 |
| 6724 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6726 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6728 | else |
| 6729 | case $DATE in |
| 6730 | [\\/]* | ?:[\\/]*) |
| 6731 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6732 | ;; |
| 6733 | *) |
| 6734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6735 | for as_dir in $PATH |
| 6736 | do |
| 6737 | IFS=$as_save_IFS |
| 6738 | test -z "$as_dir" && as_dir=. |
| 6739 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6740 | 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] | 6741 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6743 | break 2 |
| 6744 | fi |
| 6745 | done |
| 6746 | done |
| 6747 | IFS=$as_save_IFS |
| 6748 | |
| 6749 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6750 | ;; |
| 6751 | esac |
| 6752 | fi |
| 6753 | DATE=$ac_cv_path_DATE |
| 6754 | if test -n "$DATE"; then |
| 6755 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6756 | echo "${ECHO_T}$DATE" >&6; } |
| 6757 | else |
| 6758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6759 | echo "${ECHO_T}no" >&6; } |
| 6760 | fi |
| 6761 | |
| 6762 | |
| 6763 | # Extract the first word of "find", so it can be a program name with args. |
| 6764 | set dummy find; ac_word=$2 |
| 6765 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6767 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6769 | else |
| 6770 | case $FIND in |
| 6771 | [\\/]* | ?:[\\/]*) |
| 6772 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6773 | ;; |
| 6774 | *) |
| 6775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6776 | for as_dir in $PATH |
| 6777 | do |
| 6778 | IFS=$as_save_IFS |
| 6779 | test -z "$as_dir" && as_dir=. |
| 6780 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6781 | 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] | 6782 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6784 | break 2 |
| 6785 | fi |
| 6786 | done |
| 6787 | done |
| 6788 | IFS=$as_save_IFS |
| 6789 | |
| 6790 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6791 | ;; |
| 6792 | esac |
| 6793 | fi |
| 6794 | FIND=$ac_cv_path_FIND |
| 6795 | if test -n "$FIND"; then |
| 6796 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6797 | echo "${ECHO_T}$FIND" >&6; } |
| 6798 | else |
| 6799 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6800 | echo "${ECHO_T}no" >&6; } |
| 6801 | fi |
| 6802 | |
| 6803 | |
| 6804 | # Extract the first word of "grep", so it can be a program name with args. |
| 6805 | set dummy grep; ac_word=$2 |
| 6806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6808 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6810 | else |
| 6811 | case $GREP in |
| 6812 | [\\/]* | ?:[\\/]*) |
| 6813 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6814 | ;; |
| 6815 | *) |
| 6816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6817 | for as_dir in $PATH |
| 6818 | do |
| 6819 | IFS=$as_save_IFS |
| 6820 | test -z "$as_dir" && as_dir=. |
| 6821 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6822 | 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] | 6823 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6825 | break 2 |
| 6826 | fi |
| 6827 | done |
| 6828 | done |
| 6829 | IFS=$as_save_IFS |
| 6830 | |
| 6831 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6832 | ;; |
| 6833 | esac |
| 6834 | fi |
| 6835 | GREP=$ac_cv_path_GREP |
| 6836 | if test -n "$GREP"; then |
| 6837 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6838 | echo "${ECHO_T}$GREP" >&6; } |
| 6839 | else |
| 6840 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6841 | echo "${ECHO_T}no" >&6; } |
| 6842 | fi |
| 6843 | |
| 6844 | |
| 6845 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6846 | set dummy mkdir; ac_word=$2 |
| 6847 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6849 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6851 | else |
| 6852 | case $MKDIR in |
| 6853 | [\\/]* | ?:[\\/]*) |
| 6854 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6855 | ;; |
| 6856 | *) |
| 6857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6858 | for as_dir in $PATH |
| 6859 | do |
| 6860 | IFS=$as_save_IFS |
| 6861 | test -z "$as_dir" && as_dir=. |
| 6862 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6863 | 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] | 6864 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6866 | break 2 |
| 6867 | fi |
| 6868 | done |
| 6869 | done |
| 6870 | IFS=$as_save_IFS |
| 6871 | |
| 6872 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6873 | ;; |
| 6874 | esac |
| 6875 | fi |
| 6876 | MKDIR=$ac_cv_path_MKDIR |
| 6877 | if test -n "$MKDIR"; then |
| 6878 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6879 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6880 | else |
| 6881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6882 | echo "${ECHO_T}no" >&6; } |
| 6883 | fi |
| 6884 | |
| 6885 | |
| 6886 | # Extract the first word of "mv", so it can be a program name with args. |
| 6887 | set dummy mv; ac_word=$2 |
| 6888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6890 | if test "${ac_cv_path_MV+set}" = set; then |
| 6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6892 | else |
| 6893 | case $MV in |
| 6894 | [\\/]* | ?:[\\/]*) |
| 6895 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6896 | ;; |
| 6897 | *) |
| 6898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6899 | for as_dir in $PATH |
| 6900 | do |
| 6901 | IFS=$as_save_IFS |
| 6902 | test -z "$as_dir" && as_dir=. |
| 6903 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6904 | 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] | 6905 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6907 | break 2 |
| 6908 | fi |
| 6909 | done |
| 6910 | done |
| 6911 | IFS=$as_save_IFS |
| 6912 | |
| 6913 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6914 | ;; |
| 6915 | esac |
| 6916 | fi |
| 6917 | MV=$ac_cv_path_MV |
| 6918 | if test -n "$MV"; then |
| 6919 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6920 | echo "${ECHO_T}$MV" >&6; } |
| 6921 | else |
| 6922 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6923 | echo "${ECHO_T}no" >&6; } |
| 6924 | fi |
| 6925 | |
| 6926 | |
| 6927 | if test -n "$ac_tool_prefix"; then |
| 6928 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6929 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6932 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6934 | else |
| 6935 | if test -n "$RANLIB"; then |
| 6936 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6937 | else |
| 6938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6939 | for as_dir in $PATH |
| 6940 | do |
| 6941 | IFS=$as_save_IFS |
| 6942 | test -z "$as_dir" && as_dir=. |
| 6943 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6944 | 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] | 6945 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6947 | break 2 |
| 6948 | fi |
| 6949 | done |
| 6950 | done |
| 6951 | IFS=$as_save_IFS |
| 6952 | |
| 6953 | fi |
| 6954 | fi |
| 6955 | RANLIB=$ac_cv_prog_RANLIB |
| 6956 | if test -n "$RANLIB"; then |
| 6957 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6958 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6959 | else |
| 6960 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6961 | echo "${ECHO_T}no" >&6; } |
| 6962 | fi |
| 6963 | |
| 6964 | |
| 6965 | fi |
| 6966 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6967 | ac_ct_RANLIB=$RANLIB |
| 6968 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6969 | set dummy ranlib; ac_word=$2 |
| 6970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6972 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6974 | else |
| 6975 | if test -n "$ac_ct_RANLIB"; then |
| 6976 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6977 | else |
| 6978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6979 | for as_dir in $PATH |
| 6980 | do |
| 6981 | IFS=$as_save_IFS |
| 6982 | test -z "$as_dir" && as_dir=. |
| 6983 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6984 | 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] | 6985 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6987 | break 2 |
| 6988 | fi |
| 6989 | done |
| 6990 | done |
| 6991 | IFS=$as_save_IFS |
| 6992 | |
| 6993 | fi |
| 6994 | fi |
| 6995 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6996 | if test -n "$ac_ct_RANLIB"; then |
| 6997 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6998 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6999 | else |
| 7000 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7001 | echo "${ECHO_T}no" >&6; } |
| 7002 | fi |
| 7003 | |
| 7004 | if test "x$ac_ct_RANLIB" = x; then |
| 7005 | RANLIB=":" |
| 7006 | else |
| 7007 | case $cross_compiling:$ac_tool_warned in |
| 7008 | yes:) |
| 7009 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7010 | whose name does not start with the host triplet. If you think this |
| 7011 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7012 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7013 | whose name does not start with the host triplet. If you think this |
| 7014 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7015 | ac_tool_warned=yes ;; |
| 7016 | esac |
| 7017 | RANLIB=$ac_ct_RANLIB |
| 7018 | fi |
| 7019 | else |
| 7020 | RANLIB="$ac_cv_prog_RANLIB" |
| 7021 | fi |
| 7022 | |
| 7023 | # Extract the first word of "rm", so it can be a program name with args. |
| 7024 | set dummy rm; ac_word=$2 |
| 7025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7027 | if test "${ac_cv_path_RM+set}" = set; then |
| 7028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7029 | else |
| 7030 | case $RM in |
| 7031 | [\\/]* | ?:[\\/]*) |
| 7032 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7033 | ;; |
| 7034 | *) |
| 7035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7036 | for as_dir in $PATH |
| 7037 | do |
| 7038 | IFS=$as_save_IFS |
| 7039 | test -z "$as_dir" && as_dir=. |
| 7040 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7041 | 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] | 7042 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7044 | break 2 |
| 7045 | fi |
| 7046 | done |
| 7047 | done |
| 7048 | IFS=$as_save_IFS |
| 7049 | |
| 7050 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7051 | ;; |
| 7052 | esac |
| 7053 | fi |
| 7054 | RM=$ac_cv_path_RM |
| 7055 | if test -n "$RM"; then |
| 7056 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7057 | echo "${ECHO_T}$RM" >&6; } |
| 7058 | else |
| 7059 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7060 | echo "${ECHO_T}no" >&6; } |
| 7061 | fi |
| 7062 | |
| 7063 | |
| 7064 | # Extract the first word of "sed", so it can be a program name with args. |
| 7065 | set dummy sed; ac_word=$2 |
| 7066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7068 | if test "${ac_cv_path_SED+set}" = set; then |
| 7069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7070 | else |
| 7071 | case $SED in |
| 7072 | [\\/]* | ?:[\\/]*) |
| 7073 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7074 | ;; |
| 7075 | *) |
| 7076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7077 | for as_dir in $PATH |
| 7078 | do |
| 7079 | IFS=$as_save_IFS |
| 7080 | test -z "$as_dir" && as_dir=. |
| 7081 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7082 | 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] | 7083 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7085 | break 2 |
| 7086 | fi |
| 7087 | done |
| 7088 | done |
| 7089 | IFS=$as_save_IFS |
| 7090 | |
| 7091 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7092 | ;; |
| 7093 | esac |
| 7094 | fi |
| 7095 | SED=$ac_cv_path_SED |
| 7096 | if test -n "$SED"; then |
| 7097 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7098 | echo "${ECHO_T}$SED" >&6; } |
| 7099 | else |
| 7100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7101 | echo "${ECHO_T}no" >&6; } |
| 7102 | fi |
| 7103 | |
| 7104 | |
| 7105 | # Extract the first word of "tar", so it can be a program name with args. |
| 7106 | set dummy tar; ac_word=$2 |
| 7107 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7109 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7111 | else |
| 7112 | case $TAR in |
| 7113 | [\\/]* | ?:[\\/]*) |
| 7114 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7115 | ;; |
| 7116 | *) |
| 7117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7118 | for as_dir in $PATH |
| 7119 | do |
| 7120 | IFS=$as_save_IFS |
| 7121 | test -z "$as_dir" && as_dir=. |
| 7122 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7123 | 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] | 7124 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7126 | break 2 |
| 7127 | fi |
| 7128 | done |
| 7129 | done |
| 7130 | IFS=$as_save_IFS |
| 7131 | |
| 7132 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7133 | ;; |
| 7134 | esac |
| 7135 | fi |
| 7136 | TAR=$ac_cv_path_TAR |
| 7137 | if test -n "$TAR"; then |
| 7138 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7139 | echo "${ECHO_T}$TAR" >&6; } |
| 7140 | else |
| 7141 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7142 | echo "${ECHO_T}no" >&6; } |
| 7143 | fi |
| 7144 | |
| 7145 | |
| 7146 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7147 | set dummy pwd; ac_word=$2 |
| 7148 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7150 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7152 | else |
| 7153 | case $BINPWD in |
| 7154 | [\\/]* | ?:[\\/]*) |
| 7155 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7156 | ;; |
| 7157 | *) |
| 7158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7159 | for as_dir in $PATH |
| 7160 | do |
| 7161 | IFS=$as_save_IFS |
| 7162 | test -z "$as_dir" && as_dir=. |
| 7163 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7164 | 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] | 7165 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7166 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7167 | break 2 |
| 7168 | fi |
| 7169 | done |
| 7170 | done |
| 7171 | IFS=$as_save_IFS |
| 7172 | |
| 7173 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7174 | ;; |
| 7175 | esac |
| 7176 | fi |
| 7177 | BINPWD=$ac_cv_path_BINPWD |
| 7178 | if test -n "$BINPWD"; then |
| 7179 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7180 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7181 | else |
| 7182 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7183 | echo "${ECHO_T}no" >&6; } |
| 7184 | fi |
| 7185 | |
| 7186 | |
| 7187 | |
| 7188 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7189 | set dummy Graphviz; ac_word=$2 |
| 7190 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7192 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7194 | else |
| 7195 | case $GRAPHVIZ in |
| 7196 | [\\/]* | ?:[\\/]*) |
| 7197 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7198 | ;; |
| 7199 | *) |
| 7200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7201 | for as_dir in $PATH |
| 7202 | do |
| 7203 | IFS=$as_save_IFS |
| 7204 | test -z "$as_dir" && as_dir=. |
| 7205 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7206 | 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] | 7207 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7209 | break 2 |
| 7210 | fi |
| 7211 | done |
| 7212 | done |
| 7213 | IFS=$as_save_IFS |
| 7214 | |
| 7215 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7216 | ;; |
| 7217 | esac |
| 7218 | fi |
| 7219 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7220 | if test -n "$GRAPHVIZ"; then |
| 7221 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7222 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7223 | else |
| 7224 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7225 | echo "${ECHO_T}no" >&6; } |
| 7226 | fi |
| 7227 | |
| 7228 | |
| 7229 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7230 | |
| 7231 | cat >>confdefs.h <<\_ACEOF |
| 7232 | #define HAVE_GRAPHVIZ 1 |
| 7233 | _ACEOF |
| 7234 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7235 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7236 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7237 | fi |
| 7238 | |
| 7239 | cat >>confdefs.h <<_ACEOF |
| 7240 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7241 | _ACEOF |
| 7242 | |
| 7243 | fi |
| 7244 | # Extract the first word of "dot", so it can be a program name with args. |
| 7245 | set dummy dot; ac_word=$2 |
| 7246 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7248 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7250 | else |
| 7251 | case $DOT in |
| 7252 | [\\/]* | ?:[\\/]*) |
| 7253 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7254 | ;; |
| 7255 | *) |
| 7256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7257 | for as_dir in $PATH |
| 7258 | do |
| 7259 | IFS=$as_save_IFS |
| 7260 | test -z "$as_dir" && as_dir=. |
| 7261 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7262 | 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] | 7263 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7265 | break 2 |
| 7266 | fi |
| 7267 | done |
| 7268 | done |
| 7269 | IFS=$as_save_IFS |
| 7270 | |
| 7271 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7272 | ;; |
| 7273 | esac |
| 7274 | fi |
| 7275 | DOT=$ac_cv_path_DOT |
| 7276 | if test -n "$DOT"; then |
| 7277 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7278 | echo "${ECHO_T}$DOT" >&6; } |
| 7279 | else |
| 7280 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7281 | echo "${ECHO_T}no" >&6; } |
| 7282 | fi |
| 7283 | |
| 7284 | |
| 7285 | if test "$DOT" != "echo dot" ; then |
| 7286 | |
| 7287 | cat >>confdefs.h <<\_ACEOF |
| 7288 | #define HAVE_DOT 1 |
| 7289 | _ACEOF |
| 7290 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7291 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7292 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7293 | fi |
| 7294 | |
| 7295 | cat >>confdefs.h <<_ACEOF |
| 7296 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7297 | _ACEOF |
| 7298 | |
| 7299 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7300 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7301 | set dummy fdp; ac_word=$2 |
| 7302 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7304 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7306 | else |
| 7307 | case $FDP in |
| 7308 | [\\/]* | ?:[\\/]*) |
| 7309 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7310 | ;; |
| 7311 | *) |
| 7312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7313 | for as_dir in $PATH |
| 7314 | do |
| 7315 | IFS=$as_save_IFS |
| 7316 | test -z "$as_dir" && as_dir=. |
| 7317 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7319 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
| 7320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7321 | break 2 |
| 7322 | fi |
| 7323 | done |
| 7324 | done |
| 7325 | IFS=$as_save_IFS |
| 7326 | |
| 7327 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7328 | ;; |
| 7329 | esac |
| 7330 | fi |
| 7331 | FDP=$ac_cv_path_FDP |
| 7332 | if test -n "$FDP"; then |
| 7333 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7334 | echo "${ECHO_T}$FDP" >&6; } |
| 7335 | else |
| 7336 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7337 | echo "${ECHO_T}no" >&6; } |
| 7338 | fi |
| 7339 | |
| 7340 | |
| 7341 | if test "$FDP" != "echo fdp" ; then |
| 7342 | |
| 7343 | cat >>confdefs.h <<\_ACEOF |
| 7344 | #define HAVE_FDP 1 |
| 7345 | _ACEOF |
| 7346 | |
| 7347 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7348 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7349 | fi |
| 7350 | |
| 7351 | cat >>confdefs.h <<_ACEOF |
| 7352 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7353 | _ACEOF |
| 7354 | |
| 7355 | fi |
| 7356 | # Extract the first word of "neato", so it can be a program name with args. |
| 7357 | set dummy neato; ac_word=$2 |
| 7358 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7360 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7362 | else |
| 7363 | case $NEATO in |
| 7364 | [\\/]* | ?:[\\/]*) |
| 7365 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7366 | ;; |
| 7367 | *) |
| 7368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7369 | for as_dir in $PATH |
| 7370 | do |
| 7371 | IFS=$as_save_IFS |
| 7372 | test -z "$as_dir" && as_dir=. |
| 7373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7375 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
| 7376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7377 | break 2 |
| 7378 | fi |
| 7379 | done |
| 7380 | done |
| 7381 | IFS=$as_save_IFS |
| 7382 | |
| 7383 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7384 | ;; |
| 7385 | esac |
| 7386 | fi |
| 7387 | NEATO=$ac_cv_path_NEATO |
| 7388 | if test -n "$NEATO"; then |
| 7389 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7390 | echo "${ECHO_T}$NEATO" >&6; } |
| 7391 | else |
| 7392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7393 | echo "${ECHO_T}no" >&6; } |
| 7394 | fi |
| 7395 | |
| 7396 | |
| 7397 | if test "$NEATO" != "echo neato" ; then |
| 7398 | |
| 7399 | cat >>confdefs.h <<\_ACEOF |
| 7400 | #define HAVE_NEATO 1 |
| 7401 | _ACEOF |
| 7402 | |
| 7403 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7404 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7405 | fi |
| 7406 | |
| 7407 | cat >>confdefs.h <<_ACEOF |
| 7408 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7409 | _ACEOF |
| 7410 | |
| 7411 | fi |
| 7412 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7413 | set dummy twopi; ac_word=$2 |
| 7414 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7416 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7418 | else |
| 7419 | case $TWOPI in |
| 7420 | [\\/]* | ?:[\\/]*) |
| 7421 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7422 | ;; |
| 7423 | *) |
| 7424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7425 | for as_dir in $PATH |
| 7426 | do |
| 7427 | IFS=$as_save_IFS |
| 7428 | test -z "$as_dir" && as_dir=. |
| 7429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7431 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
| 7432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7433 | break 2 |
| 7434 | fi |
| 7435 | done |
| 7436 | done |
| 7437 | IFS=$as_save_IFS |
| 7438 | |
| 7439 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7440 | ;; |
| 7441 | esac |
| 7442 | fi |
| 7443 | TWOPI=$ac_cv_path_TWOPI |
| 7444 | if test -n "$TWOPI"; then |
| 7445 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7446 | echo "${ECHO_T}$TWOPI" >&6; } |
| 7447 | else |
| 7448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7449 | echo "${ECHO_T}no" >&6; } |
| 7450 | fi |
| 7451 | |
| 7452 | |
| 7453 | if test "$TWOPI" != "echo twopi" ; then |
| 7454 | |
| 7455 | cat >>confdefs.h <<\_ACEOF |
| 7456 | #define HAVE_TWOPI 1 |
| 7457 | _ACEOF |
| 7458 | |
| 7459 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7460 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7461 | fi |
| 7462 | |
| 7463 | cat >>confdefs.h <<_ACEOF |
| 7464 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7465 | _ACEOF |
| 7466 | |
| 7467 | fi |
| 7468 | # Extract the first word of "circo", so it can be a program name with args. |
| 7469 | set dummy circo; ac_word=$2 |
| 7470 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7472 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7474 | else |
| 7475 | case $CIRCO in |
| 7476 | [\\/]* | ?:[\\/]*) |
| 7477 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7478 | ;; |
| 7479 | *) |
| 7480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7481 | for as_dir in $PATH |
| 7482 | do |
| 7483 | IFS=$as_save_IFS |
| 7484 | test -z "$as_dir" && as_dir=. |
| 7485 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7487 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
| 7488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7489 | break 2 |
| 7490 | fi |
| 7491 | done |
| 7492 | done |
| 7493 | IFS=$as_save_IFS |
| 7494 | |
| 7495 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7496 | ;; |
| 7497 | esac |
| 7498 | fi |
| 7499 | CIRCO=$ac_cv_path_CIRCO |
| 7500 | if test -n "$CIRCO"; then |
| 7501 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7502 | echo "${ECHO_T}$CIRCO" >&6; } |
| 7503 | else |
| 7504 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7505 | echo "${ECHO_T}no" >&6; } |
| 7506 | fi |
| 7507 | |
| 7508 | |
| 7509 | if test "$CIRCO" != "echo circo" ; then |
| 7510 | |
| 7511 | cat >>confdefs.h <<\_ACEOF |
| 7512 | #define HAVE_CIRCO 1 |
| 7513 | _ACEOF |
| 7514 | |
| 7515 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7516 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7517 | fi |
| 7518 | |
| 7519 | cat >>confdefs.h <<_ACEOF |
| 7520 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7521 | _ACEOF |
| 7522 | |
| 7523 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7524 | for ac_prog in gv gsview32 |
| 7525 | do |
| 7526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7527 | set dummy $ac_prog; ac_word=$2 |
| 7528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7530 | if test "${ac_cv_path_GV+set}" = set; then |
| 7531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7532 | else |
| 7533 | case $GV in |
| 7534 | [\\/]* | ?:[\\/]*) |
| 7535 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7536 | ;; |
| 7537 | *) |
| 7538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7539 | for as_dir in $PATH |
| 7540 | do |
| 7541 | IFS=$as_save_IFS |
| 7542 | test -z "$as_dir" && as_dir=. |
| 7543 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7544 | 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] | 7545 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7547 | break 2 |
| 7548 | fi |
| 7549 | done |
| 7550 | done |
| 7551 | IFS=$as_save_IFS |
| 7552 | |
| 7553 | ;; |
| 7554 | esac |
| 7555 | fi |
| 7556 | GV=$ac_cv_path_GV |
| 7557 | if test -n "$GV"; then |
| 7558 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7559 | echo "${ECHO_T}$GV" >&6; } |
| 7560 | else |
| 7561 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7562 | echo "${ECHO_T}no" >&6; } |
| 7563 | fi |
| 7564 | |
| 7565 | |
| 7566 | test -n "$GV" && break |
| 7567 | done |
| 7568 | test -n "$GV" || GV="echo gv" |
| 7569 | |
| 7570 | if test "$GV" != "echo gv" ; then |
| 7571 | |
| 7572 | cat >>confdefs.h <<\_ACEOF |
| 7573 | #define HAVE_GV 1 |
| 7574 | _ACEOF |
| 7575 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7576 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7577 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7578 | fi |
| 7579 | |
| 7580 | cat >>confdefs.h <<_ACEOF |
| 7581 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7582 | _ACEOF |
| 7583 | |
| 7584 | fi |
| 7585 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7586 | set dummy dotty; ac_word=$2 |
| 7587 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7589 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7591 | else |
| 7592 | case $DOTTY in |
| 7593 | [\\/]* | ?:[\\/]*) |
| 7594 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7595 | ;; |
| 7596 | *) |
| 7597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7598 | for as_dir in $PATH |
| 7599 | do |
| 7600 | IFS=$as_save_IFS |
| 7601 | test -z "$as_dir" && as_dir=. |
| 7602 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7603 | 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] | 7604 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7606 | break 2 |
| 7607 | fi |
| 7608 | done |
| 7609 | done |
| 7610 | IFS=$as_save_IFS |
| 7611 | |
| 7612 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7613 | ;; |
| 7614 | esac |
| 7615 | fi |
| 7616 | DOTTY=$ac_cv_path_DOTTY |
| 7617 | if test -n "$DOTTY"; then |
| 7618 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7619 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7620 | else |
| 7621 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7622 | echo "${ECHO_T}no" >&6; } |
| 7623 | fi |
| 7624 | |
| 7625 | |
| 7626 | if test "$DOTTY" != "echo dotty" ; then |
| 7627 | |
| 7628 | cat >>confdefs.h <<\_ACEOF |
| 7629 | #define HAVE_DOTTY 1 |
| 7630 | _ACEOF |
| 7631 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7632 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7633 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7634 | fi |
| 7635 | |
| 7636 | cat >>confdefs.h <<_ACEOF |
| 7637 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7638 | _ACEOF |
| 7639 | |
| 7640 | fi |
| 7641 | |
| 7642 | |
| 7643 | # Extract the first word of "perl", so it can be a program name with args. |
| 7644 | set dummy perl; ac_word=$2 |
| 7645 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7647 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7649 | else |
| 7650 | case $PERL in |
| 7651 | [\\/]* | ?:[\\/]*) |
| 7652 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7653 | ;; |
| 7654 | *) |
| 7655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7656 | for as_dir in $PATH |
| 7657 | do |
| 7658 | IFS=$as_save_IFS |
| 7659 | test -z "$as_dir" && as_dir=. |
| 7660 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7661 | 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] | 7662 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7664 | break 2 |
| 7665 | fi |
| 7666 | done |
| 7667 | done |
| 7668 | IFS=$as_save_IFS |
| 7669 | |
| 7670 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7671 | ;; |
| 7672 | esac |
| 7673 | fi |
| 7674 | PERL=$ac_cv_path_PERL |
| 7675 | if test -n "$PERL"; then |
| 7676 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7677 | echo "${ECHO_T}$PERL" >&6; } |
| 7678 | else |
| 7679 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7680 | echo "${ECHO_T}no" >&6; } |
| 7681 | fi |
| 7682 | |
| 7683 | |
| 7684 | if test "$PERL" != "none"; then |
| 7685 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7686 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7687 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7688 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7689 | echo "${ECHO_T}yes" >&6; } |
| 7690 | else |
| 7691 | PERL=none |
| 7692 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7693 | echo "${ECHO_T}not found" >&6; } |
| 7694 | fi |
| 7695 | fi |
| 7696 | |
| 7697 | |
| 7698 | if test x"$PERL" = xnone; then |
| 7699 | HAVE_PERL=0 |
| 7700 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7701 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7702 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7703 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7704 | else |
| 7705 | HAVE_PERL=1 |
| 7706 | |
| 7707 | fi |
| 7708 | |
| 7709 | # Find a good install program. We prefer a C program (faster), |
| 7710 | # so one script is as good as another. But avoid the broken or |
| 7711 | # incompatible versions: |
| 7712 | # SysV /etc/install, /usr/sbin/install |
| 7713 | # SunOS /usr/etc/install |
| 7714 | # IRIX /sbin/install |
| 7715 | # AIX /bin/install |
| 7716 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7717 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7718 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7719 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7720 | # OS/2's system install, which has a completely different semantic |
| 7721 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7722 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7723 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7724 | if test -z "$INSTALL"; then |
| 7725 | if test "${ac_cv_path_install+set}" = set; then |
| 7726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7727 | else |
| 7728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7729 | for as_dir in $PATH |
| 7730 | do |
| 7731 | IFS=$as_save_IFS |
| 7732 | test -z "$as_dir" && as_dir=. |
| 7733 | # Account for people who put trailing slashes in PATH elements. |
| 7734 | case $as_dir/ in |
| 7735 | ./ | .// | /cC/* | \ |
| 7736 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7737 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7738 | /usr/ucb/* ) ;; |
| 7739 | *) |
| 7740 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7741 | # Don't use installbsd from OSF since it installs stuff as root |
| 7742 | # by default. |
| 7743 | for ac_prog in ginstall scoinst install; do |
| 7744 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7745 | 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] | 7746 | if test $ac_prog = install && |
| 7747 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7748 | # AIX install. It has an incompatible calling convention. |
| 7749 | : |
| 7750 | elif test $ac_prog = install && |
| 7751 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7752 | # program-specific install script used by HP pwplus--don't use. |
| 7753 | : |
| 7754 | else |
| 7755 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7756 | break 3 |
| 7757 | fi |
| 7758 | fi |
| 7759 | done |
| 7760 | done |
| 7761 | ;; |
| 7762 | esac |
| 7763 | done |
| 7764 | IFS=$as_save_IFS |
| 7765 | |
| 7766 | |
| 7767 | fi |
| 7768 | if test "${ac_cv_path_install+set}" = set; then |
| 7769 | INSTALL=$ac_cv_path_install |
| 7770 | else |
| 7771 | # As a last resort, use the slow shell script. Don't cache a |
| 7772 | # value for INSTALL within a source directory, because that will |
| 7773 | # break other packages using the cache if that directory is |
| 7774 | # removed, or if the value is a relative name. |
| 7775 | INSTALL=$ac_install_sh |
| 7776 | fi |
| 7777 | fi |
| 7778 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7779 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7780 | |
| 7781 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7782 | # It thinks the first close brace ends the variable substitution. |
| 7783 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7784 | |
| 7785 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7786 | |
| 7787 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7788 | |
| 7789 | |
| 7790 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7791 | set dummy bzip2; ac_word=$2 |
| 7792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7794 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7796 | else |
| 7797 | case $BZIP2 in |
| 7798 | [\\/]* | ?:[\\/]*) |
| 7799 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7800 | ;; |
| 7801 | *) |
| 7802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7803 | for as_dir in $PATH |
| 7804 | do |
| 7805 | IFS=$as_save_IFS |
| 7806 | test -z "$as_dir" && as_dir=. |
| 7807 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7808 | 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] | 7809 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7811 | break 2 |
| 7812 | fi |
| 7813 | done |
| 7814 | done |
| 7815 | IFS=$as_save_IFS |
| 7816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7817 | ;; |
| 7818 | esac |
| 7819 | fi |
| 7820 | BZIP2=$ac_cv_path_BZIP2 |
| 7821 | if test -n "$BZIP2"; then |
| 7822 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7823 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7824 | else |
| 7825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7826 | echo "${ECHO_T}no" >&6; } |
| 7827 | fi |
| 7828 | |
| 7829 | |
| 7830 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7831 | set dummy doxygen; ac_word=$2 |
| 7832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7834 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7836 | else |
| 7837 | case $DOXYGEN in |
| 7838 | [\\/]* | ?:[\\/]*) |
| 7839 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7840 | ;; |
| 7841 | *) |
| 7842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7843 | for as_dir in $PATH |
| 7844 | do |
| 7845 | IFS=$as_save_IFS |
| 7846 | test -z "$as_dir" && as_dir=. |
| 7847 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7848 | 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] | 7849 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7851 | break 2 |
| 7852 | fi |
| 7853 | done |
| 7854 | done |
| 7855 | IFS=$as_save_IFS |
| 7856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7857 | ;; |
| 7858 | esac |
| 7859 | fi |
| 7860 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7861 | if test -n "$DOXYGEN"; then |
| 7862 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7863 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7864 | else |
| 7865 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7866 | echo "${ECHO_T}no" >&6; } |
| 7867 | fi |
| 7868 | |
| 7869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7870 | # Extract the first word of "groff", so it can be a program name with args. |
| 7871 | set dummy groff; ac_word=$2 |
| 7872 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7874 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7876 | else |
| 7877 | case $GROFF in |
| 7878 | [\\/]* | ?:[\\/]*) |
| 7879 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7880 | ;; |
| 7881 | *) |
| 7882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7883 | for as_dir in $PATH |
| 7884 | do |
| 7885 | IFS=$as_save_IFS |
| 7886 | test -z "$as_dir" && as_dir=. |
| 7887 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7888 | 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] | 7889 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7891 | break 2 |
| 7892 | fi |
| 7893 | done |
| 7894 | done |
| 7895 | IFS=$as_save_IFS |
| 7896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7897 | ;; |
| 7898 | esac |
| 7899 | fi |
| 7900 | GROFF=$ac_cv_path_GROFF |
| 7901 | if test -n "$GROFF"; then |
| 7902 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7903 | echo "${ECHO_T}$GROFF" >&6; } |
| 7904 | else |
| 7905 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7906 | echo "${ECHO_T}no" >&6; } |
| 7907 | fi |
| 7908 | |
| 7909 | |
| 7910 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7911 | set dummy gzip; ac_word=$2 |
| 7912 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7914 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7916 | else |
| 7917 | case $GZIP in |
| 7918 | [\\/]* | ?:[\\/]*) |
| 7919 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7920 | ;; |
| 7921 | *) |
| 7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7923 | for as_dir in $PATH |
| 7924 | do |
| 7925 | IFS=$as_save_IFS |
| 7926 | test -z "$as_dir" && as_dir=. |
| 7927 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7928 | 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] | 7929 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7931 | break 2 |
| 7932 | fi |
| 7933 | done |
| 7934 | done |
| 7935 | IFS=$as_save_IFS |
| 7936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7937 | ;; |
| 7938 | esac |
| 7939 | fi |
| 7940 | GZIP=$ac_cv_path_GZIP |
| 7941 | if test -n "$GZIP"; then |
| 7942 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7943 | echo "${ECHO_T}$GZIP" >&6; } |
| 7944 | else |
| 7945 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7946 | echo "${ECHO_T}no" >&6; } |
| 7947 | fi |
| 7948 | |
| 7949 | |
| 7950 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7951 | set dummy pod2html; ac_word=$2 |
| 7952 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7954 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7956 | else |
| 7957 | case $POD2HTML in |
| 7958 | [\\/]* | ?:[\\/]*) |
| 7959 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7960 | ;; |
| 7961 | *) |
| 7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7963 | for as_dir in $PATH |
| 7964 | do |
| 7965 | IFS=$as_save_IFS |
| 7966 | test -z "$as_dir" && as_dir=. |
| 7967 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7968 | 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] | 7969 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7971 | break 2 |
| 7972 | fi |
| 7973 | done |
| 7974 | done |
| 7975 | IFS=$as_save_IFS |
| 7976 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7977 | ;; |
| 7978 | esac |
| 7979 | fi |
| 7980 | POD2HTML=$ac_cv_path_POD2HTML |
| 7981 | if test -n "$POD2HTML"; then |
| 7982 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7983 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7984 | else |
| 7985 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7986 | echo "${ECHO_T}no" >&6; } |
| 7987 | fi |
| 7988 | |
| 7989 | |
| 7990 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7991 | set dummy pod2man; ac_word=$2 |
| 7992 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7994 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7996 | else |
| 7997 | case $POD2MAN in |
| 7998 | [\\/]* | ?:[\\/]*) |
| 7999 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8000 | ;; |
| 8001 | *) |
| 8002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8003 | for as_dir in $PATH |
| 8004 | do |
| 8005 | IFS=$as_save_IFS |
| 8006 | test -z "$as_dir" && as_dir=. |
| 8007 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8008 | 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] | 8009 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 8010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8011 | break 2 |
| 8012 | fi |
| 8013 | done |
| 8014 | done |
| 8015 | IFS=$as_save_IFS |
| 8016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8017 | ;; |
| 8018 | esac |
| 8019 | fi |
| 8020 | POD2MAN=$ac_cv_path_POD2MAN |
| 8021 | if test -n "$POD2MAN"; then |
| 8022 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8023 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 8024 | else |
| 8025 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8026 | echo "${ECHO_T}no" >&6; } |
| 8027 | fi |
| 8028 | |
| 8029 | |
| 8030 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8031 | set dummy runtest; ac_word=$2 |
| 8032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8034 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8036 | else |
| 8037 | case $RUNTEST in |
| 8038 | [\\/]* | ?:[\\/]*) |
| 8039 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8040 | ;; |
| 8041 | *) |
| 8042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8043 | for as_dir in $PATH |
| 8044 | do |
| 8045 | IFS=$as_save_IFS |
| 8046 | test -z "$as_dir" && as_dir=. |
| 8047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8048 | 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] | 8049 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 8050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8051 | break 2 |
| 8052 | fi |
| 8053 | done |
| 8054 | done |
| 8055 | IFS=$as_save_IFS |
| 8056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8057 | ;; |
| 8058 | esac |
| 8059 | fi |
| 8060 | RUNTEST=$ac_cv_path_RUNTEST |
| 8061 | if test -n "$RUNTEST"; then |
| 8062 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8063 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 8064 | else |
| 8065 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8066 | echo "${ECHO_T}no" >&6; } |
| 8067 | fi |
| 8068 | |
| 8069 | |
| 8070 | |
| 8071 | no_itcl=true |
| 8072 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8073 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 8074 | |
| 8075 | # Check whether --with-tclinclude was given. |
| 8076 | if test "${with_tclinclude+set}" = set; then |
| 8077 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8078 | else |
| 8079 | with_tclinclude='' |
| 8080 | fi |
| 8081 | |
| 8082 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8084 | else |
| 8085 | |
| 8086 | if test x"${with_tclinclude}" != x ; then |
| 8087 | if test -f ${with_tclinclude}/tclsh ; then |
| 8088 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8089 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8090 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8091 | else |
| 8092 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8093 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8094 | { (exit 1); exit 1; }; } |
| 8095 | fi |
| 8096 | fi |
| 8097 | |
| 8098 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 8099 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8100 | echo "${ECHO_T}none" >&6; } |
| 8101 | 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 |
| 8102 | do |
| 8103 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8104 | set dummy $ac_prog; ac_word=$2 |
| 8105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8107 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8109 | else |
| 8110 | case $TCLSH in |
| 8111 | [\\/]* | ?:[\\/]*) |
| 8112 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8113 | ;; |
| 8114 | *) |
| 8115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8116 | for as_dir in $PATH |
| 8117 | do |
| 8118 | IFS=$as_save_IFS |
| 8119 | test -z "$as_dir" && as_dir=. |
| 8120 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8121 | 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] | 8122 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 8123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8124 | break 2 |
| 8125 | fi |
| 8126 | done |
| 8127 | done |
| 8128 | IFS=$as_save_IFS |
| 8129 | |
| 8130 | ;; |
| 8131 | esac |
| 8132 | fi |
| 8133 | TCLSH=$ac_cv_path_TCLSH |
| 8134 | if test -n "$TCLSH"; then |
| 8135 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8136 | echo "${ECHO_T}$TCLSH" >&6; } |
| 8137 | else |
| 8138 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8139 | echo "${ECHO_T}no" >&6; } |
| 8140 | fi |
| 8141 | |
| 8142 | |
| 8143 | test -n "$TCLSH" && break |
| 8144 | done |
| 8145 | |
| 8146 | if test x"${TCLSH}" = x ; then |
| 8147 | ac_cv_path_tclsh=''; |
| 8148 | else |
| 8149 | ac_cv_path_tclsh="${TCLSH}"; |
| 8150 | fi |
| 8151 | else |
| 8152 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8153 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 8154 | TCLSH="${ac_cv_path_tclsh}" |
| 8155 | |
| 8156 | fi |
| 8157 | |
| 8158 | fi |
| 8159 | |
| 8160 | # Extract the first word of "zip", so it can be a program name with args. |
| 8161 | set dummy zip; ac_word=$2 |
| 8162 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8164 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8166 | else |
| 8167 | case $ZIP in |
| 8168 | [\\/]* | ?:[\\/]*) |
| 8169 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8170 | ;; |
| 8171 | *) |
| 8172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8173 | for as_dir in $PATH |
| 8174 | do |
| 8175 | IFS=$as_save_IFS |
| 8176 | test -z "$as_dir" && as_dir=. |
| 8177 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8178 | 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] | 8179 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8181 | break 2 |
| 8182 | fi |
| 8183 | done |
| 8184 | done |
| 8185 | IFS=$as_save_IFS |
| 8186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8187 | ;; |
| 8188 | esac |
| 8189 | fi |
| 8190 | ZIP=$ac_cv_path_ZIP |
| 8191 | if test -n "$ZIP"; then |
| 8192 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8193 | echo "${ECHO_T}$ZIP" >&6; } |
| 8194 | else |
| 8195 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8196 | echo "${ECHO_T}no" >&6; } |
| 8197 | fi |
| 8198 | |
| 8199 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8200 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8201 | do |
| 8202 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8203 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8206 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8208 | else |
| 8209 | case $OCAMLC in |
| 8210 | [\\/]* | ?:[\\/]*) |
| 8211 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8212 | ;; |
| 8213 | *) |
| 8214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8215 | for as_dir in $PATH |
| 8216 | do |
| 8217 | IFS=$as_save_IFS |
| 8218 | test -z "$as_dir" && as_dir=. |
| 8219 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8220 | 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] | 8221 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8223 | break 2 |
| 8224 | fi |
| 8225 | done |
| 8226 | done |
| 8227 | IFS=$as_save_IFS |
| 8228 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8229 | ;; |
| 8230 | esac |
| 8231 | fi |
| 8232 | OCAMLC=$ac_cv_path_OCAMLC |
| 8233 | if test -n "$OCAMLC"; then |
| 8234 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8235 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8236 | else |
| 8237 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8238 | echo "${ECHO_T}no" >&6; } |
| 8239 | fi |
| 8240 | |
| 8241 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8242 | test -n "$OCAMLC" && break |
| 8243 | done |
| 8244 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8245 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8246 | do |
| 8247 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8248 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8249 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8251 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8253 | else |
| 8254 | case $OCAMLOPT in |
| 8255 | [\\/]* | ?:[\\/]*) |
| 8256 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8257 | ;; |
| 8258 | *) |
| 8259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8260 | for as_dir in $PATH |
| 8261 | do |
| 8262 | IFS=$as_save_IFS |
| 8263 | test -z "$as_dir" && as_dir=. |
| 8264 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8265 | 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] | 8266 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8268 | break 2 |
| 8269 | fi |
| 8270 | done |
| 8271 | done |
| 8272 | IFS=$as_save_IFS |
| 8273 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8274 | ;; |
| 8275 | esac |
| 8276 | fi |
| 8277 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8278 | if test -n "$OCAMLOPT"; then |
| 8279 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8280 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8281 | else |
| 8282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8283 | echo "${ECHO_T}no" >&6; } |
| 8284 | fi |
| 8285 | |
| 8286 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8287 | test -n "$OCAMLOPT" && break |
| 8288 | done |
| 8289 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8290 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8291 | do |
| 8292 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8293 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8296 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8298 | else |
| 8299 | case $OCAMLDEP in |
| 8300 | [\\/]* | ?:[\\/]*) |
| 8301 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8302 | ;; |
| 8303 | *) |
| 8304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8305 | for as_dir in $PATH |
| 8306 | do |
| 8307 | IFS=$as_save_IFS |
| 8308 | test -z "$as_dir" && as_dir=. |
| 8309 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8310 | 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] | 8311 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8313 | break 2 |
| 8314 | fi |
| 8315 | done |
| 8316 | done |
| 8317 | IFS=$as_save_IFS |
| 8318 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8319 | ;; |
| 8320 | esac |
| 8321 | fi |
| 8322 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8323 | if test -n "$OCAMLDEP"; then |
| 8324 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8325 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8326 | else |
| 8327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8328 | echo "${ECHO_T}no" >&6; } |
| 8329 | fi |
| 8330 | |
| 8331 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8332 | test -n "$OCAMLDEP" && break |
| 8333 | done |
| 8334 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8335 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8336 | do |
| 8337 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8338 | set dummy $ac_prog; ac_word=$2 |
| 8339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8341 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8343 | else |
| 8344 | case $OCAMLDOC in |
| 8345 | [\\/]* | ?:[\\/]*) |
| 8346 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8347 | ;; |
| 8348 | *) |
| 8349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8350 | for as_dir in $PATH |
| 8351 | do |
| 8352 | IFS=$as_save_IFS |
| 8353 | test -z "$as_dir" && as_dir=. |
| 8354 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8355 | 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] | 8356 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8358 | break 2 |
| 8359 | fi |
| 8360 | done |
| 8361 | done |
| 8362 | IFS=$as_save_IFS |
| 8363 | |
| 8364 | ;; |
| 8365 | esac |
| 8366 | fi |
| 8367 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8368 | if test -n "$OCAMLDOC"; then |
| 8369 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8370 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8371 | else |
| 8372 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8373 | echo "${ECHO_T}no" >&6; } |
| 8374 | fi |
| 8375 | |
| 8376 | |
| 8377 | test -n "$OCAMLDOC" && break |
| 8378 | done |
| 8379 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8380 | for ac_prog in gas as |
| 8381 | do |
| 8382 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8383 | set dummy $ac_prog; ac_word=$2 |
| 8384 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8386 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8388 | else |
| 8389 | case $GAS in |
| 8390 | [\\/]* | ?:[\\/]*) |
| 8391 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8392 | ;; |
| 8393 | *) |
| 8394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8395 | for as_dir in $PATH |
| 8396 | do |
| 8397 | IFS=$as_save_IFS |
| 8398 | test -z "$as_dir" && as_dir=. |
| 8399 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8400 | 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] | 8401 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 8402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8403 | break 2 |
| 8404 | fi |
| 8405 | done |
| 8406 | done |
| 8407 | IFS=$as_save_IFS |
| 8408 | |
| 8409 | ;; |
| 8410 | esac |
| 8411 | fi |
| 8412 | GAS=$ac_cv_path_GAS |
| 8413 | if test -n "$GAS"; then |
| 8414 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8415 | echo "${ECHO_T}$GAS" >&6; } |
| 8416 | else |
| 8417 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8418 | echo "${ECHO_T}no" >&6; } |
| 8419 | fi |
| 8420 | |
| 8421 | |
| 8422 | test -n "$GAS" && break |
| 8423 | done |
| 8424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8425 | |
| 8426 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8427 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8428 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8430 | else |
| 8431 | ac_ext=c |
| 8432 | ac_cpp='$CPP $CPPFLAGS' |
| 8433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8436 | |
| 8437 | oldcflags="$CFLAGS" |
| 8438 | CFLAGS="$CFLAGS -Wl,-R." |
| 8439 | cat >conftest.$ac_ext <<_ACEOF |
| 8440 | /* confdefs.h. */ |
| 8441 | _ACEOF |
| 8442 | cat confdefs.h >>conftest.$ac_ext |
| 8443 | cat >>conftest.$ac_ext <<_ACEOF |
| 8444 | /* end confdefs.h. */ |
| 8445 | |
| 8446 | int |
| 8447 | main () |
| 8448 | { |
| 8449 | int main() { return 0; } |
| 8450 | ; |
| 8451 | return 0; |
| 8452 | } |
| 8453 | _ACEOF |
| 8454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8455 | if { (ac_try="$ac_link" |
| 8456 | case "(($ac_try" in |
| 8457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8458 | *) ac_try_echo=$ac_try;; |
| 8459 | esac |
| 8460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8461 | (eval "$ac_link") 2>conftest.er1 |
| 8462 | ac_status=$? |
| 8463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8464 | rm -f conftest.er1 |
| 8465 | cat conftest.err >&5 |
| 8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8467 | (exit $ac_status); } && |
| 8468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8469 | { (case "(($ac_try" in |
| 8470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8471 | *) ac_try_echo=$ac_try;; |
| 8472 | esac |
| 8473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8474 | (eval "$ac_try") 2>&5 |
| 8475 | ac_status=$? |
| 8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8477 | (exit $ac_status); }; } && |
| 8478 | { ac_try='test -s conftest$ac_exeext' |
| 8479 | { (case "(($ac_try" in |
| 8480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8481 | *) ac_try_echo=$ac_try;; |
| 8482 | esac |
| 8483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8484 | (eval "$ac_try") 2>&5 |
| 8485 | ac_status=$? |
| 8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8487 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8488 | llvm_cv_link_use_r=yes |
| 8489 | else |
| 8490 | echo "$as_me: failed program was:" >&5 |
| 8491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8492 | |
| 8493 | llvm_cv_link_use_r=no |
| 8494 | fi |
| 8495 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8496 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8497 | conftest$ac_exeext conftest.$ac_ext |
| 8498 | CFLAGS="$oldcflags" |
| 8499 | ac_ext=c |
| 8500 | ac_cpp='$CPP $CPPFLAGS' |
| 8501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8504 | |
| 8505 | |
| 8506 | fi |
| 8507 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8508 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8509 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8510 | |
| 8511 | cat >>confdefs.h <<\_ACEOF |
| 8512 | #define HAVE_LINK_R 1 |
| 8513 | _ACEOF |
| 8514 | |
| 8515 | fi |
| 8516 | |
| 8517 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8518 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8519 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8520 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8522 | else |
| 8523 | ac_ext=c |
| 8524 | ac_cpp='$CPP $CPPFLAGS' |
| 8525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8528 | |
| 8529 | oldcflags="$CFLAGS" |
| 8530 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 8531 | cat >conftest.$ac_ext <<_ACEOF |
| 8532 | /* confdefs.h. */ |
| 8533 | _ACEOF |
| 8534 | cat confdefs.h >>conftest.$ac_ext |
| 8535 | cat >>conftest.$ac_ext <<_ACEOF |
| 8536 | /* end confdefs.h. */ |
| 8537 | |
| 8538 | int |
| 8539 | main () |
| 8540 | { |
| 8541 | int main() { return 0; } |
| 8542 | ; |
| 8543 | return 0; |
| 8544 | } |
| 8545 | _ACEOF |
| 8546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8547 | if { (ac_try="$ac_link" |
| 8548 | case "(($ac_try" in |
| 8549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8550 | *) ac_try_echo=$ac_try;; |
| 8551 | esac |
| 8552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8553 | (eval "$ac_link") 2>conftest.er1 |
| 8554 | ac_status=$? |
| 8555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8556 | rm -f conftest.er1 |
| 8557 | cat conftest.err >&5 |
| 8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8559 | (exit $ac_status); } && |
| 8560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8561 | { (case "(($ac_try" in |
| 8562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8563 | *) ac_try_echo=$ac_try;; |
| 8564 | esac |
| 8565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8566 | (eval "$ac_try") 2>&5 |
| 8567 | ac_status=$? |
| 8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8569 | (exit $ac_status); }; } && |
| 8570 | { ac_try='test -s conftest$ac_exeext' |
| 8571 | { (case "(($ac_try" in |
| 8572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8573 | *) ac_try_echo=$ac_try;; |
| 8574 | esac |
| 8575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8576 | (eval "$ac_try") 2>&5 |
| 8577 | ac_status=$? |
| 8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8579 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8580 | llvm_cv_link_use_export_dynamic=yes |
| 8581 | else |
| 8582 | echo "$as_me: failed program was:" >&5 |
| 8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8584 | |
| 8585 | llvm_cv_link_use_export_dynamic=no |
| 8586 | fi |
| 8587 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8588 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8589 | conftest$ac_exeext conftest.$ac_ext |
| 8590 | CFLAGS="$oldcflags" |
| 8591 | ac_ext=c |
| 8592 | ac_cpp='$CPP $CPPFLAGS' |
| 8593 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8594 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8595 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8596 | |
| 8597 | |
| 8598 | fi |
| 8599 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8600 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 8601 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8602 | |
| 8603 | cat >>confdefs.h <<\_ACEOF |
| 8604 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8605 | _ACEOF |
| 8606 | |
| 8607 | fi |
| 8608 | |
| 8609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8610 | |
| 8611 | |
| 8612 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8613 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8614 | if test "${ac_cv_c_const+set}" = set; then |
| 8615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8616 | else |
| 8617 | cat >conftest.$ac_ext <<_ACEOF |
| 8618 | /* confdefs.h. */ |
| 8619 | _ACEOF |
| 8620 | cat confdefs.h >>conftest.$ac_ext |
| 8621 | cat >>conftest.$ac_ext <<_ACEOF |
| 8622 | /* end confdefs.h. */ |
| 8623 | |
| 8624 | int |
| 8625 | main () |
| 8626 | { |
| 8627 | /* FIXME: Include the comments suggested by Paul. */ |
| 8628 | #ifndef __cplusplus |
| 8629 | /* Ultrix mips cc rejects this. */ |
| 8630 | typedef int charset[2]; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8631 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8632 | /* SunOS 4.1.1 cc rejects this. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8633 | char const *const *ccp; |
| 8634 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8635 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8636 | struct point {int x, y;}; |
| 8637 | static struct point const zero = {0,0}; |
| 8638 | /* AIX XL C 1.02.0.0 rejects this. |
| 8639 | It does not let you subtract one const X* pointer from another in |
| 8640 | an arm of an if-expression whose if-part is not a constant |
| 8641 | expression */ |
| 8642 | const char *g = "string"; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8643 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8644 | /* HPUX 7.0 cc rejects these. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8645 | ++ccp; |
| 8646 | p = (char**) ccp; |
| 8647 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8648 | { /* SCO 3.2v4 cc rejects this. */ |
| 8649 | char *t; |
| 8650 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8651 | |
| 8652 | *t++ = 0; |
| 8653 | if (s) return 0; |
| 8654 | } |
| 8655 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8656 | int x[] = {25, 17}; |
| 8657 | const int *foo = &x[0]; |
| 8658 | ++foo; |
| 8659 | } |
| 8660 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8661 | typedef const int *iptr; |
| 8662 | iptr p = 0; |
| 8663 | ++p; |
| 8664 | } |
| 8665 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8666 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8667 | struct s { int j; const int *ap[3]; }; |
| 8668 | struct s *b; b->j = 5; |
| 8669 | } |
| 8670 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8671 | const int foo = 10; |
| 8672 | if (!foo) return 0; |
| 8673 | } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8674 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8675 | #endif |
| 8676 | |
| 8677 | ; |
| 8678 | return 0; |
| 8679 | } |
| 8680 | _ACEOF |
| 8681 | rm -f conftest.$ac_objext |
| 8682 | if { (ac_try="$ac_compile" |
| 8683 | case "(($ac_try" in |
| 8684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8685 | *) ac_try_echo=$ac_try;; |
| 8686 | esac |
| 8687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8688 | (eval "$ac_compile") 2>conftest.er1 |
| 8689 | ac_status=$? |
| 8690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8691 | rm -f conftest.er1 |
| 8692 | cat conftest.err >&5 |
| 8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8694 | (exit $ac_status); } && |
| 8695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8696 | { (case "(($ac_try" in |
| 8697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8698 | *) ac_try_echo=$ac_try;; |
| 8699 | esac |
| 8700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8701 | (eval "$ac_try") 2>&5 |
| 8702 | ac_status=$? |
| 8703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8704 | (exit $ac_status); }; } && |
| 8705 | { ac_try='test -s conftest.$ac_objext' |
| 8706 | { (case "(($ac_try" in |
| 8707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8708 | *) ac_try_echo=$ac_try;; |
| 8709 | esac |
| 8710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8711 | (eval "$ac_try") 2>&5 |
| 8712 | ac_status=$? |
| 8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8714 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8715 | ac_cv_c_const=yes |
| 8716 | else |
| 8717 | echo "$as_me: failed program was:" >&5 |
| 8718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8719 | |
| 8720 | ac_cv_c_const=no |
| 8721 | fi |
| 8722 | |
| 8723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8724 | fi |
| 8725 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8726 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8727 | if test $ac_cv_c_const = no; then |
| 8728 | |
| 8729 | cat >>confdefs.h <<\_ACEOF |
| 8730 | #define const |
| 8731 | _ACEOF |
| 8732 | |
| 8733 | fi |
| 8734 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8735 | |
| 8736 | |
| 8737 | |
| 8738 | |
| 8739 | |
| 8740 | ac_header_dirent=no |
| 8741 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8742 | 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] | 8743 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8744 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8745 | 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] | 8746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8747 | else |
| 8748 | cat >conftest.$ac_ext <<_ACEOF |
| 8749 | /* confdefs.h. */ |
| 8750 | _ACEOF |
| 8751 | cat confdefs.h >>conftest.$ac_ext |
| 8752 | cat >>conftest.$ac_ext <<_ACEOF |
| 8753 | /* end confdefs.h. */ |
| 8754 | #include <sys/types.h> |
| 8755 | #include <$ac_hdr> |
| 8756 | |
| 8757 | int |
| 8758 | main () |
| 8759 | { |
| 8760 | if ((DIR *) 0) |
| 8761 | return 0; |
| 8762 | ; |
| 8763 | return 0; |
| 8764 | } |
| 8765 | _ACEOF |
| 8766 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8767 | if { (ac_try="$ac_compile" |
| 8768 | case "(($ac_try" in |
| 8769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8770 | *) ac_try_echo=$ac_try;; |
| 8771 | esac |
| 8772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8773 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8774 | ac_status=$? |
| 8775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8776 | rm -f conftest.er1 |
| 8777 | cat conftest.err >&5 |
| 8778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8779 | (exit $ac_status); } && |
| 8780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8781 | { (case "(($ac_try" in |
| 8782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8783 | *) ac_try_echo=$ac_try;; |
| 8784 | esac |
| 8785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8786 | (eval "$ac_try") 2>&5 |
| 8787 | ac_status=$? |
| 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8789 | (exit $ac_status); }; } && |
| 8790 | { ac_try='test -s conftest.$ac_objext' |
| 8791 | { (case "(($ac_try" in |
| 8792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8793 | *) ac_try_echo=$ac_try;; |
| 8794 | esac |
| 8795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8796 | (eval "$ac_try") 2>&5 |
| 8797 | ac_status=$? |
| 8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8799 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8800 | eval "$as_ac_Header=yes" |
| 8801 | else |
| 8802 | echo "$as_me: failed program was:" >&5 |
| 8803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8805 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8806 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8807 | |
| 8808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8809 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8810 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8811 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8812 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8814 | cat >>confdefs.h <<_ACEOF |
| 8815 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8816 | _ACEOF |
| 8817 | |
| 8818 | ac_header_dirent=$ac_hdr; break |
| 8819 | fi |
| 8820 | |
| 8821 | done |
| 8822 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8823 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8824 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8825 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8826 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8828 | else |
| 8829 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8830 | cat >conftest.$ac_ext <<_ACEOF |
| 8831 | /* confdefs.h. */ |
| 8832 | _ACEOF |
| 8833 | cat confdefs.h >>conftest.$ac_ext |
| 8834 | cat >>conftest.$ac_ext <<_ACEOF |
| 8835 | /* end confdefs.h. */ |
| 8836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8837 | /* Override any GCC internal prototype to avoid an error. |
| 8838 | Use char because int might match the return type of a GCC |
| 8839 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8840 | #ifdef __cplusplus |
| 8841 | extern "C" |
| 8842 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8843 | char opendir (); |
| 8844 | int |
| 8845 | main () |
| 8846 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8847 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8848 | ; |
| 8849 | return 0; |
| 8850 | } |
| 8851 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8852 | for ac_lib in '' dir; do |
| 8853 | if test -z "$ac_lib"; then |
| 8854 | ac_res="none required" |
| 8855 | else |
| 8856 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8857 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8858 | fi |
| 8859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8860 | if { (ac_try="$ac_link" |
| 8861 | case "(($ac_try" in |
| 8862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8863 | *) ac_try_echo=$ac_try;; |
| 8864 | esac |
| 8865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8866 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8867 | ac_status=$? |
| 8868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8869 | rm -f conftest.er1 |
| 8870 | cat conftest.err >&5 |
| 8871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8872 | (exit $ac_status); } && |
| 8873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8874 | { (case "(($ac_try" in |
| 8875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8876 | *) ac_try_echo=$ac_try;; |
| 8877 | esac |
| 8878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8879 | (eval "$ac_try") 2>&5 |
| 8880 | ac_status=$? |
| 8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8882 | (exit $ac_status); }; } && |
| 8883 | { ac_try='test -s conftest$ac_exeext' |
| 8884 | { (case "(($ac_try" in |
| 8885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8886 | *) ac_try_echo=$ac_try;; |
| 8887 | esac |
| 8888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8889 | (eval "$ac_try") 2>&5 |
| 8890 | ac_status=$? |
| 8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8892 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8893 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8894 | else |
| 8895 | echo "$as_me: failed program was:" >&5 |
| 8896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8897 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8898 | |
| 8899 | fi |
| 8900 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8901 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8902 | conftest$ac_exeext |
| 8903 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8904 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8905 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8906 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8907 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8908 | : |
| 8909 | else |
| 8910 | ac_cv_search_opendir=no |
| 8911 | fi |
| 8912 | rm conftest.$ac_ext |
| 8913 | LIBS=$ac_func_search_save_LIBS |
| 8914 | fi |
| 8915 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8916 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8917 | ac_res=$ac_cv_search_opendir |
| 8918 | if test "$ac_res" != no; then |
| 8919 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8921 | fi |
| 8922 | |
| 8923 | else |
| 8924 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8925 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8926 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8928 | else |
| 8929 | ac_func_search_save_LIBS=$LIBS |
| 8930 | cat >conftest.$ac_ext <<_ACEOF |
| 8931 | /* confdefs.h. */ |
| 8932 | _ACEOF |
| 8933 | cat confdefs.h >>conftest.$ac_ext |
| 8934 | cat >>conftest.$ac_ext <<_ACEOF |
| 8935 | /* end confdefs.h. */ |
| 8936 | |
| 8937 | /* Override any GCC internal prototype to avoid an error. |
| 8938 | Use char because int might match the return type of a GCC |
| 8939 | builtin and then its argument prototype would still apply. */ |
| 8940 | #ifdef __cplusplus |
| 8941 | extern "C" |
| 8942 | #endif |
| 8943 | char opendir (); |
| 8944 | int |
| 8945 | main () |
| 8946 | { |
| 8947 | return opendir (); |
| 8948 | ; |
| 8949 | return 0; |
| 8950 | } |
| 8951 | _ACEOF |
| 8952 | for ac_lib in '' x; do |
| 8953 | if test -z "$ac_lib"; then |
| 8954 | ac_res="none required" |
| 8955 | else |
| 8956 | ac_res=-l$ac_lib |
| 8957 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8958 | fi |
| 8959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8960 | if { (ac_try="$ac_link" |
| 8961 | case "(($ac_try" in |
| 8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8963 | *) ac_try_echo=$ac_try;; |
| 8964 | esac |
| 8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8966 | (eval "$ac_link") 2>conftest.er1 |
| 8967 | ac_status=$? |
| 8968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8969 | rm -f conftest.er1 |
| 8970 | cat conftest.err >&5 |
| 8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8972 | (exit $ac_status); } && |
| 8973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8974 | { (case "(($ac_try" in |
| 8975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8976 | *) ac_try_echo=$ac_try;; |
| 8977 | esac |
| 8978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8979 | (eval "$ac_try") 2>&5 |
| 8980 | ac_status=$? |
| 8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8982 | (exit $ac_status); }; } && |
| 8983 | { ac_try='test -s conftest$ac_exeext' |
| 8984 | { (case "(($ac_try" in |
| 8985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8986 | *) ac_try_echo=$ac_try;; |
| 8987 | esac |
| 8988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8989 | (eval "$ac_try") 2>&5 |
| 8990 | ac_status=$? |
| 8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8992 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8993 | ac_cv_search_opendir=$ac_res |
| 8994 | else |
| 8995 | echo "$as_me: failed program was:" >&5 |
| 8996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8997 | |
| 8998 | |
| 8999 | fi |
| 9000 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9001 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9002 | conftest$ac_exeext |
| 9003 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9004 | break |
| 9005 | fi |
| 9006 | done |
| 9007 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9008 | : |
| 9009 | else |
| 9010 | ac_cv_search_opendir=no |
| 9011 | fi |
| 9012 | rm conftest.$ac_ext |
| 9013 | LIBS=$ac_func_search_save_LIBS |
| 9014 | fi |
| 9015 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9016 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 9017 | ac_res=$ac_cv_search_opendir |
| 9018 | if test "$ac_res" != no; then |
| 9019 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9020 | |
| 9021 | fi |
| 9022 | |
| 9023 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9024 | |
| 9025 | |
| 9026 | for ac_header in dlfcn.h |
| 9027 | do |
| 9028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9030 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9032 | 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] | 9033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9034 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9035 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9037 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9038 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9039 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9040 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9041 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9042 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9043 | /* confdefs.h. */ |
| 9044 | _ACEOF |
| 9045 | cat confdefs.h >>conftest.$ac_ext |
| 9046 | cat >>conftest.$ac_ext <<_ACEOF |
| 9047 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9048 | $ac_includes_default |
| 9049 | #include <$ac_header> |
| 9050 | _ACEOF |
| 9051 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9052 | if { (ac_try="$ac_compile" |
| 9053 | case "(($ac_try" in |
| 9054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9055 | *) ac_try_echo=$ac_try;; |
| 9056 | esac |
| 9057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9058 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9059 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9061 | rm -f conftest.er1 |
| 9062 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9064 | (exit $ac_status); } && |
| 9065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9066 | { (case "(($ac_try" in |
| 9067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9068 | *) ac_try_echo=$ac_try;; |
| 9069 | esac |
| 9070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9071 | (eval "$ac_try") 2>&5 |
| 9072 | ac_status=$? |
| 9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9074 | (exit $ac_status); }; } && |
| 9075 | { ac_try='test -s conftest.$ac_objext' |
| 9076 | { (case "(($ac_try" in |
| 9077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9078 | *) ac_try_echo=$ac_try;; |
| 9079 | esac |
| 9080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9081 | (eval "$ac_try") 2>&5 |
| 9082 | ac_status=$? |
| 9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9084 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9085 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9086 | else |
| 9087 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9090 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9091 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9092 | |
| 9093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9094 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9095 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9096 | |
| 9097 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9098 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9099 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9100 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9101 | /* confdefs.h. */ |
| 9102 | _ACEOF |
| 9103 | cat confdefs.h >>conftest.$ac_ext |
| 9104 | cat >>conftest.$ac_ext <<_ACEOF |
| 9105 | /* end confdefs.h. */ |
| 9106 | #include <$ac_header> |
| 9107 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9108 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9109 | case "(($ac_try" in |
| 9110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9111 | *) ac_try_echo=$ac_try;; |
| 9112 | esac |
| 9113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9114 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9115 | ac_status=$? |
| 9116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9117 | rm -f conftest.er1 |
| 9118 | cat conftest.err >&5 |
| 9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9120 | (exit $ac_status); } >/dev/null; then |
| 9121 | if test -s conftest.err; then |
| 9122 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9124 | else |
| 9125 | ac_cpp_err= |
| 9126 | fi |
| 9127 | else |
| 9128 | ac_cpp_err=yes |
| 9129 | fi |
| 9130 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9131 | ac_header_preproc=yes |
| 9132 | else |
| 9133 | echo "$as_me: failed program was:" >&5 |
| 9134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9135 | |
| 9136 | ac_header_preproc=no |
| 9137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9139 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9140 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9141 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9142 | |
| 9143 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9144 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9145 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9146 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9147 | 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] | 9148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9149 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9150 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9151 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9152 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9157 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9158 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9159 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9160 | 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] | 9161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9162 | 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] | 9163 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9164 | 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] | 9165 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9166 | ## ----------------------------------- ## |
| 9167 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9168 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9169 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9170 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9171 | ;; |
| 9172 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9173 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9175 | 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] | 9176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9177 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9178 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9179 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9182 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9183 | |
| 9184 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9186 | cat >>confdefs.h <<_ACEOF |
| 9187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9188 | _ACEOF |
| 9189 | |
| 9190 | fi |
| 9191 | |
| 9192 | done |
| 9193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9194 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9195 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9196 | enableval=$enable_ltdl_install; |
| 9197 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9198 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9199 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9200 | |
| 9201 | |
| 9202 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9203 | INSTALL_LTDL_TRUE= |
| 9204 | INSTALL_LTDL_FALSE='#' |
| 9205 | else |
| 9206 | INSTALL_LTDL_TRUE='#' |
| 9207 | INSTALL_LTDL_FALSE= |
| 9208 | fi |
| 9209 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9210 | |
| 9211 | |
| 9212 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9213 | CONVENIENCE_LTDL_TRUE= |
| 9214 | CONVENIENCE_LTDL_FALSE='#' |
| 9215 | else |
| 9216 | CONVENIENCE_LTDL_TRUE='#' |
| 9217 | CONVENIENCE_LTDL_FALSE= |
| 9218 | fi |
| 9219 | |
| 9220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9221 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9222 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9223 | library_names_spec= |
| 9224 | libname_spec='lib$name' |
| 9225 | soname_spec= |
| 9226 | shrext_cmds=".so" |
| 9227 | postinstall_cmds= |
| 9228 | postuninstall_cmds= |
| 9229 | finish_cmds= |
| 9230 | finish_eval= |
| 9231 | shlibpath_var= |
| 9232 | shlibpath_overrides_runpath=unknown |
| 9233 | version_type=none |
| 9234 | dynamic_linker="$host_os ld.so" |
| 9235 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9236 | if test "$GCC" = yes; then |
| 9237 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9238 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9239 | # if the path contains ";" then we assume it to be the separator |
| 9240 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9241 | # assumed that no part of a normal pathname contains ";" but that should |
| 9242 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9243 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9244 | else |
| 9245 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9246 | fi |
| 9247 | else |
| 9248 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9249 | fi |
| 9250 | need_lib_prefix=unknown |
| 9251 | hardcode_into_libs=no |
| 9252 | |
| 9253 | # when you set need_version to no, make sure it does not cause -set_version |
| 9254 | # flags to be left without arguments |
| 9255 | need_version=unknown |
| 9256 | |
| 9257 | case $host_os in |
| 9258 | aix3*) |
| 9259 | version_type=linux |
| 9260 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9261 | shlibpath_var=LIBPATH |
| 9262 | |
| 9263 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9265 | ;; |
| 9266 | |
| 9267 | aix4* | aix5*) |
| 9268 | version_type=linux |
| 9269 | need_lib_prefix=no |
| 9270 | need_version=no |
| 9271 | hardcode_into_libs=yes |
| 9272 | if test "$host_cpu" = ia64; then |
| 9273 | # AIX 5 supports IA64 |
| 9274 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9275 | shlibpath_var=LD_LIBRARY_PATH |
| 9276 | else |
| 9277 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9278 | # for dependence libraries. The import file would start with |
| 9279 | # the line `#! .'. This would cause the generated library to |
| 9280 | # depend on `.', always an invalid library. This was fixed in |
| 9281 | # development snapshots of GCC prior to 3.0. |
| 9282 | case $host_os in |
| 9283 | aix4 | aix4.[01] | aix4.[01].*) |
| 9284 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9285 | echo ' yes ' |
| 9286 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9287 | : |
| 9288 | else |
| 9289 | can_build_shared=no |
| 9290 | fi |
| 9291 | ;; |
| 9292 | esac |
| 9293 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9294 | # soname into executable. Probably we can add versioning support to |
| 9295 | # collect2, so additional links can be useful in future. |
| 9296 | if test "$aix_use_runtimelinking" = yes; then |
| 9297 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9298 | # instead of lib<name>.a to let people know that these are not |
| 9299 | # typical AIX shared libraries. |
| 9300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9301 | else |
| 9302 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9303 | # and later when we are not doing run time linking. |
| 9304 | library_names_spec='${libname}${release}.a $libname.a' |
| 9305 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9306 | fi |
| 9307 | shlibpath_var=LIBPATH |
| 9308 | fi |
| 9309 | ;; |
| 9310 | |
| 9311 | amigaos*) |
| 9312 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9313 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9314 | 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' |
| 9315 | ;; |
| 9316 | |
| 9317 | beos*) |
| 9318 | library_names_spec='${libname}${shared_ext}' |
| 9319 | dynamic_linker="$host_os ld.so" |
| 9320 | shlibpath_var=LIBRARY_PATH |
| 9321 | ;; |
| 9322 | |
| 9323 | bsdi[45]*) |
| 9324 | version_type=linux |
| 9325 | need_version=no |
| 9326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9327 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9328 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9329 | shlibpath_var=LD_LIBRARY_PATH |
| 9330 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9331 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9332 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9333 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9334 | # libtool to hard-code these into programs |
| 9335 | ;; |
| 9336 | |
| 9337 | cygwin* | mingw* | pw32*) |
| 9338 | version_type=windows |
| 9339 | shrext_cmds=".dll" |
| 9340 | need_version=no |
| 9341 | need_lib_prefix=no |
| 9342 | |
| 9343 | case $GCC,$host_os in |
| 9344 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9345 | library_names_spec='$libname.dll.a' |
| 9346 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9347 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9348 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9349 | dldir=$destdir/`dirname \$dlpath`~ |
| 9350 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9351 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9352 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9353 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9354 | dlpath=$dir/\$dldll~ |
| 9355 | $rm \$dlpath' |
| 9356 | shlibpath_overrides_runpath=yes |
| 9357 | |
| 9358 | case $host_os in |
| 9359 | cygwin*) |
| 9360 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9361 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9362 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9363 | ;; |
| 9364 | mingw*) |
| 9365 | # MinGW DLLs use traditional 'lib' prefix |
| 9366 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9367 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9368 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9369 | # It is most probably a Windows format PATH printed by |
| 9370 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9371 | # path with ; separators, and with drive letters. We can handle the |
| 9372 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9373 | # especially as we might pass files found there to a mingw objdump, |
| 9374 | # which wouldn't understand a cygwinified path. Ahh. |
| 9375 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9376 | else |
| 9377 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9378 | fi |
| 9379 | ;; |
| 9380 | pw32*) |
| 9381 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9382 | 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] | 9383 | ;; |
| 9384 | esac |
| 9385 | ;; |
| 9386 | |
| 9387 | *) |
| 9388 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9389 | ;; |
| 9390 | esac |
| 9391 | dynamic_linker='Win32 ld.exe' |
| 9392 | # FIXME: first we should search . and the directory the executable is in |
| 9393 | shlibpath_var=PATH |
| 9394 | ;; |
| 9395 | |
| 9396 | darwin* | rhapsody*) |
| 9397 | dynamic_linker="$host_os dyld" |
| 9398 | version_type=darwin |
| 9399 | need_lib_prefix=no |
| 9400 | need_version=no |
| 9401 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9402 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9403 | shlibpath_overrides_runpath=yes |
| 9404 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9405 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9406 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9407 | if test "$GCC" = yes; then |
| 9408 | 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"` |
| 9409 | else |
| 9410 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9411 | fi |
| 9412 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9413 | ;; |
| 9414 | |
| 9415 | dgux*) |
| 9416 | version_type=linux |
| 9417 | need_lib_prefix=no |
| 9418 | need_version=no |
| 9419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9421 | shlibpath_var=LD_LIBRARY_PATH |
| 9422 | ;; |
| 9423 | |
| 9424 | freebsd1*) |
| 9425 | dynamic_linker=no |
| 9426 | ;; |
| 9427 | |
| 9428 | kfreebsd*-gnu) |
| 9429 | version_type=linux |
| 9430 | need_lib_prefix=no |
| 9431 | need_version=no |
| 9432 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9433 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9434 | shlibpath_var=LD_LIBRARY_PATH |
| 9435 | shlibpath_overrides_runpath=no |
| 9436 | hardcode_into_libs=yes |
| 9437 | dynamic_linker='GNU ld.so' |
| 9438 | ;; |
| 9439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9440 | freebsd* | dragonfly*) |
| 9441 | # DragonFly does not have aout. When/if they implement a new |
| 9442 | # versioning mechanism, adjust this. |
| 9443 | if test -x /usr/bin/objformat; then |
| 9444 | objformat=`/usr/bin/objformat` |
| 9445 | else |
| 9446 | case $host_os in |
| 9447 | freebsd[123]*) objformat=aout ;; |
| 9448 | *) objformat=elf ;; |
| 9449 | esac |
| 9450 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9451 | version_type=freebsd-$objformat |
| 9452 | case $version_type in |
| 9453 | freebsd-elf*) |
| 9454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9455 | need_version=no |
| 9456 | need_lib_prefix=no |
| 9457 | ;; |
| 9458 | freebsd-*) |
| 9459 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9460 | need_version=yes |
| 9461 | ;; |
| 9462 | esac |
| 9463 | shlibpath_var=LD_LIBRARY_PATH |
| 9464 | case $host_os in |
| 9465 | freebsd2*) |
| 9466 | shlibpath_overrides_runpath=yes |
| 9467 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9468 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9469 | shlibpath_overrides_runpath=yes |
| 9470 | hardcode_into_libs=yes |
| 9471 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9472 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9473 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9474 | shlibpath_overrides_runpath=no |
| 9475 | hardcode_into_libs=yes |
| 9476 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9477 | freebsd*) # from 4.6 on |
| 9478 | shlibpath_overrides_runpath=yes |
| 9479 | hardcode_into_libs=yes |
| 9480 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9481 | esac |
| 9482 | ;; |
| 9483 | |
| 9484 | gnu*) |
| 9485 | version_type=linux |
| 9486 | need_lib_prefix=no |
| 9487 | need_version=no |
| 9488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9489 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9490 | shlibpath_var=LD_LIBRARY_PATH |
| 9491 | hardcode_into_libs=yes |
| 9492 | ;; |
| 9493 | |
| 9494 | hpux9* | hpux10* | hpux11*) |
| 9495 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9496 | # link against other versions. |
| 9497 | version_type=sunos |
| 9498 | need_lib_prefix=no |
| 9499 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9500 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9501 | ia64*) |
| 9502 | shrext_cmds='.so' |
| 9503 | hardcode_into_libs=yes |
| 9504 | dynamic_linker="$host_os dld.so" |
| 9505 | shlibpath_var=LD_LIBRARY_PATH |
| 9506 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9508 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9509 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9510 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9511 | else |
| 9512 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9513 | fi |
| 9514 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9515 | ;; |
| 9516 | hppa*64*) |
| 9517 | shrext_cmds='.sl' |
| 9518 | hardcode_into_libs=yes |
| 9519 | dynamic_linker="$host_os dld.sl" |
| 9520 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9521 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9523 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9524 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9525 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9526 | ;; |
| 9527 | *) |
| 9528 | shrext_cmds='.sl' |
| 9529 | dynamic_linker="$host_os dld.sl" |
| 9530 | shlibpath_var=SHLIB_PATH |
| 9531 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9533 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9534 | ;; |
| 9535 | esac |
| 9536 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9537 | postinstall_cmds='chmod 555 $lib' |
| 9538 | ;; |
| 9539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9540 | interix3*) |
| 9541 | version_type=linux |
| 9542 | need_lib_prefix=no |
| 9543 | need_version=no |
| 9544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9545 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9546 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9547 | shlibpath_var=LD_LIBRARY_PATH |
| 9548 | shlibpath_overrides_runpath=no |
| 9549 | hardcode_into_libs=yes |
| 9550 | ;; |
| 9551 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9552 | irix5* | irix6* | nonstopux*) |
| 9553 | case $host_os in |
| 9554 | nonstopux*) version_type=nonstopux ;; |
| 9555 | *) |
| 9556 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9557 | version_type=linux |
| 9558 | else |
| 9559 | version_type=irix |
| 9560 | fi ;; |
| 9561 | esac |
| 9562 | need_lib_prefix=no |
| 9563 | need_version=no |
| 9564 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9566 | case $host_os in |
| 9567 | irix5* | nonstopux*) |
| 9568 | libsuff= shlibsuff= |
| 9569 | ;; |
| 9570 | *) |
| 9571 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9572 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9573 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9574 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9575 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9576 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9577 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9578 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9579 | esac |
| 9580 | ;; |
| 9581 | esac |
| 9582 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9583 | shlibpath_overrides_runpath=no |
| 9584 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9585 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9586 | hardcode_into_libs=yes |
| 9587 | ;; |
| 9588 | |
| 9589 | # No shared lib support for Linux oldld, aout, or coff. |
| 9590 | linux*oldld* | linux*aout* | linux*coff*) |
| 9591 | dynamic_linker=no |
| 9592 | ;; |
| 9593 | |
| 9594 | # This must be Linux ELF. |
| 9595 | linux*) |
| 9596 | version_type=linux |
| 9597 | need_lib_prefix=no |
| 9598 | need_version=no |
| 9599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9601 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9602 | shlibpath_var=LD_LIBRARY_PATH |
| 9603 | shlibpath_overrides_runpath=no |
| 9604 | # This implies no fast_install, which is unacceptable. |
| 9605 | # Some rework will be needed to allow for fast_install |
| 9606 | # before this can be enabled. |
| 9607 | hardcode_into_libs=yes |
| 9608 | |
| 9609 | # Append ld.so.conf contents to the search path |
| 9610 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9611 | 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] | 9612 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9613 | fi |
| 9614 | |
| 9615 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9616 | # powerpc, because MkLinux only supported shared libraries with the |
| 9617 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9618 | # most powerpc-linux boxes support dynamic linking these days and |
| 9619 | # people can always --disable-shared, the test was removed, and we |
| 9620 | # assume the GNU/Linux dynamic linker is in use. |
| 9621 | dynamic_linker='GNU/Linux ld.so' |
| 9622 | ;; |
| 9623 | |
| 9624 | knetbsd*-gnu) |
| 9625 | version_type=linux |
| 9626 | need_lib_prefix=no |
| 9627 | need_version=no |
| 9628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9629 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9630 | shlibpath_var=LD_LIBRARY_PATH |
| 9631 | shlibpath_overrides_runpath=no |
| 9632 | hardcode_into_libs=yes |
| 9633 | dynamic_linker='GNU ld.so' |
| 9634 | ;; |
| 9635 | |
| 9636 | netbsd*) |
| 9637 | version_type=sunos |
| 9638 | need_lib_prefix=no |
| 9639 | need_version=no |
| 9640 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9642 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9643 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9644 | else |
| 9645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9646 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9647 | dynamic_linker='NetBSD ld.elf_so' |
| 9648 | fi |
| 9649 | shlibpath_var=LD_LIBRARY_PATH |
| 9650 | shlibpath_overrides_runpath=yes |
| 9651 | hardcode_into_libs=yes |
| 9652 | ;; |
| 9653 | |
| 9654 | newsos6) |
| 9655 | version_type=linux |
| 9656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9657 | shlibpath_var=LD_LIBRARY_PATH |
| 9658 | shlibpath_overrides_runpath=yes |
| 9659 | ;; |
| 9660 | |
| 9661 | nto-qnx*) |
| 9662 | version_type=linux |
| 9663 | need_lib_prefix=no |
| 9664 | need_version=no |
| 9665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9666 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9667 | shlibpath_var=LD_LIBRARY_PATH |
| 9668 | shlibpath_overrides_runpath=yes |
| 9669 | ;; |
| 9670 | |
| 9671 | openbsd*) |
| 9672 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9673 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9674 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9675 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9676 | case $host_os in |
| 9677 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9678 | *) need_version=no ;; |
| 9679 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9681 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9682 | shlibpath_var=LD_LIBRARY_PATH |
| 9683 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9684 | case $host_os in |
| 9685 | openbsd2.[89] | openbsd2.[89].*) |
| 9686 | shlibpath_overrides_runpath=no |
| 9687 | ;; |
| 9688 | *) |
| 9689 | shlibpath_overrides_runpath=yes |
| 9690 | ;; |
| 9691 | esac |
| 9692 | else |
| 9693 | shlibpath_overrides_runpath=yes |
| 9694 | fi |
| 9695 | ;; |
| 9696 | |
| 9697 | os2*) |
| 9698 | libname_spec='$name' |
| 9699 | shrext_cmds=".dll" |
| 9700 | need_lib_prefix=no |
| 9701 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9702 | dynamic_linker='OS/2 ld.exe' |
| 9703 | shlibpath_var=LIBPATH |
| 9704 | ;; |
| 9705 | |
| 9706 | osf3* | osf4* | osf5*) |
| 9707 | version_type=osf |
| 9708 | need_lib_prefix=no |
| 9709 | need_version=no |
| 9710 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9712 | shlibpath_var=LD_LIBRARY_PATH |
| 9713 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9714 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9715 | ;; |
| 9716 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9717 | solaris*) |
| 9718 | version_type=linux |
| 9719 | need_lib_prefix=no |
| 9720 | need_version=no |
| 9721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9722 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9723 | shlibpath_var=LD_LIBRARY_PATH |
| 9724 | shlibpath_overrides_runpath=yes |
| 9725 | hardcode_into_libs=yes |
| 9726 | # ldd complains unless libraries are executable |
| 9727 | postinstall_cmds='chmod +x $lib' |
| 9728 | ;; |
| 9729 | |
| 9730 | sunos4*) |
| 9731 | version_type=sunos |
| 9732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9733 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9734 | shlibpath_var=LD_LIBRARY_PATH |
| 9735 | shlibpath_overrides_runpath=yes |
| 9736 | if test "$with_gnu_ld" = yes; then |
| 9737 | need_lib_prefix=no |
| 9738 | fi |
| 9739 | need_version=yes |
| 9740 | ;; |
| 9741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9742 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9743 | version_type=linux |
| 9744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9745 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9746 | shlibpath_var=LD_LIBRARY_PATH |
| 9747 | case $host_vendor in |
| 9748 | sni) |
| 9749 | shlibpath_overrides_runpath=no |
| 9750 | need_lib_prefix=no |
| 9751 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9752 | runpath_var=LD_RUN_PATH |
| 9753 | ;; |
| 9754 | siemens) |
| 9755 | need_lib_prefix=no |
| 9756 | ;; |
| 9757 | motorola) |
| 9758 | need_lib_prefix=no |
| 9759 | need_version=no |
| 9760 | shlibpath_overrides_runpath=no |
| 9761 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9762 | ;; |
| 9763 | esac |
| 9764 | ;; |
| 9765 | |
| 9766 | sysv4*MP*) |
| 9767 | if test -d /usr/nec ;then |
| 9768 | version_type=linux |
| 9769 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9770 | soname_spec='$libname${shared_ext}.$major' |
| 9771 | shlibpath_var=LD_LIBRARY_PATH |
| 9772 | fi |
| 9773 | ;; |
| 9774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9775 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9776 | version_type=freebsd-elf |
| 9777 | need_lib_prefix=no |
| 9778 | need_version=no |
| 9779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9781 | shlibpath_var=LD_LIBRARY_PATH |
| 9782 | hardcode_into_libs=yes |
| 9783 | if test "$with_gnu_ld" = yes; then |
| 9784 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9785 | shlibpath_overrides_runpath=no |
| 9786 | else |
| 9787 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9788 | shlibpath_overrides_runpath=yes |
| 9789 | case $host_os in |
| 9790 | sco3.2v5*) |
| 9791 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9792 | ;; |
| 9793 | esac |
| 9794 | fi |
| 9795 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9796 | ;; |
| 9797 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9798 | uts4*) |
| 9799 | version_type=linux |
| 9800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9801 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9802 | shlibpath_var=LD_LIBRARY_PATH |
| 9803 | ;; |
| 9804 | |
| 9805 | *) |
| 9806 | dynamic_linker=no |
| 9807 | ;; |
| 9808 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9809 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9810 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9811 | test "$dynamic_linker" = no && can_build_shared=no |
| 9812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9813 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9814 | if test "$GCC" = yes; then |
| 9815 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9816 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9818 | |
| 9819 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9820 | 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] | 9821 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9823 | else |
| 9824 | |
| 9825 | module=yes |
| 9826 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9827 | |
| 9828 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9829 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9830 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9831 | if test -n "$libltdl_cv_shlibext"; then |
| 9832 | |
| 9833 | cat >>confdefs.h <<_ACEOF |
| 9834 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9835 | _ACEOF |
| 9836 | |
| 9837 | fi |
| 9838 | |
| 9839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9840 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9841 | 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] | 9842 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9844 | else |
| 9845 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9846 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9847 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9848 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9850 | |
| 9851 | cat >>confdefs.h <<_ACEOF |
| 9852 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9853 | _ACEOF |
| 9854 | |
| 9855 | fi |
| 9856 | |
| 9857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9858 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9859 | 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] | 9860 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9862 | else |
| 9863 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9864 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9865 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9866 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9867 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9868 | sys_search_path= |
| 9869 | for dir in $libltdl_cv_sys_search_path; do |
| 9870 | if test -z "$sys_search_path"; then |
| 9871 | sys_search_path="$dir" |
| 9872 | else |
| 9873 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9874 | fi |
| 9875 | done |
| 9876 | |
| 9877 | cat >>confdefs.h <<_ACEOF |
| 9878 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9879 | _ACEOF |
| 9880 | |
| 9881 | fi |
| 9882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9883 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9884 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9885 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9887 | else |
| 9888 | libltdl_cv_objdir="$objdir" |
| 9889 | if test -n "$objdir"; then |
| 9890 | : |
| 9891 | else |
| 9892 | rm -f .libs 2>/dev/null |
| 9893 | mkdir .libs 2>/dev/null |
| 9894 | if test -d .libs; then |
| 9895 | libltdl_cv_objdir=.libs |
| 9896 | else |
| 9897 | # MS-DOS does not allow filenames that begin with a dot. |
| 9898 | libltdl_cv_objdir=_libs |
| 9899 | fi |
| 9900 | rmdir .libs 2>/dev/null |
| 9901 | fi |
| 9902 | |
| 9903 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9904 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9905 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9906 | |
| 9907 | cat >>confdefs.h <<_ACEOF |
| 9908 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9909 | _ACEOF |
| 9910 | |
| 9911 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9912 | |
| 9913 | |
| 9914 | |
| 9915 | |
| 9916 | # 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] | 9917 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9918 | 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] | 9919 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9921 | else |
| 9922 | |
| 9923 | # These are sane defaults that work on at least a few old systems. |
| 9924 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9925 | |
| 9926 | # Character class describing NM global symbol codes. |
| 9927 | symcode='[BCDEGRST]' |
| 9928 | |
| 9929 | # Regexp to match symbols that can be accessed directly from C. |
| 9930 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9931 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9932 | # Transform an extracted symbol line into a proper C declaration |
| 9933 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9934 | |
| 9935 | # Transform an extracted symbol line into symbol name and symbol address |
| 9936 | 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'" |
| 9937 | |
| 9938 | # Define system-specific variables. |
| 9939 | case $host_os in |
| 9940 | aix*) |
| 9941 | symcode='[BCDT]' |
| 9942 | ;; |
| 9943 | cygwin* | mingw* | pw32*) |
| 9944 | symcode='[ABCDGISTW]' |
| 9945 | ;; |
| 9946 | hpux*) # Its linker distinguishes data from code symbols |
| 9947 | if test "$host_cpu" = ia64; then |
| 9948 | symcode='[ABCDEGRST]' |
| 9949 | fi |
| 9950 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9951 | 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'" |
| 9952 | ;; |
| 9953 | linux*) |
| 9954 | if test "$host_cpu" = ia64; then |
| 9955 | symcode='[ABCDGIRSTW]' |
| 9956 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9957 | 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'" |
| 9958 | fi |
| 9959 | ;; |
| 9960 | irix* | nonstopux*) |
| 9961 | symcode='[BCDEGRST]' |
| 9962 | ;; |
| 9963 | osf*) |
| 9964 | symcode='[BCDEGQRST]' |
| 9965 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9966 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9967 | symcode='[BDRT]' |
| 9968 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9969 | sco3.2v5*) |
| 9970 | symcode='[DT]' |
| 9971 | ;; |
| 9972 | sysv4.2uw2*) |
| 9973 | symcode='[DT]' |
| 9974 | ;; |
| 9975 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9976 | symcode='[ABDT]' |
| 9977 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9978 | sysv4) |
| 9979 | symcode='[DFNSTU]' |
| 9980 | ;; |
| 9981 | esac |
| 9982 | |
| 9983 | # Handle CRLF in mingw tool chain |
| 9984 | opt_cr= |
| 9985 | case $build_os in |
| 9986 | mingw*) |
| 9987 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9988 | ;; |
| 9989 | esac |
| 9990 | |
| 9991 | # If we're using GNU nm, then use its standard symbol codes. |
| 9992 | case `$NM -V 2>&1` in |
| 9993 | *GNU* | *'with BFD'*) |
| 9994 | symcode='[ABCDGIRSTW]' ;; |
| 9995 | esac |
| 9996 | |
| 9997 | # Try without a prefix undercore, then with it. |
| 9998 | for ac_symprfx in "" "_"; do |
| 9999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10000 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10001 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10002 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10003 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10004 | 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] | 10005 | |
| 10006 | # Check to see that the pipe works correctly. |
| 10007 | pipe_works=no |
| 10008 | |
| 10009 | rm -f conftest* |
| 10010 | cat > conftest.$ac_ext <<EOF |
| 10011 | #ifdef __cplusplus |
| 10012 | extern "C" { |
| 10013 | #endif |
| 10014 | char nm_test_var; |
| 10015 | void nm_test_func(){} |
| 10016 | #ifdef __cplusplus |
| 10017 | } |
| 10018 | #endif |
| 10019 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10020 | EOF |
| 10021 | |
| 10022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10023 | (eval $ac_compile) 2>&5 |
| 10024 | ac_status=$? |
| 10025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10026 | (exit $ac_status); }; then |
| 10027 | # Now try to grab the symbols. |
| 10028 | nlist=conftest.nm |
| 10029 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 10030 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10031 | ac_status=$? |
| 10032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10033 | (exit $ac_status); } && test -s "$nlist"; then |
| 10034 | # Try sorting and uniquifying the output. |
| 10035 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10036 | mv -f "$nlist"T "$nlist" |
| 10037 | else |
| 10038 | rm -f "$nlist"T |
| 10039 | fi |
| 10040 | |
| 10041 | # Make sure that we snagged all the symbols we need. |
| 10042 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10043 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10044 | cat <<EOF > conftest.$ac_ext |
| 10045 | #ifdef __cplusplus |
| 10046 | extern "C" { |
| 10047 | #endif |
| 10048 | |
| 10049 | EOF |
| 10050 | # Now generate the symbol file. |
| 10051 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10052 | |
| 10053 | cat <<EOF >> conftest.$ac_ext |
| 10054 | #if defined (__STDC__) && __STDC__ |
| 10055 | # define lt_ptr_t void * |
| 10056 | #else |
| 10057 | # define lt_ptr_t char * |
| 10058 | # define const |
| 10059 | #endif |
| 10060 | |
| 10061 | /* The mapping between symbol names and symbols. */ |
| 10062 | const struct { |
| 10063 | const char *name; |
| 10064 | lt_ptr_t address; |
| 10065 | } |
| 10066 | lt_preloaded_symbols[] = |
| 10067 | { |
| 10068 | EOF |
| 10069 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10070 | cat <<\EOF >> conftest.$ac_ext |
| 10071 | {0, (lt_ptr_t) 0} |
| 10072 | }; |
| 10073 | |
| 10074 | #ifdef __cplusplus |
| 10075 | } |
| 10076 | #endif |
| 10077 | EOF |
| 10078 | # Now try linking the two files. |
| 10079 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10080 | lt_save_LIBS="$LIBS" |
| 10081 | lt_save_CFLAGS="$CFLAGS" |
| 10082 | LIBS="conftstm.$ac_objext" |
| 10083 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 10084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10085 | (eval $ac_link) 2>&5 |
| 10086 | ac_status=$? |
| 10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10088 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 10089 | pipe_works=yes |
| 10090 | fi |
| 10091 | LIBS="$lt_save_LIBS" |
| 10092 | CFLAGS="$lt_save_CFLAGS" |
| 10093 | else |
| 10094 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10095 | fi |
| 10096 | else |
| 10097 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10098 | fi |
| 10099 | else |
| 10100 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10101 | fi |
| 10102 | else |
| 10103 | echo "$progname: failed program was:" >&5 |
| 10104 | cat conftest.$ac_ext >&5 |
| 10105 | fi |
| 10106 | rm -f conftest* conftst* |
| 10107 | |
| 10108 | # Do not use the global_symbol_pipe unless it works. |
| 10109 | if test "$pipe_works" = yes; then |
| 10110 | break |
| 10111 | else |
| 10112 | lt_cv_sys_global_symbol_pipe= |
| 10113 | fi |
| 10114 | done |
| 10115 | |
| 10116 | fi |
| 10117 | |
| 10118 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10119 | lt_cv_sys_global_symbol_to_cdecl= |
| 10120 | fi |
| 10121 | 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] | 10122 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10123 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10124 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10125 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10126 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10127 | fi |
| 10128 | |
| 10129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10130 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10131 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10134 | else |
| 10135 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10136 | libltdl_cv_preloaded_symbols=yes |
| 10137 | else |
| 10138 | libltdl_cv_preloaded_symbols=no |
| 10139 | fi |
| 10140 | |
| 10141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10142 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10143 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10144 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10145 | |
| 10146 | cat >>confdefs.h <<\_ACEOF |
| 10147 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10148 | _ACEOF |
| 10149 | |
| 10150 | fi |
| 10151 | |
| 10152 | LIBADD_DL= |
| 10153 | |
| 10154 | ac_ext=c |
| 10155 | ac_cpp='$CPP $CPPFLAGS' |
| 10156 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10157 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10158 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10159 | |
| 10160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10161 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10162 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10165 | else |
| 10166 | cat >conftest.$ac_ext <<_ACEOF |
| 10167 | /* confdefs.h. */ |
| 10168 | _ACEOF |
| 10169 | cat confdefs.h >>conftest.$ac_ext |
| 10170 | cat >>conftest.$ac_ext <<_ACEOF |
| 10171 | /* end confdefs.h. */ |
| 10172 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10173 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10174 | #define shl_load innocuous_shl_load |
| 10175 | |
| 10176 | /* System header to define __stub macros and hopefully few prototypes, |
| 10177 | which can conflict with char shl_load (); below. |
| 10178 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10179 | <limits.h> exists even on freestanding compilers. */ |
| 10180 | |
| 10181 | #ifdef __STDC__ |
| 10182 | # include <limits.h> |
| 10183 | #else |
| 10184 | # include <assert.h> |
| 10185 | #endif |
| 10186 | |
| 10187 | #undef shl_load |
| 10188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10189 | /* Override any GCC internal prototype to avoid an error. |
| 10190 | Use char because int might match the return type of a GCC |
| 10191 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10192 | #ifdef __cplusplus |
| 10193 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10194 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10195 | char shl_load (); |
| 10196 | /* The GNU C library defines this for functions which it implements |
| 10197 | to always fail with ENOSYS. Some functions are actually named |
| 10198 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10199 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10200 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10201 | #endif |
| 10202 | |
| 10203 | int |
| 10204 | main () |
| 10205 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10206 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10207 | ; |
| 10208 | return 0; |
| 10209 | } |
| 10210 | _ACEOF |
| 10211 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10212 | if { (ac_try="$ac_link" |
| 10213 | case "(($ac_try" in |
| 10214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10215 | *) ac_try_echo=$ac_try;; |
| 10216 | esac |
| 10217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10218 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10219 | ac_status=$? |
| 10220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10221 | rm -f conftest.er1 |
| 10222 | cat conftest.err >&5 |
| 10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10224 | (exit $ac_status); } && |
| 10225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10226 | { (case "(($ac_try" in |
| 10227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10228 | *) ac_try_echo=$ac_try;; |
| 10229 | esac |
| 10230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10231 | (eval "$ac_try") 2>&5 |
| 10232 | ac_status=$? |
| 10233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10234 | (exit $ac_status); }; } && |
| 10235 | { ac_try='test -s conftest$ac_exeext' |
| 10236 | { (case "(($ac_try" in |
| 10237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10238 | *) ac_try_echo=$ac_try;; |
| 10239 | esac |
| 10240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10241 | (eval "$ac_try") 2>&5 |
| 10242 | ac_status=$? |
| 10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10244 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10245 | ac_cv_func_shl_load=yes |
| 10246 | else |
| 10247 | echo "$as_me: failed program was:" >&5 |
| 10248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10250 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10251 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10252 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10253 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10254 | conftest$ac_exeext conftest.$ac_ext |
| 10255 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10256 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10257 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10258 | if test $ac_cv_func_shl_load = yes; then |
| 10259 | |
| 10260 | cat >>confdefs.h <<\_ACEOF |
| 10261 | #define HAVE_SHL_LOAD 1 |
| 10262 | _ACEOF |
| 10263 | |
| 10264 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10265 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10266 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10267 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10269 | else |
| 10270 | ac_check_lib_save_LIBS=$LIBS |
| 10271 | LIBS="-ldld $LIBS" |
| 10272 | cat >conftest.$ac_ext <<_ACEOF |
| 10273 | /* confdefs.h. */ |
| 10274 | _ACEOF |
| 10275 | cat confdefs.h >>conftest.$ac_ext |
| 10276 | cat >>conftest.$ac_ext <<_ACEOF |
| 10277 | /* end confdefs.h. */ |
| 10278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10279 | /* Override any GCC internal prototype to avoid an error. |
| 10280 | Use char because int might match the return type of a GCC |
| 10281 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10282 | #ifdef __cplusplus |
| 10283 | extern "C" |
| 10284 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10285 | char shl_load (); |
| 10286 | int |
| 10287 | main () |
| 10288 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10289 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10290 | ; |
| 10291 | return 0; |
| 10292 | } |
| 10293 | _ACEOF |
| 10294 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10295 | if { (ac_try="$ac_link" |
| 10296 | case "(($ac_try" in |
| 10297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10298 | *) ac_try_echo=$ac_try;; |
| 10299 | esac |
| 10300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10301 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10302 | ac_status=$? |
| 10303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10304 | rm -f conftest.er1 |
| 10305 | cat conftest.err >&5 |
| 10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10307 | (exit $ac_status); } && |
| 10308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10309 | { (case "(($ac_try" in |
| 10310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10311 | *) ac_try_echo=$ac_try;; |
| 10312 | esac |
| 10313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10314 | (eval "$ac_try") 2>&5 |
| 10315 | ac_status=$? |
| 10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10317 | (exit $ac_status); }; } && |
| 10318 | { ac_try='test -s conftest$ac_exeext' |
| 10319 | { (case "(($ac_try" in |
| 10320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10321 | *) ac_try_echo=$ac_try;; |
| 10322 | esac |
| 10323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10324 | (eval "$ac_try") 2>&5 |
| 10325 | ac_status=$? |
| 10326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10327 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10328 | ac_cv_lib_dld_shl_load=yes |
| 10329 | else |
| 10330 | echo "$as_me: failed program was:" >&5 |
| 10331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10333 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10334 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10335 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10336 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10337 | conftest$ac_exeext conftest.$ac_ext |
| 10338 | LIBS=$ac_check_lib_save_LIBS |
| 10339 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10340 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10341 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10342 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10343 | |
| 10344 | cat >>confdefs.h <<\_ACEOF |
| 10345 | #define HAVE_SHL_LOAD 1 |
| 10346 | _ACEOF |
| 10347 | |
| 10348 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10349 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10350 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10351 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10352 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10354 | else |
| 10355 | ac_check_lib_save_LIBS=$LIBS |
| 10356 | LIBS="-ldl $LIBS" |
| 10357 | cat >conftest.$ac_ext <<_ACEOF |
| 10358 | /* confdefs.h. */ |
| 10359 | _ACEOF |
| 10360 | cat confdefs.h >>conftest.$ac_ext |
| 10361 | cat >>conftest.$ac_ext <<_ACEOF |
| 10362 | /* end confdefs.h. */ |
| 10363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10364 | /* Override any GCC internal prototype to avoid an error. |
| 10365 | Use char because int might match the return type of a GCC |
| 10366 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10367 | #ifdef __cplusplus |
| 10368 | extern "C" |
| 10369 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10370 | char dlopen (); |
| 10371 | int |
| 10372 | main () |
| 10373 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10374 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10375 | ; |
| 10376 | return 0; |
| 10377 | } |
| 10378 | _ACEOF |
| 10379 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10380 | if { (ac_try="$ac_link" |
| 10381 | case "(($ac_try" in |
| 10382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10383 | *) ac_try_echo=$ac_try;; |
| 10384 | esac |
| 10385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10386 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10387 | ac_status=$? |
| 10388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10389 | rm -f conftest.er1 |
| 10390 | cat conftest.err >&5 |
| 10391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10392 | (exit $ac_status); } && |
| 10393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10394 | { (case "(($ac_try" in |
| 10395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10396 | *) ac_try_echo=$ac_try;; |
| 10397 | esac |
| 10398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10399 | (eval "$ac_try") 2>&5 |
| 10400 | ac_status=$? |
| 10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10402 | (exit $ac_status); }; } && |
| 10403 | { ac_try='test -s conftest$ac_exeext' |
| 10404 | { (case "(($ac_try" in |
| 10405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10406 | *) ac_try_echo=$ac_try;; |
| 10407 | esac |
| 10408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10409 | (eval "$ac_try") 2>&5 |
| 10410 | ac_status=$? |
| 10411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10412 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10413 | ac_cv_lib_dl_dlopen=yes |
| 10414 | else |
| 10415 | echo "$as_me: failed program was:" >&5 |
| 10416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10418 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10420 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10421 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10422 | conftest$ac_exeext conftest.$ac_ext |
| 10423 | LIBS=$ac_check_lib_save_LIBS |
| 10424 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10425 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10426 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10427 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10428 | |
| 10429 | cat >>confdefs.h <<\_ACEOF |
| 10430 | #define HAVE_LIBDL 1 |
| 10431 | _ACEOF |
| 10432 | |
| 10433 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10434 | else |
| 10435 | cat >conftest.$ac_ext <<_ACEOF |
| 10436 | /* confdefs.h. */ |
| 10437 | _ACEOF |
| 10438 | cat confdefs.h >>conftest.$ac_ext |
| 10439 | cat >>conftest.$ac_ext <<_ACEOF |
| 10440 | /* end confdefs.h. */ |
| 10441 | #if HAVE_DLFCN_H |
| 10442 | # include <dlfcn.h> |
| 10443 | #endif |
| 10444 | |
| 10445 | int |
| 10446 | main () |
| 10447 | { |
| 10448 | dlopen(0, 0); |
| 10449 | ; |
| 10450 | return 0; |
| 10451 | } |
| 10452 | _ACEOF |
| 10453 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10454 | if { (ac_try="$ac_link" |
| 10455 | case "(($ac_try" in |
| 10456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10457 | *) ac_try_echo=$ac_try;; |
| 10458 | esac |
| 10459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10460 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10461 | ac_status=$? |
| 10462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10463 | rm -f conftest.er1 |
| 10464 | cat conftest.err >&5 |
| 10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10466 | (exit $ac_status); } && |
| 10467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 10474 | ac_status=$? |
| 10475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10476 | (exit $ac_status); }; } && |
| 10477 | { ac_try='test -s conftest$ac_exeext' |
| 10478 | { (case "(($ac_try" in |
| 10479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10480 | *) ac_try_echo=$ac_try;; |
| 10481 | esac |
| 10482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10483 | (eval "$ac_try") 2>&5 |
| 10484 | ac_status=$? |
| 10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10486 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10487 | |
| 10488 | cat >>confdefs.h <<\_ACEOF |
| 10489 | #define HAVE_LIBDL 1 |
| 10490 | _ACEOF |
| 10491 | libltdl_cv_func_dlopen="yes" |
| 10492 | else |
| 10493 | echo "$as_me: failed program was:" >&5 |
| 10494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10496 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10497 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10498 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10500 | else |
| 10501 | ac_check_lib_save_LIBS=$LIBS |
| 10502 | LIBS="-lsvld $LIBS" |
| 10503 | cat >conftest.$ac_ext <<_ACEOF |
| 10504 | /* confdefs.h. */ |
| 10505 | _ACEOF |
| 10506 | cat confdefs.h >>conftest.$ac_ext |
| 10507 | cat >>conftest.$ac_ext <<_ACEOF |
| 10508 | /* end confdefs.h. */ |
| 10509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10510 | /* Override any GCC internal prototype to avoid an error. |
| 10511 | Use char because int might match the return type of a GCC |
| 10512 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10513 | #ifdef __cplusplus |
| 10514 | extern "C" |
| 10515 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10516 | char dlopen (); |
| 10517 | int |
| 10518 | main () |
| 10519 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10520 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10521 | ; |
| 10522 | return 0; |
| 10523 | } |
| 10524 | _ACEOF |
| 10525 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10526 | if { (ac_try="$ac_link" |
| 10527 | case "(($ac_try" in |
| 10528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10529 | *) ac_try_echo=$ac_try;; |
| 10530 | esac |
| 10531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10532 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10533 | ac_status=$? |
| 10534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10535 | rm -f conftest.er1 |
| 10536 | cat conftest.err >&5 |
| 10537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10538 | (exit $ac_status); } && |
| 10539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10540 | { (case "(($ac_try" in |
| 10541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10542 | *) ac_try_echo=$ac_try;; |
| 10543 | esac |
| 10544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10545 | (eval "$ac_try") 2>&5 |
| 10546 | ac_status=$? |
| 10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10548 | (exit $ac_status); }; } && |
| 10549 | { ac_try='test -s conftest$ac_exeext' |
| 10550 | { (case "(($ac_try" in |
| 10551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10552 | *) ac_try_echo=$ac_try;; |
| 10553 | esac |
| 10554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10555 | (eval "$ac_try") 2>&5 |
| 10556 | ac_status=$? |
| 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10558 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10559 | ac_cv_lib_svld_dlopen=yes |
| 10560 | else |
| 10561 | echo "$as_me: failed program was:" >&5 |
| 10562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10564 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10566 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10567 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10568 | conftest$ac_exeext conftest.$ac_ext |
| 10569 | LIBS=$ac_check_lib_save_LIBS |
| 10570 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10571 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10572 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10573 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10574 | |
| 10575 | cat >>confdefs.h <<\_ACEOF |
| 10576 | #define HAVE_LIBDL 1 |
| 10577 | _ACEOF |
| 10578 | |
| 10579 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10580 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10581 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10582 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10583 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10585 | else |
| 10586 | ac_check_lib_save_LIBS=$LIBS |
| 10587 | LIBS="-ldld $LIBS" |
| 10588 | cat >conftest.$ac_ext <<_ACEOF |
| 10589 | /* confdefs.h. */ |
| 10590 | _ACEOF |
| 10591 | cat confdefs.h >>conftest.$ac_ext |
| 10592 | cat >>conftest.$ac_ext <<_ACEOF |
| 10593 | /* end confdefs.h. */ |
| 10594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10595 | /* Override any GCC internal prototype to avoid an error. |
| 10596 | Use char because int might match the return type of a GCC |
| 10597 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10598 | #ifdef __cplusplus |
| 10599 | extern "C" |
| 10600 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10601 | char dld_link (); |
| 10602 | int |
| 10603 | main () |
| 10604 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10605 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10606 | ; |
| 10607 | return 0; |
| 10608 | } |
| 10609 | _ACEOF |
| 10610 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10611 | if { (ac_try="$ac_link" |
| 10612 | case "(($ac_try" in |
| 10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10614 | *) ac_try_echo=$ac_try;; |
| 10615 | esac |
| 10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10617 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10618 | ac_status=$? |
| 10619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10620 | rm -f conftest.er1 |
| 10621 | cat conftest.err >&5 |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10623 | (exit $ac_status); } && |
| 10624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10625 | { (case "(($ac_try" in |
| 10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10627 | *) ac_try_echo=$ac_try;; |
| 10628 | esac |
| 10629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10630 | (eval "$ac_try") 2>&5 |
| 10631 | ac_status=$? |
| 10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10633 | (exit $ac_status); }; } && |
| 10634 | { ac_try='test -s conftest$ac_exeext' |
| 10635 | { (case "(($ac_try" in |
| 10636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10637 | *) ac_try_echo=$ac_try;; |
| 10638 | esac |
| 10639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10640 | (eval "$ac_try") 2>&5 |
| 10641 | ac_status=$? |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10643 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10644 | ac_cv_lib_dld_dld_link=yes |
| 10645 | else |
| 10646 | echo "$as_me: failed program was:" >&5 |
| 10647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10649 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10651 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10652 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10653 | conftest$ac_exeext conftest.$ac_ext |
| 10654 | LIBS=$ac_check_lib_save_LIBS |
| 10655 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10656 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10657 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10658 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10659 | |
| 10660 | cat >>confdefs.h <<\_ACEOF |
| 10661 | #define HAVE_DLD 1 |
| 10662 | _ACEOF |
| 10663 | |
| 10664 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10665 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10666 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10667 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10668 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10670 | else |
| 10671 | cat >conftest.$ac_ext <<_ACEOF |
| 10672 | /* confdefs.h. */ |
| 10673 | _ACEOF |
| 10674 | cat confdefs.h >>conftest.$ac_ext |
| 10675 | cat >>conftest.$ac_ext <<_ACEOF |
| 10676 | /* end confdefs.h. */ |
| 10677 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10679 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10680 | |
| 10681 | /* System header to define __stub macros and hopefully few prototypes, |
| 10682 | which can conflict with char _dyld_func_lookup (); below. |
| 10683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10684 | <limits.h> exists even on freestanding compilers. */ |
| 10685 | |
| 10686 | #ifdef __STDC__ |
| 10687 | # include <limits.h> |
| 10688 | #else |
| 10689 | # include <assert.h> |
| 10690 | #endif |
| 10691 | |
| 10692 | #undef _dyld_func_lookup |
| 10693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10694 | /* Override any GCC internal prototype to avoid an error. |
| 10695 | Use char because int might match the return type of a GCC |
| 10696 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10697 | #ifdef __cplusplus |
| 10698 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10699 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10700 | char _dyld_func_lookup (); |
| 10701 | /* The GNU C library defines this for functions which it implements |
| 10702 | to always fail with ENOSYS. Some functions are actually named |
| 10703 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10704 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10705 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10706 | #endif |
| 10707 | |
| 10708 | int |
| 10709 | main () |
| 10710 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10711 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10712 | ; |
| 10713 | return 0; |
| 10714 | } |
| 10715 | _ACEOF |
| 10716 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10717 | if { (ac_try="$ac_link" |
| 10718 | case "(($ac_try" in |
| 10719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10720 | *) ac_try_echo=$ac_try;; |
| 10721 | esac |
| 10722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10723 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10724 | ac_status=$? |
| 10725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10726 | rm -f conftest.er1 |
| 10727 | cat conftest.err >&5 |
| 10728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10729 | (exit $ac_status); } && |
| 10730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 10740 | { ac_try='test -s conftest$ac_exeext' |
| 10741 | { (case "(($ac_try" in |
| 10742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10743 | *) ac_try_echo=$ac_try;; |
| 10744 | esac |
| 10745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10746 | (eval "$ac_try") 2>&5 |
| 10747 | ac_status=$? |
| 10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10749 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10750 | ac_cv_func__dyld_func_lookup=yes |
| 10751 | else |
| 10752 | echo "$as_me: failed program was:" >&5 |
| 10753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10755 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10757 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10758 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10759 | conftest$ac_exeext conftest.$ac_ext |
| 10760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10761 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10762 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10763 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10764 | |
| 10765 | cat >>confdefs.h <<\_ACEOF |
| 10766 | #define HAVE_DYLD 1 |
| 10767 | _ACEOF |
| 10768 | |
| 10769 | fi |
| 10770 | |
| 10771 | |
| 10772 | fi |
| 10773 | |
| 10774 | |
| 10775 | fi |
| 10776 | |
| 10777 | |
| 10778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10779 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10780 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10781 | conftest$ac_exeext conftest.$ac_ext |
| 10782 | |
| 10783 | fi |
| 10784 | |
| 10785 | |
| 10786 | fi |
| 10787 | |
| 10788 | |
| 10789 | fi |
| 10790 | |
| 10791 | |
| 10792 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10793 | then |
| 10794 | lt_save_LIBS="$LIBS" |
| 10795 | LIBS="$LIBS $LIBADD_DL" |
| 10796 | |
| 10797 | for ac_func in dlerror |
| 10798 | do |
| 10799 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10800 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10801 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10802 | 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] | 10803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10804 | else |
| 10805 | cat >conftest.$ac_ext <<_ACEOF |
| 10806 | /* confdefs.h. */ |
| 10807 | _ACEOF |
| 10808 | cat confdefs.h >>conftest.$ac_ext |
| 10809 | cat >>conftest.$ac_ext <<_ACEOF |
| 10810 | /* end confdefs.h. */ |
| 10811 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10813 | #define $ac_func innocuous_$ac_func |
| 10814 | |
| 10815 | /* System header to define __stub macros and hopefully few prototypes, |
| 10816 | which can conflict with char $ac_func (); below. |
| 10817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10818 | <limits.h> exists even on freestanding compilers. */ |
| 10819 | |
| 10820 | #ifdef __STDC__ |
| 10821 | # include <limits.h> |
| 10822 | #else |
| 10823 | # include <assert.h> |
| 10824 | #endif |
| 10825 | |
| 10826 | #undef $ac_func |
| 10827 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10828 | /* Override any GCC internal prototype to avoid an error. |
| 10829 | Use char because int might match the return type of a GCC |
| 10830 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10831 | #ifdef __cplusplus |
| 10832 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10833 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10834 | char $ac_func (); |
| 10835 | /* The GNU C library defines this for functions which it implements |
| 10836 | to always fail with ENOSYS. Some functions are actually named |
| 10837 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10838 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10839 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10840 | #endif |
| 10841 | |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10845 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10846 | ; |
| 10847 | return 0; |
| 10848 | } |
| 10849 | _ACEOF |
| 10850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10851 | if { (ac_try="$ac_link" |
| 10852 | case "(($ac_try" in |
| 10853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10854 | *) ac_try_echo=$ac_try;; |
| 10855 | esac |
| 10856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10857 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10858 | ac_status=$? |
| 10859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10860 | rm -f conftest.er1 |
| 10861 | cat conftest.err >&5 |
| 10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10863 | (exit $ac_status); } && |
| 10864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10865 | { (case "(($ac_try" in |
| 10866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10867 | *) ac_try_echo=$ac_try;; |
| 10868 | esac |
| 10869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10870 | (eval "$ac_try") 2>&5 |
| 10871 | ac_status=$? |
| 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 | (exit $ac_status); }; } && |
| 10874 | { ac_try='test -s conftest$ac_exeext' |
| 10875 | { (case "(($ac_try" in |
| 10876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10877 | *) ac_try_echo=$ac_try;; |
| 10878 | esac |
| 10879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10880 | (eval "$ac_try") 2>&5 |
| 10881 | ac_status=$? |
| 10882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10883 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10884 | eval "$as_ac_var=yes" |
| 10885 | else |
| 10886 | echo "$as_me: failed program was:" >&5 |
| 10887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10889 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10890 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10891 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10892 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10893 | conftest$ac_exeext conftest.$ac_ext |
| 10894 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10895 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10897 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10898 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10899 | cat >>confdefs.h <<_ACEOF |
| 10900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10901 | _ACEOF |
| 10902 | |
| 10903 | fi |
| 10904 | done |
| 10905 | |
| 10906 | LIBS="$lt_save_LIBS" |
| 10907 | fi |
| 10908 | ac_ext=c |
| 10909 | ac_cpp='$CPP $CPPFLAGS' |
| 10910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10913 | |
| 10914 | |
| 10915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10916 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10917 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10918 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10920 | else |
| 10921 | ac_cv_sys_symbol_underscore=no |
| 10922 | cat > conftest.$ac_ext <<EOF |
| 10923 | void nm_test_func(){} |
| 10924 | int main(){nm_test_func;return 0;} |
| 10925 | EOF |
| 10926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10927 | (eval $ac_compile) 2>&5 |
| 10928 | ac_status=$? |
| 10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10930 | (exit $ac_status); }; then |
| 10931 | # Now try to grab the symbols. |
| 10932 | ac_nlist=conftest.nm |
| 10933 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10934 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10935 | ac_status=$? |
| 10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10937 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10938 | # See whether the symbols have a leading underscore. |
| 10939 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10940 | ac_cv_sys_symbol_underscore=yes |
| 10941 | else |
| 10942 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10943 | : |
| 10944 | else |
| 10945 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10946 | fi |
| 10947 | fi |
| 10948 | else |
| 10949 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10950 | fi |
| 10951 | else |
| 10952 | echo "configure: failed program was:" >&5 |
| 10953 | cat conftest.c >&5 |
| 10954 | fi |
| 10955 | rm -rf conftest* |
| 10956 | |
| 10957 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10958 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10959 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10960 | |
| 10961 | |
| 10962 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10963 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10964 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10965 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10966 | 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] | 10967 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10969 | else |
| 10970 | libltdl_cv_need_uscore=unknown |
| 10971 | save_LIBS="$LIBS" |
| 10972 | LIBS="$LIBS $LIBADD_DL" |
| 10973 | if test "$cross_compiling" = yes; then : |
| 10974 | libltdl_cv_need_uscore=cross |
| 10975 | else |
| 10976 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10977 | lt_status=$lt_dlunknown |
| 10978 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 10979 | #line 10979 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10980 | #include "confdefs.h" |
| 10981 | |
| 10982 | #if HAVE_DLFCN_H |
| 10983 | #include <dlfcn.h> |
| 10984 | #endif |
| 10985 | |
| 10986 | #include <stdio.h> |
| 10987 | |
| 10988 | #ifdef RTLD_GLOBAL |
| 10989 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10990 | #else |
| 10991 | # ifdef DL_GLOBAL |
| 10992 | # define LT_DLGLOBAL DL_GLOBAL |
| 10993 | # else |
| 10994 | # define LT_DLGLOBAL 0 |
| 10995 | # endif |
| 10996 | #endif |
| 10997 | |
| 10998 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10999 | find out it does not work in some platform. */ |
| 11000 | #ifndef LT_DLLAZY_OR_NOW |
| 11001 | # ifdef RTLD_LAZY |
| 11002 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11003 | # else |
| 11004 | # ifdef DL_LAZY |
| 11005 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11006 | # else |
| 11007 | # ifdef RTLD_NOW |
| 11008 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11009 | # else |
| 11010 | # ifdef DL_NOW |
| 11011 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11012 | # else |
| 11013 | # define LT_DLLAZY_OR_NOW 0 |
| 11014 | # endif |
| 11015 | # endif |
| 11016 | # endif |
| 11017 | # endif |
| 11018 | #endif |
| 11019 | |
| 11020 | #ifdef __cplusplus |
| 11021 | extern "C" void exit (int); |
| 11022 | #endif |
| 11023 | |
| 11024 | void fnord() { int i=42;} |
| 11025 | int main () |
| 11026 | { |
| 11027 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11028 | int status = $lt_dlunknown; |
| 11029 | |
| 11030 | if (self) |
| 11031 | { |
| 11032 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11033 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11034 | /* dlclose (self); */ |
| 11035 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11036 | else |
| 11037 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11038 | |
| 11039 | exit (status); |
| 11040 | } |
| 11041 | EOF |
| 11042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11043 | (eval $ac_link) 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11047 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11048 | lt_status=$? |
| 11049 | case x$lt_status in |
| 11050 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11051 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11052 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11053 | esac |
| 11054 | else : |
| 11055 | # compilation failed |
| 11056 | |
| 11057 | fi |
| 11058 | fi |
| 11059 | rm -fr conftest* |
| 11060 | |
| 11061 | LIBS="$save_LIBS" |
| 11062 | |
| 11063 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11064 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11065 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11066 | fi |
| 11067 | fi |
| 11068 | |
| 11069 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11070 | |
| 11071 | cat >>confdefs.h <<\_ACEOF |
| 11072 | #define NEED_USCORE 1 |
| 11073 | _ACEOF |
| 11074 | |
| 11075 | fi |
| 11076 | |
| 11077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11078 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11079 | 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] | 11080 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11082 | else |
| 11083 | # PORTME does your system automatically load deplibs for dlopen? |
| 11084 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11085 | # For now, we just catch OSes we know something about -- in the |
| 11086 | # future, we'll try test this programmatically. |
| 11087 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11088 | case "$host_os" in |
| 11089 | aix3*|aix4.1.*|aix4.2.*) |
| 11090 | # Unknown whether this is true for these versions of AIX, but |
| 11091 | # we want this `case' here to explicitly catch those versions. |
| 11092 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11093 | ;; |
| 11094 | aix[45]*) |
| 11095 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11096 | ;; |
| 11097 | darwin*) |
| 11098 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11099 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11100 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11101 | ;; |
| 11102 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11103 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11104 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11105 | ;; |
| 11106 | hpux10*|hpux11*) |
| 11107 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11108 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11109 | interix*) |
| 11110 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11111 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11112 | irix[12345]*|irix6.[01]*) |
| 11113 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11114 | # know how it worked for any of those versions. |
| 11115 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11116 | ;; |
| 11117 | irix*) |
| 11118 | # The case above catches anything before 6.2, and it's known that |
| 11119 | # at 6.2 and later dlopen does load deplibs. |
| 11120 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11121 | ;; |
| 11122 | netbsd*) |
| 11123 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11124 | ;; |
| 11125 | openbsd*) |
| 11126 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11127 | ;; |
| 11128 | osf[1234]*) |
| 11129 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11130 | # it did *not* use an RPATH in a shared library to find objects the |
| 11131 | # library depends on, so we explictly say `no'. |
| 11132 | libltdl_cv_sys_dlopen_deplibs=no |
| 11133 | ;; |
| 11134 | osf5.0|osf5.0a|osf5.1) |
| 11135 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11136 | # it even uses RPATH in a shared library to search for shared objects |
| 11137 | # that the library depends on, but there's no easy way to know if that |
| 11138 | # patch is installed. Since this is the case, all we can really |
| 11139 | # say is unknown -- it depends on the patch being installed. If |
| 11140 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11141 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11142 | ;; |
| 11143 | osf*) |
| 11144 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11145 | # the comments above for what we know about them. |
| 11146 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11147 | # is used to find them so we can finally say `yes'. |
| 11148 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11149 | ;; |
| 11150 | solaris*) |
| 11151 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11152 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11153 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11154 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11155 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11156 | esac |
| 11157 | |
| 11158 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11159 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11160 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11161 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11162 | |
| 11163 | cat >>confdefs.h <<\_ACEOF |
| 11164 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11165 | _ACEOF |
| 11166 | |
| 11167 | fi |
| 11168 | |
| 11169 | |
| 11170 | for ac_header in argz.h |
| 11171 | do |
| 11172 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11174 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11176 | 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] | 11177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11178 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11179 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11180 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11181 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11182 | else |
| 11183 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11184 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11185 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | cat >conftest.$ac_ext <<_ACEOF |
| 11187 | /* confdefs.h. */ |
| 11188 | _ACEOF |
| 11189 | cat confdefs.h >>conftest.$ac_ext |
| 11190 | cat >>conftest.$ac_ext <<_ACEOF |
| 11191 | /* end confdefs.h. */ |
| 11192 | $ac_includes_default |
| 11193 | #include <$ac_header> |
| 11194 | _ACEOF |
| 11195 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11196 | if { (ac_try="$ac_compile" |
| 11197 | case "(($ac_try" in |
| 11198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11199 | *) ac_try_echo=$ac_try;; |
| 11200 | esac |
| 11201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11202 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11203 | ac_status=$? |
| 11204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11205 | rm -f conftest.er1 |
| 11206 | cat conftest.err >&5 |
| 11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11208 | (exit $ac_status); } && |
| 11209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11210 | { (case "(($ac_try" in |
| 11211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11212 | *) ac_try_echo=$ac_try;; |
| 11213 | esac |
| 11214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11215 | (eval "$ac_try") 2>&5 |
| 11216 | ac_status=$? |
| 11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11218 | (exit $ac_status); }; } && |
| 11219 | { ac_try='test -s conftest.$ac_objext' |
| 11220 | { (case "(($ac_try" in |
| 11221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11222 | *) ac_try_echo=$ac_try;; |
| 11223 | esac |
| 11224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11225 | (eval "$ac_try") 2>&5 |
| 11226 | ac_status=$? |
| 11227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11228 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11229 | ac_header_compiler=yes |
| 11230 | else |
| 11231 | echo "$as_me: failed program was:" >&5 |
| 11232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11234 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11235 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11236 | |
| 11237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11238 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11239 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11240 | |
| 11241 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11242 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11243 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11244 | cat >conftest.$ac_ext <<_ACEOF |
| 11245 | /* confdefs.h. */ |
| 11246 | _ACEOF |
| 11247 | cat confdefs.h >>conftest.$ac_ext |
| 11248 | cat >>conftest.$ac_ext <<_ACEOF |
| 11249 | /* end confdefs.h. */ |
| 11250 | #include <$ac_header> |
| 11251 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11252 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11253 | case "(($ac_try" in |
| 11254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11255 | *) ac_try_echo=$ac_try;; |
| 11256 | esac |
| 11257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11258 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11259 | ac_status=$? |
| 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
| 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11264 | (exit $ac_status); } >/dev/null; then |
| 11265 | if test -s conftest.err; then |
| 11266 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11267 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11268 | else |
| 11269 | ac_cpp_err= |
| 11270 | fi |
| 11271 | else |
| 11272 | ac_cpp_err=yes |
| 11273 | fi |
| 11274 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11275 | ac_header_preproc=yes |
| 11276 | else |
| 11277 | echo "$as_me: failed program was:" >&5 |
| 11278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11279 | |
| 11280 | ac_header_preproc=no |
| 11281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11282 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11283 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11284 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11285 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11286 | |
| 11287 | # So? What about this header? |
| 11288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11289 | yes:no: ) |
| 11290 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11291 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11293 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11294 | ac_header_preproc=yes |
| 11295 | ;; |
| 11296 | no:yes:* ) |
| 11297 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11298 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11299 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11300 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11301 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11302 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11303 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11304 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11305 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11307 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11308 | 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] | 11309 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11310 | ## ----------------------------------- ## |
| 11311 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11312 | ## ----------------------------------- ## |
| 11313 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11314 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11315 | ;; |
| 11316 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11317 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11319 | 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] | 11320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11321 | else |
| 11322 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11324 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11326 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11327 | |
| 11328 | fi |
| 11329 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11330 | cat >>confdefs.h <<_ACEOF |
| 11331 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11332 | _ACEOF |
| 11333 | |
| 11334 | fi |
| 11335 | |
| 11336 | done |
| 11337 | |
| 11338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11339 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11340 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11341 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11343 | else |
| 11344 | cat >conftest.$ac_ext <<_ACEOF |
| 11345 | /* confdefs.h. */ |
| 11346 | _ACEOF |
| 11347 | cat confdefs.h >>conftest.$ac_ext |
| 11348 | cat >>conftest.$ac_ext <<_ACEOF |
| 11349 | /* end confdefs.h. */ |
| 11350 | #if HAVE_ARGZ_H |
| 11351 | # include <argz.h> |
| 11352 | #endif |
| 11353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11354 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11355 | int |
| 11356 | main () |
| 11357 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11358 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11359 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11360 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11361 | return 0; |
| 11362 | ; |
| 11363 | return 0; |
| 11364 | } |
| 11365 | _ACEOF |
| 11366 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11367 | if { (ac_try="$ac_compile" |
| 11368 | case "(($ac_try" in |
| 11369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11370 | *) ac_try_echo=$ac_try;; |
| 11371 | esac |
| 11372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11373 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11374 | ac_status=$? |
| 11375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11376 | rm -f conftest.er1 |
| 11377 | cat conftest.err >&5 |
| 11378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11379 | (exit $ac_status); } && |
| 11380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11381 | { (case "(($ac_try" in |
| 11382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11383 | *) ac_try_echo=$ac_try;; |
| 11384 | esac |
| 11385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11386 | (eval "$ac_try") 2>&5 |
| 11387 | ac_status=$? |
| 11388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11389 | (exit $ac_status); }; } && |
| 11390 | { ac_try='test -s conftest.$ac_objext' |
| 11391 | { (case "(($ac_try" in |
| 11392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11393 | *) ac_try_echo=$ac_try;; |
| 11394 | esac |
| 11395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11396 | (eval "$ac_try") 2>&5 |
| 11397 | ac_status=$? |
| 11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11399 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11400 | ac_cv_type_error_t=yes |
| 11401 | else |
| 11402 | echo "$as_me: failed program was:" >&5 |
| 11403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11405 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11406 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11407 | |
| 11408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11409 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11410 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11411 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11412 | if test $ac_cv_type_error_t = yes; then |
| 11413 | |
| 11414 | cat >>confdefs.h <<_ACEOF |
| 11415 | #define HAVE_ERROR_T 1 |
| 11416 | _ACEOF |
| 11417 | |
| 11418 | |
| 11419 | else |
| 11420 | |
| 11421 | cat >>confdefs.h <<\_ACEOF |
| 11422 | #define error_t int |
| 11423 | _ACEOF |
| 11424 | |
| 11425 | fi |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | |
| 11430 | |
| 11431 | |
| 11432 | |
| 11433 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11434 | do |
| 11435 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11436 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11437 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11438 | 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] | 11439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11440 | else |
| 11441 | cat >conftest.$ac_ext <<_ACEOF |
| 11442 | /* confdefs.h. */ |
| 11443 | _ACEOF |
| 11444 | cat confdefs.h >>conftest.$ac_ext |
| 11445 | cat >>conftest.$ac_ext <<_ACEOF |
| 11446 | /* end confdefs.h. */ |
| 11447 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11449 | #define $ac_func innocuous_$ac_func |
| 11450 | |
| 11451 | /* System header to define __stub macros and hopefully few prototypes, |
| 11452 | which can conflict with char $ac_func (); below. |
| 11453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11454 | <limits.h> exists even on freestanding compilers. */ |
| 11455 | |
| 11456 | #ifdef __STDC__ |
| 11457 | # include <limits.h> |
| 11458 | #else |
| 11459 | # include <assert.h> |
| 11460 | #endif |
| 11461 | |
| 11462 | #undef $ac_func |
| 11463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11464 | /* Override any GCC internal prototype to avoid an error. |
| 11465 | Use char because int might match the return type of a GCC |
| 11466 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11467 | #ifdef __cplusplus |
| 11468 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11469 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11470 | char $ac_func (); |
| 11471 | /* The GNU C library defines this for functions which it implements |
| 11472 | to always fail with ENOSYS. Some functions are actually named |
| 11473 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11474 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11475 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11476 | #endif |
| 11477 | |
| 11478 | int |
| 11479 | main () |
| 11480 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11481 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11482 | ; |
| 11483 | return 0; |
| 11484 | } |
| 11485 | _ACEOF |
| 11486 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11487 | if { (ac_try="$ac_link" |
| 11488 | case "(($ac_try" in |
| 11489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11490 | *) ac_try_echo=$ac_try;; |
| 11491 | esac |
| 11492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11493 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11494 | ac_status=$? |
| 11495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11496 | rm -f conftest.er1 |
| 11497 | cat conftest.err >&5 |
| 11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11499 | (exit $ac_status); } && |
| 11500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11501 | { (case "(($ac_try" in |
| 11502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11503 | *) ac_try_echo=$ac_try;; |
| 11504 | esac |
| 11505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11506 | (eval "$ac_try") 2>&5 |
| 11507 | ac_status=$? |
| 11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11509 | (exit $ac_status); }; } && |
| 11510 | { ac_try='test -s conftest$ac_exeext' |
| 11511 | { (case "(($ac_try" in |
| 11512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11513 | *) ac_try_echo=$ac_try;; |
| 11514 | esac |
| 11515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11516 | (eval "$ac_try") 2>&5 |
| 11517 | ac_status=$? |
| 11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11519 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11520 | eval "$as_ac_var=yes" |
| 11521 | else |
| 11522 | echo "$as_me: failed program was:" >&5 |
| 11523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11525 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11527 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11528 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11529 | conftest$ac_exeext conftest.$ac_ext |
| 11530 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11531 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11533 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11534 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11535 | cat >>confdefs.h <<_ACEOF |
| 11536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11537 | _ACEOF |
| 11538 | |
| 11539 | fi |
| 11540 | done |
| 11541 | |
| 11542 | |
| 11543 | |
| 11544 | |
| 11545 | |
| 11546 | |
| 11547 | |
| 11548 | |
| 11549 | |
| 11550 | |
| 11551 | |
| 11552 | |
| 11553 | |
| 11554 | |
| 11555 | |
| 11556 | |
| 11557 | |
| 11558 | |
| 11559 | |
| 11560 | |
| 11561 | |
| 11562 | |
| 11563 | |
| 11564 | |
| 11565 | |
| 11566 | |
| 11567 | |
| 11568 | |
| 11569 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11570 | stdio.h unistd.h |
| 11571 | do |
| 11572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11576 | 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] | 11577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11578 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11579 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11580 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11581 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11582 | else |
| 11583 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11584 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11585 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11586 | cat >conftest.$ac_ext <<_ACEOF |
| 11587 | /* confdefs.h. */ |
| 11588 | _ACEOF |
| 11589 | cat confdefs.h >>conftest.$ac_ext |
| 11590 | cat >>conftest.$ac_ext <<_ACEOF |
| 11591 | /* end confdefs.h. */ |
| 11592 | $ac_includes_default |
| 11593 | #include <$ac_header> |
| 11594 | _ACEOF |
| 11595 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11596 | if { (ac_try="$ac_compile" |
| 11597 | case "(($ac_try" in |
| 11598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11599 | *) ac_try_echo=$ac_try;; |
| 11600 | esac |
| 11601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11602 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11603 | ac_status=$? |
| 11604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11605 | rm -f conftest.er1 |
| 11606 | cat conftest.err >&5 |
| 11607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11608 | (exit $ac_status); } && |
| 11609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11610 | { (case "(($ac_try" in |
| 11611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11612 | *) ac_try_echo=$ac_try;; |
| 11613 | esac |
| 11614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11615 | (eval "$ac_try") 2>&5 |
| 11616 | ac_status=$? |
| 11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11618 | (exit $ac_status); }; } && |
| 11619 | { ac_try='test -s conftest.$ac_objext' |
| 11620 | { (case "(($ac_try" in |
| 11621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11622 | *) ac_try_echo=$ac_try;; |
| 11623 | esac |
| 11624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11625 | (eval "$ac_try") 2>&5 |
| 11626 | ac_status=$? |
| 11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11628 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11629 | ac_header_compiler=yes |
| 11630 | else |
| 11631 | echo "$as_me: failed program was:" >&5 |
| 11632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11634 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11636 | |
| 11637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11638 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11639 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11640 | |
| 11641 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11642 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11644 | cat >conftest.$ac_ext <<_ACEOF |
| 11645 | /* confdefs.h. */ |
| 11646 | _ACEOF |
| 11647 | cat confdefs.h >>conftest.$ac_ext |
| 11648 | cat >>conftest.$ac_ext <<_ACEOF |
| 11649 | /* end confdefs.h. */ |
| 11650 | #include <$ac_header> |
| 11651 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11653 | case "(($ac_try" in |
| 11654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11655 | *) ac_try_echo=$ac_try;; |
| 11656 | esac |
| 11657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11659 | ac_status=$? |
| 11660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11661 | rm -f conftest.er1 |
| 11662 | cat conftest.err >&5 |
| 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11664 | (exit $ac_status); } >/dev/null; then |
| 11665 | if test -s conftest.err; then |
| 11666 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11667 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11668 | else |
| 11669 | ac_cpp_err= |
| 11670 | fi |
| 11671 | else |
| 11672 | ac_cpp_err=yes |
| 11673 | fi |
| 11674 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11675 | ac_header_preproc=yes |
| 11676 | else |
| 11677 | echo "$as_me: failed program was:" >&5 |
| 11678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11679 | |
| 11680 | ac_header_preproc=no |
| 11681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11682 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11683 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11684 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11685 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11686 | |
| 11687 | # So? What about this header? |
| 11688 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11689 | yes:no: ) |
| 11690 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11691 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11692 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11693 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11694 | ac_header_preproc=yes |
| 11695 | ;; |
| 11696 | no:yes:* ) |
| 11697 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11698 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11699 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11700 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11701 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11702 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11703 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11704 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11706 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11707 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11708 | 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] | 11709 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11710 | ## ----------------------------------- ## |
| 11711 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11712 | ## ----------------------------------- ## |
| 11713 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11714 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11715 | ;; |
| 11716 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11717 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11719 | 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] | 11720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11721 | else |
| 11722 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11724 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11725 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11726 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11727 | |
| 11728 | fi |
| 11729 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11730 | cat >>confdefs.h <<_ACEOF |
| 11731 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11732 | _ACEOF |
| 11733 | |
| 11734 | fi |
| 11735 | |
| 11736 | done |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11743 | do |
| 11744 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11746 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11748 | 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] | 11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11750 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11751 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11752 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11753 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11754 | else |
| 11755 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11756 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11757 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11758 | cat >conftest.$ac_ext <<_ACEOF |
| 11759 | /* confdefs.h. */ |
| 11760 | _ACEOF |
| 11761 | cat confdefs.h >>conftest.$ac_ext |
| 11762 | cat >>conftest.$ac_ext <<_ACEOF |
| 11763 | /* end confdefs.h. */ |
| 11764 | $ac_includes_default |
| 11765 | #include <$ac_header> |
| 11766 | _ACEOF |
| 11767 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11768 | if { (ac_try="$ac_compile" |
| 11769 | case "(($ac_try" in |
| 11770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11771 | *) ac_try_echo=$ac_try;; |
| 11772 | esac |
| 11773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11774 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11775 | ac_status=$? |
| 11776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11777 | rm -f conftest.er1 |
| 11778 | cat conftest.err >&5 |
| 11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11780 | (exit $ac_status); } && |
| 11781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11782 | { (case "(($ac_try" in |
| 11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11784 | *) ac_try_echo=$ac_try;; |
| 11785 | esac |
| 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11787 | (eval "$ac_try") 2>&5 |
| 11788 | ac_status=$? |
| 11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11790 | (exit $ac_status); }; } && |
| 11791 | { ac_try='test -s conftest.$ac_objext' |
| 11792 | { (case "(($ac_try" in |
| 11793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11794 | *) ac_try_echo=$ac_try;; |
| 11795 | esac |
| 11796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11797 | (eval "$ac_try") 2>&5 |
| 11798 | ac_status=$? |
| 11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11800 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11801 | ac_header_compiler=yes |
| 11802 | else |
| 11803 | echo "$as_me: failed program was:" >&5 |
| 11804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11806 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11807 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11808 | |
| 11809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11810 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11811 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11812 | |
| 11813 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11814 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11816 | cat >conftest.$ac_ext <<_ACEOF |
| 11817 | /* confdefs.h. */ |
| 11818 | _ACEOF |
| 11819 | cat confdefs.h >>conftest.$ac_ext |
| 11820 | cat >>conftest.$ac_ext <<_ACEOF |
| 11821 | /* end confdefs.h. */ |
| 11822 | #include <$ac_header> |
| 11823 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11824 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11825 | case "(($ac_try" in |
| 11826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11827 | *) ac_try_echo=$ac_try;; |
| 11828 | esac |
| 11829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11831 | ac_status=$? |
| 11832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11833 | rm -f conftest.er1 |
| 11834 | cat conftest.err >&5 |
| 11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11836 | (exit $ac_status); } >/dev/null; then |
| 11837 | if test -s conftest.err; then |
| 11838 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11839 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11840 | else |
| 11841 | ac_cpp_err= |
| 11842 | fi |
| 11843 | else |
| 11844 | ac_cpp_err=yes |
| 11845 | fi |
| 11846 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11847 | ac_header_preproc=yes |
| 11848 | else |
| 11849 | echo "$as_me: failed program was:" >&5 |
| 11850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11851 | |
| 11852 | ac_header_preproc=no |
| 11853 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11854 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11855 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11856 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11857 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11858 | |
| 11859 | # So? What about this header? |
| 11860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11861 | yes:no: ) |
| 11862 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11863 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11865 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11866 | ac_header_preproc=yes |
| 11867 | ;; |
| 11868 | no:yes:* ) |
| 11869 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11870 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11871 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11872 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11873 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11874 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11875 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11876 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11878 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11879 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11880 | 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] | 11881 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11882 | ## ----------------------------------- ## |
| 11883 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11884 | ## ----------------------------------- ## |
| 11885 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11886 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11887 | ;; |
| 11888 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11889 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11891 | 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] | 11892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11893 | else |
| 11894 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11896 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11897 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11898 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11899 | |
| 11900 | fi |
| 11901 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11902 | cat >>confdefs.h <<_ACEOF |
| 11903 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11904 | _ACEOF |
| 11905 | |
| 11906 | fi |
| 11907 | |
| 11908 | done |
| 11909 | |
| 11910 | |
| 11911 | |
| 11912 | for ac_header in string.h strings.h |
| 11913 | do |
| 11914 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11916 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11918 | 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] | 11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11920 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11921 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11922 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11923 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11924 | else |
| 11925 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11926 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11927 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11928 | cat >conftest.$ac_ext <<_ACEOF |
| 11929 | /* confdefs.h. */ |
| 11930 | _ACEOF |
| 11931 | cat confdefs.h >>conftest.$ac_ext |
| 11932 | cat >>conftest.$ac_ext <<_ACEOF |
| 11933 | /* end confdefs.h. */ |
| 11934 | $ac_includes_default |
| 11935 | #include <$ac_header> |
| 11936 | _ACEOF |
| 11937 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11938 | if { (ac_try="$ac_compile" |
| 11939 | case "(($ac_try" in |
| 11940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11941 | *) ac_try_echo=$ac_try;; |
| 11942 | esac |
| 11943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11944 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 | ac_status=$? |
| 11946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11947 | rm -f conftest.er1 |
| 11948 | cat conftest.err >&5 |
| 11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11950 | (exit $ac_status); } && |
| 11951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11952 | { (case "(($ac_try" in |
| 11953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11954 | *) ac_try_echo=$ac_try;; |
| 11955 | esac |
| 11956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11957 | (eval "$ac_try") 2>&5 |
| 11958 | ac_status=$? |
| 11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11960 | (exit $ac_status); }; } && |
| 11961 | { ac_try='test -s conftest.$ac_objext' |
| 11962 | { (case "(($ac_try" in |
| 11963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11964 | *) ac_try_echo=$ac_try;; |
| 11965 | esac |
| 11966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11967 | (eval "$ac_try") 2>&5 |
| 11968 | ac_status=$? |
| 11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11970 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11971 | ac_header_compiler=yes |
| 11972 | else |
| 11973 | echo "$as_me: failed program was:" >&5 |
| 11974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11976 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11977 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11978 | |
| 11979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11980 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11981 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11982 | |
| 11983 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11984 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11985 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11986 | cat >conftest.$ac_ext <<_ACEOF |
| 11987 | /* confdefs.h. */ |
| 11988 | _ACEOF |
| 11989 | cat confdefs.h >>conftest.$ac_ext |
| 11990 | cat >>conftest.$ac_ext <<_ACEOF |
| 11991 | /* end confdefs.h. */ |
| 11992 | #include <$ac_header> |
| 11993 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11994 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11995 | case "(($ac_try" in |
| 11996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11997 | *) ac_try_echo=$ac_try;; |
| 11998 | esac |
| 11999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12001 | ac_status=$? |
| 12002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12003 | rm -f conftest.er1 |
| 12004 | cat conftest.err >&5 |
| 12005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12006 | (exit $ac_status); } >/dev/null; then |
| 12007 | if test -s conftest.err; then |
| 12008 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12009 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12010 | else |
| 12011 | ac_cpp_err= |
| 12012 | fi |
| 12013 | else |
| 12014 | ac_cpp_err=yes |
| 12015 | fi |
| 12016 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12017 | ac_header_preproc=yes |
| 12018 | else |
| 12019 | echo "$as_me: failed program was:" >&5 |
| 12020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12021 | |
| 12022 | ac_header_preproc=no |
| 12023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12024 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12025 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12026 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12027 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12028 | |
| 12029 | # So? What about this header? |
| 12030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12031 | yes:no: ) |
| 12032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12036 | ac_header_preproc=yes |
| 12037 | ;; |
| 12038 | no:yes:* ) |
| 12039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12050 | 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] | 12051 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12052 | ## ----------------------------------- ## |
| 12053 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12054 | ## ----------------------------------- ## |
| 12055 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12056 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12057 | ;; |
| 12058 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12061 | 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] | 12062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12063 | else |
| 12064 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12065 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12066 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12067 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12068 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12069 | |
| 12070 | fi |
| 12071 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12072 | cat >>confdefs.h <<_ACEOF |
| 12073 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12074 | _ACEOF |
| 12075 | break |
| 12076 | fi |
| 12077 | |
| 12078 | done |
| 12079 | |
| 12080 | |
| 12081 | |
| 12082 | |
| 12083 | for ac_func in strchr index |
| 12084 | do |
| 12085 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12086 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12088 | 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] | 12089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12090 | else |
| 12091 | cat >conftest.$ac_ext <<_ACEOF |
| 12092 | /* confdefs.h. */ |
| 12093 | _ACEOF |
| 12094 | cat confdefs.h >>conftest.$ac_ext |
| 12095 | cat >>conftest.$ac_ext <<_ACEOF |
| 12096 | /* end confdefs.h. */ |
| 12097 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12099 | #define $ac_func innocuous_$ac_func |
| 12100 | |
| 12101 | /* System header to define __stub macros and hopefully few prototypes, |
| 12102 | which can conflict with char $ac_func (); below. |
| 12103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12104 | <limits.h> exists even on freestanding compilers. */ |
| 12105 | |
| 12106 | #ifdef __STDC__ |
| 12107 | # include <limits.h> |
| 12108 | #else |
| 12109 | # include <assert.h> |
| 12110 | #endif |
| 12111 | |
| 12112 | #undef $ac_func |
| 12113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12114 | /* Override any GCC internal prototype to avoid an error. |
| 12115 | Use char because int might match the return type of a GCC |
| 12116 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12117 | #ifdef __cplusplus |
| 12118 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12119 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12120 | char $ac_func (); |
| 12121 | /* The GNU C library defines this for functions which it implements |
| 12122 | to always fail with ENOSYS. Some functions are actually named |
| 12123 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12124 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12125 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12126 | #endif |
| 12127 | |
| 12128 | int |
| 12129 | main () |
| 12130 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12131 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12132 | ; |
| 12133 | return 0; |
| 12134 | } |
| 12135 | _ACEOF |
| 12136 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12137 | if { (ac_try="$ac_link" |
| 12138 | case "(($ac_try" in |
| 12139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12140 | *) ac_try_echo=$ac_try;; |
| 12141 | esac |
| 12142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12143 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12144 | ac_status=$? |
| 12145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12146 | rm -f conftest.er1 |
| 12147 | cat conftest.err >&5 |
| 12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12149 | (exit $ac_status); } && |
| 12150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12151 | { (case "(($ac_try" in |
| 12152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12153 | *) ac_try_echo=$ac_try;; |
| 12154 | esac |
| 12155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12156 | (eval "$ac_try") 2>&5 |
| 12157 | ac_status=$? |
| 12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12159 | (exit $ac_status); }; } && |
| 12160 | { ac_try='test -s conftest$ac_exeext' |
| 12161 | { (case "(($ac_try" in |
| 12162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12163 | *) ac_try_echo=$ac_try;; |
| 12164 | esac |
| 12165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12166 | (eval "$ac_try") 2>&5 |
| 12167 | ac_status=$? |
| 12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12169 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12170 | eval "$as_ac_var=yes" |
| 12171 | else |
| 12172 | echo "$as_me: failed program was:" >&5 |
| 12173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12175 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12177 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12178 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12179 | conftest$ac_exeext conftest.$ac_ext |
| 12180 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12181 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12183 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12184 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12185 | cat >>confdefs.h <<_ACEOF |
| 12186 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12187 | _ACEOF |
| 12188 | break |
| 12189 | fi |
| 12190 | done |
| 12191 | |
| 12192 | |
| 12193 | |
| 12194 | for ac_func in strrchr rindex |
| 12195 | do |
| 12196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12197 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12199 | 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] | 12200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12201 | else |
| 12202 | cat >conftest.$ac_ext <<_ACEOF |
| 12203 | /* confdefs.h. */ |
| 12204 | _ACEOF |
| 12205 | cat confdefs.h >>conftest.$ac_ext |
| 12206 | cat >>conftest.$ac_ext <<_ACEOF |
| 12207 | /* end confdefs.h. */ |
| 12208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12210 | #define $ac_func innocuous_$ac_func |
| 12211 | |
| 12212 | /* System header to define __stub macros and hopefully few prototypes, |
| 12213 | which can conflict with char $ac_func (); below. |
| 12214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12215 | <limits.h> exists even on freestanding compilers. */ |
| 12216 | |
| 12217 | #ifdef __STDC__ |
| 12218 | # include <limits.h> |
| 12219 | #else |
| 12220 | # include <assert.h> |
| 12221 | #endif |
| 12222 | |
| 12223 | #undef $ac_func |
| 12224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12225 | /* Override any GCC internal prototype to avoid an error. |
| 12226 | Use char because int might match the return type of a GCC |
| 12227 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12228 | #ifdef __cplusplus |
| 12229 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12230 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12231 | char $ac_func (); |
| 12232 | /* The GNU C library defines this for functions which it implements |
| 12233 | to always fail with ENOSYS. Some functions are actually named |
| 12234 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12235 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12236 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12237 | #endif |
| 12238 | |
| 12239 | int |
| 12240 | main () |
| 12241 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12242 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12243 | ; |
| 12244 | return 0; |
| 12245 | } |
| 12246 | _ACEOF |
| 12247 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12248 | if { (ac_try="$ac_link" |
| 12249 | case "(($ac_try" in |
| 12250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12251 | *) ac_try_echo=$ac_try;; |
| 12252 | esac |
| 12253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12254 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12255 | ac_status=$? |
| 12256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12257 | rm -f conftest.er1 |
| 12258 | cat conftest.err >&5 |
| 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12260 | (exit $ac_status); } && |
| 12261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12262 | { (case "(($ac_try" in |
| 12263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12264 | *) ac_try_echo=$ac_try;; |
| 12265 | esac |
| 12266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12267 | (eval "$ac_try") 2>&5 |
| 12268 | ac_status=$? |
| 12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12270 | (exit $ac_status); }; } && |
| 12271 | { ac_try='test -s conftest$ac_exeext' |
| 12272 | { (case "(($ac_try" in |
| 12273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12274 | *) ac_try_echo=$ac_try;; |
| 12275 | esac |
| 12276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12277 | (eval "$ac_try") 2>&5 |
| 12278 | ac_status=$? |
| 12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12280 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12281 | eval "$as_ac_var=yes" |
| 12282 | else |
| 12283 | echo "$as_me: failed program was:" >&5 |
| 12284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12286 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12288 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12289 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12290 | conftest$ac_exeext conftest.$ac_ext |
| 12291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12292 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12293 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12294 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12295 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12296 | cat >>confdefs.h <<_ACEOF |
| 12297 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12298 | _ACEOF |
| 12299 | break |
| 12300 | fi |
| 12301 | done |
| 12302 | |
| 12303 | |
| 12304 | |
| 12305 | for ac_func in memcpy bcopy |
| 12306 | do |
| 12307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12308 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12310 | 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] | 12311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12312 | else |
| 12313 | cat >conftest.$ac_ext <<_ACEOF |
| 12314 | /* confdefs.h. */ |
| 12315 | _ACEOF |
| 12316 | cat confdefs.h >>conftest.$ac_ext |
| 12317 | cat >>conftest.$ac_ext <<_ACEOF |
| 12318 | /* end confdefs.h. */ |
| 12319 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12321 | #define $ac_func innocuous_$ac_func |
| 12322 | |
| 12323 | /* System header to define __stub macros and hopefully few prototypes, |
| 12324 | which can conflict with char $ac_func (); below. |
| 12325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12326 | <limits.h> exists even on freestanding compilers. */ |
| 12327 | |
| 12328 | #ifdef __STDC__ |
| 12329 | # include <limits.h> |
| 12330 | #else |
| 12331 | # include <assert.h> |
| 12332 | #endif |
| 12333 | |
| 12334 | #undef $ac_func |
| 12335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12336 | /* Override any GCC internal prototype to avoid an error. |
| 12337 | Use char because int might match the return type of a GCC |
| 12338 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12339 | #ifdef __cplusplus |
| 12340 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12341 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12342 | char $ac_func (); |
| 12343 | /* The GNU C library defines this for functions which it implements |
| 12344 | to always fail with ENOSYS. Some functions are actually named |
| 12345 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12346 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12347 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12348 | #endif |
| 12349 | |
| 12350 | int |
| 12351 | main () |
| 12352 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12353 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12354 | ; |
| 12355 | return 0; |
| 12356 | } |
| 12357 | _ACEOF |
| 12358 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12359 | if { (ac_try="$ac_link" |
| 12360 | case "(($ac_try" in |
| 12361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12362 | *) ac_try_echo=$ac_try;; |
| 12363 | esac |
| 12364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12365 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12366 | ac_status=$? |
| 12367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12368 | rm -f conftest.er1 |
| 12369 | cat conftest.err >&5 |
| 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12371 | (exit $ac_status); } && |
| 12372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12373 | { (case "(($ac_try" in |
| 12374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12375 | *) ac_try_echo=$ac_try;; |
| 12376 | esac |
| 12377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12378 | (eval "$ac_try") 2>&5 |
| 12379 | ac_status=$? |
| 12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12381 | (exit $ac_status); }; } && |
| 12382 | { ac_try='test -s conftest$ac_exeext' |
| 12383 | { (case "(($ac_try" in |
| 12384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12385 | *) ac_try_echo=$ac_try;; |
| 12386 | esac |
| 12387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12388 | (eval "$ac_try") 2>&5 |
| 12389 | ac_status=$? |
| 12390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12391 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12392 | eval "$as_ac_var=yes" |
| 12393 | else |
| 12394 | echo "$as_me: failed program was:" >&5 |
| 12395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12397 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12399 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12400 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12401 | conftest$ac_exeext conftest.$ac_ext |
| 12402 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12403 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12404 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12405 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12407 | cat >>confdefs.h <<_ACEOF |
| 12408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12409 | _ACEOF |
| 12410 | break |
| 12411 | fi |
| 12412 | done |
| 12413 | |
| 12414 | |
| 12415 | |
| 12416 | for ac_func in memmove strcmp |
| 12417 | do |
| 12418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12419 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12421 | 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] | 12422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12423 | else |
| 12424 | cat >conftest.$ac_ext <<_ACEOF |
| 12425 | /* confdefs.h. */ |
| 12426 | _ACEOF |
| 12427 | cat confdefs.h >>conftest.$ac_ext |
| 12428 | cat >>conftest.$ac_ext <<_ACEOF |
| 12429 | /* end confdefs.h. */ |
| 12430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12432 | #define $ac_func innocuous_$ac_func |
| 12433 | |
| 12434 | /* System header to define __stub macros and hopefully few prototypes, |
| 12435 | which can conflict with char $ac_func (); below. |
| 12436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12437 | <limits.h> exists even on freestanding compilers. */ |
| 12438 | |
| 12439 | #ifdef __STDC__ |
| 12440 | # include <limits.h> |
| 12441 | #else |
| 12442 | # include <assert.h> |
| 12443 | #endif |
| 12444 | |
| 12445 | #undef $ac_func |
| 12446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12447 | /* Override any GCC internal prototype to avoid an error. |
| 12448 | Use char because int might match the return type of a GCC |
| 12449 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12450 | #ifdef __cplusplus |
| 12451 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12452 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12453 | char $ac_func (); |
| 12454 | /* The GNU C library defines this for functions which it implements |
| 12455 | to always fail with ENOSYS. Some functions are actually named |
| 12456 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12457 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12458 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12459 | #endif |
| 12460 | |
| 12461 | int |
| 12462 | main () |
| 12463 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12464 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12465 | ; |
| 12466 | return 0; |
| 12467 | } |
| 12468 | _ACEOF |
| 12469 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12470 | if { (ac_try="$ac_link" |
| 12471 | case "(($ac_try" in |
| 12472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12473 | *) ac_try_echo=$ac_try;; |
| 12474 | esac |
| 12475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12476 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12477 | ac_status=$? |
| 12478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12479 | rm -f conftest.er1 |
| 12480 | cat conftest.err >&5 |
| 12481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12482 | (exit $ac_status); } && |
| 12483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12484 | { (case "(($ac_try" in |
| 12485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12486 | *) ac_try_echo=$ac_try;; |
| 12487 | esac |
| 12488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12489 | (eval "$ac_try") 2>&5 |
| 12490 | ac_status=$? |
| 12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12492 | (exit $ac_status); }; } && |
| 12493 | { ac_try='test -s conftest$ac_exeext' |
| 12494 | { (case "(($ac_try" in |
| 12495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12496 | *) ac_try_echo=$ac_try;; |
| 12497 | esac |
| 12498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12499 | (eval "$ac_try") 2>&5 |
| 12500 | ac_status=$? |
| 12501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12502 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12503 | eval "$as_ac_var=yes" |
| 12504 | else |
| 12505 | echo "$as_me: failed program was:" >&5 |
| 12506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12508 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12509 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12510 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12511 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12512 | conftest$ac_exeext conftest.$ac_ext |
| 12513 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12514 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12515 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12516 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12517 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12518 | cat >>confdefs.h <<_ACEOF |
| 12519 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12520 | _ACEOF |
| 12521 | |
| 12522 | fi |
| 12523 | done |
| 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | for ac_func in closedir opendir readdir |
| 12529 | do |
| 12530 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12531 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12532 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12533 | 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] | 12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12535 | else |
| 12536 | cat >conftest.$ac_ext <<_ACEOF |
| 12537 | /* confdefs.h. */ |
| 12538 | _ACEOF |
| 12539 | cat confdefs.h >>conftest.$ac_ext |
| 12540 | cat >>conftest.$ac_ext <<_ACEOF |
| 12541 | /* end confdefs.h. */ |
| 12542 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12544 | #define $ac_func innocuous_$ac_func |
| 12545 | |
| 12546 | /* System header to define __stub macros and hopefully few prototypes, |
| 12547 | which can conflict with char $ac_func (); below. |
| 12548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12549 | <limits.h> exists even on freestanding compilers. */ |
| 12550 | |
| 12551 | #ifdef __STDC__ |
| 12552 | # include <limits.h> |
| 12553 | #else |
| 12554 | # include <assert.h> |
| 12555 | #endif |
| 12556 | |
| 12557 | #undef $ac_func |
| 12558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12559 | /* Override any GCC internal prototype to avoid an error. |
| 12560 | Use char because int might match the return type of a GCC |
| 12561 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12562 | #ifdef __cplusplus |
| 12563 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12564 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12565 | char $ac_func (); |
| 12566 | /* The GNU C library defines this for functions which it implements |
| 12567 | to always fail with ENOSYS. Some functions are actually named |
| 12568 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12569 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12570 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12571 | #endif |
| 12572 | |
| 12573 | int |
| 12574 | main () |
| 12575 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12576 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12577 | ; |
| 12578 | return 0; |
| 12579 | } |
| 12580 | _ACEOF |
| 12581 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12582 | if { (ac_try="$ac_link" |
| 12583 | case "(($ac_try" in |
| 12584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12585 | *) ac_try_echo=$ac_try;; |
| 12586 | esac |
| 12587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12588 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12589 | ac_status=$? |
| 12590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12591 | rm -f conftest.er1 |
| 12592 | cat conftest.err >&5 |
| 12593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12594 | (exit $ac_status); } && |
| 12595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12596 | { (case "(($ac_try" in |
| 12597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12598 | *) ac_try_echo=$ac_try;; |
| 12599 | esac |
| 12600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12601 | (eval "$ac_try") 2>&5 |
| 12602 | ac_status=$? |
| 12603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12604 | (exit $ac_status); }; } && |
| 12605 | { ac_try='test -s conftest$ac_exeext' |
| 12606 | { (case "(($ac_try" in |
| 12607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12608 | *) ac_try_echo=$ac_try;; |
| 12609 | esac |
| 12610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12611 | (eval "$ac_try") 2>&5 |
| 12612 | ac_status=$? |
| 12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12614 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12615 | eval "$as_ac_var=yes" |
| 12616 | else |
| 12617 | echo "$as_me: failed program was:" >&5 |
| 12618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12621 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12622 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12623 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12624 | conftest$ac_exeext conftest.$ac_ext |
| 12625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12626 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12628 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12629 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12630 | cat >>confdefs.h <<_ACEOF |
| 12631 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12632 | _ACEOF |
| 12633 | |
| 12634 | fi |
| 12635 | done |
| 12636 | |
| 12637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12638 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12639 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12640 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12641 | case $enableval in |
| 12642 | yes) enable_shared=yes ;; |
| 12643 | no) enable_shared=no ;; |
| 12644 | *) |
| 12645 | enable_shared=no |
| 12646 | # Look at the argument we got. We use all the common list separators. |
| 12647 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12648 | for pkg in $enableval; do |
| 12649 | IFS="$lt_save_ifs" |
| 12650 | if test "X$pkg" = "X$p"; then |
| 12651 | enable_shared=yes |
| 12652 | fi |
| 12653 | done |
| 12654 | IFS="$lt_save_ifs" |
| 12655 | ;; |
| 12656 | esac |
| 12657 | else |
| 12658 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12659 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12661 | |
| 12662 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12663 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12664 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12665 | case $enableval in |
| 12666 | yes) enable_static=yes ;; |
| 12667 | no) enable_static=no ;; |
| 12668 | *) |
| 12669 | enable_static=no |
| 12670 | # Look at the argument we got. We use all the common list separators. |
| 12671 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12672 | for pkg in $enableval; do |
| 12673 | IFS="$lt_save_ifs" |
| 12674 | if test "X$pkg" = "X$p"; then |
| 12675 | enable_static=yes |
| 12676 | fi |
| 12677 | done |
| 12678 | IFS="$lt_save_ifs" |
| 12679 | ;; |
| 12680 | esac |
| 12681 | else |
| 12682 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12683 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12685 | |
| 12686 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12687 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12688 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12689 | case $enableval in |
| 12690 | yes) enable_fast_install=yes ;; |
| 12691 | no) enable_fast_install=no ;; |
| 12692 | *) |
| 12693 | enable_fast_install=no |
| 12694 | # Look at the argument we got. We use all the common list separators. |
| 12695 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12696 | for pkg in $enableval; do |
| 12697 | IFS="$lt_save_ifs" |
| 12698 | if test "X$pkg" = "X$p"; then |
| 12699 | enable_fast_install=yes |
| 12700 | fi |
| 12701 | done |
| 12702 | IFS="$lt_save_ifs" |
| 12703 | ;; |
| 12704 | esac |
| 12705 | else |
| 12706 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12707 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12709 | |
| 12710 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12711 | 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] | 12712 | if test "${lt_cv_path_SED+set}" = set; then |
| 12713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12714 | else |
| 12715 | # Loop through the user's path and test for sed and gsed. |
| 12716 | # Then use that list of sed's as ones to test for truncation. |
| 12717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12718 | for as_dir in $PATH |
| 12719 | do |
| 12720 | IFS=$as_save_IFS |
| 12721 | test -z "$as_dir" && as_dir=. |
| 12722 | for lt_ac_prog in sed gsed; do |
| 12723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12724 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12725 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12726 | fi |
| 12727 | done |
| 12728 | done |
| 12729 | done |
| 12730 | lt_ac_max=0 |
| 12731 | lt_ac_count=0 |
| 12732 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12733 | # along with /bin/sed that truncates output. |
| 12734 | 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] | 12735 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12736 | cat /dev/null > conftest.in |
| 12737 | lt_ac_count=0 |
| 12738 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12739 | # Check for GNU sed and select it if it is found. |
| 12740 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12741 | lt_cv_path_SED=$lt_ac_sed |
| 12742 | break |
| 12743 | fi |
| 12744 | while true; do |
| 12745 | cat conftest.in conftest.in >conftest.tmp |
| 12746 | mv conftest.tmp conftest.in |
| 12747 | cp conftest.in conftest.nl |
| 12748 | echo >>conftest.nl |
| 12749 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12750 | cmp -s conftest.out conftest.nl || break |
| 12751 | # 10000 chars as input seems more than enough |
| 12752 | test $lt_ac_count -gt 10 && break |
| 12753 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12754 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12755 | lt_ac_max=$lt_ac_count |
| 12756 | lt_cv_path_SED=$lt_ac_sed |
| 12757 | fi |
| 12758 | done |
| 12759 | done |
| 12760 | |
| 12761 | fi |
| 12762 | |
| 12763 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12764 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12765 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12766 | |
| 12767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12768 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12769 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12771 | else |
| 12772 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12773 | fi |
| 12774 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12775 | ac_prog=ld |
| 12776 | if test "$GCC" = yes; then |
| 12777 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12778 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12779 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12780 | case $host in |
| 12781 | *-*-mingw*) |
| 12782 | # gcc leaves a trailing carriage return which upsets mingw |
| 12783 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12784 | *) |
| 12785 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12786 | esac |
| 12787 | case $ac_prog in |
| 12788 | # Accept absolute paths. |
| 12789 | [\\/]* | ?:[\\/]*) |
| 12790 | re_direlt='/[^/][^/]*/\.\./' |
| 12791 | # Canonicalize the pathname of ld |
| 12792 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12793 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12794 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12795 | done |
| 12796 | test -z "$LD" && LD="$ac_prog" |
| 12797 | ;; |
| 12798 | "") |
| 12799 | # If it fails, then pretend we aren't using GCC. |
| 12800 | ac_prog=ld |
| 12801 | ;; |
| 12802 | *) |
| 12803 | # If it is relative, then search for the first ld in PATH. |
| 12804 | with_gnu_ld=unknown |
| 12805 | ;; |
| 12806 | esac |
| 12807 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12808 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12809 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12810 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12811 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12812 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12813 | fi |
| 12814 | if test "${lt_cv_path_LD+set}" = set; then |
| 12815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12816 | else |
| 12817 | if test -z "$LD"; then |
| 12818 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12819 | for ac_dir in $PATH; do |
| 12820 | IFS="$lt_save_ifs" |
| 12821 | test -z "$ac_dir" && ac_dir=. |
| 12822 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12823 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12824 | # 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] | 12825 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12826 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12827 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12828 | *GNU* | *'with BFD'*) |
| 12829 | test "$with_gnu_ld" != no && break |
| 12830 | ;; |
| 12831 | *) |
| 12832 | test "$with_gnu_ld" != yes && break |
| 12833 | ;; |
| 12834 | esac |
| 12835 | fi |
| 12836 | done |
| 12837 | IFS="$lt_save_ifs" |
| 12838 | else |
| 12839 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12840 | fi |
| 12841 | fi |
| 12842 | |
| 12843 | LD="$lt_cv_path_LD" |
| 12844 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12845 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12846 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12847 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12849 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12850 | fi |
| 12851 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12852 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12853 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12854 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12855 | 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] | 12856 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12858 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12859 | # 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] | 12860 | case `$LD -v 2>&1 </dev/null` in |
| 12861 | *GNU* | *'with BFD'*) |
| 12862 | lt_cv_prog_gnu_ld=yes |
| 12863 | ;; |
| 12864 | *) |
| 12865 | lt_cv_prog_gnu_ld=no |
| 12866 | ;; |
| 12867 | esac |
| 12868 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12869 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12870 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12871 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12872 | |
| 12873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12874 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12875 | 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] | 12876 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12878 | else |
| 12879 | lt_cv_ld_reload_flag='-r' |
| 12880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12881 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12882 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12883 | reload_flag=$lt_cv_ld_reload_flag |
| 12884 | case $reload_flag in |
| 12885 | "" | " "*) ;; |
| 12886 | *) reload_flag=" $reload_flag" ;; |
| 12887 | esac |
| 12888 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12889 | case $host_os in |
| 12890 | darwin*) |
| 12891 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12892 | 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] | 12893 | else |
| 12894 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12895 | fi |
| 12896 | ;; |
| 12897 | esac |
| 12898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12899 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12900 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12901 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12903 | else |
| 12904 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12905 | lt_cv_file_magic_test_file= |
| 12906 | lt_cv_deplibs_check_method='unknown' |
| 12907 | # Need to set the preceding variable on all platforms that support |
| 12908 | # interlibrary dependencies. |
| 12909 | # 'none' -- dependencies not supported. |
| 12910 | # `unknown' -- same as none, but documents that we really don't know. |
| 12911 | # 'pass_all' -- all dependencies passed with no checks. |
| 12912 | # 'test_compile' -- check by making test program. |
| 12913 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12914 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12915 | # If you have `file' or equivalent on your system and you're not sure |
| 12916 | # whether `pass_all' will *always* work, you probably want this one. |
| 12917 | |
| 12918 | case $host_os in |
| 12919 | aix4* | aix5*) |
| 12920 | lt_cv_deplibs_check_method=pass_all |
| 12921 | ;; |
| 12922 | |
| 12923 | beos*) |
| 12924 | lt_cv_deplibs_check_method=pass_all |
| 12925 | ;; |
| 12926 | |
| 12927 | bsdi[45]*) |
| 12928 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12929 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12930 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12931 | ;; |
| 12932 | |
| 12933 | cygwin*) |
| 12934 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12935 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12936 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12937 | ;; |
| 12938 | |
| 12939 | mingw* | pw32*) |
| 12940 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12941 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12942 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12943 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12944 | ;; |
| 12945 | |
| 12946 | darwin* | rhapsody*) |
| 12947 | lt_cv_deplibs_check_method=pass_all |
| 12948 | ;; |
| 12949 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12950 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12951 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12952 | case $host_cpu in |
| 12953 | i*86 ) |
| 12954 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12955 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12956 | 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] | 12957 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12958 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12959 | ;; |
| 12960 | esac |
| 12961 | else |
| 12962 | lt_cv_deplibs_check_method=pass_all |
| 12963 | fi |
| 12964 | ;; |
| 12965 | |
| 12966 | gnu*) |
| 12967 | lt_cv_deplibs_check_method=pass_all |
| 12968 | ;; |
| 12969 | |
| 12970 | hpux10.20* | hpux11*) |
| 12971 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12972 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12973 | ia64*) |
| 12974 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12975 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12976 | ;; |
| 12977 | hppa*64*) |
| 12978 | 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]' |
| 12979 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12980 | ;; |
| 12981 | *) |
| 12982 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12983 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12984 | ;; |
| 12985 | esac |
| 12986 | ;; |
| 12987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12988 | interix3*) |
| 12989 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12990 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12991 | ;; |
| 12992 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12993 | irix5* | irix6* | nonstopux*) |
| 12994 | case $LD in |
| 12995 | *-32|*"-32 ") libmagic=32-bit;; |
| 12996 | *-n32|*"-n32 ") libmagic=N32;; |
| 12997 | *-64|*"-64 ") libmagic=64-bit;; |
| 12998 | *) libmagic=never-match;; |
| 12999 | esac |
| 13000 | lt_cv_deplibs_check_method=pass_all |
| 13001 | ;; |
| 13002 | |
| 13003 | # This must be Linux ELF. |
| 13004 | linux*) |
| 13005 | lt_cv_deplibs_check_method=pass_all |
| 13006 | ;; |
| 13007 | |
| 13008 | netbsd*) |
| 13009 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 13010 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 13011 | else |
| 13012 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 13013 | fi |
| 13014 | ;; |
| 13015 | |
| 13016 | newos6*) |
| 13017 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 13018 | lt_cv_file_magic_cmd=/usr/bin/file |
| 13019 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 13020 | ;; |
| 13021 | |
| 13022 | nto-qnx*) |
| 13023 | lt_cv_deplibs_check_method=unknown |
| 13024 | ;; |
| 13025 | |
| 13026 | openbsd*) |
| 13027 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13028 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 13029 | else |
| 13030 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 13031 | fi |
| 13032 | ;; |
| 13033 | |
| 13034 | osf3* | osf4* | osf5*) |
| 13035 | lt_cv_deplibs_check_method=pass_all |
| 13036 | ;; |
| 13037 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13038 | solaris*) |
| 13039 | lt_cv_deplibs_check_method=pass_all |
| 13040 | ;; |
| 13041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13042 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13043 | case $host_vendor in |
| 13044 | motorola) |
| 13045 | 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]' |
| 13046 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 13047 | ;; |
| 13048 | ncr) |
| 13049 | lt_cv_deplibs_check_method=pass_all |
| 13050 | ;; |
| 13051 | sequent) |
| 13052 | lt_cv_file_magic_cmd='/bin/file' |
| 13053 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 13054 | ;; |
| 13055 | sni) |
| 13056 | lt_cv_file_magic_cmd='/bin/file' |
| 13057 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 13058 | lt_cv_file_magic_test_file=/lib/libc.so |
| 13059 | ;; |
| 13060 | siemens) |
| 13061 | lt_cv_deplibs_check_method=pass_all |
| 13062 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13063 | pc) |
| 13064 | lt_cv_deplibs_check_method=pass_all |
| 13065 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13066 | esac |
| 13067 | ;; |
| 13068 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13069 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13070 | lt_cv_deplibs_check_method=pass_all |
| 13071 | ;; |
| 13072 | esac |
| 13073 | |
| 13074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13075 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 13076 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13077 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 13078 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 13079 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 13080 | |
| 13081 | |
| 13082 | |
| 13083 | # If no C compiler was specified, use CC. |
| 13084 | LTCC=${LTCC-"$CC"} |
| 13085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13086 | # If no C compiler flags were specified, use CFLAGS. |
| 13087 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13088 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13089 | # Allow CC to be a program name with arguments. |
| 13090 | compiler=$CC |
| 13091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13092 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13093 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13094 | enableval=$enable_libtool_lock; |
| 13095 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13096 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13097 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13098 | |
| 13099 | # Some flags need to be propagated to the compiler or linker for good |
| 13100 | # libtool support. |
| 13101 | case $host in |
| 13102 | ia64-*-hpux*) |
| 13103 | # Find out which ABI we are using. |
| 13104 | echo 'int i;' > conftest.$ac_ext |
| 13105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13106 | (eval $ac_compile) 2>&5 |
| 13107 | ac_status=$? |
| 13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13109 | (exit $ac_status); }; then |
| 13110 | case `/usr/bin/file conftest.$ac_objext` in |
| 13111 | *ELF-32*) |
| 13112 | HPUX_IA64_MODE="32" |
| 13113 | ;; |
| 13114 | *ELF-64*) |
| 13115 | HPUX_IA64_MODE="64" |
| 13116 | ;; |
| 13117 | esac |
| 13118 | fi |
| 13119 | rm -rf conftest* |
| 13120 | ;; |
| 13121 | *-*-irix6*) |
| 13122 | # Find out which ABI we are using. |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 13123 | echo '#line 13123 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13125 | (eval $ac_compile) 2>&5 |
| 13126 | ac_status=$? |
| 13127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13128 | (exit $ac_status); }; then |
| 13129 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13130 | case `/usr/bin/file conftest.$ac_objext` in |
| 13131 | *32-bit*) |
| 13132 | LD="${LD-ld} -melf32bsmip" |
| 13133 | ;; |
| 13134 | *N32*) |
| 13135 | LD="${LD-ld} -melf32bmipn32" |
| 13136 | ;; |
| 13137 | *64-bit*) |
| 13138 | LD="${LD-ld} -melf64bmip" |
| 13139 | ;; |
| 13140 | esac |
| 13141 | else |
| 13142 | case `/usr/bin/file conftest.$ac_objext` in |
| 13143 | *32-bit*) |
| 13144 | LD="${LD-ld} -32" |
| 13145 | ;; |
| 13146 | *N32*) |
| 13147 | LD="${LD-ld} -n32" |
| 13148 | ;; |
| 13149 | *64-bit*) |
| 13150 | LD="${LD-ld} -64" |
| 13151 | ;; |
| 13152 | esac |
| 13153 | fi |
| 13154 | fi |
| 13155 | rm -rf conftest* |
| 13156 | ;; |
| 13157 | |
| 13158 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13159 | # Find out which ABI we are using. |
| 13160 | echo 'int i;' > conftest.$ac_ext |
| 13161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13162 | (eval $ac_compile) 2>&5 |
| 13163 | ac_status=$? |
| 13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13165 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13166 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13167 | *32-bit*) |
| 13168 | case $host in |
| 13169 | x86_64-*linux*) |
| 13170 | LD="${LD-ld} -m elf_i386" |
| 13171 | ;; |
| 13172 | ppc64-*linux*|powerpc64-*linux*) |
| 13173 | LD="${LD-ld} -m elf32ppclinux" |
| 13174 | ;; |
| 13175 | s390x-*linux*) |
| 13176 | LD="${LD-ld} -m elf_s390" |
| 13177 | ;; |
| 13178 | sparc64-*linux*) |
| 13179 | LD="${LD-ld} -m elf32_sparc" |
| 13180 | ;; |
| 13181 | esac |
| 13182 | ;; |
| 13183 | *64-bit*) |
| 13184 | case $host in |
| 13185 | x86_64-*linux*) |
| 13186 | LD="${LD-ld} -m elf_x86_64" |
| 13187 | ;; |
| 13188 | ppc*-*linux*|powerpc*-*linux*) |
| 13189 | LD="${LD-ld} -m elf64ppc" |
| 13190 | ;; |
| 13191 | s390*-*linux*) |
| 13192 | LD="${LD-ld} -m elf64_s390" |
| 13193 | ;; |
| 13194 | sparc*-*linux*) |
| 13195 | LD="${LD-ld} -m elf64_sparc" |
| 13196 | ;; |
| 13197 | esac |
| 13198 | ;; |
| 13199 | esac |
| 13200 | fi |
| 13201 | rm -rf conftest* |
| 13202 | ;; |
| 13203 | |
| 13204 | *-*-sco3.2v5*) |
| 13205 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 13206 | SAVE_CFLAGS="$CFLAGS" |
| 13207 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13208 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 13209 | 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] | 13210 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 13211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13212 | else |
| 13213 | ac_ext=c |
| 13214 | ac_cpp='$CPP $CPPFLAGS' |
| 13215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13218 | |
| 13219 | cat >conftest.$ac_ext <<_ACEOF |
| 13220 | /* confdefs.h. */ |
| 13221 | _ACEOF |
| 13222 | cat confdefs.h >>conftest.$ac_ext |
| 13223 | cat >>conftest.$ac_ext <<_ACEOF |
| 13224 | /* end confdefs.h. */ |
| 13225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13226 | int |
| 13227 | main () |
| 13228 | { |
| 13229 | |
| 13230 | ; |
| 13231 | return 0; |
| 13232 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13233 | _ACEOF |
| 13234 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13235 | if { (ac_try="$ac_link" |
| 13236 | case "(($ac_try" in |
| 13237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13238 | *) ac_try_echo=$ac_try;; |
| 13239 | esac |
| 13240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13241 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13242 | ac_status=$? |
| 13243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13244 | rm -f conftest.er1 |
| 13245 | cat conftest.err >&5 |
| 13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13247 | (exit $ac_status); } && |
| 13248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13249 | { (case "(($ac_try" in |
| 13250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13251 | *) ac_try_echo=$ac_try;; |
| 13252 | esac |
| 13253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13254 | (eval "$ac_try") 2>&5 |
| 13255 | ac_status=$? |
| 13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13257 | (exit $ac_status); }; } && |
| 13258 | { ac_try='test -s conftest$ac_exeext' |
| 13259 | { (case "(($ac_try" in |
| 13260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13261 | *) ac_try_echo=$ac_try;; |
| 13262 | esac |
| 13263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13264 | (eval "$ac_try") 2>&5 |
| 13265 | ac_status=$? |
| 13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13267 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13268 | lt_cv_cc_needs_belf=yes |
| 13269 | else |
| 13270 | echo "$as_me: failed program was:" >&5 |
| 13271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13273 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13274 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13275 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13276 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13277 | conftest$ac_exeext conftest.$ac_ext |
| 13278 | ac_ext=c |
| 13279 | ac_cpp='$CPP $CPPFLAGS' |
| 13280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13283 | |
| 13284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13285 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 13286 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13287 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 13288 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 13289 | CFLAGS="$SAVE_CFLAGS" |
| 13290 | fi |
| 13291 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13292 | sparc*-*solaris*) |
| 13293 | # Find out which ABI we are using. |
| 13294 | echo 'int i;' > conftest.$ac_ext |
| 13295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13296 | (eval $ac_compile) 2>&5 |
| 13297 | ac_status=$? |
| 13298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13299 | (exit $ac_status); }; then |
| 13300 | case `/usr/bin/file conftest.o` in |
| 13301 | *64-bit*) |
| 13302 | case $lt_cv_prog_gnu_ld in |
| 13303 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 13304 | *) LD="${LD-ld} -64" ;; |
| 13305 | esac |
| 13306 | ;; |
| 13307 | esac |
| 13308 | fi |
| 13309 | rm -rf conftest* |
| 13310 | ;; |
| 13311 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13312 | |
| 13313 | esac |
| 13314 | |
| 13315 | need_locks="$enable_libtool_lock" |
| 13316 | |
| 13317 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13318 | |
| 13319 | |
| 13320 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13321 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13322 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13323 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13324 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13325 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13326 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13327 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13328 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 13329 | 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] | 13330 | if test -z "$CXXCPP"; then |
| 13331 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13333 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13334 | # Double quotes because CXXCPP needs to be expanded |
| 13335 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13336 | do |
| 13337 | ac_preproc_ok=false |
| 13338 | for ac_cxx_preproc_warn_flag in '' yes |
| 13339 | do |
| 13340 | # Use a header file that comes with gcc, so configuring glibc |
| 13341 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13342 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13343 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13344 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13345 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13346 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13347 | /* confdefs.h. */ |
| 13348 | _ACEOF |
| 13349 | cat confdefs.h >>conftest.$ac_ext |
| 13350 | cat >>conftest.$ac_ext <<_ACEOF |
| 13351 | /* end confdefs.h. */ |
| 13352 | #ifdef __STDC__ |
| 13353 | # include <limits.h> |
| 13354 | #else |
| 13355 | # include <assert.h> |
| 13356 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13357 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13358 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13359 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13360 | case "(($ac_try" in |
| 13361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13362 | *) ac_try_echo=$ac_try;; |
| 13363 | esac |
| 13364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13365 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13366 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13367 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13368 | rm -f conftest.er1 |
| 13369 | cat conftest.err >&5 |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13371 | (exit $ac_status); } >/dev/null; then |
| 13372 | if test -s conftest.err; then |
| 13373 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13374 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13375 | else |
| 13376 | ac_cpp_err= |
| 13377 | fi |
| 13378 | else |
| 13379 | ac_cpp_err=yes |
| 13380 | fi |
| 13381 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13382 | : |
| 13383 | else |
| 13384 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13386 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13387 | # Broken: fails on valid input. |
| 13388 | continue |
| 13389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13390 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13391 | rm -f conftest.err conftest.$ac_ext |
| 13392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13393 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13394 | # can be detected and how. |
| 13395 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13396 | /* confdefs.h. */ |
| 13397 | _ACEOF |
| 13398 | cat confdefs.h >>conftest.$ac_ext |
| 13399 | cat >>conftest.$ac_ext <<_ACEOF |
| 13400 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13401 | #include <ac_nonexistent.h> |
| 13402 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13403 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13404 | case "(($ac_try" in |
| 13405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13406 | *) ac_try_echo=$ac_try;; |
| 13407 | esac |
| 13408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13409 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13410 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13411 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13412 | rm -f conftest.er1 |
| 13413 | cat conftest.err >&5 |
| 13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13415 | (exit $ac_status); } >/dev/null; then |
| 13416 | if test -s conftest.err; then |
| 13417 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13418 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13419 | else |
| 13420 | ac_cpp_err= |
| 13421 | fi |
| 13422 | else |
| 13423 | ac_cpp_err=yes |
| 13424 | fi |
| 13425 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13426 | # Broken: success on invalid input. |
| 13427 | continue |
| 13428 | else |
| 13429 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13431 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13432 | # Passes both tests. |
| 13433 | ac_preproc_ok=: |
| 13434 | break |
| 13435 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13436 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13437 | rm -f conftest.err conftest.$ac_ext |
| 13438 | |
| 13439 | done |
| 13440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13441 | rm -f conftest.err conftest.$ac_ext |
| 13442 | if $ac_preproc_ok; then |
| 13443 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13444 | fi |
| 13445 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13446 | done |
| 13447 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13448 | |
| 13449 | fi |
| 13450 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13451 | else |
| 13452 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13453 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13454 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13455 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13456 | ac_preproc_ok=false |
| 13457 | for ac_cxx_preproc_warn_flag in '' yes |
| 13458 | do |
| 13459 | # Use a header file that comes with gcc, so configuring glibc |
| 13460 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13461 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13462 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13463 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13464 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13465 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13466 | /* confdefs.h. */ |
| 13467 | _ACEOF |
| 13468 | cat confdefs.h >>conftest.$ac_ext |
| 13469 | cat >>conftest.$ac_ext <<_ACEOF |
| 13470 | /* end confdefs.h. */ |
| 13471 | #ifdef __STDC__ |
| 13472 | # include <limits.h> |
| 13473 | #else |
| 13474 | # include <assert.h> |
| 13475 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13476 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13477 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13478 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13479 | case "(($ac_try" in |
| 13480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13481 | *) ac_try_echo=$ac_try;; |
| 13482 | esac |
| 13483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13484 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13485 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13486 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13487 | rm -f conftest.er1 |
| 13488 | cat conftest.err >&5 |
| 13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13490 | (exit $ac_status); } >/dev/null; then |
| 13491 | if test -s conftest.err; then |
| 13492 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13493 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13494 | else |
| 13495 | ac_cpp_err= |
| 13496 | fi |
| 13497 | else |
| 13498 | ac_cpp_err=yes |
| 13499 | fi |
| 13500 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13501 | : |
| 13502 | else |
| 13503 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13505 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13506 | # Broken: fails on valid input. |
| 13507 | continue |
| 13508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13509 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13510 | rm -f conftest.err conftest.$ac_ext |
| 13511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13512 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13513 | # can be detected and how. |
| 13514 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13515 | /* confdefs.h. */ |
| 13516 | _ACEOF |
| 13517 | cat confdefs.h >>conftest.$ac_ext |
| 13518 | cat >>conftest.$ac_ext <<_ACEOF |
| 13519 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13520 | #include <ac_nonexistent.h> |
| 13521 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13522 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13523 | case "(($ac_try" in |
| 13524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13525 | *) ac_try_echo=$ac_try;; |
| 13526 | esac |
| 13527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13528 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13529 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13530 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13531 | rm -f conftest.er1 |
| 13532 | cat conftest.err >&5 |
| 13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13534 | (exit $ac_status); } >/dev/null; then |
| 13535 | if test -s conftest.err; then |
| 13536 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13537 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13538 | else |
| 13539 | ac_cpp_err= |
| 13540 | fi |
| 13541 | else |
| 13542 | ac_cpp_err=yes |
| 13543 | fi |
| 13544 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13545 | # Broken: success on invalid input. |
| 13546 | continue |
| 13547 | else |
| 13548 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13550 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13551 | # Passes both tests. |
| 13552 | ac_preproc_ok=: |
| 13553 | break |
| 13554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13556 | rm -f conftest.err conftest.$ac_ext |
| 13557 | |
| 13558 | done |
| 13559 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13560 | rm -f conftest.err conftest.$ac_ext |
| 13561 | if $ac_preproc_ok; then |
| 13562 | : |
| 13563 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13564 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13565 | See \`config.log' for more details." >&5 |
| 13566 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13567 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13568 | { (exit 1); exit 1; }; } |
| 13569 | fi |
| 13570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13571 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13572 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13573 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13574 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13575 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13576 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13577 | fi |
| 13578 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13579 | |
| 13580 | ac_ext=f |
| 13581 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13582 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13583 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13584 | if test -n "$ac_tool_prefix"; then |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13585 | 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] | 13586 | do |
| 13587 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13588 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13591 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13593 | else |
| 13594 | if test -n "$F77"; then |
| 13595 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13596 | else |
| 13597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13598 | for as_dir in $PATH |
| 13599 | do |
| 13600 | IFS=$as_save_IFS |
| 13601 | test -z "$as_dir" && as_dir=. |
| 13602 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13603 | 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] | 13604 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13606 | break 2 |
| 13607 | fi |
| 13608 | done |
| 13609 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13610 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13611 | |
| 13612 | fi |
| 13613 | fi |
| 13614 | F77=$ac_cv_prog_F77 |
| 13615 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13616 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13617 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13618 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13620 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13621 | fi |
| 13622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13623 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13624 | test -n "$F77" && break |
| 13625 | done |
| 13626 | fi |
| 13627 | if test -z "$F77"; then |
| 13628 | ac_ct_F77=$F77 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13629 | 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] | 13630 | do |
| 13631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13632 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13633 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13635 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13637 | else |
| 13638 | if test -n "$ac_ct_F77"; then |
| 13639 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13640 | else |
| 13641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13642 | for as_dir in $PATH |
| 13643 | do |
| 13644 | IFS=$as_save_IFS |
| 13645 | test -z "$as_dir" && as_dir=. |
| 13646 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13647 | 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] | 13648 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13650 | break 2 |
| 13651 | fi |
| 13652 | done |
| 13653 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13654 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13655 | |
| 13656 | fi |
| 13657 | fi |
| 13658 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13659 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13660 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13661 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13662 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13663 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13664 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13665 | fi |
| 13666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13667 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13668 | test -n "$ac_ct_F77" && break |
| 13669 | done |
| 13670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13671 | if test "x$ac_ct_F77" = x; then |
| 13672 | F77="" |
| 13673 | else |
| 13674 | case $cross_compiling:$ac_tool_warned in |
| 13675 | yes:) |
| 13676 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13677 | whose name does not start with the host triplet. If you think this |
| 13678 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13679 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13680 | whose name does not start with the host triplet. If you think this |
| 13681 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13682 | ac_tool_warned=yes ;; |
| 13683 | esac |
| 13684 | F77=$ac_ct_F77 |
| 13685 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13686 | fi |
| 13687 | |
| 13688 | |
| 13689 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13690 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13691 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13692 | { (ac_try="$ac_compiler --version >&5" |
| 13693 | case "(($ac_try" in |
| 13694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13695 | *) ac_try_echo=$ac_try;; |
| 13696 | esac |
| 13697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13698 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13699 | ac_status=$? |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13702 | { (ac_try="$ac_compiler -v >&5" |
| 13703 | case "(($ac_try" in |
| 13704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13705 | *) ac_try_echo=$ac_try;; |
| 13706 | esac |
| 13707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13708 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13709 | ac_status=$? |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13712 | { (ac_try="$ac_compiler -V >&5" |
| 13713 | case "(($ac_try" in |
| 13714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13715 | *) ac_try_echo=$ac_try;; |
| 13716 | esac |
| 13717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13718 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13719 | ac_status=$? |
| 13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13721 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13722 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13723 | |
| 13724 | # 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] | 13725 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13726 | ac_save_ext=$ac_ext |
| 13727 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13728 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13729 | 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] | 13730 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13732 | else |
| 13733 | cat >conftest.$ac_ext <<_ACEOF |
| 13734 | program main |
| 13735 | #ifndef __GNUC__ |
| 13736 | choke me |
| 13737 | #endif |
| 13738 | |
| 13739 | end |
| 13740 | _ACEOF |
| 13741 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13742 | if { (ac_try="$ac_compile" |
| 13743 | case "(($ac_try" in |
| 13744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13745 | *) ac_try_echo=$ac_try;; |
| 13746 | esac |
| 13747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13748 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13749 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13751 | rm -f conftest.er1 |
| 13752 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13754 | (exit $ac_status); } && |
| 13755 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13756 | { (case "(($ac_try" in |
| 13757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13758 | *) ac_try_echo=$ac_try;; |
| 13759 | esac |
| 13760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13761 | (eval "$ac_try") 2>&5 |
| 13762 | ac_status=$? |
| 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13764 | (exit $ac_status); }; } && |
| 13765 | { ac_try='test -s conftest.$ac_objext' |
| 13766 | { (case "(($ac_try" in |
| 13767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13768 | *) ac_try_echo=$ac_try;; |
| 13769 | esac |
| 13770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13771 | (eval "$ac_try") 2>&5 |
| 13772 | ac_status=$? |
| 13773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13774 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13775 | ac_compiler_gnu=yes |
| 13776 | else |
| 13777 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13779 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13780 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13782 | |
| 13783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13784 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13785 | |
| 13786 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13787 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13788 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13789 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13790 | ac_test_FFLAGS=${FFLAGS+set} |
| 13791 | ac_save_FFLAGS=$FFLAGS |
| 13792 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13793 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13794 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13795 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13797 | else |
| 13798 | FFLAGS=-g |
| 13799 | cat >conftest.$ac_ext <<_ACEOF |
| 13800 | program main |
| 13801 | |
| 13802 | end |
| 13803 | _ACEOF |
| 13804 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13805 | if { (ac_try="$ac_compile" |
| 13806 | case "(($ac_try" in |
| 13807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13808 | *) ac_try_echo=$ac_try;; |
| 13809 | esac |
| 13810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13811 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13812 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13814 | rm -f conftest.er1 |
| 13815 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13817 | (exit $ac_status); } && |
| 13818 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13819 | { (case "(($ac_try" in |
| 13820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13821 | *) ac_try_echo=$ac_try;; |
| 13822 | esac |
| 13823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13824 | (eval "$ac_try") 2>&5 |
| 13825 | ac_status=$? |
| 13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13827 | (exit $ac_status); }; } && |
| 13828 | { ac_try='test -s conftest.$ac_objext' |
| 13829 | { (case "(($ac_try" in |
| 13830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13831 | *) ac_try_echo=$ac_try;; |
| 13832 | esac |
| 13833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13834 | (eval "$ac_try") 2>&5 |
| 13835 | ac_status=$? |
| 13836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13837 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13838 | ac_cv_prog_f77_g=yes |
| 13839 | else |
| 13840 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13843 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13844 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13845 | |
| 13846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13847 | |
| 13848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13849 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13850 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13851 | if test "$ac_test_FFLAGS" = set; then |
| 13852 | FFLAGS=$ac_save_FFLAGS |
| 13853 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13854 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13855 | FFLAGS="-g -O2" |
| 13856 | else |
| 13857 | FFLAGS="-g" |
| 13858 | fi |
| 13859 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13860 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13861 | FFLAGS="-O2" |
| 13862 | else |
| 13863 | FFLAGS= |
| 13864 | fi |
| 13865 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13866 | |
| 13867 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13868 | ac_ext=c |
| 13869 | ac_cpp='$CPP $CPPFLAGS' |
| 13870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13873 | |
| 13874 | |
| 13875 | |
| 13876 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13877 | |
| 13878 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13879 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13880 | 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] | 13881 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13883 | else |
| 13884 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13885 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13886 | |
| 13887 | case $build_os in |
| 13888 | msdosdjgpp*) |
| 13889 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13890 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13891 | # during glob expansion). Even if it were fixed, the result of this |
| 13892 | # check would be larger than it should be. |
| 13893 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13894 | ;; |
| 13895 | |
| 13896 | gnu*) |
| 13897 | # Under GNU Hurd, this test is not required because there is |
| 13898 | # no limit to the length of command line arguments. |
| 13899 | # Libtool will interpret -1 as no limit whatsoever |
| 13900 | lt_cv_sys_max_cmd_len=-1; |
| 13901 | ;; |
| 13902 | |
| 13903 | cygwin* | mingw*) |
| 13904 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13905 | # about 5 minutes as the teststring grows exponentially. |
| 13906 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13907 | # you end up with a "frozen" computer, even though with patience |
| 13908 | # the test eventually succeeds (with a max line length of 256k). |
| 13909 | # Instead, let's just punt: use the minimum linelength reported by |
| 13910 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13911 | lt_cv_sys_max_cmd_len=8192; |
| 13912 | ;; |
| 13913 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13914 | amigaos*) |
| 13915 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13916 | # So we just punt and use a minimum line length of 8192. |
| 13917 | lt_cv_sys_max_cmd_len=8192; |
| 13918 | ;; |
| 13919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13920 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13921 | # This has been around since 386BSD, at least. Likely further. |
| 13922 | if test -x /sbin/sysctl; then |
| 13923 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13924 | elif test -x /usr/sbin/sysctl; then |
| 13925 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13926 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13927 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13928 | fi |
| 13929 | # And add a safety zone |
| 13930 | 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] | 13931 | 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] | 13932 | ;; |
| 13933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13934 | interix*) |
| 13935 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13936 | lt_cv_sys_max_cmd_len=196608 |
| 13937 | ;; |
| 13938 | |
| 13939 | osf*) |
| 13940 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13941 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13942 | # nice to cause kernel panics so lets avoid the loop below. |
| 13943 | # First set a reasonable default. |
| 13944 | lt_cv_sys_max_cmd_len=16384 |
| 13945 | # |
| 13946 | if test -x /sbin/sysconfig; then |
| 13947 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13948 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13949 | esac |
| 13950 | fi |
| 13951 | ;; |
| 13952 | sco3.2v5*) |
| 13953 | lt_cv_sys_max_cmd_len=102400 |
| 13954 | ;; |
| 13955 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13956 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13957 | if test -n "$kargmax"; then |
| 13958 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13959 | else |
| 13960 | lt_cv_sys_max_cmd_len=32768 |
| 13961 | fi |
| 13962 | ;; |
| 13963 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13964 | # If test is not a shell built-in, we'll probably end up computing a |
| 13965 | # maximum length that is only half of the actual maximum length, but |
| 13966 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13967 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13968 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13969 | = "XX$teststring") >/dev/null 2>&1 && |
| 13970 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13971 | lt_cv_sys_max_cmd_len=$new_result && |
| 13972 | test $i != 17 # 1/2 MB should be enough |
| 13973 | do |
| 13974 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13975 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13976 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13977 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13978 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13979 | # amounts of additional arguments before passing them to the linker. |
| 13980 | # It appears as though 1/2 is a usable value. |
| 13981 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13982 | ;; |
| 13983 | esac |
| 13984 | |
| 13985 | fi |
| 13986 | |
| 13987 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13989 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13990 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13991 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13992 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13993 | fi |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | |
| 13998 | # 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] | 13999 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 14000 | 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] | 14001 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14003 | else |
| 14004 | |
| 14005 | # These are sane defaults that work on at least a few old systems. |
| 14006 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 14007 | |
| 14008 | # Character class describing NM global symbol codes. |
| 14009 | symcode='[BCDEGRST]' |
| 14010 | |
| 14011 | # Regexp to match symbols that can be accessed directly from C. |
| 14012 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 14013 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14014 | # Transform an extracted symbol line into a proper C declaration |
| 14015 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 14016 | |
| 14017 | # Transform an extracted symbol line into symbol name and symbol address |
| 14018 | 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'" |
| 14019 | |
| 14020 | # Define system-specific variables. |
| 14021 | case $host_os in |
| 14022 | aix*) |
| 14023 | symcode='[BCDT]' |
| 14024 | ;; |
| 14025 | cygwin* | mingw* | pw32*) |
| 14026 | symcode='[ABCDGISTW]' |
| 14027 | ;; |
| 14028 | hpux*) # Its linker distinguishes data from code symbols |
| 14029 | if test "$host_cpu" = ia64; then |
| 14030 | symcode='[ABCDEGRST]' |
| 14031 | fi |
| 14032 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 14033 | 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'" |
| 14034 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14035 | linux*) |
| 14036 | if test "$host_cpu" = ia64; then |
| 14037 | symcode='[ABCDGIRSTW]' |
| 14038 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 14039 | 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'" |
| 14040 | fi |
| 14041 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14042 | irix* | nonstopux*) |
| 14043 | symcode='[BCDEGRST]' |
| 14044 | ;; |
| 14045 | osf*) |
| 14046 | symcode='[BCDEGQRST]' |
| 14047 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14048 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14049 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14050 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14051 | sco3.2v5*) |
| 14052 | symcode='[DT]' |
| 14053 | ;; |
| 14054 | sysv4.2uw2*) |
| 14055 | symcode='[DT]' |
| 14056 | ;; |
| 14057 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 14058 | symcode='[ABDT]' |
| 14059 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14060 | sysv4) |
| 14061 | symcode='[DFNSTU]' |
| 14062 | ;; |
| 14063 | esac |
| 14064 | |
| 14065 | # Handle CRLF in mingw tool chain |
| 14066 | opt_cr= |
| 14067 | case $build_os in |
| 14068 | mingw*) |
| 14069 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 14070 | ;; |
| 14071 | esac |
| 14072 | |
| 14073 | # If we're using GNU nm, then use its standard symbol codes. |
| 14074 | case `$NM -V 2>&1` in |
| 14075 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14076 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14077 | esac |
| 14078 | |
| 14079 | # Try without a prefix undercore, then with it. |
| 14080 | for ac_symprfx in "" "_"; do |
| 14081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14082 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 14083 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 14084 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14085 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14086 | 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] | 14087 | |
| 14088 | # Check to see that the pipe works correctly. |
| 14089 | pipe_works=no |
| 14090 | |
| 14091 | rm -f conftest* |
| 14092 | cat > conftest.$ac_ext <<EOF |
| 14093 | #ifdef __cplusplus |
| 14094 | extern "C" { |
| 14095 | #endif |
| 14096 | char nm_test_var; |
| 14097 | void nm_test_func(){} |
| 14098 | #ifdef __cplusplus |
| 14099 | } |
| 14100 | #endif |
| 14101 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 14102 | EOF |
| 14103 | |
| 14104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14105 | (eval $ac_compile) 2>&5 |
| 14106 | ac_status=$? |
| 14107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14108 | (exit $ac_status); }; then |
| 14109 | # Now try to grab the symbols. |
| 14110 | nlist=conftest.nm |
| 14111 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 14112 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 14113 | ac_status=$? |
| 14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14115 | (exit $ac_status); } && test -s "$nlist"; then |
| 14116 | # Try sorting and uniquifying the output. |
| 14117 | if sort "$nlist" | uniq > "$nlist"T; then |
| 14118 | mv -f "$nlist"T "$nlist" |
| 14119 | else |
| 14120 | rm -f "$nlist"T |
| 14121 | fi |
| 14122 | |
| 14123 | # Make sure that we snagged all the symbols we need. |
| 14124 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 14125 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 14126 | cat <<EOF > conftest.$ac_ext |
| 14127 | #ifdef __cplusplus |
| 14128 | extern "C" { |
| 14129 | #endif |
| 14130 | |
| 14131 | EOF |
| 14132 | # Now generate the symbol file. |
| 14133 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 14134 | |
| 14135 | cat <<EOF >> conftest.$ac_ext |
| 14136 | #if defined (__STDC__) && __STDC__ |
| 14137 | # define lt_ptr_t void * |
| 14138 | #else |
| 14139 | # define lt_ptr_t char * |
| 14140 | # define const |
| 14141 | #endif |
| 14142 | |
| 14143 | /* The mapping between symbol names and symbols. */ |
| 14144 | const struct { |
| 14145 | const char *name; |
| 14146 | lt_ptr_t address; |
| 14147 | } |
| 14148 | lt_preloaded_symbols[] = |
| 14149 | { |
| 14150 | EOF |
| 14151 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 14152 | cat <<\EOF >> conftest.$ac_ext |
| 14153 | {0, (lt_ptr_t) 0} |
| 14154 | }; |
| 14155 | |
| 14156 | #ifdef __cplusplus |
| 14157 | } |
| 14158 | #endif |
| 14159 | EOF |
| 14160 | # Now try linking the two files. |
| 14161 | mv conftest.$ac_objext conftstm.$ac_objext |
| 14162 | lt_save_LIBS="$LIBS" |
| 14163 | lt_save_CFLAGS="$CFLAGS" |
| 14164 | LIBS="conftstm.$ac_objext" |
| 14165 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 14166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14167 | (eval $ac_link) 2>&5 |
| 14168 | ac_status=$? |
| 14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14170 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 14171 | pipe_works=yes |
| 14172 | fi |
| 14173 | LIBS="$lt_save_LIBS" |
| 14174 | CFLAGS="$lt_save_CFLAGS" |
| 14175 | else |
| 14176 | echo "cannot find nm_test_func in $nlist" >&5 |
| 14177 | fi |
| 14178 | else |
| 14179 | echo "cannot find nm_test_var in $nlist" >&5 |
| 14180 | fi |
| 14181 | else |
| 14182 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 14183 | fi |
| 14184 | else |
| 14185 | echo "$progname: failed program was:" >&5 |
| 14186 | cat conftest.$ac_ext >&5 |
| 14187 | fi |
| 14188 | rm -f conftest* conftst* |
| 14189 | |
| 14190 | # Do not use the global_symbol_pipe unless it works. |
| 14191 | if test "$pipe_works" = yes; then |
| 14192 | break |
| 14193 | else |
| 14194 | lt_cv_sys_global_symbol_pipe= |
| 14195 | fi |
| 14196 | done |
| 14197 | |
| 14198 | fi |
| 14199 | |
| 14200 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 14201 | lt_cv_sys_global_symbol_to_cdecl= |
| 14202 | fi |
| 14203 | 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] | 14204 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 14205 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14206 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14207 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 14208 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14209 | fi |
| 14210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14211 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 14212 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14213 | if test "${lt_cv_objdir+set}" = set; then |
| 14214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14215 | else |
| 14216 | rm -f .libs 2>/dev/null |
| 14217 | mkdir .libs 2>/dev/null |
| 14218 | if test -d .libs; then |
| 14219 | lt_cv_objdir=.libs |
| 14220 | else |
| 14221 | # MS-DOS does not allow filenames that begin with a dot. |
| 14222 | lt_cv_objdir=_libs |
| 14223 | fi |
| 14224 | rmdir .libs 2>/dev/null |
| 14225 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14226 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 14227 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14228 | objdir=$lt_cv_objdir |
| 14229 | |
| 14230 | |
| 14231 | |
| 14232 | |
| 14233 | |
| 14234 | case $host_os in |
| 14235 | aix3*) |
| 14236 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14237 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14238 | # vanish in a puff of smoke. |
| 14239 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14240 | COLLECT_NAMES= |
| 14241 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14242 | fi |
| 14243 | ;; |
| 14244 | esac |
| 14245 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14246 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 14247 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14248 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14249 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 14250 | |
| 14251 | # Same as above, but do not quote variable references. |
| 14252 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 14253 | |
| 14254 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 14255 | # double_quote_subst'ed string. |
| 14256 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 14257 | |
| 14258 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 14259 | no_glob_subst='s/\*/\\\*/g' |
| 14260 | |
| 14261 | # Constants: |
| 14262 | rm="rm -f" |
| 14263 | |
| 14264 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14265 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14266 | can_build_shared=yes |
| 14267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14268 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14269 | # which needs '.lib'). |
| 14270 | libext=a |
| 14271 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14272 | ofile="$default_ofile" |
| 14273 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 14274 | |
| 14275 | if test -n "$ac_tool_prefix"; then |
| 14276 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 14277 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14280 | if test "${ac_cv_prog_AR+set}" = set; then |
| 14281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14282 | else |
| 14283 | if test -n "$AR"; then |
| 14284 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 14285 | else |
| 14286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14287 | for as_dir in $PATH |
| 14288 | do |
| 14289 | IFS=$as_save_IFS |
| 14290 | test -z "$as_dir" && as_dir=. |
| 14291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14292 | 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] | 14293 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 14294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14295 | break 2 |
| 14296 | fi |
| 14297 | done |
| 14298 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14299 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14300 | |
| 14301 | fi |
| 14302 | fi |
| 14303 | AR=$ac_cv_prog_AR |
| 14304 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14305 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 14306 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14307 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14309 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14310 | fi |
| 14311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14312 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14313 | fi |
| 14314 | if test -z "$ac_cv_prog_AR"; then |
| 14315 | ac_ct_AR=$AR |
| 14316 | # Extract the first word of "ar", so it can be a program name with args. |
| 14317 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14318 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14320 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 14321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14322 | else |
| 14323 | if test -n "$ac_ct_AR"; then |
| 14324 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 14325 | else |
| 14326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14327 | for as_dir in $PATH |
| 14328 | do |
| 14329 | IFS=$as_save_IFS |
| 14330 | test -z "$as_dir" && as_dir=. |
| 14331 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14332 | 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] | 14333 | ac_cv_prog_ac_ct_AR="ar" |
| 14334 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14335 | break 2 |
| 14336 | fi |
| 14337 | done |
| 14338 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14339 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14340 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14341 | fi |
| 14342 | fi |
| 14343 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14344 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14345 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14346 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14347 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14348 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14349 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14350 | fi |
| 14351 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14352 | if test "x$ac_ct_AR" = x; then |
| 14353 | AR="false" |
| 14354 | else |
| 14355 | case $cross_compiling:$ac_tool_warned in |
| 14356 | yes:) |
| 14357 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14358 | whose name does not start with the host triplet. If you think this |
| 14359 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14360 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14361 | whose name does not start with the host triplet. If you think this |
| 14362 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14363 | ac_tool_warned=yes ;; |
| 14364 | esac |
| 14365 | AR=$ac_ct_AR |
| 14366 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14367 | else |
| 14368 | AR="$ac_cv_prog_AR" |
| 14369 | fi |
| 14370 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14371 | if test -n "$ac_tool_prefix"; then |
| 14372 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14373 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14376 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14378 | else |
| 14379 | if test -n "$RANLIB"; then |
| 14380 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14381 | else |
| 14382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14383 | for as_dir in $PATH |
| 14384 | do |
| 14385 | IFS=$as_save_IFS |
| 14386 | test -z "$as_dir" && as_dir=. |
| 14387 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14388 | 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] | 14389 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14391 | break 2 |
| 14392 | fi |
| 14393 | done |
| 14394 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14395 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14396 | |
| 14397 | fi |
| 14398 | fi |
| 14399 | RANLIB=$ac_cv_prog_RANLIB |
| 14400 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14401 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14402 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14403 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14404 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14405 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14406 | fi |
| 14407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14408 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14409 | fi |
| 14410 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14411 | ac_ct_RANLIB=$RANLIB |
| 14412 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14413 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14414 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14416 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14418 | else |
| 14419 | if test -n "$ac_ct_RANLIB"; then |
| 14420 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14421 | else |
| 14422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14423 | for as_dir in $PATH |
| 14424 | do |
| 14425 | IFS=$as_save_IFS |
| 14426 | test -z "$as_dir" && as_dir=. |
| 14427 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14428 | 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] | 14429 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14431 | break 2 |
| 14432 | fi |
| 14433 | done |
| 14434 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14435 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14437 | fi |
| 14438 | fi |
| 14439 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14440 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14441 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14442 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14443 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14444 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14445 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14446 | fi |
| 14447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14448 | if test "x$ac_ct_RANLIB" = x; then |
| 14449 | RANLIB=":" |
| 14450 | else |
| 14451 | case $cross_compiling:$ac_tool_warned in |
| 14452 | yes:) |
| 14453 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14454 | whose name does not start with the host triplet. If you think this |
| 14455 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14456 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14457 | whose name does not start with the host triplet. If you think this |
| 14458 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14459 | ac_tool_warned=yes ;; |
| 14460 | esac |
| 14461 | RANLIB=$ac_ct_RANLIB |
| 14462 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14463 | else |
| 14464 | RANLIB="$ac_cv_prog_RANLIB" |
| 14465 | fi |
| 14466 | |
| 14467 | if test -n "$ac_tool_prefix"; then |
| 14468 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14469 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14470 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14472 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14474 | else |
| 14475 | if test -n "$STRIP"; then |
| 14476 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14477 | else |
| 14478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14479 | for as_dir in $PATH |
| 14480 | do |
| 14481 | IFS=$as_save_IFS |
| 14482 | test -z "$as_dir" && as_dir=. |
| 14483 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14484 | 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] | 14485 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14487 | break 2 |
| 14488 | fi |
| 14489 | done |
| 14490 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14491 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14492 | |
| 14493 | fi |
| 14494 | fi |
| 14495 | STRIP=$ac_cv_prog_STRIP |
| 14496 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14497 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14498 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14499 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14501 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14502 | fi |
| 14503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14504 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14505 | fi |
| 14506 | if test -z "$ac_cv_prog_STRIP"; then |
| 14507 | ac_ct_STRIP=$STRIP |
| 14508 | # Extract the first word of "strip", so it can be a program name with args. |
| 14509 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14512 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14514 | else |
| 14515 | if test -n "$ac_ct_STRIP"; then |
| 14516 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14517 | else |
| 14518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14519 | for as_dir in $PATH |
| 14520 | do |
| 14521 | IFS=$as_save_IFS |
| 14522 | test -z "$as_dir" && as_dir=. |
| 14523 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14524 | 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] | 14525 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14527 | break 2 |
| 14528 | fi |
| 14529 | done |
| 14530 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14531 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14532 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14533 | fi |
| 14534 | fi |
| 14535 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14536 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14537 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14538 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14539 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14540 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14541 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14542 | fi |
| 14543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14544 | if test "x$ac_ct_STRIP" = x; then |
| 14545 | STRIP=":" |
| 14546 | else |
| 14547 | case $cross_compiling:$ac_tool_warned in |
| 14548 | yes:) |
| 14549 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14550 | whose name does not start with the host triplet. If you think this |
| 14551 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14552 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14553 | whose name does not start with the host triplet. If you think this |
| 14554 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14555 | ac_tool_warned=yes ;; |
| 14556 | esac |
| 14557 | STRIP=$ac_ct_STRIP |
| 14558 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14559 | else |
| 14560 | STRIP="$ac_cv_prog_STRIP" |
| 14561 | fi |
| 14562 | |
| 14563 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14564 | old_CC="$CC" |
| 14565 | old_CFLAGS="$CFLAGS" |
| 14566 | |
| 14567 | # Set sane defaults for various variables |
| 14568 | test -z "$AR" && AR=ar |
| 14569 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14570 | test -z "$AS" && AS=as |
| 14571 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14572 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14573 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14574 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14575 | test -z "$LD" && LD=ld |
| 14576 | test -z "$LN_S" && LN_S="ln -s" |
| 14577 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14578 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14579 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14580 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14581 | test -z "$RANLIB" && RANLIB=: |
| 14582 | test -z "$STRIP" && STRIP=: |
| 14583 | test -z "$ac_objext" && ac_objext=o |
| 14584 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14585 | # Determine commands to create old-style static archives. |
| 14586 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14587 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14588 | old_postuninstall_cmds= |
| 14589 | |
| 14590 | if test -n "$RANLIB"; then |
| 14591 | case $host_os in |
| 14592 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14593 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14594 | ;; |
| 14595 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14596 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14597 | ;; |
| 14598 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14599 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14600 | fi |
| 14601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14602 | for cc_temp in $compiler""; do |
| 14603 | case $cc_temp in |
| 14604 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14605 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14606 | \-*) ;; |
| 14607 | *) break;; |
| 14608 | esac |
| 14609 | done |
| 14610 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14611 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14612 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14613 | # Only perform the check for file, if the check method requires it |
| 14614 | case $deplibs_check_method in |
| 14615 | file_magic*) |
| 14616 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14617 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14618 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14619 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14621 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14622 | case $MAGIC_CMD in |
| 14623 | [\\/*] | ?:[\\/]*) |
| 14624 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14625 | ;; |
| 14626 | *) |
| 14627 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14628 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14629 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14630 | for ac_dir in $ac_dummy; do |
| 14631 | IFS="$lt_save_ifs" |
| 14632 | test -z "$ac_dir" && ac_dir=. |
| 14633 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14634 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14635 | if test -n "$file_magic_test_file"; then |
| 14636 | case $deplibs_check_method in |
| 14637 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14638 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14639 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14640 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14641 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14642 | : |
| 14643 | else |
| 14644 | cat <<EOF 1>&2 |
| 14645 | |
| 14646 | *** Warning: the command libtool uses to detect shared libraries, |
| 14647 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14648 | *** The result is that libtool may fail to recognize shared libraries |
| 14649 | *** as such. This will affect the creation of libtool libraries that |
| 14650 | *** depend on shared libraries, but programs linked with such libtool |
| 14651 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14652 | *** may want to report the problem to your system manager and/or to |
| 14653 | *** bug-libtool@gnu.org |
| 14654 | |
| 14655 | EOF |
| 14656 | fi ;; |
| 14657 | esac |
| 14658 | fi |
| 14659 | break |
| 14660 | fi |
| 14661 | done |
| 14662 | IFS="$lt_save_ifs" |
| 14663 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14664 | ;; |
| 14665 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14666 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14667 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14668 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14669 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14670 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14671 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14672 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14673 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14674 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14675 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14676 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14677 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14678 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14679 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14680 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14681 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14683 | else |
| 14684 | case $MAGIC_CMD in |
| 14685 | [\\/*] | ?:[\\/]*) |
| 14686 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14687 | ;; |
| 14688 | *) |
| 14689 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14690 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14691 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14692 | for ac_dir in $ac_dummy; do |
| 14693 | IFS="$lt_save_ifs" |
| 14694 | test -z "$ac_dir" && ac_dir=. |
| 14695 | if test -f $ac_dir/file; then |
| 14696 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14697 | if test -n "$file_magic_test_file"; then |
| 14698 | case $deplibs_check_method in |
| 14699 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14700 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14701 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14702 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14703 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14704 | : |
| 14705 | else |
| 14706 | cat <<EOF 1>&2 |
| 14707 | |
| 14708 | *** Warning: the command libtool uses to detect shared libraries, |
| 14709 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14710 | *** The result is that libtool may fail to recognize shared libraries |
| 14711 | *** as such. This will affect the creation of libtool libraries that |
| 14712 | *** depend on shared libraries, but programs linked with such libtool |
| 14713 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14714 | *** may want to report the problem to your system manager and/or to |
| 14715 | *** bug-libtool@gnu.org |
| 14716 | |
| 14717 | EOF |
| 14718 | fi ;; |
| 14719 | esac |
| 14720 | fi |
| 14721 | break |
| 14722 | fi |
| 14723 | done |
| 14724 | IFS="$lt_save_ifs" |
| 14725 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14726 | ;; |
| 14727 | esac |
| 14728 | fi |
| 14729 | |
| 14730 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14731 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14732 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14733 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14734 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14735 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14736 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14737 | fi |
| 14738 | |
| 14739 | else |
| 14740 | MAGIC_CMD=: |
| 14741 | fi |
| 14742 | fi |
| 14743 | |
| 14744 | fi |
| 14745 | ;; |
| 14746 | esac |
| 14747 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14748 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14749 | enable_win32_dll=no |
| 14750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14751 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14752 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14753 | enableval=$enable_libtool_lock; |
| 14754 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14755 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14756 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14759 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14760 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14761 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14762 | else |
| 14763 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14764 | fi |
| 14765 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14766 | test -z "$pic_mode" && pic_mode=default |
| 14767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14768 | # Use C for the default configuration in the libtool script |
| 14769 | tagname= |
| 14770 | lt_save_CC="$CC" |
| 14771 | ac_ext=c |
| 14772 | ac_cpp='$CPP $CPPFLAGS' |
| 14773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14776 | |
| 14777 | |
| 14778 | # Source file extension for C test sources. |
| 14779 | ac_ext=c |
| 14780 | |
| 14781 | # Object file extension for compiled C test sources. |
| 14782 | objext=o |
| 14783 | objext=$objext |
| 14784 | |
| 14785 | # Code to be used in simple compile tests |
| 14786 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14787 | |
| 14788 | # Code to be used in simple link tests |
| 14789 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14790 | |
| 14791 | |
| 14792 | # If no C compiler was specified, use CC. |
| 14793 | LTCC=${LTCC-"$CC"} |
| 14794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14795 | # If no C compiler flags were specified, use CFLAGS. |
| 14796 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14797 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14798 | # Allow CC to be a program name with arguments. |
| 14799 | compiler=$CC |
| 14800 | |
| 14801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14802 | # save warnings/boilerplate of simple test code |
| 14803 | ac_outfile=conftest.$ac_objext |
| 14804 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14805 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14806 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14807 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14809 | ac_outfile=conftest.$ac_objext |
| 14810 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14811 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14812 | _lt_linker_boilerplate=`cat conftest.err` |
| 14813 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14814 | |
| 14815 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14816 | |
| 14817 | lt_prog_compiler_no_builtin_flag= |
| 14818 | |
| 14819 | if test "$GCC" = yes; then |
| 14820 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14821 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14823 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14824 | 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] | 14825 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14827 | else |
| 14828 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14829 | ac_outfile=conftest.$ac_objext |
| 14830 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14831 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14832 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14833 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14834 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14835 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14836 | # The option is referenced via a variable to avoid confusing sed. |
| 14837 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14838 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14839 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14840 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 14841 | (eval echo "\"\$as_me:14841: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14842 | (eval "$lt_compile" 2>conftest.err) |
| 14843 | ac_status=$? |
| 14844 | cat conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 14845 | echo "$as_me:14845: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14846 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14847 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14848 | # So say no if there are warnings other than the usual output. |
| 14849 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14850 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14851 | 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] | 14852 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14853 | fi |
| 14854 | fi |
| 14855 | $rm conftest* |
| 14856 | |
| 14857 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14858 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14859 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14860 | |
| 14861 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14862 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14863 | else |
| 14864 | : |
| 14865 | fi |
| 14866 | |
| 14867 | fi |
| 14868 | |
| 14869 | lt_prog_compiler_wl= |
| 14870 | lt_prog_compiler_pic= |
| 14871 | lt_prog_compiler_static= |
| 14872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14873 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14874 | 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] | 14875 | |
| 14876 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14877 | lt_prog_compiler_wl='-Wl,' |
| 14878 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14879 | |
| 14880 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14881 | aix*) |
| 14882 | # All AIX code is PIC. |
| 14883 | if test "$host_cpu" = ia64; then |
| 14884 | # AIX 5 now supports IA64 processor |
| 14885 | lt_prog_compiler_static='-Bstatic' |
| 14886 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14887 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14888 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14889 | amigaos*) |
| 14890 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14891 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14892 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14893 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14894 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14895 | |
| 14896 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14897 | # PIC is the default for these OSes. |
| 14898 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14899 | |
| 14900 | mingw* | pw32* | os2*) |
| 14901 | # This hack is so that the source file can tell whether it is being |
| 14902 | # built for inclusion in a dll (and should export symbols for example). |
| 14903 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14904 | ;; |
| 14905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14906 | darwin* | rhapsody*) |
| 14907 | # PIC is the default on this platform |
| 14908 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14909 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14910 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14912 | interix3*) |
| 14913 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14914 | # Instead, we relocate shared libraries at runtime. |
| 14915 | ;; |
| 14916 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14917 | msdosdjgpp*) |
| 14918 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14919 | # on systems that don't support them. |
| 14920 | lt_prog_compiler_can_build_shared=no |
| 14921 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14922 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14923 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14924 | sysv4*MP*) |
| 14925 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14926 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14927 | fi |
| 14928 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14929 | |
| 14930 | hpux*) |
| 14931 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14932 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14933 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14934 | hppa*64*|ia64*) |
| 14935 | # +Z the default |
| 14936 | ;; |
| 14937 | *) |
| 14938 | lt_prog_compiler_pic='-fPIC' |
| 14939 | ;; |
| 14940 | esac |
| 14941 | ;; |
| 14942 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14943 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14944 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14945 | ;; |
| 14946 | esac |
| 14947 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14948 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14949 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14950 | aix*) |
| 14951 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14952 | if test "$host_cpu" = ia64; then |
| 14953 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14954 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14955 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14956 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14957 | fi |
| 14958 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14959 | darwin*) |
| 14960 | # PIC is the default on this platform |
| 14961 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14962 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14963 | xlc*) |
| 14964 | lt_prog_compiler_pic='-qnocommon' |
| 14965 | lt_prog_compiler_wl='-Wl,' |
| 14966 | ;; |
| 14967 | esac |
| 14968 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14969 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14970 | mingw* | pw32* | os2*) |
| 14971 | # This hack is so that the source file can tell whether it is being |
| 14972 | # built for inclusion in a dll (and should export symbols for example). |
| 14973 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14974 | ;; |
| 14975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14976 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14977 | lt_prog_compiler_wl='-Wl,' |
| 14978 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14979 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14980 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14981 | hppa*64*|ia64*) |
| 14982 | # +Z the default |
| 14983 | ;; |
| 14984 | *) |
| 14985 | lt_prog_compiler_pic='+Z' |
| 14986 | ;; |
| 14987 | esac |
| 14988 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14989 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14990 | ;; |
| 14991 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14992 | irix5* | irix6* | nonstopux*) |
| 14993 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14994 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14995 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14996 | ;; |
| 14997 | |
| 14998 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14999 | lt_prog_compiler_pic='-KPIC' |
| 15000 | lt_prog_compiler_static='-Bstatic' |
| 15001 | ;; |
| 15002 | |
| 15003 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15004 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15005 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15006 | lt_prog_compiler_wl='-Wl,' |
| 15007 | lt_prog_compiler_pic='-KPIC' |
| 15008 | lt_prog_compiler_static='-static' |
| 15009 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15010 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 15011 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 15012 | # which looks to be a dead project) |
| 15013 | lt_prog_compiler_wl='-Wl,' |
| 15014 | lt_prog_compiler_pic='-fpic' |
| 15015 | lt_prog_compiler_static='-Bstatic' |
| 15016 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15017 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15018 | lt_prog_compiler_wl='-Wl,' |
| 15019 | # All Alpha code is PIC. |
| 15020 | lt_prog_compiler_static='-non_shared' |
| 15021 | ;; |
| 15022 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15023 | ;; |
| 15024 | |
| 15025 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15026 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15027 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15028 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15029 | ;; |
| 15030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15031 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15032 | lt_prog_compiler_pic='-KPIC' |
| 15033 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15034 | case $cc_basename in |
| 15035 | f77* | f90* | f95*) |
| 15036 | lt_prog_compiler_wl='-Qoption ld ';; |
| 15037 | *) |
| 15038 | lt_prog_compiler_wl='-Wl,';; |
| 15039 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15040 | ;; |
| 15041 | |
| 15042 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15043 | lt_prog_compiler_wl='-Qoption ld ' |
| 15044 | lt_prog_compiler_pic='-PIC' |
| 15045 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15046 | ;; |
| 15047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15048 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15049 | lt_prog_compiler_wl='-Wl,' |
| 15050 | lt_prog_compiler_pic='-KPIC' |
| 15051 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15052 | ;; |
| 15053 | |
| 15054 | sysv4*MP*) |
| 15055 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15056 | lt_prog_compiler_pic='-Kconform_pic' |
| 15057 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15058 | fi |
| 15059 | ;; |
| 15060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15061 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 15062 | lt_prog_compiler_wl='-Wl,' |
| 15063 | lt_prog_compiler_pic='-KPIC' |
| 15064 | lt_prog_compiler_static='-Bstatic' |
| 15065 | ;; |
| 15066 | |
| 15067 | unicos*) |
| 15068 | lt_prog_compiler_wl='-Wl,' |
| 15069 | lt_prog_compiler_can_build_shared=no |
| 15070 | ;; |
| 15071 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15072 | uts4*) |
| 15073 | lt_prog_compiler_pic='-pic' |
| 15074 | lt_prog_compiler_static='-Bstatic' |
| 15075 | ;; |
| 15076 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15077 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15078 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15079 | ;; |
| 15080 | esac |
| 15081 | fi |
| 15082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15083 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 15084 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15085 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15086 | # |
| 15087 | # Check to make sure the PIC flag actually works. |
| 15088 | # |
| 15089 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15091 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 15092 | 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] | 15093 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15095 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15096 | lt_prog_compiler_pic_works=no |
| 15097 | ac_outfile=conftest.$ac_objext |
| 15098 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15099 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 15100 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15101 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15102 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15103 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15104 | # The option is referenced via a variable to avoid confusing sed. |
| 15105 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15106 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15107 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15108 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 15109 | (eval echo "\"\$as_me:15109: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15110 | (eval "$lt_compile" 2>conftest.err) |
| 15111 | ac_status=$? |
| 15112 | cat conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 15113 | echo "$as_me:15113: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15114 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15115 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15116 | # So say no if there are warnings other than the usual output. |
| 15117 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15118 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15119 | 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] | 15120 | lt_prog_compiler_pic_works=yes |
| 15121 | fi |
| 15122 | fi |
| 15123 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15124 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15125 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15126 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 15127 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15129 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 15130 | case $lt_prog_compiler_pic in |
| 15131 | "" | " "*) ;; |
| 15132 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 15133 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15134 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15135 | lt_prog_compiler_pic= |
| 15136 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15137 | fi |
| 15138 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15139 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15140 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15141 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15142 | *djgpp*) |
| 15143 | lt_prog_compiler_pic= |
| 15144 | ;; |
| 15145 | *) |
| 15146 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 15147 | ;; |
| 15148 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15150 | # |
| 15151 | # Check to make sure the static flag actually works. |
| 15152 | # |
| 15153 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15154 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15155 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 15156 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 15157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15158 | else |
| 15159 | lt_prog_compiler_static_works=no |
| 15160 | save_LDFLAGS="$LDFLAGS" |
| 15161 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15162 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15163 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15164 | # The linker can only warn and ignore the option if not recognized |
| 15165 | # So say no if there are warnings |
| 15166 | if test -s conftest.err; then |
| 15167 | # Append any errors to the config.log. |
| 15168 | cat conftest.err 1>&5 |
| 15169 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15170 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15171 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15172 | lt_prog_compiler_static_works=yes |
| 15173 | fi |
| 15174 | else |
| 15175 | lt_prog_compiler_static_works=yes |
| 15176 | fi |
| 15177 | fi |
| 15178 | $rm conftest* |
| 15179 | LDFLAGS="$save_LDFLAGS" |
| 15180 | |
| 15181 | fi |
| 15182 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 15183 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 15184 | |
| 15185 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 15186 | : |
| 15187 | else |
| 15188 | lt_prog_compiler_static= |
| 15189 | fi |
| 15190 | |
| 15191 | |
| 15192 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15193 | 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] | 15194 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15196 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15197 | lt_cv_prog_compiler_c_o=no |
| 15198 | $rm -r conftest 2>/dev/null |
| 15199 | mkdir conftest |
| 15200 | cd conftest |
| 15201 | mkdir out |
| 15202 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15203 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15204 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15205 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15206 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15207 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15208 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15209 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15210 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15211 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15212 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 15213 | (eval echo "\"\$as_me:15213: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15214 | (eval "$lt_compile" 2>out/conftest.err) |
| 15215 | ac_status=$? |
| 15216 | cat out/conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 15217 | echo "$as_me:15217: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15218 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15219 | then |
| 15220 | # The compiler can only warn and ignore the option if not recognized |
| 15221 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15222 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15223 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15224 | 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] | 15225 | lt_cv_prog_compiler_c_o=yes |
| 15226 | fi |
| 15227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15228 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15229 | $rm conftest* |
| 15230 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15231 | # template instantiation |
| 15232 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15233 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15234 | cd .. |
| 15235 | rmdir conftest |
| 15236 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15237 | |
| 15238 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15239 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15240 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15241 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15242 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15243 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15244 | 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] | 15245 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15246 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15247 | 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] | 15248 | hard_links=yes |
| 15249 | $rm conftest* |
| 15250 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15251 | touch conftest.a |
| 15252 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15253 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15254 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15255 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15256 | if test "$hard_links" = no; then |
| 15257 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15258 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15259 | need_locks=warn |
| 15260 | fi |
| 15261 | else |
| 15262 | need_locks=no |
| 15263 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15265 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15266 | 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] | 15267 | |
| 15268 | runpath_var= |
| 15269 | allow_undefined_flag= |
| 15270 | enable_shared_with_static_runtimes=no |
| 15271 | archive_cmds= |
| 15272 | archive_expsym_cmds= |
| 15273 | old_archive_From_new_cmds= |
| 15274 | old_archive_from_expsyms_cmds= |
| 15275 | export_dynamic_flag_spec= |
| 15276 | whole_archive_flag_spec= |
| 15277 | thread_safe_flag_spec= |
| 15278 | hardcode_libdir_flag_spec= |
| 15279 | hardcode_libdir_flag_spec_ld= |
| 15280 | hardcode_libdir_separator= |
| 15281 | hardcode_direct=no |
| 15282 | hardcode_minus_L=no |
| 15283 | hardcode_shlibpath_var=unsupported |
| 15284 | link_all_deplibs=unknown |
| 15285 | hardcode_automatic=no |
| 15286 | module_cmds= |
| 15287 | module_expsym_cmds= |
| 15288 | always_export_symbols=no |
| 15289 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15290 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15291 | # included in the symbol list |
| 15292 | include_expsyms= |
| 15293 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15294 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15295 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15296 | # as well as any symbol that contains `d'. |
| 15297 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 15298 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15299 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15300 | # the symbol is explicitly referenced. Since portable code cannot |
| 15301 | # rely on this symbol name, it's probably fine to never include it in |
| 15302 | # preloaded symbol tables. |
| 15303 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15304 | # Just being paranoid about ensuring that cc_basename is set. |
| 15305 | for cc_temp in $compiler""; do |
| 15306 | case $cc_temp in |
| 15307 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15308 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15309 | \-*) ;; |
| 15310 | *) break;; |
| 15311 | esac |
| 15312 | done |
| 15313 | 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] | 15314 | |
| 15315 | case $host_os in |
| 15316 | cygwin* | mingw* | pw32*) |
| 15317 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15318 | # When not using gcc, we currently assume that we are using |
| 15319 | # Microsoft Visual C++. |
| 15320 | if test "$GCC" != yes; then |
| 15321 | with_gnu_ld=no |
| 15322 | fi |
| 15323 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15324 | interix*) |
| 15325 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15326 | with_gnu_ld=yes |
| 15327 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15328 | openbsd*) |
| 15329 | with_gnu_ld=no |
| 15330 | ;; |
| 15331 | esac |
| 15332 | |
| 15333 | ld_shlibs=yes |
| 15334 | if test "$with_gnu_ld" = yes; then |
| 15335 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15336 | wlarc='${wl}' |
| 15337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15338 | # Set some defaults for GNU ld with shared library support. These |
| 15339 | # are reset later if shared libraries are not supported. Putting them |
| 15340 | # here allows them to be overridden if necessary. |
| 15341 | runpath_var=LD_RUN_PATH |
| 15342 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15343 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15344 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15345 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15346 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15347 | else |
| 15348 | whole_archive_flag_spec= |
| 15349 | fi |
| 15350 | supports_anon_versioning=no |
| 15351 | case `$LD -v 2>/dev/null` in |
| 15352 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15353 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15354 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15355 | *\ 2.11.*) ;; # other 2.11 versions |
| 15356 | *) supports_anon_versioning=yes ;; |
| 15357 | esac |
| 15358 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15359 | # See if GNU ld supports shared libraries. |
| 15360 | case $host_os in |
| 15361 | aix3* | aix4* | aix5*) |
| 15362 | # On AIX/PPC, the GNU linker is very broken |
| 15363 | if test "$host_cpu" != ia64; then |
| 15364 | ld_shlibs=no |
| 15365 | cat <<EOF 1>&2 |
| 15366 | |
| 15367 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15368 | *** to be unable to reliably create shared libraries on AIX. |
| 15369 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15370 | *** really care for shared libraries, you may want to modify your PATH |
| 15371 | *** so that a non-GNU linker is found, and then restart. |
| 15372 | |
| 15373 | EOF |
| 15374 | fi |
| 15375 | ;; |
| 15376 | |
| 15377 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15378 | 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] | 15379 | hardcode_libdir_flag_spec='-L$libdir' |
| 15380 | hardcode_minus_L=yes |
| 15381 | |
| 15382 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15383 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15384 | # to version 4, is to share data among multiple programs linked |
| 15385 | # with the same dynamic library. Since this doesn't match the |
| 15386 | # behavior of shared libraries on other platforms, we can't use |
| 15387 | # them. |
| 15388 | ld_shlibs=no |
| 15389 | ;; |
| 15390 | |
| 15391 | beos*) |
| 15392 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15393 | allow_undefined_flag=unsupported |
| 15394 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15395 | # support --undefined. This deserves some investigation. FIXME |
| 15396 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15397 | else |
| 15398 | ld_shlibs=no |
| 15399 | fi |
| 15400 | ;; |
| 15401 | |
| 15402 | cygwin* | mingw* | pw32*) |
| 15403 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15404 | # as there is no search path for DLLs. |
| 15405 | hardcode_libdir_flag_spec='-L$libdir' |
| 15406 | allow_undefined_flag=unsupported |
| 15407 | always_export_symbols=no |
| 15408 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15409 | 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] | 15410 | |
| 15411 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15412 | 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] | 15413 | # If the export-symbols file already is a .def file (1st line |
| 15414 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15415 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15416 | cp $export_symbols $output_objdir/$soname.def; |
| 15417 | else |
| 15418 | echo EXPORTS > $output_objdir/$soname.def; |
| 15419 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15420 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15421 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15422 | else |
| 15423 | ld_shlibs=no |
| 15424 | fi |
| 15425 | ;; |
| 15426 | |
| 15427 | interix3*) |
| 15428 | hardcode_direct=no |
| 15429 | hardcode_shlibpath_var=no |
| 15430 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15431 | export_dynamic_flag_spec='${wl}-E' |
| 15432 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15433 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15434 | # default) and relocated if they conflict, which is a slow very memory |
| 15435 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15436 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15437 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15438 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15439 | 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' |
| 15440 | ;; |
| 15441 | |
| 15442 | linux*) |
| 15443 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15444 | tmp_addflag= |
| 15445 | case $cc_basename,$host_cpu in |
| 15446 | pgcc*) # Portland Group C compiler |
| 15447 | 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' |
| 15448 | tmp_addflag=' $pic_flag' |
| 15449 | ;; |
| 15450 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15451 | 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' |
| 15452 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15453 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15454 | tmp_addflag=' -i_dynamic' ;; |
| 15455 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15456 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15457 | ifc* | ifort*) # Intel Fortran compiler |
| 15458 | tmp_addflag=' -nofor_main' ;; |
| 15459 | esac |
| 15460 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15461 | |
| 15462 | if test $supports_anon_versioning = yes; then |
| 15463 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15464 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15465 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15466 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15467 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15468 | else |
| 15469 | ld_shlibs=no |
| 15470 | fi |
| 15471 | ;; |
| 15472 | |
| 15473 | netbsd*) |
| 15474 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15475 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15476 | wlarc= |
| 15477 | else |
| 15478 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15479 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15480 | fi |
| 15481 | ;; |
| 15482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15483 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15484 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15485 | ld_shlibs=no |
| 15486 | cat <<EOF 1>&2 |
| 15487 | |
| 15488 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15489 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15490 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15491 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15492 | *** your PATH or compiler configuration so that the native linker is |
| 15493 | *** used, and then restart. |
| 15494 | |
| 15495 | EOF |
| 15496 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15497 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15498 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15499 | else |
| 15500 | ld_shlibs=no |
| 15501 | fi |
| 15502 | ;; |
| 15503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15504 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15505 | case `$LD -v 2>&1` in |
| 15506 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15507 | ld_shlibs=no |
| 15508 | cat <<_LT_EOF 1>&2 |
| 15509 | |
| 15510 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15511 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15512 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15513 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15514 | *** your PATH or compiler configuration so that the native linker is |
| 15515 | *** used, and then restart. |
| 15516 | |
| 15517 | _LT_EOF |
| 15518 | ;; |
| 15519 | *) |
| 15520 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15521 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15522 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15523 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15524 | else |
| 15525 | ld_shlibs=no |
| 15526 | fi |
| 15527 | ;; |
| 15528 | esac |
| 15529 | ;; |
| 15530 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15531 | sunos4*) |
| 15532 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15533 | wlarc= |
| 15534 | hardcode_direct=yes |
| 15535 | hardcode_shlibpath_var=no |
| 15536 | ;; |
| 15537 | |
| 15538 | *) |
| 15539 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15540 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15541 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15542 | else |
| 15543 | ld_shlibs=no |
| 15544 | fi |
| 15545 | ;; |
| 15546 | esac |
| 15547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15548 | if test "$ld_shlibs" = no; then |
| 15549 | runpath_var= |
| 15550 | hardcode_libdir_flag_spec= |
| 15551 | export_dynamic_flag_spec= |
| 15552 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15553 | fi |
| 15554 | else |
| 15555 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15556 | case $host_os in |
| 15557 | aix3*) |
| 15558 | allow_undefined_flag=unsupported |
| 15559 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15560 | 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] | 15561 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15562 | # are no directories specified by -L. |
| 15563 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15564 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15565 | # Neither direct hardcoding nor static linking is supported with a |
| 15566 | # broken collect2. |
| 15567 | hardcode_direct=unsupported |
| 15568 | fi |
| 15569 | ;; |
| 15570 | |
| 15571 | aix4* | aix5*) |
| 15572 | if test "$host_cpu" = ia64; then |
| 15573 | # On IA64, the linker does run time linking by default, so we don't |
| 15574 | # have to do anything special. |
| 15575 | aix_use_runtimelinking=no |
| 15576 | exp_sym_flag='-Bexport' |
| 15577 | no_entry_flag="" |
| 15578 | else |
| 15579 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15580 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15581 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15582 | 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' |
| 15583 | else |
| 15584 | 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' |
| 15585 | fi |
| 15586 | aix_use_runtimelinking=no |
| 15587 | |
| 15588 | # Test if we are trying to use run time linking or normal |
| 15589 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15590 | # need to do runtime linking. |
| 15591 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15592 | for ld_flag in $LDFLAGS; do |
| 15593 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15594 | aix_use_runtimelinking=yes |
| 15595 | break |
| 15596 | fi |
| 15597 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15598 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15599 | esac |
| 15600 | |
| 15601 | exp_sym_flag='-bexport' |
| 15602 | no_entry_flag='-bnoentry' |
| 15603 | fi |
| 15604 | |
| 15605 | # When large executables or shared objects are built, AIX ld can |
| 15606 | # have problems creating the table of contents. If linking a library |
| 15607 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15608 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15609 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15610 | |
| 15611 | archive_cmds='' |
| 15612 | hardcode_direct=yes |
| 15613 | hardcode_libdir_separator=':' |
| 15614 | link_all_deplibs=yes |
| 15615 | |
| 15616 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15617 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15618 | # We only want to do this on AIX 4.2 and lower, the check |
| 15619 | # below for broken collect2 doesn't work under 4.3+ |
| 15620 | collect2name=`${CC} -print-prog-name=collect2` |
| 15621 | if test -f "$collect2name" && \ |
| 15622 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15623 | then |
| 15624 | # We have reworked collect2 |
| 15625 | hardcode_direct=yes |
| 15626 | else |
| 15627 | # We have old collect2 |
| 15628 | hardcode_direct=unsupported |
| 15629 | # It fails to find uninstalled libraries when the uninstalled |
| 15630 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15631 | # to unsupported forces relinking |
| 15632 | hardcode_minus_L=yes |
| 15633 | hardcode_libdir_flag_spec='-L$libdir' |
| 15634 | hardcode_libdir_separator= |
| 15635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15636 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15637 | esac |
| 15638 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15639 | if test "$aix_use_runtimelinking" = yes; then |
| 15640 | shared_flag="$shared_flag "'${wl}-G' |
| 15641 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15642 | else |
| 15643 | # not using gcc |
| 15644 | if test "$host_cpu" = ia64; then |
| 15645 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15646 | # chokes on -Wl,-G. The following line is correct: |
| 15647 | shared_flag='-G' |
| 15648 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15649 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15650 | shared_flag='${wl}-G' |
| 15651 | else |
| 15652 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15653 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15654 | fi |
| 15655 | fi |
| 15656 | |
| 15657 | # It seems that -bexpall does not export symbols beginning with |
| 15658 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15659 | always_export_symbols=yes |
| 15660 | if test "$aix_use_runtimelinking" = yes; then |
| 15661 | # Warning - without using the other runtime loading flags (-brtl), |
| 15662 | # -berok will link without error, but may produce a broken library. |
| 15663 | allow_undefined_flag='-berok' |
| 15664 | # Determine the default libpath from the value encoded in an empty executable. |
| 15665 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15666 | /* confdefs.h. */ |
| 15667 | _ACEOF |
| 15668 | cat confdefs.h >>conftest.$ac_ext |
| 15669 | cat >>conftest.$ac_ext <<_ACEOF |
| 15670 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15671 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15672 | int |
| 15673 | main () |
| 15674 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15675 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15676 | ; |
| 15677 | return 0; |
| 15678 | } |
| 15679 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15680 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15681 | if { (ac_try="$ac_link" |
| 15682 | case "(($ac_try" in |
| 15683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15684 | *) ac_try_echo=$ac_try;; |
| 15685 | esac |
| 15686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15687 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15688 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15690 | rm -f conftest.er1 |
| 15691 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15693 | (exit $ac_status); } && |
| 15694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15695 | { (case "(($ac_try" in |
| 15696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15697 | *) ac_try_echo=$ac_try;; |
| 15698 | esac |
| 15699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15700 | (eval "$ac_try") 2>&5 |
| 15701 | ac_status=$? |
| 15702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15703 | (exit $ac_status); }; } && |
| 15704 | { ac_try='test -s conftest$ac_exeext' |
| 15705 | { (case "(($ac_try" in |
| 15706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15707 | *) ac_try_echo=$ac_try;; |
| 15708 | esac |
| 15709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15710 | (eval "$ac_try") 2>&5 |
| 15711 | ac_status=$? |
| 15712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15713 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15714 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15715 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15716 | }'` |
| 15717 | # Check for a 64-bit object if we didn't find anything. |
| 15718 | 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; } |
| 15719 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15720 | else |
| 15721 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15724 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15725 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15726 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15727 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15728 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15729 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15730 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15731 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15732 | 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] | 15733 | else |
| 15734 | if test "$host_cpu" = ia64; then |
| 15735 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15736 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15737 | 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] | 15738 | else |
| 15739 | # Determine the default libpath from the value encoded in an empty executable. |
| 15740 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15741 | /* confdefs.h. */ |
| 15742 | _ACEOF |
| 15743 | cat confdefs.h >>conftest.$ac_ext |
| 15744 | cat >>conftest.$ac_ext <<_ACEOF |
| 15745 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15746 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15747 | int |
| 15748 | main () |
| 15749 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15750 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15751 | ; |
| 15752 | return 0; |
| 15753 | } |
| 15754 | _ACEOF |
| 15755 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15756 | if { (ac_try="$ac_link" |
| 15757 | case "(($ac_try" in |
| 15758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15759 | *) ac_try_echo=$ac_try;; |
| 15760 | esac |
| 15761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15762 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15763 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15765 | rm -f conftest.er1 |
| 15766 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15768 | (exit $ac_status); } && |
| 15769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15770 | { (case "(($ac_try" in |
| 15771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15772 | *) ac_try_echo=$ac_try;; |
| 15773 | esac |
| 15774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15775 | (eval "$ac_try") 2>&5 |
| 15776 | ac_status=$? |
| 15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15778 | (exit $ac_status); }; } && |
| 15779 | { ac_try='test -s conftest$ac_exeext' |
| 15780 | { (case "(($ac_try" in |
| 15781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15782 | *) ac_try_echo=$ac_try;; |
| 15783 | esac |
| 15784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15785 | (eval "$ac_try") 2>&5 |
| 15786 | ac_status=$? |
| 15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15788 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15789 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15790 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15791 | }'` |
| 15792 | # Check for a 64-bit object if we didn't find anything. |
| 15793 | 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; } |
| 15794 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15795 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15796 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15799 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15801 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15802 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15803 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15804 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15806 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15807 | # Warning - without using the other run time loading flags, |
| 15808 | # -berok will link without error, but may produce a broken library. |
| 15809 | no_undefined_flag=' ${wl}-bernotok' |
| 15810 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15811 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15812 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15813 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15814 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15815 | 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] | 15816 | fi |
| 15817 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15818 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15819 | |
| 15820 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15821 | 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] | 15822 | hardcode_libdir_flag_spec='-L$libdir' |
| 15823 | hardcode_minus_L=yes |
| 15824 | # see comment about different semantics on the GNU ld section |
| 15825 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15826 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15827 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15828 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15829 | export_dynamic_flag_spec=-rdynamic |
| 15830 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15831 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15832 | cygwin* | mingw* | pw32*) |
| 15833 | # When not using gcc, we currently assume that we are using |
| 15834 | # Microsoft Visual C++. |
| 15835 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15836 | # no search path for DLLs. |
| 15837 | hardcode_libdir_flag_spec=' ' |
| 15838 | allow_undefined_flag=unsupported |
| 15839 | # Tell ltmain to make .lib files, not .a files. |
| 15840 | libext=lib |
| 15841 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15842 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15843 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15844 | 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] | 15845 | # The linker will automatically build a .lib file if we build a DLL. |
| 15846 | old_archive_From_new_cmds='true' |
| 15847 | # FIXME: Should let the user specify the lib program. |
| 15848 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15849 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15850 | enable_shared_with_static_runtimes=yes |
| 15851 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15852 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15853 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15854 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15855 | rhapsody* | darwin1.[012]) |
| 15856 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15857 | ;; |
| 15858 | *) # Darwin 1.3 on |
| 15859 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15860 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15861 | else |
| 15862 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15863 | 10.[012]) |
| 15864 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15865 | ;; |
| 15866 | 10.*) |
| 15867 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15868 | ;; |
| 15869 | esac |
| 15870 | fi |
| 15871 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15872 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15873 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15874 | hardcode_direct=no |
| 15875 | hardcode_automatic=yes |
| 15876 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15877 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15878 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15879 | if test "$GCC" = yes ; then |
| 15880 | output_verbose_link_cmd='echo' |
| 15881 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15882 | 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] | 15883 | # 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] | 15884 | 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}' |
| 15885 | 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] | 15886 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15887 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15888 | xlc*) |
| 15889 | output_verbose_link_cmd='echo' |
| 15890 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15891 | 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] | 15892 | # 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] | 15893 | 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}' |
| 15894 | 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] | 15895 | ;; |
| 15896 | *) |
| 15897 | ld_shlibs=no |
| 15898 | ;; |
| 15899 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15900 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15901 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15902 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15903 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15904 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15905 | hardcode_libdir_flag_spec='-L$libdir' |
| 15906 | hardcode_shlibpath_var=no |
| 15907 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15908 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15909 | freebsd1*) |
| 15910 | ld_shlibs=no |
| 15911 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15913 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15914 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15915 | # does not break anything, and helps significantly (at the cost of a little |
| 15916 | # extra space). |
| 15917 | freebsd2.2*) |
| 15918 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15919 | hardcode_libdir_flag_spec='-R$libdir' |
| 15920 | hardcode_direct=yes |
| 15921 | hardcode_shlibpath_var=no |
| 15922 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15923 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15924 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15925 | freebsd2*) |
| 15926 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15927 | hardcode_direct=yes |
| 15928 | hardcode_minus_L=yes |
| 15929 | hardcode_shlibpath_var=no |
| 15930 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15931 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15932 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15933 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15934 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15935 | hardcode_libdir_flag_spec='-R$libdir' |
| 15936 | hardcode_direct=yes |
| 15937 | hardcode_shlibpath_var=no |
| 15938 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15939 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15940 | hpux9*) |
| 15941 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15942 | 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] | 15943 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15944 | 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] | 15945 | fi |
| 15946 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15947 | hardcode_libdir_separator=: |
| 15948 | hardcode_direct=yes |
| 15949 | |
| 15950 | # hardcode_minus_L: Not really in the search PATH, |
| 15951 | # but as the default location of the library. |
| 15952 | hardcode_minus_L=yes |
| 15953 | export_dynamic_flag_spec='${wl}-E' |
| 15954 | ;; |
| 15955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15956 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15957 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15958 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15959 | else |
| 15960 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15961 | fi |
| 15962 | if test "$with_gnu_ld" = no; then |
| 15963 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15964 | hardcode_libdir_separator=: |
| 15965 | |
| 15966 | hardcode_direct=yes |
| 15967 | export_dynamic_flag_spec='${wl}-E' |
| 15968 | |
| 15969 | # hardcode_minus_L: Not really in the search PATH, |
| 15970 | # but as the default location of the library. |
| 15971 | hardcode_minus_L=yes |
| 15972 | fi |
| 15973 | ;; |
| 15974 | |
| 15975 | hpux11*) |
| 15976 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15977 | case $host_cpu in |
| 15978 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15979 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15980 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15981 | ia64*) |
| 15982 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15983 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15984 | *) |
| 15985 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15986 | ;; |
| 15987 | esac |
| 15988 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15989 | case $host_cpu in |
| 15990 | hppa*64*) |
| 15991 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15992 | ;; |
| 15993 | ia64*) |
| 15994 | 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] | 15995 | ;; |
| 15996 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15997 | 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] | 15998 | ;; |
| 15999 | esac |
| 16000 | fi |
| 16001 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16002 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 16003 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16005 | case $host_cpu in |
| 16006 | hppa*64*|ia64*) |
| 16007 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 16008 | hardcode_direct=no |
| 16009 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16010 | ;; |
| 16011 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16012 | hardcode_direct=yes |
| 16013 | export_dynamic_flag_spec='${wl}-E' |
| 16014 | |
| 16015 | # hardcode_minus_L: Not really in the search PATH, |
| 16016 | # but as the default location of the library. |
| 16017 | hardcode_minus_L=yes |
| 16018 | ;; |
| 16019 | esac |
| 16020 | fi |
| 16021 | ;; |
| 16022 | |
| 16023 | irix5* | irix6* | nonstopux*) |
| 16024 | if test "$GCC" = yes; then |
| 16025 | 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' |
| 16026 | else |
| 16027 | 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' |
| 16028 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 16029 | fi |
| 16030 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16031 | hardcode_libdir_separator=: |
| 16032 | link_all_deplibs=yes |
| 16033 | ;; |
| 16034 | |
| 16035 | netbsd*) |
| 16036 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16037 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16038 | else |
| 16039 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16040 | fi |
| 16041 | hardcode_libdir_flag_spec='-R$libdir' |
| 16042 | hardcode_direct=yes |
| 16043 | hardcode_shlibpath_var=no |
| 16044 | ;; |
| 16045 | |
| 16046 | newsos6) |
| 16047 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16048 | hardcode_direct=yes |
| 16049 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16050 | hardcode_libdir_separator=: |
| 16051 | hardcode_shlibpath_var=no |
| 16052 | ;; |
| 16053 | |
| 16054 | openbsd*) |
| 16055 | hardcode_direct=yes |
| 16056 | hardcode_shlibpath_var=no |
| 16057 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16058 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16059 | 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] | 16060 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16061 | export_dynamic_flag_spec='${wl}-E' |
| 16062 | else |
| 16063 | case $host_os in |
| 16064 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16065 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16066 | hardcode_libdir_flag_spec='-R$libdir' |
| 16067 | ;; |
| 16068 | *) |
| 16069 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16070 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16071 | ;; |
| 16072 | esac |
| 16073 | fi |
| 16074 | ;; |
| 16075 | |
| 16076 | os2*) |
| 16077 | hardcode_libdir_flag_spec='-L$libdir' |
| 16078 | hardcode_minus_L=yes |
| 16079 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16080 | 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] | 16081 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16082 | ;; |
| 16083 | |
| 16084 | osf3*) |
| 16085 | if test "$GCC" = yes; then |
| 16086 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16087 | 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' |
| 16088 | else |
| 16089 | allow_undefined_flag=' -expect_unresolved \*' |
| 16090 | 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' |
| 16091 | fi |
| 16092 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16093 | hardcode_libdir_separator=: |
| 16094 | ;; |
| 16095 | |
| 16096 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16097 | if test "$GCC" = yes; then |
| 16098 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16099 | 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' |
| 16100 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16101 | else |
| 16102 | allow_undefined_flag=' -expect_unresolved \*' |
| 16103 | 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] | 16104 | 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] | 16105 | $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] | 16106 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16107 | # Both c and cxx compiler support -rpath directly |
| 16108 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 16109 | fi |
| 16110 | hardcode_libdir_separator=: |
| 16111 | ;; |
| 16112 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16113 | solaris*) |
| 16114 | no_undefined_flag=' -z text' |
| 16115 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16116 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16117 | 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] | 16118 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16119 | $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] | 16120 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16121 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16122 | 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] | 16123 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16124 | $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] | 16125 | fi |
| 16126 | hardcode_libdir_flag_spec='-R$libdir' |
| 16127 | hardcode_shlibpath_var=no |
| 16128 | case $host_os in |
| 16129 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16130 | *) |
| 16131 | # The compiler driver will combine linker options so we |
| 16132 | # cannot just pass the convience library names through |
| 16133 | # without $wl, iff we do not link with $LD. |
| 16134 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16135 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16136 | case $wlarc in |
| 16137 | '') |
| 16138 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 16139 | *) |
| 16140 | 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' ;; |
| 16141 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16142 | esac |
| 16143 | link_all_deplibs=yes |
| 16144 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16145 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16146 | sunos4*) |
| 16147 | if test "x$host_vendor" = xsequent; then |
| 16148 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16149 | # files that make .init and .fini sections work. |
| 16150 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16151 | else |
| 16152 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16153 | fi |
| 16154 | hardcode_libdir_flag_spec='-L$libdir' |
| 16155 | hardcode_direct=yes |
| 16156 | hardcode_minus_L=yes |
| 16157 | hardcode_shlibpath_var=no |
| 16158 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16159 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16160 | sysv4) |
| 16161 | case $host_vendor in |
| 16162 | sni) |
| 16163 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16164 | hardcode_direct=yes # is this really true??? |
| 16165 | ;; |
| 16166 | siemens) |
| 16167 | ## LD is ld it makes a PLAMLIB |
| 16168 | ## CC just makes a GrossModule. |
| 16169 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16170 | reload_cmds='$CC -r -o $output$reload_objs' |
| 16171 | hardcode_direct=no |
| 16172 | ;; |
| 16173 | motorola) |
| 16174 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16175 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16176 | ;; |
| 16177 | esac |
| 16178 | runpath_var='LD_RUN_PATH' |
| 16179 | hardcode_shlibpath_var=no |
| 16180 | ;; |
| 16181 | |
| 16182 | sysv4.3*) |
| 16183 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16184 | hardcode_shlibpath_var=no |
| 16185 | export_dynamic_flag_spec='-Bexport' |
| 16186 | ;; |
| 16187 | |
| 16188 | sysv4*MP*) |
| 16189 | if test -d /usr/nec; then |
| 16190 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16191 | hardcode_shlibpath_var=no |
| 16192 | runpath_var=LD_RUN_PATH |
| 16193 | hardcode_runpath_var=yes |
| 16194 | ld_shlibs=yes |
| 16195 | fi |
| 16196 | ;; |
| 16197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16198 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16199 | no_undefined_flag='${wl}-z,text' |
| 16200 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16201 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16202 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16203 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16204 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16205 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16206 | 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] | 16207 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16208 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16209 | 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] | 16210 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16211 | ;; |
| 16212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16213 | sysv5* | sco3.2v5* | sco5v6*) |
| 16214 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16215 | # link with -lc, and that would cause any symbols used from libc to |
| 16216 | # always be unresolved, which means just about no library would |
| 16217 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16218 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16219 | # as -z defs. |
| 16220 | no_undefined_flag='${wl}-z,text' |
| 16221 | allow_undefined_flag='${wl}-z,nodefs' |
| 16222 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16223 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16224 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16225 | hardcode_libdir_separator=':' |
| 16226 | link_all_deplibs=yes |
| 16227 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16228 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16229 | |
| 16230 | if test "$GCC" = yes; then |
| 16231 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16232 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16233 | else |
| 16234 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16235 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16236 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16237 | ;; |
| 16238 | |
| 16239 | uts4*) |
| 16240 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16241 | hardcode_libdir_flag_spec='-L$libdir' |
| 16242 | hardcode_shlibpath_var=no |
| 16243 | ;; |
| 16244 | |
| 16245 | *) |
| 16246 | ld_shlibs=no |
| 16247 | ;; |
| 16248 | esac |
| 16249 | fi |
| 16250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16251 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 16252 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16253 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16254 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16255 | # |
| 16256 | # Do we need to explicitly link libc? |
| 16257 | # |
| 16258 | case "x$archive_cmds_need_lc" in |
| 16259 | x|xyes) |
| 16260 | # Assume -lc should be added |
| 16261 | archive_cmds_need_lc=yes |
| 16262 | |
| 16263 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16264 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16265 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16266 | # FIXME: we may have to deal with multi-command sequences. |
| 16267 | ;; |
| 16268 | '$CC '*) |
| 16269 | # Test whether the compiler implicitly links with -lc since on some |
| 16270 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16271 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16272 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16273 | 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] | 16274 | $rm conftest* |
| 16275 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16276 | |
| 16277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16278 | (eval $ac_compile) 2>&5 |
| 16279 | ac_status=$? |
| 16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16281 | (exit $ac_status); } 2>conftest.err; then |
| 16282 | soname=conftest |
| 16283 | lib=conftest |
| 16284 | libobjs=conftest.$ac_objext |
| 16285 | deplibs= |
| 16286 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16287 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16288 | compiler_flags=-v |
| 16289 | linker_flags=-v |
| 16290 | verstring= |
| 16291 | output_objdir=. |
| 16292 | libname=conftest |
| 16293 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16294 | allow_undefined_flag= |
| 16295 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16296 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16297 | ac_status=$? |
| 16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16299 | (exit $ac_status); } |
| 16300 | then |
| 16301 | archive_cmds_need_lc=no |
| 16302 | else |
| 16303 | archive_cmds_need_lc=yes |
| 16304 | fi |
| 16305 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16306 | else |
| 16307 | cat conftest.err 1>&5 |
| 16308 | fi |
| 16309 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16310 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 16311 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16312 | ;; |
| 16313 | esac |
| 16314 | fi |
| 16315 | ;; |
| 16316 | esac |
| 16317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16318 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16319 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16320 | library_names_spec= |
| 16321 | libname_spec='lib$name' |
| 16322 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16323 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16324 | postinstall_cmds= |
| 16325 | postuninstall_cmds= |
| 16326 | finish_cmds= |
| 16327 | finish_eval= |
| 16328 | shlibpath_var= |
| 16329 | shlibpath_overrides_runpath=unknown |
| 16330 | version_type=none |
| 16331 | dynamic_linker="$host_os ld.so" |
| 16332 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16333 | if test "$GCC" = yes; then |
| 16334 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16335 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16336 | # if the path contains ";" then we assume it to be the separator |
| 16337 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16338 | # assumed that no part of a normal pathname contains ";" but that should |
| 16339 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16340 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16341 | else |
| 16342 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16343 | fi |
| 16344 | else |
| 16345 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16346 | fi |
| 16347 | need_lib_prefix=unknown |
| 16348 | hardcode_into_libs=no |
| 16349 | |
| 16350 | # when you set need_version to no, make sure it does not cause -set_version |
| 16351 | # flags to be left without arguments |
| 16352 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16353 | |
| 16354 | case $host_os in |
| 16355 | aix3*) |
| 16356 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16357 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16358 | shlibpath_var=LIBPATH |
| 16359 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16360 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16361 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16362 | ;; |
| 16363 | |
| 16364 | aix4* | aix5*) |
| 16365 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16366 | need_lib_prefix=no |
| 16367 | need_version=no |
| 16368 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16369 | if test "$host_cpu" = ia64; then |
| 16370 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16371 | 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] | 16372 | shlibpath_var=LD_LIBRARY_PATH |
| 16373 | else |
| 16374 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16375 | # for dependence libraries. The import file would start with |
| 16376 | # the line `#! .'. This would cause the generated library to |
| 16377 | # depend on `.', always an invalid library. This was fixed in |
| 16378 | # development snapshots of GCC prior to 3.0. |
| 16379 | case $host_os in |
| 16380 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16381 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16382 | echo ' yes ' |
| 16383 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16384 | : |
| 16385 | else |
| 16386 | can_build_shared=no |
| 16387 | fi |
| 16388 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16389 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16390 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16391 | # soname into executable. Probably we can add versioning support to |
| 16392 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16393 | if test "$aix_use_runtimelinking" = yes; then |
| 16394 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16395 | # instead of lib<name>.a to let people know that these are not |
| 16396 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16397 | 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] | 16398 | else |
| 16399 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16400 | # and later when we are not doing run time linking. |
| 16401 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16402 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16403 | fi |
| 16404 | shlibpath_var=LIBPATH |
| 16405 | fi |
| 16406 | ;; |
| 16407 | |
| 16408 | amigaos*) |
| 16409 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16410 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16411 | 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] | 16412 | ;; |
| 16413 | |
| 16414 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16415 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16416 | dynamic_linker="$host_os ld.so" |
| 16417 | shlibpath_var=LIBRARY_PATH |
| 16418 | ;; |
| 16419 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16420 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16421 | version_type=linux |
| 16422 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16424 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16426 | shlibpath_var=LD_LIBRARY_PATH |
| 16427 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16428 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16429 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16430 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16431 | # libtool to hard-code these into programs |
| 16432 | ;; |
| 16433 | |
| 16434 | cygwin* | mingw* | pw32*) |
| 16435 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16436 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16437 | need_version=no |
| 16438 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16439 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16440 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16441 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16442 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16443 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16444 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16445 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16446 | dldir=$destdir/`dirname \$dlpath`~ |
| 16447 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16448 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16449 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16450 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16451 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16452 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16453 | shlibpath_overrides_runpath=yes |
| 16454 | |
| 16455 | case $host_os in |
| 16456 | cygwin*) |
| 16457 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16458 | 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] | 16459 | 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] | 16460 | ;; |
| 16461 | mingw*) |
| 16462 | # MinGW DLLs use traditional 'lib' prefix |
| 16463 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16464 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16465 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16466 | # It is most probably a Windows format PATH printed by |
| 16467 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16468 | # path with ; separators, and with drive letters. We can handle the |
| 16469 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16470 | # especially as we might pass files found there to a mingw objdump, |
| 16471 | # which wouldn't understand a cygwinified path. Ahh. |
| 16472 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16473 | else |
| 16474 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16475 | fi |
| 16476 | ;; |
| 16477 | pw32*) |
| 16478 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16479 | 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] | 16480 | ;; |
| 16481 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16482 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16483 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16484 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16485 | 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] | 16486 | ;; |
| 16487 | esac |
| 16488 | dynamic_linker='Win32 ld.exe' |
| 16489 | # FIXME: first we should search . and the directory the executable is in |
| 16490 | shlibpath_var=PATH |
| 16491 | ;; |
| 16492 | |
| 16493 | darwin* | rhapsody*) |
| 16494 | dynamic_linker="$host_os dyld" |
| 16495 | version_type=darwin |
| 16496 | need_lib_prefix=no |
| 16497 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16498 | 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] | 16499 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16500 | shlibpath_overrides_runpath=yes |
| 16501 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16502 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16503 | # 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] | 16504 | if test "$GCC" = yes; then |
| 16505 | 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"` |
| 16506 | else |
| 16507 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16508 | fi |
| 16509 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16510 | ;; |
| 16511 | |
| 16512 | dgux*) |
| 16513 | version_type=linux |
| 16514 | need_lib_prefix=no |
| 16515 | need_version=no |
| 16516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16517 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16518 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16519 | ;; |
| 16520 | |
| 16521 | freebsd1*) |
| 16522 | dynamic_linker=no |
| 16523 | ;; |
| 16524 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16525 | kfreebsd*-gnu) |
| 16526 | version_type=linux |
| 16527 | need_lib_prefix=no |
| 16528 | need_version=no |
| 16529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16530 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16531 | shlibpath_var=LD_LIBRARY_PATH |
| 16532 | shlibpath_overrides_runpath=no |
| 16533 | hardcode_into_libs=yes |
| 16534 | dynamic_linker='GNU ld.so' |
| 16535 | ;; |
| 16536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16537 | freebsd* | dragonfly*) |
| 16538 | # DragonFly does not have aout. When/if they implement a new |
| 16539 | # versioning mechanism, adjust this. |
| 16540 | if test -x /usr/bin/objformat; then |
| 16541 | objformat=`/usr/bin/objformat` |
| 16542 | else |
| 16543 | case $host_os in |
| 16544 | freebsd[123]*) objformat=aout ;; |
| 16545 | *) objformat=elf ;; |
| 16546 | esac |
| 16547 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16548 | version_type=freebsd-$objformat |
| 16549 | case $version_type in |
| 16550 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16551 | 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] | 16552 | need_version=no |
| 16553 | need_lib_prefix=no |
| 16554 | ;; |
| 16555 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16556 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16557 | need_version=yes |
| 16558 | ;; |
| 16559 | esac |
| 16560 | shlibpath_var=LD_LIBRARY_PATH |
| 16561 | case $host_os in |
| 16562 | freebsd2*) |
| 16563 | shlibpath_overrides_runpath=yes |
| 16564 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16565 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16566 | shlibpath_overrides_runpath=yes |
| 16567 | hardcode_into_libs=yes |
| 16568 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16569 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16570 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16571 | shlibpath_overrides_runpath=no |
| 16572 | hardcode_into_libs=yes |
| 16573 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16574 | freebsd*) # from 4.6 on |
| 16575 | shlibpath_overrides_runpath=yes |
| 16576 | hardcode_into_libs=yes |
| 16577 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16578 | esac |
| 16579 | ;; |
| 16580 | |
| 16581 | gnu*) |
| 16582 | version_type=linux |
| 16583 | need_lib_prefix=no |
| 16584 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16586 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16587 | shlibpath_var=LD_LIBRARY_PATH |
| 16588 | hardcode_into_libs=yes |
| 16589 | ;; |
| 16590 | |
| 16591 | hpux9* | hpux10* | hpux11*) |
| 16592 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16593 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16594 | version_type=sunos |
| 16595 | need_lib_prefix=no |
| 16596 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16597 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16598 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16599 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16600 | hardcode_into_libs=yes |
| 16601 | dynamic_linker="$host_os dld.so" |
| 16602 | shlibpath_var=LD_LIBRARY_PATH |
| 16603 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16606 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16607 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16608 | else |
| 16609 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16610 | fi |
| 16611 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16612 | ;; |
| 16613 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16614 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16615 | hardcode_into_libs=yes |
| 16616 | dynamic_linker="$host_os dld.sl" |
| 16617 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16618 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16621 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16622 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16623 | ;; |
| 16624 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16625 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16626 | dynamic_linker="$host_os dld.sl" |
| 16627 | shlibpath_var=SHLIB_PATH |
| 16628 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16630 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16631 | ;; |
| 16632 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16633 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16634 | postinstall_cmds='chmod 555 $lib' |
| 16635 | ;; |
| 16636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16637 | interix3*) |
| 16638 | version_type=linux |
| 16639 | need_lib_prefix=no |
| 16640 | need_version=no |
| 16641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16643 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16644 | shlibpath_var=LD_LIBRARY_PATH |
| 16645 | shlibpath_overrides_runpath=no |
| 16646 | hardcode_into_libs=yes |
| 16647 | ;; |
| 16648 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16649 | irix5* | irix6* | nonstopux*) |
| 16650 | case $host_os in |
| 16651 | nonstopux*) version_type=nonstopux ;; |
| 16652 | *) |
| 16653 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16654 | version_type=linux |
| 16655 | else |
| 16656 | version_type=irix |
| 16657 | fi ;; |
| 16658 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16659 | need_lib_prefix=no |
| 16660 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16662 | 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] | 16663 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16664 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16665 | libsuff= shlibsuff= |
| 16666 | ;; |
| 16667 | *) |
| 16668 | 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] | 16669 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16670 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16671 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16672 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16673 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16674 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16675 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16676 | esac |
| 16677 | ;; |
| 16678 | esac |
| 16679 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16680 | shlibpath_overrides_runpath=no |
| 16681 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16682 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16683 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16684 | ;; |
| 16685 | |
| 16686 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16687 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16688 | dynamic_linker=no |
| 16689 | ;; |
| 16690 | |
| 16691 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16692 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16693 | version_type=linux |
| 16694 | need_lib_prefix=no |
| 16695 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16697 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16698 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16699 | shlibpath_var=LD_LIBRARY_PATH |
| 16700 | shlibpath_overrides_runpath=no |
| 16701 | # This implies no fast_install, which is unacceptable. |
| 16702 | # Some rework will be needed to allow for fast_install |
| 16703 | # before this can be enabled. |
| 16704 | hardcode_into_libs=yes |
| 16705 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16706 | # Append ld.so.conf contents to the search path |
| 16707 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16708 | 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] | 16709 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16710 | fi |
| 16711 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16712 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16713 | # powerpc, because MkLinux only supported shared libraries with the |
| 16714 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16715 | # most powerpc-linux boxes support dynamic linking these days and |
| 16716 | # people can always --disable-shared, the test was removed, and we |
| 16717 | # assume the GNU/Linux dynamic linker is in use. |
| 16718 | dynamic_linker='GNU/Linux ld.so' |
| 16719 | ;; |
| 16720 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16721 | knetbsd*-gnu) |
| 16722 | version_type=linux |
| 16723 | need_lib_prefix=no |
| 16724 | need_version=no |
| 16725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16727 | shlibpath_var=LD_LIBRARY_PATH |
| 16728 | shlibpath_overrides_runpath=no |
| 16729 | hardcode_into_libs=yes |
| 16730 | dynamic_linker='GNU ld.so' |
| 16731 | ;; |
| 16732 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16733 | netbsd*) |
| 16734 | version_type=sunos |
| 16735 | need_lib_prefix=no |
| 16736 | need_version=no |
| 16737 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16740 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16741 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16742 | 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] | 16743 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16744 | dynamic_linker='NetBSD ld.elf_so' |
| 16745 | fi |
| 16746 | shlibpath_var=LD_LIBRARY_PATH |
| 16747 | shlibpath_overrides_runpath=yes |
| 16748 | hardcode_into_libs=yes |
| 16749 | ;; |
| 16750 | |
| 16751 | newsos6) |
| 16752 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16754 | shlibpath_var=LD_LIBRARY_PATH |
| 16755 | shlibpath_overrides_runpath=yes |
| 16756 | ;; |
| 16757 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16758 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16759 | version_type=linux |
| 16760 | need_lib_prefix=no |
| 16761 | need_version=no |
| 16762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16763 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16764 | shlibpath_var=LD_LIBRARY_PATH |
| 16765 | shlibpath_overrides_runpath=yes |
| 16766 | ;; |
| 16767 | |
| 16768 | openbsd*) |
| 16769 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16770 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16771 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16772 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16773 | case $host_os in |
| 16774 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16775 | *) need_version=no ;; |
| 16776 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16778 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16779 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16780 | 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] | 16781 | case $host_os in |
| 16782 | openbsd2.[89] | openbsd2.[89].*) |
| 16783 | shlibpath_overrides_runpath=no |
| 16784 | ;; |
| 16785 | *) |
| 16786 | shlibpath_overrides_runpath=yes |
| 16787 | ;; |
| 16788 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16789 | else |
| 16790 | shlibpath_overrides_runpath=yes |
| 16791 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16792 | ;; |
| 16793 | |
| 16794 | os2*) |
| 16795 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16796 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16797 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16798 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16799 | dynamic_linker='OS/2 ld.exe' |
| 16800 | shlibpath_var=LIBPATH |
| 16801 | ;; |
| 16802 | |
| 16803 | osf3* | osf4* | osf5*) |
| 16804 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16805 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16806 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16808 | 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] | 16809 | shlibpath_var=LD_LIBRARY_PATH |
| 16810 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16811 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16812 | ;; |
| 16813 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16814 | solaris*) |
| 16815 | version_type=linux |
| 16816 | need_lib_prefix=no |
| 16817 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16819 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16820 | shlibpath_var=LD_LIBRARY_PATH |
| 16821 | shlibpath_overrides_runpath=yes |
| 16822 | hardcode_into_libs=yes |
| 16823 | # ldd complains unless libraries are executable |
| 16824 | postinstall_cmds='chmod +x $lib' |
| 16825 | ;; |
| 16826 | |
| 16827 | sunos4*) |
| 16828 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16830 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16831 | shlibpath_var=LD_LIBRARY_PATH |
| 16832 | shlibpath_overrides_runpath=yes |
| 16833 | if test "$with_gnu_ld" = yes; then |
| 16834 | need_lib_prefix=no |
| 16835 | fi |
| 16836 | need_version=yes |
| 16837 | ;; |
| 16838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16839 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16840 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16842 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16843 | shlibpath_var=LD_LIBRARY_PATH |
| 16844 | case $host_vendor in |
| 16845 | sni) |
| 16846 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16847 | need_lib_prefix=no |
| 16848 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16849 | runpath_var=LD_RUN_PATH |
| 16850 | ;; |
| 16851 | siemens) |
| 16852 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16853 | ;; |
| 16854 | motorola) |
| 16855 | need_lib_prefix=no |
| 16856 | need_version=no |
| 16857 | shlibpath_overrides_runpath=no |
| 16858 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16859 | ;; |
| 16860 | esac |
| 16861 | ;; |
| 16862 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16863 | sysv4*MP*) |
| 16864 | if test -d /usr/nec ;then |
| 16865 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16866 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16867 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16868 | shlibpath_var=LD_LIBRARY_PATH |
| 16869 | fi |
| 16870 | ;; |
| 16871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16872 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16873 | version_type=freebsd-elf |
| 16874 | need_lib_prefix=no |
| 16875 | need_version=no |
| 16876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16877 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16878 | shlibpath_var=LD_LIBRARY_PATH |
| 16879 | hardcode_into_libs=yes |
| 16880 | if test "$with_gnu_ld" = yes; then |
| 16881 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16882 | shlibpath_overrides_runpath=no |
| 16883 | else |
| 16884 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16885 | shlibpath_overrides_runpath=yes |
| 16886 | case $host_os in |
| 16887 | sco3.2v5*) |
| 16888 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16889 | ;; |
| 16890 | esac |
| 16891 | fi |
| 16892 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16893 | ;; |
| 16894 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16895 | uts4*) |
| 16896 | version_type=linux |
| 16897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16899 | shlibpath_var=LD_LIBRARY_PATH |
| 16900 | ;; |
| 16901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16902 | *) |
| 16903 | dynamic_linker=no |
| 16904 | ;; |
| 16905 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16906 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16907 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16910 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16911 | if test "$GCC" = yes; then |
| 16912 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16913 | fi |
| 16914 | |
| 16915 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16916 | 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] | 16917 | hardcode_action= |
| 16918 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16919 | test -n "$runpath_var" || \ |
| 16920 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16921 | |
| 16922 | # We can hardcode non-existant directories. |
| 16923 | if test "$hardcode_direct" != no && |
| 16924 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16925 | # have to relink, otherwise we might link with an installed library |
| 16926 | # when we should be linking with a yet-to-be-installed one |
| 16927 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16928 | test "$hardcode_minus_L" != no; then |
| 16929 | # Linking always hardcodes the temporary library directory. |
| 16930 | hardcode_action=relink |
| 16931 | else |
| 16932 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16933 | hardcode_action=immediate |
| 16934 | fi |
| 16935 | else |
| 16936 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16937 | # directories. |
| 16938 | hardcode_action=unsupported |
| 16939 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16940 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16941 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16942 | |
| 16943 | if test "$hardcode_action" = relink; then |
| 16944 | # Fast installation is not supported |
| 16945 | enable_fast_install=no |
| 16946 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16947 | test "$enable_shared" = no; then |
| 16948 | # Fast installation is not necessary |
| 16949 | enable_fast_install=needless |
| 16950 | fi |
| 16951 | |
| 16952 | striplib= |
| 16953 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16954 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16955 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16956 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16957 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16958 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16959 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16960 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16961 | else |
| 16962 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16963 | case $host_os in |
| 16964 | darwin*) |
| 16965 | if test -n "$STRIP" ; then |
| 16966 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16967 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16968 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16969 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16970 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16971 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16972 | fi |
| 16973 | ;; |
| 16974 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16975 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16976 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16977 | ;; |
| 16978 | esac |
| 16979 | fi |
| 16980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16981 | if test "x$enable_dlopen" != xyes; then |
| 16982 | enable_dlopen=unknown |
| 16983 | enable_dlopen_self=unknown |
| 16984 | enable_dlopen_self_static=unknown |
| 16985 | else |
| 16986 | lt_cv_dlopen=no |
| 16987 | lt_cv_dlopen_libs= |
| 16988 | |
| 16989 | case $host_os in |
| 16990 | beos*) |
| 16991 | lt_cv_dlopen="load_add_on" |
| 16992 | lt_cv_dlopen_libs= |
| 16993 | lt_cv_dlopen_self=yes |
| 16994 | ;; |
| 16995 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16996 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16997 | lt_cv_dlopen="LoadLibrary" |
| 16998 | lt_cv_dlopen_libs= |
| 16999 | ;; |
| 17000 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17001 | cygwin*) |
| 17002 | lt_cv_dlopen="dlopen" |
| 17003 | lt_cv_dlopen_libs= |
| 17004 | ;; |
| 17005 | |
| 17006 | darwin*) |
| 17007 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17008 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17009 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17010 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17012 | else |
| 17013 | ac_check_lib_save_LIBS=$LIBS |
| 17014 | LIBS="-ldl $LIBS" |
| 17015 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17016 | /* confdefs.h. */ |
| 17017 | _ACEOF |
| 17018 | cat confdefs.h >>conftest.$ac_ext |
| 17019 | cat >>conftest.$ac_ext <<_ACEOF |
| 17020 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17022 | /* Override any GCC internal prototype to avoid an error. |
| 17023 | Use char because int might match the return type of a GCC |
| 17024 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17025 | #ifdef __cplusplus |
| 17026 | extern "C" |
| 17027 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17028 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17029 | int |
| 17030 | main () |
| 17031 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17032 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17033 | ; |
| 17034 | return 0; |
| 17035 | } |
| 17036 | _ACEOF |
| 17037 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17038 | if { (ac_try="$ac_link" |
| 17039 | case "(($ac_try" in |
| 17040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17041 | *) ac_try_echo=$ac_try;; |
| 17042 | esac |
| 17043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17044 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17045 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17047 | rm -f conftest.er1 |
| 17048 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17050 | (exit $ac_status); } && |
| 17051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17052 | { (case "(($ac_try" in |
| 17053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17054 | *) ac_try_echo=$ac_try;; |
| 17055 | esac |
| 17056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17057 | (eval "$ac_try") 2>&5 |
| 17058 | ac_status=$? |
| 17059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17060 | (exit $ac_status); }; } && |
| 17061 | { ac_try='test -s conftest$ac_exeext' |
| 17062 | { (case "(($ac_try" in |
| 17063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17064 | *) ac_try_echo=$ac_try;; |
| 17065 | esac |
| 17066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17067 | (eval "$ac_try") 2>&5 |
| 17068 | ac_status=$? |
| 17069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17070 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17071 | ac_cv_lib_dl_dlopen=yes |
| 17072 | else |
| 17073 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17076 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17078 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17079 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17080 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17081 | LIBS=$ac_check_lib_save_LIBS |
| 17082 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17083 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17084 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17085 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17086 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17087 | else |
| 17088 | |
| 17089 | lt_cv_dlopen="dyld" |
| 17090 | lt_cv_dlopen_libs= |
| 17091 | lt_cv_dlopen_self=yes |
| 17092 | |
| 17093 | fi |
| 17094 | |
| 17095 | ;; |
| 17096 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17097 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17098 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17099 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17100 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17102 | else |
| 17103 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17104 | /* confdefs.h. */ |
| 17105 | _ACEOF |
| 17106 | cat confdefs.h >>conftest.$ac_ext |
| 17107 | cat >>conftest.$ac_ext <<_ACEOF |
| 17108 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17109 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17110 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17111 | #define shl_load innocuous_shl_load |
| 17112 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17113 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17114 | which can conflict with char shl_load (); below. |
| 17115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17116 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17117 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17118 | #ifdef __STDC__ |
| 17119 | # include <limits.h> |
| 17120 | #else |
| 17121 | # include <assert.h> |
| 17122 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17123 | |
| 17124 | #undef shl_load |
| 17125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17126 | /* Override any GCC internal prototype to avoid an error. |
| 17127 | Use char because int might match the return type of a GCC |
| 17128 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17129 | #ifdef __cplusplus |
| 17130 | extern "C" |
| 17131 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17132 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17133 | /* The GNU C library defines this for functions which it implements |
| 17134 | to always fail with ENOSYS. Some functions are actually named |
| 17135 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17136 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17137 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17138 | #endif |
| 17139 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17140 | int |
| 17141 | main () |
| 17142 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17143 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17144 | ; |
| 17145 | return 0; |
| 17146 | } |
| 17147 | _ACEOF |
| 17148 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17149 | if { (ac_try="$ac_link" |
| 17150 | case "(($ac_try" in |
| 17151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17152 | *) ac_try_echo=$ac_try;; |
| 17153 | esac |
| 17154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17155 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17156 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17158 | rm -f conftest.er1 |
| 17159 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17161 | (exit $ac_status); } && |
| 17162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17163 | { (case "(($ac_try" in |
| 17164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17165 | *) ac_try_echo=$ac_try;; |
| 17166 | esac |
| 17167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17168 | (eval "$ac_try") 2>&5 |
| 17169 | ac_status=$? |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); }; } && |
| 17172 | { ac_try='test -s conftest$ac_exeext' |
| 17173 | { (case "(($ac_try" in |
| 17174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17175 | *) ac_try_echo=$ac_try;; |
| 17176 | esac |
| 17177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17178 | (eval "$ac_try") 2>&5 |
| 17179 | ac_status=$? |
| 17180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17181 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17182 | ac_cv_func_shl_load=yes |
| 17183 | else |
| 17184 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17187 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17188 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17189 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17190 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17191 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17193 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17194 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17195 | if test $ac_cv_func_shl_load = yes; then |
| 17196 | lt_cv_dlopen="shl_load" |
| 17197 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17198 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17199 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17200 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17202 | else |
| 17203 | ac_check_lib_save_LIBS=$LIBS |
| 17204 | LIBS="-ldld $LIBS" |
| 17205 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17206 | /* confdefs.h. */ |
| 17207 | _ACEOF |
| 17208 | cat confdefs.h >>conftest.$ac_ext |
| 17209 | cat >>conftest.$ac_ext <<_ACEOF |
| 17210 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17212 | /* Override any GCC internal prototype to avoid an error. |
| 17213 | Use char because int might match the return type of a GCC |
| 17214 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17215 | #ifdef __cplusplus |
| 17216 | extern "C" |
| 17217 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17218 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17219 | int |
| 17220 | main () |
| 17221 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17222 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17223 | ; |
| 17224 | return 0; |
| 17225 | } |
| 17226 | _ACEOF |
| 17227 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17228 | if { (ac_try="$ac_link" |
| 17229 | case "(($ac_try" in |
| 17230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17231 | *) ac_try_echo=$ac_try;; |
| 17232 | esac |
| 17233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17234 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17235 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17237 | rm -f conftest.er1 |
| 17238 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17240 | (exit $ac_status); } && |
| 17241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17242 | { (case "(($ac_try" in |
| 17243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17244 | *) ac_try_echo=$ac_try;; |
| 17245 | esac |
| 17246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17247 | (eval "$ac_try") 2>&5 |
| 17248 | ac_status=$? |
| 17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17250 | (exit $ac_status); }; } && |
| 17251 | { ac_try='test -s conftest$ac_exeext' |
| 17252 | { (case "(($ac_try" in |
| 17253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17254 | *) ac_try_echo=$ac_try;; |
| 17255 | esac |
| 17256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17257 | (eval "$ac_try") 2>&5 |
| 17258 | ac_status=$? |
| 17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17260 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17261 | ac_cv_lib_dld_shl_load=yes |
| 17262 | else |
| 17263 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17266 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17267 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17268 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17269 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17270 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | LIBS=$ac_check_lib_save_LIBS |
| 17272 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17273 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17274 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17275 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17276 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17277 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17278 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17279 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17280 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17282 | else |
| 17283 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17284 | /* confdefs.h. */ |
| 17285 | _ACEOF |
| 17286 | cat confdefs.h >>conftest.$ac_ext |
| 17287 | cat >>conftest.$ac_ext <<_ACEOF |
| 17288 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17289 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17291 | #define dlopen innocuous_dlopen |
| 17292 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17293 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17294 | which can conflict with char dlopen (); below. |
| 17295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17296 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17297 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17298 | #ifdef __STDC__ |
| 17299 | # include <limits.h> |
| 17300 | #else |
| 17301 | # include <assert.h> |
| 17302 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17303 | |
| 17304 | #undef dlopen |
| 17305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17306 | /* Override any GCC internal prototype to avoid an error. |
| 17307 | Use char because int might match the return type of a GCC |
| 17308 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17309 | #ifdef __cplusplus |
| 17310 | extern "C" |
| 17311 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17312 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17313 | /* The GNU C library defines this for functions which it implements |
| 17314 | to always fail with ENOSYS. Some functions are actually named |
| 17315 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17316 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17317 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17318 | #endif |
| 17319 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17320 | int |
| 17321 | main () |
| 17322 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17323 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17324 | ; |
| 17325 | return 0; |
| 17326 | } |
| 17327 | _ACEOF |
| 17328 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17329 | if { (ac_try="$ac_link" |
| 17330 | case "(($ac_try" in |
| 17331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17332 | *) ac_try_echo=$ac_try;; |
| 17333 | esac |
| 17334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17335 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17336 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17338 | rm -f conftest.er1 |
| 17339 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17341 | (exit $ac_status); } && |
| 17342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17343 | { (case "(($ac_try" in |
| 17344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17345 | *) ac_try_echo=$ac_try;; |
| 17346 | esac |
| 17347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17348 | (eval "$ac_try") 2>&5 |
| 17349 | ac_status=$? |
| 17350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17351 | (exit $ac_status); }; } && |
| 17352 | { ac_try='test -s conftest$ac_exeext' |
| 17353 | { (case "(($ac_try" in |
| 17354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17355 | *) ac_try_echo=$ac_try;; |
| 17356 | esac |
| 17357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17358 | (eval "$ac_try") 2>&5 |
| 17359 | ac_status=$? |
| 17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17361 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17362 | ac_cv_func_dlopen=yes |
| 17363 | else |
| 17364 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17367 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17368 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17369 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17370 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17371 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17372 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17373 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17374 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17375 | if test $ac_cv_func_dlopen = yes; then |
| 17376 | lt_cv_dlopen="dlopen" |
| 17377 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17378 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17379 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17380 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17382 | else |
| 17383 | ac_check_lib_save_LIBS=$LIBS |
| 17384 | LIBS="-ldl $LIBS" |
| 17385 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17386 | /* confdefs.h. */ |
| 17387 | _ACEOF |
| 17388 | cat confdefs.h >>conftest.$ac_ext |
| 17389 | cat >>conftest.$ac_ext <<_ACEOF |
| 17390 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17392 | /* Override any GCC internal prototype to avoid an error. |
| 17393 | Use char because int might match the return type of a GCC |
| 17394 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17395 | #ifdef __cplusplus |
| 17396 | extern "C" |
| 17397 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17398 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17399 | int |
| 17400 | main () |
| 17401 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17402 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17403 | ; |
| 17404 | return 0; |
| 17405 | } |
| 17406 | _ACEOF |
| 17407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17408 | if { (ac_try="$ac_link" |
| 17409 | case "(($ac_try" in |
| 17410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17411 | *) ac_try_echo=$ac_try;; |
| 17412 | esac |
| 17413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17414 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17415 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17417 | rm -f conftest.er1 |
| 17418 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17420 | (exit $ac_status); } && |
| 17421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17422 | { (case "(($ac_try" in |
| 17423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17424 | *) ac_try_echo=$ac_try;; |
| 17425 | esac |
| 17426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17427 | (eval "$ac_try") 2>&5 |
| 17428 | ac_status=$? |
| 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17430 | (exit $ac_status); }; } && |
| 17431 | { ac_try='test -s conftest$ac_exeext' |
| 17432 | { (case "(($ac_try" in |
| 17433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17434 | *) ac_try_echo=$ac_try;; |
| 17435 | esac |
| 17436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17437 | (eval "$ac_try") 2>&5 |
| 17438 | ac_status=$? |
| 17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17440 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17441 | ac_cv_lib_dl_dlopen=yes |
| 17442 | else |
| 17443 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17445 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17446 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17447 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17448 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17449 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17450 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17451 | LIBS=$ac_check_lib_save_LIBS |
| 17452 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17453 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17454 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17455 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17456 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17457 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17458 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17459 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17460 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17462 | else |
| 17463 | ac_check_lib_save_LIBS=$LIBS |
| 17464 | LIBS="-lsvld $LIBS" |
| 17465 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17466 | /* confdefs.h. */ |
| 17467 | _ACEOF |
| 17468 | cat confdefs.h >>conftest.$ac_ext |
| 17469 | cat >>conftest.$ac_ext <<_ACEOF |
| 17470 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17472 | /* Override any GCC internal prototype to avoid an error. |
| 17473 | Use char because int might match the return type of a GCC |
| 17474 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17475 | #ifdef __cplusplus |
| 17476 | extern "C" |
| 17477 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17478 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17479 | int |
| 17480 | main () |
| 17481 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17482 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17483 | ; |
| 17484 | return 0; |
| 17485 | } |
| 17486 | _ACEOF |
| 17487 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17488 | if { (ac_try="$ac_link" |
| 17489 | case "(($ac_try" in |
| 17490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17491 | *) ac_try_echo=$ac_try;; |
| 17492 | esac |
| 17493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17494 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17495 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17497 | rm -f conftest.er1 |
| 17498 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17500 | (exit $ac_status); } && |
| 17501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17502 | { (case "(($ac_try" in |
| 17503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17504 | *) ac_try_echo=$ac_try;; |
| 17505 | esac |
| 17506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17507 | (eval "$ac_try") 2>&5 |
| 17508 | ac_status=$? |
| 17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17510 | (exit $ac_status); }; } && |
| 17511 | { ac_try='test -s conftest$ac_exeext' |
| 17512 | { (case "(($ac_try" in |
| 17513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17514 | *) ac_try_echo=$ac_try;; |
| 17515 | esac |
| 17516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17517 | (eval "$ac_try") 2>&5 |
| 17518 | ac_status=$? |
| 17519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17520 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17521 | ac_cv_lib_svld_dlopen=yes |
| 17522 | else |
| 17523 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17526 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17527 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17528 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17529 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17530 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17531 | LIBS=$ac_check_lib_save_LIBS |
| 17532 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17533 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17534 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17535 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17536 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17537 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17538 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17539 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17540 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17542 | else |
| 17543 | ac_check_lib_save_LIBS=$LIBS |
| 17544 | LIBS="-ldld $LIBS" |
| 17545 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17546 | /* confdefs.h. */ |
| 17547 | _ACEOF |
| 17548 | cat confdefs.h >>conftest.$ac_ext |
| 17549 | cat >>conftest.$ac_ext <<_ACEOF |
| 17550 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17552 | /* Override any GCC internal prototype to avoid an error. |
| 17553 | Use char because int might match the return type of a GCC |
| 17554 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17555 | #ifdef __cplusplus |
| 17556 | extern "C" |
| 17557 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17558 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17559 | int |
| 17560 | main () |
| 17561 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17562 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17563 | ; |
| 17564 | return 0; |
| 17565 | } |
| 17566 | _ACEOF |
| 17567 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17568 | if { (ac_try="$ac_link" |
| 17569 | case "(($ac_try" in |
| 17570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17571 | *) ac_try_echo=$ac_try;; |
| 17572 | esac |
| 17573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17574 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17575 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17577 | rm -f conftest.er1 |
| 17578 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17580 | (exit $ac_status); } && |
| 17581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17582 | { (case "(($ac_try" in |
| 17583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17584 | *) ac_try_echo=$ac_try;; |
| 17585 | esac |
| 17586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17587 | (eval "$ac_try") 2>&5 |
| 17588 | ac_status=$? |
| 17589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17590 | (exit $ac_status); }; } && |
| 17591 | { ac_try='test -s conftest$ac_exeext' |
| 17592 | { (case "(($ac_try" in |
| 17593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17594 | *) ac_try_echo=$ac_try;; |
| 17595 | esac |
| 17596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17597 | (eval "$ac_try") 2>&5 |
| 17598 | ac_status=$? |
| 17599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17600 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17601 | ac_cv_lib_dld_dld_link=yes |
| 17602 | else |
| 17603 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17606 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17607 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17608 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17609 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17610 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17611 | LIBS=$ac_check_lib_save_LIBS |
| 17612 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17613 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17614 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17615 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17616 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17617 | fi |
| 17618 | |
| 17619 | |
| 17620 | fi |
| 17621 | |
| 17622 | |
| 17623 | fi |
| 17624 | |
| 17625 | |
| 17626 | fi |
| 17627 | |
| 17628 | |
| 17629 | fi |
| 17630 | |
| 17631 | |
| 17632 | fi |
| 17633 | |
| 17634 | ;; |
| 17635 | esac |
| 17636 | |
| 17637 | if test "x$lt_cv_dlopen" != xno; then |
| 17638 | enable_dlopen=yes |
| 17639 | else |
| 17640 | enable_dlopen=no |
| 17641 | fi |
| 17642 | |
| 17643 | case $lt_cv_dlopen in |
| 17644 | dlopen) |
| 17645 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17646 | 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] | 17647 | |
| 17648 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17649 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17650 | |
| 17651 | save_LIBS="$LIBS" |
| 17652 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17654 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17655 | 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] | 17656 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17658 | else |
| 17659 | if test "$cross_compiling" = yes; then : |
| 17660 | lt_cv_dlopen_self=cross |
| 17661 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17662 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17663 | lt_status=$lt_dlunknown |
| 17664 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 17665 | #line 17665 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17666 | #include "confdefs.h" |
| 17667 | |
| 17668 | #if HAVE_DLFCN_H |
| 17669 | #include <dlfcn.h> |
| 17670 | #endif |
| 17671 | |
| 17672 | #include <stdio.h> |
| 17673 | |
| 17674 | #ifdef RTLD_GLOBAL |
| 17675 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17676 | #else |
| 17677 | # ifdef DL_GLOBAL |
| 17678 | # define LT_DLGLOBAL DL_GLOBAL |
| 17679 | # else |
| 17680 | # define LT_DLGLOBAL 0 |
| 17681 | # endif |
| 17682 | #endif |
| 17683 | |
| 17684 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17685 | find out it does not work in some platform. */ |
| 17686 | #ifndef LT_DLLAZY_OR_NOW |
| 17687 | # ifdef RTLD_LAZY |
| 17688 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17689 | # else |
| 17690 | # ifdef DL_LAZY |
| 17691 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17692 | # else |
| 17693 | # ifdef RTLD_NOW |
| 17694 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17695 | # else |
| 17696 | # ifdef DL_NOW |
| 17697 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17698 | # else |
| 17699 | # define LT_DLLAZY_OR_NOW 0 |
| 17700 | # endif |
| 17701 | # endif |
| 17702 | # endif |
| 17703 | # endif |
| 17704 | #endif |
| 17705 | |
| 17706 | #ifdef __cplusplus |
| 17707 | extern "C" void exit (int); |
| 17708 | #endif |
| 17709 | |
| 17710 | void fnord() { int i=42;} |
| 17711 | int main () |
| 17712 | { |
| 17713 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17714 | int status = $lt_dlunknown; |
| 17715 | |
| 17716 | if (self) |
| 17717 | { |
| 17718 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17719 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17720 | /* dlclose (self); */ |
| 17721 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17722 | else |
| 17723 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17724 | |
| 17725 | exit (status); |
| 17726 | } |
| 17727 | EOF |
| 17728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17729 | (eval $ac_link) 2>&5 |
| 17730 | ac_status=$? |
| 17731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17732 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17733 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17734 | lt_status=$? |
| 17735 | case x$lt_status in |
| 17736 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17737 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17738 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17739 | esac |
| 17740 | else : |
| 17741 | # compilation failed |
| 17742 | lt_cv_dlopen_self=no |
| 17743 | fi |
| 17744 | fi |
| 17745 | rm -fr conftest* |
| 17746 | |
| 17747 | |
| 17748 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17749 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17750 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17751 | |
| 17752 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17753 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17754 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17755 | 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] | 17756 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17758 | else |
| 17759 | if test "$cross_compiling" = yes; then : |
| 17760 | lt_cv_dlopen_self_static=cross |
| 17761 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17762 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17763 | lt_status=$lt_dlunknown |
| 17764 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 17765 | #line 17765 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17766 | #include "confdefs.h" |
| 17767 | |
| 17768 | #if HAVE_DLFCN_H |
| 17769 | #include <dlfcn.h> |
| 17770 | #endif |
| 17771 | |
| 17772 | #include <stdio.h> |
| 17773 | |
| 17774 | #ifdef RTLD_GLOBAL |
| 17775 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17776 | #else |
| 17777 | # ifdef DL_GLOBAL |
| 17778 | # define LT_DLGLOBAL DL_GLOBAL |
| 17779 | # else |
| 17780 | # define LT_DLGLOBAL 0 |
| 17781 | # endif |
| 17782 | #endif |
| 17783 | |
| 17784 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17785 | find out it does not work in some platform. */ |
| 17786 | #ifndef LT_DLLAZY_OR_NOW |
| 17787 | # ifdef RTLD_LAZY |
| 17788 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17789 | # else |
| 17790 | # ifdef DL_LAZY |
| 17791 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17792 | # else |
| 17793 | # ifdef RTLD_NOW |
| 17794 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17795 | # else |
| 17796 | # ifdef DL_NOW |
| 17797 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17798 | # else |
| 17799 | # define LT_DLLAZY_OR_NOW 0 |
| 17800 | # endif |
| 17801 | # endif |
| 17802 | # endif |
| 17803 | # endif |
| 17804 | #endif |
| 17805 | |
| 17806 | #ifdef __cplusplus |
| 17807 | extern "C" void exit (int); |
| 17808 | #endif |
| 17809 | |
| 17810 | void fnord() { int i=42;} |
| 17811 | int main () |
| 17812 | { |
| 17813 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17814 | int status = $lt_dlunknown; |
| 17815 | |
| 17816 | if (self) |
| 17817 | { |
| 17818 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17819 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17820 | /* dlclose (self); */ |
| 17821 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17822 | else |
| 17823 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17824 | |
| 17825 | exit (status); |
| 17826 | } |
| 17827 | EOF |
| 17828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17829 | (eval $ac_link) 2>&5 |
| 17830 | ac_status=$? |
| 17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17832 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17833 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17834 | lt_status=$? |
| 17835 | case x$lt_status in |
| 17836 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17837 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17838 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17839 | esac |
| 17840 | else : |
| 17841 | # compilation failed |
| 17842 | lt_cv_dlopen_self_static=no |
| 17843 | fi |
| 17844 | fi |
| 17845 | rm -fr conftest* |
| 17846 | |
| 17847 | |
| 17848 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17849 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17850 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17851 | fi |
| 17852 | |
| 17853 | CPPFLAGS="$save_CPPFLAGS" |
| 17854 | LDFLAGS="$save_LDFLAGS" |
| 17855 | LIBS="$save_LIBS" |
| 17856 | ;; |
| 17857 | esac |
| 17858 | |
| 17859 | case $lt_cv_dlopen_self in |
| 17860 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17861 | *) enable_dlopen_self=unknown ;; |
| 17862 | esac |
| 17863 | |
| 17864 | case $lt_cv_dlopen_self_static in |
| 17865 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17866 | *) enable_dlopen_self_static=unknown ;; |
| 17867 | esac |
| 17868 | fi |
| 17869 | |
| 17870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17871 | # Report which library types will actually be built |
| 17872 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17873 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17874 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17875 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17877 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17878 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17879 | test "$can_build_shared" = "no" && enable_shared=no |
| 17880 | |
| 17881 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17882 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17883 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17884 | aix3*) |
| 17885 | test "$enable_shared" = yes && enable_static=no |
| 17886 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17887 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17888 | postinstall_cmds='$RANLIB $lib' |
| 17889 | fi |
| 17890 | ;; |
| 17891 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17892 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17893 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17894 | test "$enable_shared" = yes && enable_static=no |
| 17895 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17896 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17897 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17898 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17899 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17901 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17902 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17903 | # Make sure either enable_shared or enable_static is yes. |
| 17904 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17905 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17906 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17907 | |
| 17908 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17909 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17910 | # with your package, and you will get complaints that there are |
| 17911 | # no rules to generate ltmain.sh. |
| 17912 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17913 | # See if we are running on zsh, and set the options which allow our commands through |
| 17914 | # without removal of \ escapes. |
| 17915 | if test -n "${ZSH_VERSION+set}" ; then |
| 17916 | setopt NO_GLOB_SUBST |
| 17917 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17918 | # Now quote all the things that may contain metacharacters while being |
| 17919 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17920 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17921 | 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] | 17922 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17923 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17924 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17925 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17926 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17927 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17928 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17929 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17930 | compiler \ |
| 17931 | CC \ |
| 17932 | LD \ |
| 17933 | lt_prog_compiler_wl \ |
| 17934 | lt_prog_compiler_pic \ |
| 17935 | lt_prog_compiler_static \ |
| 17936 | lt_prog_compiler_no_builtin_flag \ |
| 17937 | export_dynamic_flag_spec \ |
| 17938 | thread_safe_flag_spec \ |
| 17939 | whole_archive_flag_spec \ |
| 17940 | enable_shared_with_static_runtimes \ |
| 17941 | old_archive_cmds \ |
| 17942 | old_archive_from_new_cmds \ |
| 17943 | predep_objects \ |
| 17944 | postdep_objects \ |
| 17945 | predeps \ |
| 17946 | postdeps \ |
| 17947 | compiler_lib_search_path \ |
| 17948 | archive_cmds \ |
| 17949 | archive_expsym_cmds \ |
| 17950 | postinstall_cmds \ |
| 17951 | postuninstall_cmds \ |
| 17952 | old_archive_from_expsyms_cmds \ |
| 17953 | allow_undefined_flag \ |
| 17954 | no_undefined_flag \ |
| 17955 | export_symbols_cmds \ |
| 17956 | hardcode_libdir_flag_spec \ |
| 17957 | hardcode_libdir_flag_spec_ld \ |
| 17958 | hardcode_libdir_separator \ |
| 17959 | hardcode_automatic \ |
| 17960 | module_cmds \ |
| 17961 | module_expsym_cmds \ |
| 17962 | lt_cv_prog_compiler_c_o \ |
| 17963 | exclude_expsyms \ |
| 17964 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17965 | |
| 17966 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17967 | old_archive_cmds | \ |
| 17968 | old_archive_from_new_cmds | \ |
| 17969 | archive_cmds | \ |
| 17970 | archive_expsym_cmds | \ |
| 17971 | module_cmds | \ |
| 17972 | module_expsym_cmds | \ |
| 17973 | old_archive_from_expsyms_cmds | \ |
| 17974 | export_symbols_cmds | \ |
| 17975 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17976 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17977 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17978 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17979 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17980 | 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] | 17981 | ;; |
| 17982 | *) |
| 17983 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17984 | ;; |
| 17985 | esac |
| 17986 | done |
| 17987 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17988 | case $lt_echo in |
| 17989 | *'\$0 --fallback-echo"') |
| 17990 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17991 | ;; |
| 17992 | esac |
| 17993 | |
| 17994 | cfgfile="${ofile}T" |
| 17995 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17996 | $rm -f "$cfgfile" |
| 17997 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17998 | echo "$as_me: creating $ofile" >&6;} |
| 17999 | |
| 18000 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18001 | #! $SHELL |
| 18002 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18003 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18004 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 18005 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 18006 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18007 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 18008 | # Free Software Foundation, Inc. |
| 18009 | # |
| 18010 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18011 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 18012 | # |
| 18013 | # This program is free software; you can redistribute it and/or modify |
| 18014 | # it under the terms of the GNU General Public License as published by |
| 18015 | # the Free Software Foundation; either version 2 of the License, or |
| 18016 | # (at your option) any later version. |
| 18017 | # |
| 18018 | # This program is distributed in the hope that it will be useful, but |
| 18019 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18020 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18021 | # General Public License for more details. |
| 18022 | # |
| 18023 | # You should have received a copy of the GNU General Public License |
| 18024 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18025 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18026 | # |
| 18027 | # As a special exception to the GNU General Public License, if you |
| 18028 | # distribute this file as part of a program that contains a |
| 18029 | # configuration script generated by Autoconf, you may include it under |
| 18030 | # the same distribution terms that you use for the rest of that program. |
| 18031 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18032 | # A sed program that does not truncate output. |
| 18033 | SED=$lt_SED |
| 18034 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18035 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18036 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18037 | |
| 18038 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18039 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18040 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18041 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18042 | # The names of the tagged configurations supported by this script. |
| 18043 | available_tags= |
| 18044 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18045 | # ### BEGIN LIBTOOL CONFIG |
| 18046 | |
| 18047 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18048 | |
| 18049 | # Shell to use when invoking shell scripts. |
| 18050 | SHELL=$lt_SHELL |
| 18051 | |
| 18052 | # Whether or not to build shared libraries. |
| 18053 | build_libtool_libs=$enable_shared |
| 18054 | |
| 18055 | # Whether or not to build static libraries. |
| 18056 | build_old_libs=$enable_static |
| 18057 | |
| 18058 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18059 | build_libtool_need_lc=$archive_cmds_need_lc |
| 18060 | |
| 18061 | # Whether or not to disallow shared libs when runtime libs are static |
| 18062 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18063 | |
| 18064 | # Whether or not to optimize for fast installation. |
| 18065 | fast_install=$enable_fast_install |
| 18066 | |
| 18067 | # The host system. |
| 18068 | host_alias=$host_alias |
| 18069 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18070 | host_os=$host_os |
| 18071 | |
| 18072 | # The build system. |
| 18073 | build_alias=$build_alias |
| 18074 | build=$build |
| 18075 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18076 | |
| 18077 | # An echo program that does not interpret backslashes. |
| 18078 | echo=$lt_echo |
| 18079 | |
| 18080 | # The archiver. |
| 18081 | AR=$lt_AR |
| 18082 | AR_FLAGS=$lt_AR_FLAGS |
| 18083 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18084 | # A C compiler. |
| 18085 | LTCC=$lt_LTCC |
| 18086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18087 | # LTCC compiler flags. |
| 18088 | LTCFLAGS=$lt_LTCFLAGS |
| 18089 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18090 | # A language-specific compiler. |
| 18091 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18092 | |
| 18093 | # Is the compiler the GNU C compiler? |
| 18094 | with_gcc=$GCC |
| 18095 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18096 | # An ERE matcher. |
| 18097 | EGREP=$lt_EGREP |
| 18098 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18099 | # The linker used to build libraries. |
| 18100 | LD=$lt_LD |
| 18101 | |
| 18102 | # Whether we need hard or soft links. |
| 18103 | LN_S=$lt_LN_S |
| 18104 | |
| 18105 | # A BSD-compatible nm program. |
| 18106 | NM=$lt_NM |
| 18107 | |
| 18108 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18109 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18110 | |
| 18111 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18112 | MAGIC_CMD=$MAGIC_CMD |
| 18113 | |
| 18114 | # Used on cygwin: DLL creation program. |
| 18115 | DLLTOOL="$DLLTOOL" |
| 18116 | |
| 18117 | # Used on cygwin: object dumper. |
| 18118 | OBJDUMP="$OBJDUMP" |
| 18119 | |
| 18120 | # Used on cygwin: assembler. |
| 18121 | AS="$AS" |
| 18122 | |
| 18123 | # The name of the directory that contains temporary libtool files. |
| 18124 | objdir=$objdir |
| 18125 | |
| 18126 | # How to create reloadable object files. |
| 18127 | reload_flag=$lt_reload_flag |
| 18128 | reload_cmds=$lt_reload_cmds |
| 18129 | |
| 18130 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18131 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18132 | |
| 18133 | # Object file suffix (normally "o"). |
| 18134 | objext="$ac_objext" |
| 18135 | |
| 18136 | # Old archive suffix (normally "a"). |
| 18137 | libext="$libext" |
| 18138 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18139 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18140 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18141 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18142 | # Executable file suffix (normally ""). |
| 18143 | exeext="$exeext" |
| 18144 | |
| 18145 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18146 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18147 | pic_mode=$pic_mode |
| 18148 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18149 | # What is the maximum length of a command? |
| 18150 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18151 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18152 | # Does compiler simultaneously support -c and -o options? |
| 18153 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18155 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18156 | need_locks=$lt_need_locks |
| 18157 | |
| 18158 | # Do we need the lib prefix for modules? |
| 18159 | need_lib_prefix=$need_lib_prefix |
| 18160 | |
| 18161 | # Do we need a version for libraries? |
| 18162 | need_version=$need_version |
| 18163 | |
| 18164 | # Whether dlopen is supported. |
| 18165 | dlopen_support=$enable_dlopen |
| 18166 | |
| 18167 | # Whether dlopen of programs is supported. |
| 18168 | dlopen_self=$enable_dlopen_self |
| 18169 | |
| 18170 | # Whether dlopen of statically linked programs is supported. |
| 18171 | dlopen_self_static=$enable_dlopen_self_static |
| 18172 | |
| 18173 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18174 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18175 | |
| 18176 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18177 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18178 | |
| 18179 | # Compiler flag to allow reflexive dlopens. |
| 18180 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 18181 | |
| 18182 | # Compiler flag to generate shared objects directly from archives. |
| 18183 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 18184 | |
| 18185 | # Compiler flag to generate thread-safe objects. |
| 18186 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 18187 | |
| 18188 | # Library versioning type. |
| 18189 | version_type=$version_type |
| 18190 | |
| 18191 | # Format of library name prefix. |
| 18192 | libname_spec=$lt_libname_spec |
| 18193 | |
| 18194 | # List of archive names. First name is the real one, the rest are links. |
| 18195 | # The last name is the one that the linker finds with -lNAME. |
| 18196 | library_names_spec=$lt_library_names_spec |
| 18197 | |
| 18198 | # The coded name of the library, if different from the real name. |
| 18199 | soname_spec=$lt_soname_spec |
| 18200 | |
| 18201 | # Commands used to build and install an old-style archive. |
| 18202 | RANLIB=$lt_RANLIB |
| 18203 | old_archive_cmds=$lt_old_archive_cmds |
| 18204 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18205 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18206 | |
| 18207 | # Create an old-style archive from a shared archive. |
| 18208 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 18209 | |
| 18210 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18211 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 18212 | |
| 18213 | # Commands used to build and install a shared archive. |
| 18214 | archive_cmds=$lt_archive_cmds |
| 18215 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 18216 | postinstall_cmds=$lt_postinstall_cmds |
| 18217 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18218 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18219 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18220 | module_cmds=$lt_module_cmds |
| 18221 | module_expsym_cmds=$lt_module_expsym_cmds |
| 18222 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18223 | # Commands to strip libraries. |
| 18224 | old_striplib=$lt_old_striplib |
| 18225 | striplib=$lt_striplib |
| 18226 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18227 | # Dependencies to place before the objects being linked to create a |
| 18228 | # shared library. |
| 18229 | predep_objects=$lt_predep_objects |
| 18230 | |
| 18231 | # Dependencies to place after the objects being linked to create a |
| 18232 | # shared library. |
| 18233 | postdep_objects=$lt_postdep_objects |
| 18234 | |
| 18235 | # Dependencies to place before the objects being linked to create a |
| 18236 | # shared library. |
| 18237 | predeps=$lt_predeps |
| 18238 | |
| 18239 | # Dependencies to place after the objects being linked to create a |
| 18240 | # shared library. |
| 18241 | postdeps=$lt_postdeps |
| 18242 | |
| 18243 | # The library search path used internally by the compiler when linking |
| 18244 | # a shared library. |
| 18245 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 18246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18247 | # Method to check whether dependent libraries are shared objects. |
| 18248 | deplibs_check_method=$lt_deplibs_check_method |
| 18249 | |
| 18250 | # Command to use when deplibs_check_method == file_magic. |
| 18251 | file_magic_cmd=$lt_file_magic_cmd |
| 18252 | |
| 18253 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18254 | allow_undefined_flag=$lt_allow_undefined_flag |
| 18255 | |
| 18256 | # Flag that forces no undefined symbols. |
| 18257 | no_undefined_flag=$lt_no_undefined_flag |
| 18258 | |
| 18259 | # Commands used to finish a libtool library installation in a directory. |
| 18260 | finish_cmds=$lt_finish_cmds |
| 18261 | |
| 18262 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18263 | finish_eval=$lt_finish_eval |
| 18264 | |
| 18265 | # 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] | 18266 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18267 | |
| 18268 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18270 | |
| 18271 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18272 | 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] | 18273 | |
| 18274 | # This is the shared library runtime path variable. |
| 18275 | runpath_var=$runpath_var |
| 18276 | |
| 18277 | # This is the shared library path variable. |
| 18278 | shlibpath_var=$shlibpath_var |
| 18279 | |
| 18280 | # Is shlibpath searched before the hard-coded library search path? |
| 18281 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18282 | |
| 18283 | # How to hardcode a shared library path into an executable. |
| 18284 | hardcode_action=$hardcode_action |
| 18285 | |
| 18286 | # Whether we should hardcode library paths into libraries. |
| 18287 | hardcode_into_libs=$hardcode_into_libs |
| 18288 | |
| 18289 | # Flag to hardcode \$libdir into a binary during linking. |
| 18290 | # This must work even if \$libdir does not exist. |
| 18291 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 18292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18293 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18294 | # a binary during linking. This must work even if \$libdir does |
| 18295 | # not exist. |
| 18296 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 18297 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18298 | # Whether we need a single -rpath flag with a separated argument. |
| 18299 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18300 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18301 | # 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] | 18302 | # resulting binary. |
| 18303 | hardcode_direct=$hardcode_direct |
| 18304 | |
| 18305 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18306 | # resulting binary. |
| 18307 | hardcode_minus_L=$hardcode_minus_L |
| 18308 | |
| 18309 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18310 | # the resulting binary. |
| 18311 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 18312 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18313 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18314 | # and all subsequent libraries and executables linked against it. |
| 18315 | hardcode_automatic=$hardcode_automatic |
| 18316 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18317 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18318 | # restored at relink time. |
| 18319 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18320 | |
| 18321 | # Whether libtool must link a program against all its dependency libraries. |
| 18322 | link_all_deplibs=$link_all_deplibs |
| 18323 | |
| 18324 | # Compile-time system search path for libraries |
| 18325 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18326 | |
| 18327 | # Run-time system search path for libraries |
| 18328 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18329 | |
| 18330 | # Fix the shell variable \$srcfile for the compiler. |
| 18331 | fix_srcfile_path="$fix_srcfile_path" |
| 18332 | |
| 18333 | # Set to yes if exported symbols are required. |
| 18334 | always_export_symbols=$always_export_symbols |
| 18335 | |
| 18336 | # The commands to list exported symbols. |
| 18337 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18338 | |
| 18339 | # The commands to extract the exported symbol list from a shared archive. |
| 18340 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18341 | |
| 18342 | # Symbols that should not be listed in the preloaded symbols. |
| 18343 | exclude_expsyms=$lt_exclude_expsyms |
| 18344 | |
| 18345 | # Symbols that must always be exported. |
| 18346 | include_expsyms=$lt_include_expsyms |
| 18347 | |
| 18348 | # ### END LIBTOOL CONFIG |
| 18349 | |
| 18350 | __EOF__ |
| 18351 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18352 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18353 | case $host_os in |
| 18354 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18355 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18356 | |
| 18357 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18358 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18359 | # vanish in a puff of smoke. |
| 18360 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18361 | COLLECT_NAMES= |
| 18362 | export COLLECT_NAMES |
| 18363 | fi |
| 18364 | EOF |
| 18365 | ;; |
| 18366 | esac |
| 18367 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18368 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18369 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18370 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18371 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18372 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18373 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18374 | mv -f "$cfgfile" "$ofile" || \ |
| 18375 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18376 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18377 | |
| 18378 | else |
| 18379 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18380 | # `config.status --recheck' to rerun these tests and create the |
| 18381 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18382 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18383 | if test -f "$ltmain_in"; then |
| 18384 | test -f Makefile && make "$ltmain" |
| 18385 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18386 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18387 | |
| 18388 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18389 | ac_ext=c |
| 18390 | ac_cpp='$CPP $CPPFLAGS' |
| 18391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18394 | |
| 18395 | CC="$lt_save_CC" |
| 18396 | |
| 18397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18398 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18399 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18400 | withval=$with_tags; tagnames="$withval" |
| 18401 | fi |
| 18402 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18403 | |
| 18404 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18405 | if test ! -f "${ofile}"; then |
| 18406 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18407 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18408 | fi |
| 18409 | |
| 18410 | if test -z "$LTCC"; then |
| 18411 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18412 | if test -z "$LTCC"; then |
| 18413 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18414 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18415 | else |
| 18416 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18417 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18418 | fi |
| 18419 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18420 | if test -z "$LTCFLAGS"; then |
| 18421 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18422 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18423 | |
| 18424 | # Extract list of available tagged configurations in $ofile. |
| 18425 | # Note that this assumes the entire list is on one line. |
| 18426 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18427 | |
| 18428 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18429 | for tagname in $tagnames; do |
| 18430 | IFS="$lt_save_ifs" |
| 18431 | # Check whether tagname contains only valid characters |
| 18432 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18433 | "") ;; |
| 18434 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18435 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18436 | { (exit 1); exit 1; }; } |
| 18437 | ;; |
| 18438 | esac |
| 18439 | |
| 18440 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18441 | then |
| 18442 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18443 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18444 | { (exit 1); exit 1; }; } |
| 18445 | fi |
| 18446 | |
| 18447 | # Update the list of available tags. |
| 18448 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18449 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18450 | |
| 18451 | case $tagname in |
| 18452 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18453 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18454 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18455 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18456 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18457 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18461 | |
| 18462 | |
| 18463 | |
| 18464 | |
| 18465 | archive_cmds_need_lc_CXX=no |
| 18466 | allow_undefined_flag_CXX= |
| 18467 | always_export_symbols_CXX=no |
| 18468 | archive_expsym_cmds_CXX= |
| 18469 | export_dynamic_flag_spec_CXX= |
| 18470 | hardcode_direct_CXX=no |
| 18471 | hardcode_libdir_flag_spec_CXX= |
| 18472 | hardcode_libdir_flag_spec_ld_CXX= |
| 18473 | hardcode_libdir_separator_CXX= |
| 18474 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18475 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18476 | hardcode_automatic_CXX=no |
| 18477 | module_cmds_CXX= |
| 18478 | module_expsym_cmds_CXX= |
| 18479 | link_all_deplibs_CXX=unknown |
| 18480 | old_archive_cmds_CXX=$old_archive_cmds |
| 18481 | no_undefined_flag_CXX= |
| 18482 | whole_archive_flag_spec_CXX= |
| 18483 | enable_shared_with_static_runtimes_CXX=no |
| 18484 | |
| 18485 | # Dependencies to place before and after the object being linked: |
| 18486 | predep_objects_CXX= |
| 18487 | postdep_objects_CXX= |
| 18488 | predeps_CXX= |
| 18489 | postdeps_CXX= |
| 18490 | compiler_lib_search_path_CXX= |
| 18491 | |
| 18492 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18493 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18494 | |
| 18495 | # Object file extension for compiled C++ test sources. |
| 18496 | objext=o |
| 18497 | objext_CXX=$objext |
| 18498 | |
| 18499 | # Code to be used in simple compile tests |
| 18500 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18501 | |
| 18502 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18503 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18504 | |
| 18505 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18506 | |
| 18507 | # If no C compiler was specified, use CC. |
| 18508 | LTCC=${LTCC-"$CC"} |
| 18509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18510 | # If no C compiler flags were specified, use CFLAGS. |
| 18511 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18513 | # Allow CC to be a program name with arguments. |
| 18514 | compiler=$CC |
| 18515 | |
| 18516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18517 | # save warnings/boilerplate of simple test code |
| 18518 | ac_outfile=conftest.$ac_objext |
| 18519 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18520 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18521 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18522 | $rm conftest* |
| 18523 | |
| 18524 | ac_outfile=conftest.$ac_objext |
| 18525 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18526 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18527 | _lt_linker_boilerplate=`cat conftest.err` |
| 18528 | $rm conftest* |
| 18529 | |
| 18530 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18531 | # Allow CC to be a program name with arguments. |
| 18532 | lt_save_CC=$CC |
| 18533 | lt_save_LD=$LD |
| 18534 | lt_save_GCC=$GCC |
| 18535 | GCC=$GXX |
| 18536 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18537 | lt_save_path_LD=$lt_cv_path_LD |
| 18538 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18539 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18540 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18541 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18542 | fi |
| 18543 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18544 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18545 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18546 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18547 | fi |
| 18548 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18549 | CC=${CXX-"c++"} |
| 18550 | compiler=$CC |
| 18551 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18552 | for cc_temp in $compiler""; do |
| 18553 | case $cc_temp in |
| 18554 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18555 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18556 | \-*) ;; |
| 18557 | *) break;; |
| 18558 | esac |
| 18559 | done |
| 18560 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18561 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18562 | |
| 18563 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18564 | # no_builtin_flag separately |
| 18565 | if test "$GXX" = yes; then |
| 18566 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18567 | else |
| 18568 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18569 | fi |
| 18570 | |
| 18571 | if test "$GXX" = yes; then |
| 18572 | # Set up default GNU C++ configuration |
| 18573 | |
| 18574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18575 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18576 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18577 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18578 | else |
| 18579 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18580 | fi |
| 18581 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18582 | ac_prog=ld |
| 18583 | if test "$GCC" = yes; then |
| 18584 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18585 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18586 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18587 | case $host in |
| 18588 | *-*-mingw*) |
| 18589 | # gcc leaves a trailing carriage return which upsets mingw |
| 18590 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18591 | *) |
| 18592 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18593 | esac |
| 18594 | case $ac_prog in |
| 18595 | # Accept absolute paths. |
| 18596 | [\\/]* | ?:[\\/]*) |
| 18597 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18598 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18599 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18600 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18601 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18602 | done |
| 18603 | test -z "$LD" && LD="$ac_prog" |
| 18604 | ;; |
| 18605 | "") |
| 18606 | # If it fails, then pretend we aren't using GCC. |
| 18607 | ac_prog=ld |
| 18608 | ;; |
| 18609 | *) |
| 18610 | # If it is relative, then search for the first ld in PATH. |
| 18611 | with_gnu_ld=unknown |
| 18612 | ;; |
| 18613 | esac |
| 18614 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18615 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18616 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18617 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18618 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18619 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18620 | fi |
| 18621 | if test "${lt_cv_path_LD+set}" = set; then |
| 18622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18623 | else |
| 18624 | if test -z "$LD"; then |
| 18625 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18626 | for ac_dir in $PATH; do |
| 18627 | IFS="$lt_save_ifs" |
| 18628 | test -z "$ac_dir" && ac_dir=. |
| 18629 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18630 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18631 | # 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] | 18632 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18633 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18634 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18635 | *GNU* | *'with BFD'*) |
| 18636 | test "$with_gnu_ld" != no && break |
| 18637 | ;; |
| 18638 | *) |
| 18639 | test "$with_gnu_ld" != yes && break |
| 18640 | ;; |
| 18641 | esac |
| 18642 | fi |
| 18643 | done |
| 18644 | IFS="$lt_save_ifs" |
| 18645 | else |
| 18646 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18647 | fi |
| 18648 | fi |
| 18649 | |
| 18650 | LD="$lt_cv_path_LD" |
| 18651 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18652 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18653 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18654 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18655 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18656 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18657 | fi |
| 18658 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18659 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18660 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18661 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18662 | 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] | 18663 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18665 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18666 | # 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] | 18667 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18668 | *GNU* | *'with BFD'*) |
| 18669 | lt_cv_prog_gnu_ld=yes |
| 18670 | ;; |
| 18671 | *) |
| 18672 | lt_cv_prog_gnu_ld=no |
| 18673 | ;; |
| 18674 | esac |
| 18675 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18676 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18677 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18678 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18679 | |
| 18680 | |
| 18681 | |
| 18682 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18683 | # archiving commands below assume that GNU ld is being used. |
| 18684 | if test "$with_gnu_ld" = yes; then |
| 18685 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18686 | 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' |
| 18687 | |
| 18688 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18689 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18690 | |
| 18691 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18692 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18693 | # investigate it a little bit more. (MM) |
| 18694 | wlarc='${wl}' |
| 18695 | |
| 18696 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18697 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18698 | grep 'no-whole-archive' > /dev/null; then |
| 18699 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18700 | else |
| 18701 | whole_archive_flag_spec_CXX= |
| 18702 | fi |
| 18703 | else |
| 18704 | with_gnu_ld=no |
| 18705 | wlarc= |
| 18706 | |
| 18707 | # A generic and very simple default shared library creation |
| 18708 | # command for GNU C++ for the case where it uses the native |
| 18709 | # linker, instead of GNU ld. If possible, this setting should |
| 18710 | # overridden to take advantage of the native linker features on |
| 18711 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18712 | 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] | 18713 | fi |
| 18714 | |
| 18715 | # Commands to make compiler produce verbose output that lists |
| 18716 | # what "hidden" libraries, object files and flags are used when |
| 18717 | # linking a shared library. |
| 18718 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18719 | |
| 18720 | else |
| 18721 | GXX=no |
| 18722 | with_gnu_ld=no |
| 18723 | wlarc= |
| 18724 | fi |
| 18725 | |
| 18726 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18727 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18728 | 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] | 18729 | ld_shlibs_CXX=yes |
| 18730 | case $host_os in |
| 18731 | aix3*) |
| 18732 | # FIXME: insert proper C++ library support |
| 18733 | ld_shlibs_CXX=no |
| 18734 | ;; |
| 18735 | aix4* | aix5*) |
| 18736 | if test "$host_cpu" = ia64; then |
| 18737 | # On IA64, the linker does run time linking by default, so we don't |
| 18738 | # have to do anything special. |
| 18739 | aix_use_runtimelinking=no |
| 18740 | exp_sym_flag='-Bexport' |
| 18741 | no_entry_flag="" |
| 18742 | else |
| 18743 | aix_use_runtimelinking=no |
| 18744 | |
| 18745 | # Test if we are trying to use run time linking or normal |
| 18746 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18747 | # need to do runtime linking. |
| 18748 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18749 | for ld_flag in $LDFLAGS; do |
| 18750 | case $ld_flag in |
| 18751 | *-brtl*) |
| 18752 | aix_use_runtimelinking=yes |
| 18753 | break |
| 18754 | ;; |
| 18755 | esac |
| 18756 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18757 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18758 | esac |
| 18759 | |
| 18760 | exp_sym_flag='-bexport' |
| 18761 | no_entry_flag='-bnoentry' |
| 18762 | fi |
| 18763 | |
| 18764 | # When large executables or shared objects are built, AIX ld can |
| 18765 | # have problems creating the table of contents. If linking a library |
| 18766 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18767 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18768 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18769 | |
| 18770 | archive_cmds_CXX='' |
| 18771 | hardcode_direct_CXX=yes |
| 18772 | hardcode_libdir_separator_CXX=':' |
| 18773 | link_all_deplibs_CXX=yes |
| 18774 | |
| 18775 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18776 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18777 | # We only want to do this on AIX 4.2 and lower, the check |
| 18778 | # below for broken collect2 doesn't work under 4.3+ |
| 18779 | collect2name=`${CC} -print-prog-name=collect2` |
| 18780 | if test -f "$collect2name" && \ |
| 18781 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18782 | then |
| 18783 | # We have reworked collect2 |
| 18784 | hardcode_direct_CXX=yes |
| 18785 | else |
| 18786 | # We have old collect2 |
| 18787 | hardcode_direct_CXX=unsupported |
| 18788 | # It fails to find uninstalled libraries when the uninstalled |
| 18789 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18790 | # to unsupported forces relinking |
| 18791 | hardcode_minus_L_CXX=yes |
| 18792 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18793 | hardcode_libdir_separator_CXX= |
| 18794 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18795 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18796 | esac |
| 18797 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18798 | if test "$aix_use_runtimelinking" = yes; then |
| 18799 | shared_flag="$shared_flag "'${wl}-G' |
| 18800 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18801 | else |
| 18802 | # not using gcc |
| 18803 | if test "$host_cpu" = ia64; then |
| 18804 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18805 | # chokes on -Wl,-G. The following line is correct: |
| 18806 | shared_flag='-G' |
| 18807 | else |
| 18808 | if test "$aix_use_runtimelinking" = yes; then |
| 18809 | shared_flag='${wl}-G' |
| 18810 | else |
| 18811 | shared_flag='${wl}-bM:SRE' |
| 18812 | fi |
| 18813 | fi |
| 18814 | fi |
| 18815 | |
| 18816 | # It seems that -bexpall does not export symbols beginning with |
| 18817 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18818 | always_export_symbols_CXX=yes |
| 18819 | if test "$aix_use_runtimelinking" = yes; then |
| 18820 | # Warning - without using the other runtime loading flags (-brtl), |
| 18821 | # -berok will link without error, but may produce a broken library. |
| 18822 | allow_undefined_flag_CXX='-berok' |
| 18823 | # Determine the default libpath from the value encoded in an empty executable. |
| 18824 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18825 | /* confdefs.h. */ |
| 18826 | _ACEOF |
| 18827 | cat confdefs.h >>conftest.$ac_ext |
| 18828 | cat >>conftest.$ac_ext <<_ACEOF |
| 18829 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18830 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18831 | int |
| 18832 | main () |
| 18833 | { |
| 18834 | |
| 18835 | ; |
| 18836 | return 0; |
| 18837 | } |
| 18838 | _ACEOF |
| 18839 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18840 | if { (ac_try="$ac_link" |
| 18841 | case "(($ac_try" in |
| 18842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18843 | *) ac_try_echo=$ac_try;; |
| 18844 | esac |
| 18845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18846 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18847 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18849 | rm -f conftest.er1 |
| 18850 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18852 | (exit $ac_status); } && |
| 18853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18854 | { (case "(($ac_try" in |
| 18855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18856 | *) ac_try_echo=$ac_try;; |
| 18857 | esac |
| 18858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18859 | (eval "$ac_try") 2>&5 |
| 18860 | ac_status=$? |
| 18861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18862 | (exit $ac_status); }; } && |
| 18863 | { ac_try='test -s conftest$ac_exeext' |
| 18864 | { (case "(($ac_try" in |
| 18865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18866 | *) ac_try_echo=$ac_try;; |
| 18867 | esac |
| 18868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18869 | (eval "$ac_try") 2>&5 |
| 18870 | ac_status=$? |
| 18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18872 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18873 | |
| 18874 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18875 | }'` |
| 18876 | # Check for a 64-bit object if we didn't find anything. |
| 18877 | 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; } |
| 18878 | }'`; fi |
| 18879 | else |
| 18880 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18883 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18884 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18885 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18886 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18887 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18888 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18889 | |
| 18890 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18892 | 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] | 18893 | else |
| 18894 | if test "$host_cpu" = ia64; then |
| 18895 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18896 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18897 | 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] | 18898 | else |
| 18899 | # Determine the default libpath from the value encoded in an empty executable. |
| 18900 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18901 | /* confdefs.h. */ |
| 18902 | _ACEOF |
| 18903 | cat confdefs.h >>conftest.$ac_ext |
| 18904 | cat >>conftest.$ac_ext <<_ACEOF |
| 18905 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18906 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18907 | int |
| 18908 | main () |
| 18909 | { |
| 18910 | |
| 18911 | ; |
| 18912 | return 0; |
| 18913 | } |
| 18914 | _ACEOF |
| 18915 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18916 | if { (ac_try="$ac_link" |
| 18917 | case "(($ac_try" in |
| 18918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18919 | *) ac_try_echo=$ac_try;; |
| 18920 | esac |
| 18921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18922 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18923 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18925 | rm -f conftest.er1 |
| 18926 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18928 | (exit $ac_status); } && |
| 18929 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18930 | { (case "(($ac_try" in |
| 18931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18932 | *) ac_try_echo=$ac_try;; |
| 18933 | esac |
| 18934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18935 | (eval "$ac_try") 2>&5 |
| 18936 | ac_status=$? |
| 18937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18938 | (exit $ac_status); }; } && |
| 18939 | { ac_try='test -s conftest$ac_exeext' |
| 18940 | { (case "(($ac_try" in |
| 18941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18942 | *) ac_try_echo=$ac_try;; |
| 18943 | esac |
| 18944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18945 | (eval "$ac_try") 2>&5 |
| 18946 | ac_status=$? |
| 18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18948 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18949 | |
| 18950 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18951 | }'` |
| 18952 | # Check for a 64-bit object if we didn't find anything. |
| 18953 | 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; } |
| 18954 | }'`; fi |
| 18955 | else |
| 18956 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18959 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18960 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18961 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18962 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18963 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18964 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18965 | |
| 18966 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18967 | # Warning - without using the other run time loading flags, |
| 18968 | # -berok will link without error, but may produce a broken library. |
| 18969 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18970 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18971 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18972 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18973 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18974 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18975 | 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] | 18976 | fi |
| 18977 | fi |
| 18978 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18979 | |
| 18980 | beos*) |
| 18981 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18982 | allow_undefined_flag_CXX=unsupported |
| 18983 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18984 | # support --undefined. This deserves some investigation. FIXME |
| 18985 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18986 | else |
| 18987 | ld_shlibs_CXX=no |
| 18988 | fi |
| 18989 | ;; |
| 18990 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18991 | chorus*) |
| 18992 | case $cc_basename in |
| 18993 | *) |
| 18994 | # FIXME: insert proper C++ library support |
| 18995 | ld_shlibs_CXX=no |
| 18996 | ;; |
| 18997 | esac |
| 18998 | ;; |
| 18999 | |
| 19000 | cygwin* | mingw* | pw32*) |
| 19001 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 19002 | # as there is no search path for DLLs. |
| 19003 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 19004 | allow_undefined_flag_CXX=unsupported |
| 19005 | always_export_symbols_CXX=no |
| 19006 | enable_shared_with_static_runtimes_CXX=yes |
| 19007 | |
| 19008 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19009 | 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] | 19010 | # If the export-symbols file already is a .def file (1st line |
| 19011 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19012 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19013 | cp $export_symbols $output_objdir/$soname.def; |
| 19014 | else |
| 19015 | echo EXPORTS > $output_objdir/$soname.def; |
| 19016 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19017 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19018 | $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] | 19019 | else |
| 19020 | ld_shlibs_CXX=no |
| 19021 | fi |
| 19022 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19023 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19024 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19025 | rhapsody* | darwin1.[012]) |
| 19026 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 19027 | ;; |
| 19028 | *) # Darwin 1.3 on |
| 19029 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 19030 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19031 | else |
| 19032 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 19033 | 10.[012]) |
| 19034 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19035 | ;; |
| 19036 | 10.*) |
| 19037 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 19038 | ;; |
| 19039 | esac |
| 19040 | fi |
| 19041 | ;; |
| 19042 | esac |
| 19043 | archive_cmds_need_lc_CXX=no |
| 19044 | hardcode_direct_CXX=no |
| 19045 | hardcode_automatic_CXX=yes |
| 19046 | hardcode_shlibpath_var_CXX=unsupported |
| 19047 | whole_archive_flag_spec_CXX='' |
| 19048 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19049 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19050 | if test "$GXX" = yes ; then |
| 19051 | lt_int_apple_cc_single_mod=no |
| 19052 | output_verbose_link_cmd='echo' |
| 19053 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 19054 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19055 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19056 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19057 | 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] | 19058 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19059 | 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] | 19060 | fi |
| 19061 | 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] | 19062 | # 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] | 19063 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19064 | 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] | 19065 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19066 | 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] | 19067 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19068 | 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] | 19069 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19070 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19071 | xlc*) |
| 19072 | output_verbose_link_cmd='echo' |
| 19073 | 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' |
| 19074 | 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] | 19075 | # 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] | 19076 | 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}' |
| 19077 | 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] | 19078 | ;; |
| 19079 | *) |
| 19080 | ld_shlibs_CXX=no |
| 19081 | ;; |
| 19082 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19083 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19084 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19085 | |
| 19086 | dgux*) |
| 19087 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19088 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19089 | # FIXME: insert proper C++ library support |
| 19090 | ld_shlibs_CXX=no |
| 19091 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19092 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19093 | # Green Hills C++ Compiler |
| 19094 | # FIXME: insert proper C++ library support |
| 19095 | ld_shlibs_CXX=no |
| 19096 | ;; |
| 19097 | *) |
| 19098 | # FIXME: insert proper C++ library support |
| 19099 | ld_shlibs_CXX=no |
| 19100 | ;; |
| 19101 | esac |
| 19102 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19103 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19104 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 19105 | ld_shlibs_CXX=no |
| 19106 | ;; |
| 19107 | freebsd-elf*) |
| 19108 | archive_cmds_need_lc_CXX=no |
| 19109 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19110 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19111 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 19112 | # conventions |
| 19113 | ld_shlibs_CXX=yes |
| 19114 | ;; |
| 19115 | gnu*) |
| 19116 | ;; |
| 19117 | hpux9*) |
| 19118 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19119 | hardcode_libdir_separator_CXX=: |
| 19120 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19121 | hardcode_direct_CXX=yes |
| 19122 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19123 | # but as the default |
| 19124 | # location of the library. |
| 19125 | |
| 19126 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19127 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19128 | # FIXME: insert proper C++ library support |
| 19129 | ld_shlibs_CXX=no |
| 19130 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19131 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19132 | 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] | 19133 | # Commands to make compiler produce verbose output that lists |
| 19134 | # what "hidden" libraries, object files and flags are used when |
| 19135 | # linking a shared library. |
| 19136 | # |
| 19137 | # There doesn't appear to be a way to prevent this compiler from |
| 19138 | # explicitly linking system object files so we need to strip them |
| 19139 | # from the output so that they don't get included in the library |
| 19140 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19141 | 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] | 19142 | ;; |
| 19143 | *) |
| 19144 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19145 | 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] | 19146 | else |
| 19147 | # FIXME: insert proper C++ library support |
| 19148 | ld_shlibs_CXX=no |
| 19149 | fi |
| 19150 | ;; |
| 19151 | esac |
| 19152 | ;; |
| 19153 | hpux10*|hpux11*) |
| 19154 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19155 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19156 | hardcode_libdir_separator_CXX=: |
| 19157 | |
| 19158 | case $host_cpu in |
| 19159 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19160 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19161 | ;; |
| 19162 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19163 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19164 | ;; |
| 19165 | esac |
| 19166 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19167 | case $host_cpu in |
| 19168 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19169 | hardcode_direct_CXX=no |
| 19170 | hardcode_shlibpath_var_CXX=no |
| 19171 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19172 | *) |
| 19173 | hardcode_direct_CXX=yes |
| 19174 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19175 | # but as the default |
| 19176 | # location of the library. |
| 19177 | ;; |
| 19178 | esac |
| 19179 | |
| 19180 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19181 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19182 | # FIXME: insert proper C++ library support |
| 19183 | ld_shlibs_CXX=no |
| 19184 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19185 | aCC*) |
| 19186 | case $host_cpu in |
| 19187 | hppa*64*) |
| 19188 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19189 | ;; |
| 19190 | ia64*) |
| 19191 | 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] | 19192 | ;; |
| 19193 | *) |
| 19194 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19195 | ;; |
| 19196 | esac |
| 19197 | # Commands to make compiler produce verbose output that lists |
| 19198 | # what "hidden" libraries, object files and flags are used when |
| 19199 | # linking a shared library. |
| 19200 | # |
| 19201 | # There doesn't appear to be a way to prevent this compiler from |
| 19202 | # explicitly linking system object files so we need to strip them |
| 19203 | # from the output so that they don't get included in the library |
| 19204 | # dependencies. |
| 19205 | 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' |
| 19206 | ;; |
| 19207 | *) |
| 19208 | if test "$GXX" = yes; then |
| 19209 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19210 | case $host_cpu in |
| 19211 | hppa*64*) |
| 19212 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19213 | ;; |
| 19214 | ia64*) |
| 19215 | 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] | 19216 | ;; |
| 19217 | *) |
| 19218 | 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' |
| 19219 | ;; |
| 19220 | esac |
| 19221 | fi |
| 19222 | else |
| 19223 | # FIXME: insert proper C++ library support |
| 19224 | ld_shlibs_CXX=no |
| 19225 | fi |
| 19226 | ;; |
| 19227 | esac |
| 19228 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19229 | interix3*) |
| 19230 | hardcode_direct_CXX=no |
| 19231 | hardcode_shlibpath_var_CXX=no |
| 19232 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19233 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19234 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 19235 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 19236 | # default) and relocated if they conflict, which is a slow very memory |
| 19237 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 19238 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 19239 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 19240 | 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' |
| 19241 | 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' |
| 19242 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19243 | irix5* | irix6*) |
| 19244 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19245 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19246 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19247 | 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] | 19248 | |
| 19249 | # Archives containing C++ object files must be created using |
| 19250 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 19251 | # necessary to make sure instantiated templates are included |
| 19252 | # in the archive. |
| 19253 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 19254 | ;; |
| 19255 | *) |
| 19256 | if test "$GXX" = yes; then |
| 19257 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19258 | 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] | 19259 | else |
| 19260 | 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' |
| 19261 | fi |
| 19262 | fi |
| 19263 | link_all_deplibs_CXX=yes |
| 19264 | ;; |
| 19265 | esac |
| 19266 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19267 | hardcode_libdir_separator_CXX=: |
| 19268 | ;; |
| 19269 | linux*) |
| 19270 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19271 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19272 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19273 | |
| 19274 | # KCC will only create a shared library if the output file |
| 19275 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19276 | # to its proper name (with version) after linking. |
| 19277 | 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' |
| 19278 | 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' |
| 19279 | # Commands to make compiler produce verbose output that lists |
| 19280 | # what "hidden" libraries, object files and flags are used when |
| 19281 | # linking a shared library. |
| 19282 | # |
| 19283 | # There doesn't appear to be a way to prevent this compiler from |
| 19284 | # explicitly linking system object files so we need to strip them |
| 19285 | # from the output so that they don't get included in the library |
| 19286 | # dependencies. |
| 19287 | 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' |
| 19288 | |
| 19289 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 19290 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19291 | |
| 19292 | # Archives containing C++ object files must be created using |
| 19293 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19294 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19295 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19296 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19297 | # Intel C++ |
| 19298 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19299 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 19300 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 19301 | # earlier do not add the objects themselves. |
| 19302 | case `$CC -V 2>&1` in |
| 19303 | *"Version 7."*) |
| 19304 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19305 | 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' |
| 19306 | ;; |
| 19307 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19308 | tmp_idyn= |
| 19309 | case $host_cpu in |
| 19310 | ia64*) tmp_idyn=' -i_dynamic';; |
| 19311 | esac |
| 19312 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19313 | 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] | 19314 | ;; |
| 19315 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19316 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19317 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19318 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19319 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 19320 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19321 | pgCC*) |
| 19322 | # Portland Group C++ compiler |
| 19323 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 19324 | 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' |
| 19325 | |
| 19326 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 19327 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19328 | 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' |
| 19329 | ;; |
| 19330 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19331 | # Compaq C++ |
| 19332 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19333 | 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' |
| 19334 | |
| 19335 | runpath_var=LD_RUN_PATH |
| 19336 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19337 | hardcode_libdir_separator_CXX=: |
| 19338 | |
| 19339 | # Commands to make compiler produce verbose output that lists |
| 19340 | # what "hidden" libraries, object files and flags are used when |
| 19341 | # linking a shared library. |
| 19342 | # |
| 19343 | # There doesn't appear to be a way to prevent this compiler from |
| 19344 | # explicitly linking system object files so we need to strip them |
| 19345 | # from the output so that they don't get included in the library |
| 19346 | # dependencies. |
| 19347 | 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' |
| 19348 | ;; |
| 19349 | esac |
| 19350 | ;; |
| 19351 | lynxos*) |
| 19352 | # FIXME: insert proper C++ library support |
| 19353 | ld_shlibs_CXX=no |
| 19354 | ;; |
| 19355 | m88k*) |
| 19356 | # FIXME: insert proper C++ library support |
| 19357 | ld_shlibs_CXX=no |
| 19358 | ;; |
| 19359 | mvs*) |
| 19360 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19361 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19362 | # FIXME: insert proper C++ library support |
| 19363 | ld_shlibs_CXX=no |
| 19364 | ;; |
| 19365 | *) |
| 19366 | # FIXME: insert proper C++ library support |
| 19367 | ld_shlibs_CXX=no |
| 19368 | ;; |
| 19369 | esac |
| 19370 | ;; |
| 19371 | netbsd*) |
| 19372 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19373 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19374 | wlarc= |
| 19375 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19376 | hardcode_direct_CXX=yes |
| 19377 | hardcode_shlibpath_var_CXX=no |
| 19378 | fi |
| 19379 | # Workaround some broken pre-1.5 toolchains |
| 19380 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19381 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19382 | openbsd2*) |
| 19383 | # C++ shared libraries are fairly broken |
| 19384 | ld_shlibs_CXX=no |
| 19385 | ;; |
| 19386 | openbsd*) |
| 19387 | hardcode_direct_CXX=yes |
| 19388 | hardcode_shlibpath_var_CXX=no |
| 19389 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19390 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19391 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19392 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19393 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19394 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19395 | fi |
| 19396 | output_verbose_link_cmd='echo' |
| 19397 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19398 | osf3*) |
| 19399 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19400 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19401 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19402 | |
| 19403 | # KCC will only create a shared library if the output file |
| 19404 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19405 | # to its proper name (with version) after linking. |
| 19406 | 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' |
| 19407 | |
| 19408 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19409 | hardcode_libdir_separator_CXX=: |
| 19410 | |
| 19411 | # Archives containing C++ object files must be created using |
| 19412 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19413 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19414 | |
| 19415 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19416 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19417 | # Rational C++ 2.4.1 |
| 19418 | # FIXME: insert proper C++ library support |
| 19419 | ld_shlibs_CXX=no |
| 19420 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19421 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19422 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19423 | 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] | 19424 | |
| 19425 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19426 | hardcode_libdir_separator_CXX=: |
| 19427 | |
| 19428 | # Commands to make compiler produce verbose output that lists |
| 19429 | # what "hidden" libraries, object files and flags are used when |
| 19430 | # linking a shared library. |
| 19431 | # |
| 19432 | # There doesn't appear to be a way to prevent this compiler from |
| 19433 | # explicitly linking system object files so we need to strip them |
| 19434 | # from the output so that they don't get included in the library |
| 19435 | # dependencies. |
| 19436 | 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' |
| 19437 | ;; |
| 19438 | *) |
| 19439 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19440 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19441 | 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] | 19442 | |
| 19443 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19444 | hardcode_libdir_separator_CXX=: |
| 19445 | |
| 19446 | # Commands to make compiler produce verbose output that lists |
| 19447 | # what "hidden" libraries, object files and flags are used when |
| 19448 | # linking a shared library. |
| 19449 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19450 | |
| 19451 | else |
| 19452 | # FIXME: insert proper C++ library support |
| 19453 | ld_shlibs_CXX=no |
| 19454 | fi |
| 19455 | ;; |
| 19456 | esac |
| 19457 | ;; |
| 19458 | osf4* | osf5*) |
| 19459 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19460 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19461 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19462 | |
| 19463 | # KCC will only create a shared library if the output file |
| 19464 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19465 | # to its proper name (with version) after linking. |
| 19466 | 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' |
| 19467 | |
| 19468 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19469 | hardcode_libdir_separator_CXX=: |
| 19470 | |
| 19471 | # Archives containing C++ object files must be created using |
| 19472 | # the KAI C++ compiler. |
| 19473 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19474 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19475 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19476 | # Rational C++ 2.4.1 |
| 19477 | # FIXME: insert proper C++ library support |
| 19478 | ld_shlibs_CXX=no |
| 19479 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19480 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19481 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19482 | 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] | 19483 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19484 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19485 | $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] | 19486 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19487 | |
| 19488 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19489 | hardcode_libdir_separator_CXX=: |
| 19490 | |
| 19491 | # Commands to make compiler produce verbose output that lists |
| 19492 | # what "hidden" libraries, object files and flags are used when |
| 19493 | # linking a shared library. |
| 19494 | # |
| 19495 | # There doesn't appear to be a way to prevent this compiler from |
| 19496 | # explicitly linking system object files so we need to strip them |
| 19497 | # from the output so that they don't get included in the library |
| 19498 | # dependencies. |
| 19499 | 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' |
| 19500 | ;; |
| 19501 | *) |
| 19502 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19503 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19504 | 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] | 19505 | |
| 19506 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19507 | hardcode_libdir_separator_CXX=: |
| 19508 | |
| 19509 | # Commands to make compiler produce verbose output that lists |
| 19510 | # what "hidden" libraries, object files and flags are used when |
| 19511 | # linking a shared library. |
| 19512 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19513 | |
| 19514 | else |
| 19515 | # FIXME: insert proper C++ library support |
| 19516 | ld_shlibs_CXX=no |
| 19517 | fi |
| 19518 | ;; |
| 19519 | esac |
| 19520 | ;; |
| 19521 | psos*) |
| 19522 | # FIXME: insert proper C++ library support |
| 19523 | ld_shlibs_CXX=no |
| 19524 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19525 | sunos4*) |
| 19526 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19527 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19528 | # Sun C++ 4.x |
| 19529 | # FIXME: insert proper C++ library support |
| 19530 | ld_shlibs_CXX=no |
| 19531 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19532 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19533 | # Lucid |
| 19534 | # FIXME: insert proper C++ library support |
| 19535 | ld_shlibs_CXX=no |
| 19536 | ;; |
| 19537 | *) |
| 19538 | # FIXME: insert proper C++ library support |
| 19539 | ld_shlibs_CXX=no |
| 19540 | ;; |
| 19541 | esac |
| 19542 | ;; |
| 19543 | solaris*) |
| 19544 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19545 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19546 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19547 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19548 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19549 | 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] | 19550 | 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] | 19551 | $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] | 19552 | |
| 19553 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19554 | hardcode_shlibpath_var_CXX=no |
| 19555 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19556 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19557 | *) |
| 19558 | # The C++ compiler is used as linker so we must use $wl |
| 19559 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19560 | # linker. We must also pass each convience library through |
| 19561 | # to the system linker between allextract/defaultextract. |
| 19562 | # The C++ compiler will combine linker options so we |
| 19563 | # cannot just pass the convience library names through |
| 19564 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19565 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19566 | 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] | 19567 | ;; |
| 19568 | esac |
| 19569 | link_all_deplibs_CXX=yes |
| 19570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19571 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19572 | |
| 19573 | # Archives containing C++ object files must be created using |
| 19574 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19575 | # necessary to make sure instantiated templates are included |
| 19576 | # in the archive. |
| 19577 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19578 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19579 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19580 | # Green Hills C++ Compiler |
| 19581 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19582 | |
| 19583 | # The C++ compiler must be used to create the archive. |
| 19584 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19585 | ;; |
| 19586 | *) |
| 19587 | # GNU C++ compiler with Solaris linker |
| 19588 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19589 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19590 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19591 | 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] | 19592 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19593 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19594 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19595 | # Commands to make compiler produce verbose output that lists |
| 19596 | # what "hidden" libraries, object files and flags are used when |
| 19597 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19598 | 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] | 19599 | else |
| 19600 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19601 | # platform. |
| 19602 | 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] | 19603 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19604 | $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] | 19605 | |
| 19606 | # Commands to make compiler produce verbose output that lists |
| 19607 | # what "hidden" libraries, object files and flags are used when |
| 19608 | # linking a shared library. |
| 19609 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19610 | fi |
| 19611 | |
| 19612 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19613 | fi |
| 19614 | ;; |
| 19615 | esac |
| 19616 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19617 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19618 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19619 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19620 | hardcode_shlibpath_var_CXX=no |
| 19621 | runpath_var='LD_RUN_PATH' |
| 19622 | |
| 19623 | case $cc_basename in |
| 19624 | CC*) |
| 19625 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19626 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19627 | ;; |
| 19628 | *) |
| 19629 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19630 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19631 | ;; |
| 19632 | esac |
| 19633 | ;; |
| 19634 | sysv5* | sco3.2v5* | sco5v6*) |
| 19635 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19636 | # link with -lc, and that would cause any symbols used from libc to |
| 19637 | # always be unresolved, which means just about no library would |
| 19638 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19639 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19640 | # as -z defs. |
| 19641 | # For security reasons, it is highly recommended that you always |
| 19642 | # use absolute paths for naming shared libraries, and exclude the |
| 19643 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19644 | # requires that you compile everything twice, which is a pain. |
| 19645 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19646 | # non-empty value in the environment. Most likely only useful for |
| 19647 | # creating official distributions of packages. |
| 19648 | # This is a hack until libtool officially supports absolute path |
| 19649 | # names for shared libraries. |
| 19650 | no_undefined_flag_CXX='${wl}-z,text' |
| 19651 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19652 | archive_cmds_need_lc_CXX=no |
| 19653 | hardcode_shlibpath_var_CXX=no |
| 19654 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19655 | hardcode_libdir_separator_CXX=':' |
| 19656 | link_all_deplibs_CXX=yes |
| 19657 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19658 | runpath_var='LD_RUN_PATH' |
| 19659 | |
| 19660 | case $cc_basename in |
| 19661 | CC*) |
| 19662 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19663 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19664 | ;; |
| 19665 | *) |
| 19666 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19667 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19668 | ;; |
| 19669 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19670 | ;; |
| 19671 | tandem*) |
| 19672 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19673 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19674 | # NonStop-UX NCC 3.20 |
| 19675 | # FIXME: insert proper C++ library support |
| 19676 | ld_shlibs_CXX=no |
| 19677 | ;; |
| 19678 | *) |
| 19679 | # FIXME: insert proper C++ library support |
| 19680 | ld_shlibs_CXX=no |
| 19681 | ;; |
| 19682 | esac |
| 19683 | ;; |
| 19684 | vxworks*) |
| 19685 | # FIXME: insert proper C++ library support |
| 19686 | ld_shlibs_CXX=no |
| 19687 | ;; |
| 19688 | *) |
| 19689 | # FIXME: insert proper C++ library support |
| 19690 | ld_shlibs_CXX=no |
| 19691 | ;; |
| 19692 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19693 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19694 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19695 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19696 | |
| 19697 | GCC_CXX="$GXX" |
| 19698 | LD_CXX="$LD" |
| 19699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19700 | |
| 19701 | cat > conftest.$ac_ext <<EOF |
| 19702 | class Foo |
| 19703 | { |
| 19704 | public: |
| 19705 | Foo (void) { a = 0; } |
| 19706 | private: |
| 19707 | int a; |
| 19708 | }; |
| 19709 | EOF |
| 19710 | |
| 19711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19712 | (eval $ac_compile) 2>&5 |
| 19713 | ac_status=$? |
| 19714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19715 | (exit $ac_status); }; then |
| 19716 | # Parse the compiler output and extract the necessary |
| 19717 | # objects, libraries and library flags. |
| 19718 | |
| 19719 | # Sentinel used to keep track of whether or not we are before |
| 19720 | # the conftest object file. |
| 19721 | pre_test_object_deps_done=no |
| 19722 | |
| 19723 | # The `*' in the case matches for architectures that use `case' in |
| 19724 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19725 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19726 | 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] | 19727 | |
| 19728 | for p in `eval $output_verbose_link_cmd`; do |
| 19729 | case $p in |
| 19730 | |
| 19731 | -L* | -R* | -l*) |
| 19732 | # Some compilers place space between "-{L,R}" and the path. |
| 19733 | # Remove the space. |
| 19734 | if test $p = "-L" \ |
| 19735 | || test $p = "-R"; then |
| 19736 | prev=$p |
| 19737 | continue |
| 19738 | else |
| 19739 | prev= |
| 19740 | fi |
| 19741 | |
| 19742 | if test "$pre_test_object_deps_done" = no; then |
| 19743 | case $p in |
| 19744 | -L* | -R*) |
| 19745 | # Internal compiler library paths should come after those |
| 19746 | # provided the user. The postdeps already come after the |
| 19747 | # user supplied libs so there is no need to process them. |
| 19748 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19749 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19750 | else |
| 19751 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19752 | fi |
| 19753 | ;; |
| 19754 | # The "-l" case would never come before the object being |
| 19755 | # linked, so don't bother handling this case. |
| 19756 | esac |
| 19757 | else |
| 19758 | if test -z "$postdeps_CXX"; then |
| 19759 | postdeps_CXX="${prev}${p}" |
| 19760 | else |
| 19761 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19762 | fi |
| 19763 | fi |
| 19764 | ;; |
| 19765 | |
| 19766 | *.$objext) |
| 19767 | # This assumes that the test object file only shows up |
| 19768 | # once in the compiler output. |
| 19769 | if test "$p" = "conftest.$objext"; then |
| 19770 | pre_test_object_deps_done=yes |
| 19771 | continue |
| 19772 | fi |
| 19773 | |
| 19774 | if test "$pre_test_object_deps_done" = no; then |
| 19775 | if test -z "$predep_objects_CXX"; then |
| 19776 | predep_objects_CXX="$p" |
| 19777 | else |
| 19778 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19779 | fi |
| 19780 | else |
| 19781 | if test -z "$postdep_objects_CXX"; then |
| 19782 | postdep_objects_CXX="$p" |
| 19783 | else |
| 19784 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19785 | fi |
| 19786 | fi |
| 19787 | ;; |
| 19788 | |
| 19789 | *) ;; # Ignore the rest. |
| 19790 | |
| 19791 | esac |
| 19792 | done |
| 19793 | |
| 19794 | # Clean up. |
| 19795 | rm -f a.out a.exe |
| 19796 | else |
| 19797 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19798 | fi |
| 19799 | |
| 19800 | $rm -f confest.$objext |
| 19801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19802 | # PORTME: override above test on systems where it is broken |
| 19803 | case $host_os in |
| 19804 | interix3*) |
| 19805 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19806 | # hack all around it, let's just trust "g++" to DTRT. |
| 19807 | predep_objects_CXX= |
| 19808 | postdep_objects_CXX= |
| 19809 | postdeps_CXX= |
| 19810 | ;; |
| 19811 | |
| 19812 | solaris*) |
| 19813 | case $cc_basename in |
| 19814 | CC*) |
| 19815 | # Adding this requires a known-good setup of shared libraries for |
| 19816 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19817 | # archive will be linked into the output, leading to subtle bugs. |
| 19818 | postdeps_CXX='-lCstd -lCrun' |
| 19819 | ;; |
| 19820 | esac |
| 19821 | ;; |
| 19822 | esac |
| 19823 | |
| 19824 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19825 | case " $postdeps_CXX " in |
| 19826 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19827 | esac |
| 19828 | |
| 19829 | lt_prog_compiler_wl_CXX= |
| 19830 | lt_prog_compiler_pic_CXX= |
| 19831 | lt_prog_compiler_static_CXX= |
| 19832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19833 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19834 | 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] | 19835 | |
| 19836 | # C++ specific cases for pic, static, wl, etc. |
| 19837 | if test "$GXX" = yes; then |
| 19838 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19839 | lt_prog_compiler_static_CXX='-static' |
| 19840 | |
| 19841 | case $host_os in |
| 19842 | aix*) |
| 19843 | # All AIX code is PIC. |
| 19844 | if test "$host_cpu" = ia64; then |
| 19845 | # AIX 5 now supports IA64 processor |
| 19846 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19847 | fi |
| 19848 | ;; |
| 19849 | amigaos*) |
| 19850 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19851 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19852 | # like `-m68040'. |
| 19853 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19854 | ;; |
| 19855 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19856 | # PIC is the default for these OSes. |
| 19857 | ;; |
| 19858 | mingw* | os2* | pw32*) |
| 19859 | # This hack is so that the source file can tell whether it is being |
| 19860 | # built for inclusion in a dll (and should export symbols for example). |
| 19861 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19862 | ;; |
| 19863 | darwin* | rhapsody*) |
| 19864 | # PIC is the default on this platform |
| 19865 | # Common symbols not allowed in MH_DYLIB files |
| 19866 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19867 | ;; |
| 19868 | *djgpp*) |
| 19869 | # DJGPP does not support shared libraries at all |
| 19870 | lt_prog_compiler_pic_CXX= |
| 19871 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19872 | interix3*) |
| 19873 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19874 | # Instead, we relocate shared libraries at runtime. |
| 19875 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19876 | sysv4*MP*) |
| 19877 | if test -d /usr/nec; then |
| 19878 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19879 | fi |
| 19880 | ;; |
| 19881 | hpux*) |
| 19882 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19883 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19884 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19885 | hppa*64*|ia64*) |
| 19886 | ;; |
| 19887 | *) |
| 19888 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19889 | ;; |
| 19890 | esac |
| 19891 | ;; |
| 19892 | *) |
| 19893 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19894 | ;; |
| 19895 | esac |
| 19896 | else |
| 19897 | case $host_os in |
| 19898 | aix4* | aix5*) |
| 19899 | # All AIX code is PIC. |
| 19900 | if test "$host_cpu" = ia64; then |
| 19901 | # AIX 5 now supports IA64 processor |
| 19902 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19903 | else |
| 19904 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19905 | fi |
| 19906 | ;; |
| 19907 | chorus*) |
| 19908 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19909 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19910 | # Green Hills C++ Compiler |
| 19911 | # _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" |
| 19912 | ;; |
| 19913 | esac |
| 19914 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19915 | darwin*) |
| 19916 | # PIC is the default on this platform |
| 19917 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19918 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19919 | xlc*) |
| 19920 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19921 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19922 | ;; |
| 19923 | esac |
| 19924 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19925 | dgux*) |
| 19926 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19927 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19928 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19929 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19930 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19931 | # Green Hills C++ Compiler |
| 19932 | lt_prog_compiler_pic_CXX='-pic' |
| 19933 | ;; |
| 19934 | *) |
| 19935 | ;; |
| 19936 | esac |
| 19937 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19938 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19939 | # FreeBSD uses GNU C++ |
| 19940 | ;; |
| 19941 | hpux9* | hpux10* | hpux11*) |
| 19942 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19943 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19944 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19945 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19946 | if test "$host_cpu" != ia64; then |
| 19947 | lt_prog_compiler_pic_CXX='+Z' |
| 19948 | fi |
| 19949 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19950 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19951 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19952 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19953 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19954 | hppa*64*|ia64*) |
| 19955 | # +Z the default |
| 19956 | ;; |
| 19957 | *) |
| 19958 | lt_prog_compiler_pic_CXX='+Z' |
| 19959 | ;; |
| 19960 | esac |
| 19961 | ;; |
| 19962 | *) |
| 19963 | ;; |
| 19964 | esac |
| 19965 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19966 | interix*) |
| 19967 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19968 | # Anyone wants to do a port? |
| 19969 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19970 | irix5* | irix6* | nonstopux*) |
| 19971 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19972 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19973 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19974 | lt_prog_compiler_static_CXX='-non_shared' |
| 19975 | # CC pic flag -KPIC is the default. |
| 19976 | ;; |
| 19977 | *) |
| 19978 | ;; |
| 19979 | esac |
| 19980 | ;; |
| 19981 | linux*) |
| 19982 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19983 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19984 | # KAI C++ Compiler |
| 19985 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19986 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19987 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19988 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19989 | # Intel C++ |
| 19990 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19991 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19992 | lt_prog_compiler_static_CXX='-static' |
| 19993 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19994 | pgCC*) |
| 19995 | # Portland Group C++ compiler. |
| 19996 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19997 | lt_prog_compiler_pic_CXX='-fpic' |
| 19998 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19999 | ;; |
| 20000 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20001 | # Compaq C++ |
| 20002 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20003 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20004 | lt_prog_compiler_pic_CXX= |
| 20005 | lt_prog_compiler_static_CXX='-non_shared' |
| 20006 | ;; |
| 20007 | *) |
| 20008 | ;; |
| 20009 | esac |
| 20010 | ;; |
| 20011 | lynxos*) |
| 20012 | ;; |
| 20013 | m88k*) |
| 20014 | ;; |
| 20015 | mvs*) |
| 20016 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20017 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20018 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 20019 | ;; |
| 20020 | *) |
| 20021 | ;; |
| 20022 | esac |
| 20023 | ;; |
| 20024 | netbsd*) |
| 20025 | ;; |
| 20026 | osf3* | osf4* | osf5*) |
| 20027 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20028 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20029 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20030 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20031 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20032 | # Rational C++ 2.4.1 |
| 20033 | lt_prog_compiler_pic_CXX='-pic' |
| 20034 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20035 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20036 | # Digital/Compaq C++ |
| 20037 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20038 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20039 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20040 | lt_prog_compiler_pic_CXX= |
| 20041 | lt_prog_compiler_static_CXX='-non_shared' |
| 20042 | ;; |
| 20043 | *) |
| 20044 | ;; |
| 20045 | esac |
| 20046 | ;; |
| 20047 | psos*) |
| 20048 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20049 | solaris*) |
| 20050 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20051 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20052 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 20053 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20054 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20055 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20056 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20057 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20058 | # Green Hills C++ Compiler |
| 20059 | lt_prog_compiler_pic_CXX='-PIC' |
| 20060 | ;; |
| 20061 | *) |
| 20062 | ;; |
| 20063 | esac |
| 20064 | ;; |
| 20065 | sunos4*) |
| 20066 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20067 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20068 | # Sun C++ 4.x |
| 20069 | lt_prog_compiler_pic_CXX='-pic' |
| 20070 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20071 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20072 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20073 | # Lucid |
| 20074 | lt_prog_compiler_pic_CXX='-pic' |
| 20075 | ;; |
| 20076 | *) |
| 20077 | ;; |
| 20078 | esac |
| 20079 | ;; |
| 20080 | tandem*) |
| 20081 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20082 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20083 | # NonStop-UX NCC 3.20 |
| 20084 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20085 | ;; |
| 20086 | *) |
| 20087 | ;; |
| 20088 | esac |
| 20089 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20090 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20091 | case $cc_basename in |
| 20092 | CC*) |
| 20093 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20094 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20095 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20096 | ;; |
| 20097 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20098 | ;; |
| 20099 | vxworks*) |
| 20100 | ;; |
| 20101 | *) |
| 20102 | lt_prog_compiler_can_build_shared_CXX=no |
| 20103 | ;; |
| 20104 | esac |
| 20105 | fi |
| 20106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20107 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 20108 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20109 | |
| 20110 | # |
| 20111 | # Check to make sure the PIC flag actually works. |
| 20112 | # |
| 20113 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20115 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 20116 | 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] | 20117 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 20118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20119 | else |
| 20120 | lt_prog_compiler_pic_works_CXX=no |
| 20121 | ac_outfile=conftest.$ac_objext |
| 20122 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20123 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 20124 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20125 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20126 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20127 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20128 | # The option is referenced via a variable to avoid confusing sed. |
| 20129 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20130 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20131 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20132 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 20133 | (eval echo "\"\$as_me:20133: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20134 | (eval "$lt_compile" 2>conftest.err) |
| 20135 | ac_status=$? |
| 20136 | cat conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 20137 | echo "$as_me:20137: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20138 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20139 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20140 | # So say no if there are warnings other than the usual output. |
| 20141 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 20142 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20143 | 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] | 20144 | lt_prog_compiler_pic_works_CXX=yes |
| 20145 | fi |
| 20146 | fi |
| 20147 | $rm conftest* |
| 20148 | |
| 20149 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20150 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 20151 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20152 | |
| 20153 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 20154 | case $lt_prog_compiler_pic_CXX in |
| 20155 | "" | " "*) ;; |
| 20156 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20157 | esac |
| 20158 | else |
| 20159 | lt_prog_compiler_pic_CXX= |
| 20160 | lt_prog_compiler_can_build_shared_CXX=no |
| 20161 | fi |
| 20162 | |
| 20163 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20164 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20165 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20166 | *djgpp*) |
| 20167 | lt_prog_compiler_pic_CXX= |
| 20168 | ;; |
| 20169 | *) |
| 20170 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20171 | ;; |
| 20172 | esac |
| 20173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20174 | # |
| 20175 | # Check to make sure the static flag actually works. |
| 20176 | # |
| 20177 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20178 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20179 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20180 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 20181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20182 | else |
| 20183 | lt_prog_compiler_static_works_CXX=no |
| 20184 | save_LDFLAGS="$LDFLAGS" |
| 20185 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20186 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20187 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20188 | # The linker can only warn and ignore the option if not recognized |
| 20189 | # So say no if there are warnings |
| 20190 | if test -s conftest.err; then |
| 20191 | # Append any errors to the config.log. |
| 20192 | cat conftest.err 1>&5 |
| 20193 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20194 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20195 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20196 | lt_prog_compiler_static_works_CXX=yes |
| 20197 | fi |
| 20198 | else |
| 20199 | lt_prog_compiler_static_works_CXX=yes |
| 20200 | fi |
| 20201 | fi |
| 20202 | $rm conftest* |
| 20203 | LDFLAGS="$save_LDFLAGS" |
| 20204 | |
| 20205 | fi |
| 20206 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 20207 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 20208 | |
| 20209 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 20210 | : |
| 20211 | else |
| 20212 | lt_prog_compiler_static_CXX= |
| 20213 | fi |
| 20214 | |
| 20215 | |
| 20216 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20217 | 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] | 20218 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 20219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20220 | else |
| 20221 | lt_cv_prog_compiler_c_o_CXX=no |
| 20222 | $rm -r conftest 2>/dev/null |
| 20223 | mkdir conftest |
| 20224 | cd conftest |
| 20225 | mkdir out |
| 20226 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20227 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20228 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20229 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20230 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20231 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20232 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20233 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20234 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20235 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20236 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 20237 | (eval echo "\"\$as_me:20237: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20238 | (eval "$lt_compile" 2>out/conftest.err) |
| 20239 | ac_status=$? |
| 20240 | cat out/conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 20241 | echo "$as_me:20241: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20242 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20243 | then |
| 20244 | # The compiler can only warn and ignore the option if not recognized |
| 20245 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20246 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20247 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20248 | 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] | 20249 | lt_cv_prog_compiler_c_o_CXX=yes |
| 20250 | fi |
| 20251 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20252 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20253 | $rm conftest* |
| 20254 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20255 | # template instantiation |
| 20256 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20257 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20258 | cd .. |
| 20259 | rmdir conftest |
| 20260 | $rm conftest* |
| 20261 | |
| 20262 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20263 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 20264 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20265 | |
| 20266 | |
| 20267 | hard_links="nottested" |
| 20268 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 20269 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20270 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20271 | 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] | 20272 | hard_links=yes |
| 20273 | $rm conftest* |
| 20274 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20275 | touch conftest.a |
| 20276 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20277 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20278 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20279 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20280 | if test "$hard_links" = no; then |
| 20281 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20282 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20283 | need_locks=warn |
| 20284 | fi |
| 20285 | else |
| 20286 | need_locks=no |
| 20287 | fi |
| 20288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20289 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20290 | 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] | 20291 | |
| 20292 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20293 | case $host_os in |
| 20294 | aix4* | aix5*) |
| 20295 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20296 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20297 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20298 | 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' |
| 20299 | else |
| 20300 | 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' |
| 20301 | fi |
| 20302 | ;; |
| 20303 | pw32*) |
| 20304 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 20305 | ;; |
| 20306 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20307 | 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] | 20308 | ;; |
| 20309 | *) |
| 20310 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20311 | ;; |
| 20312 | esac |
| 20313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20314 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 20315 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20316 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 20317 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20318 | # |
| 20319 | # Do we need to explicitly link libc? |
| 20320 | # |
| 20321 | case "x$archive_cmds_need_lc_CXX" in |
| 20322 | x|xyes) |
| 20323 | # Assume -lc should be added |
| 20324 | archive_cmds_need_lc_CXX=yes |
| 20325 | |
| 20326 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20327 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20328 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20329 | # FIXME: we may have to deal with multi-command sequences. |
| 20330 | ;; |
| 20331 | '$CC '*) |
| 20332 | # Test whether the compiler implicitly links with -lc since on some |
| 20333 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20334 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20335 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20336 | 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] | 20337 | $rm conftest* |
| 20338 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20339 | |
| 20340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20341 | (eval $ac_compile) 2>&5 |
| 20342 | ac_status=$? |
| 20343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20344 | (exit $ac_status); } 2>conftest.err; then |
| 20345 | soname=conftest |
| 20346 | lib=conftest |
| 20347 | libobjs=conftest.$ac_objext |
| 20348 | deplibs= |
| 20349 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20350 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20351 | compiler_flags=-v |
| 20352 | linker_flags=-v |
| 20353 | verstring= |
| 20354 | output_objdir=. |
| 20355 | libname=conftest |
| 20356 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20357 | allow_undefined_flag_CXX= |
| 20358 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20359 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20360 | ac_status=$? |
| 20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20362 | (exit $ac_status); } |
| 20363 | then |
| 20364 | archive_cmds_need_lc_CXX=no |
| 20365 | else |
| 20366 | archive_cmds_need_lc_CXX=yes |
| 20367 | fi |
| 20368 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20369 | else |
| 20370 | cat conftest.err 1>&5 |
| 20371 | fi |
| 20372 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20373 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20374 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20375 | ;; |
| 20376 | esac |
| 20377 | fi |
| 20378 | ;; |
| 20379 | esac |
| 20380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20381 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20382 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20383 | library_names_spec= |
| 20384 | libname_spec='lib$name' |
| 20385 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20386 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20387 | postinstall_cmds= |
| 20388 | postuninstall_cmds= |
| 20389 | finish_cmds= |
| 20390 | finish_eval= |
| 20391 | shlibpath_var= |
| 20392 | shlibpath_overrides_runpath=unknown |
| 20393 | version_type=none |
| 20394 | dynamic_linker="$host_os ld.so" |
| 20395 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20396 | if test "$GCC" = yes; then |
| 20397 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20398 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20399 | # if the path contains ";" then we assume it to be the separator |
| 20400 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20401 | # assumed that no part of a normal pathname contains ";" but that should |
| 20402 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20403 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20404 | else |
| 20405 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20406 | fi |
| 20407 | else |
| 20408 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20409 | fi |
| 20410 | need_lib_prefix=unknown |
| 20411 | hardcode_into_libs=no |
| 20412 | |
| 20413 | # when you set need_version to no, make sure it does not cause -set_version |
| 20414 | # flags to be left without arguments |
| 20415 | need_version=unknown |
| 20416 | |
| 20417 | case $host_os in |
| 20418 | aix3*) |
| 20419 | version_type=linux |
| 20420 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20421 | shlibpath_var=LIBPATH |
| 20422 | |
| 20423 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20424 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20425 | ;; |
| 20426 | |
| 20427 | aix4* | aix5*) |
| 20428 | version_type=linux |
| 20429 | need_lib_prefix=no |
| 20430 | need_version=no |
| 20431 | hardcode_into_libs=yes |
| 20432 | if test "$host_cpu" = ia64; then |
| 20433 | # AIX 5 supports IA64 |
| 20434 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20435 | shlibpath_var=LD_LIBRARY_PATH |
| 20436 | else |
| 20437 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20438 | # for dependence libraries. The import file would start with |
| 20439 | # the line `#! .'. This would cause the generated library to |
| 20440 | # depend on `.', always an invalid library. This was fixed in |
| 20441 | # development snapshots of GCC prior to 3.0. |
| 20442 | case $host_os in |
| 20443 | aix4 | aix4.[01] | aix4.[01].*) |
| 20444 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20445 | echo ' yes ' |
| 20446 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20447 | : |
| 20448 | else |
| 20449 | can_build_shared=no |
| 20450 | fi |
| 20451 | ;; |
| 20452 | esac |
| 20453 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20454 | # soname into executable. Probably we can add versioning support to |
| 20455 | # collect2, so additional links can be useful in future. |
| 20456 | if test "$aix_use_runtimelinking" = yes; then |
| 20457 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20458 | # instead of lib<name>.a to let people know that these are not |
| 20459 | # typical AIX shared libraries. |
| 20460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20461 | else |
| 20462 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20463 | # and later when we are not doing run time linking. |
| 20464 | library_names_spec='${libname}${release}.a $libname.a' |
| 20465 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20466 | fi |
| 20467 | shlibpath_var=LIBPATH |
| 20468 | fi |
| 20469 | ;; |
| 20470 | |
| 20471 | amigaos*) |
| 20472 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20473 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20474 | 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] | 20475 | ;; |
| 20476 | |
| 20477 | beos*) |
| 20478 | library_names_spec='${libname}${shared_ext}' |
| 20479 | dynamic_linker="$host_os ld.so" |
| 20480 | shlibpath_var=LIBRARY_PATH |
| 20481 | ;; |
| 20482 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20483 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20484 | version_type=linux |
| 20485 | need_version=no |
| 20486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20488 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20489 | shlibpath_var=LD_LIBRARY_PATH |
| 20490 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20491 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20492 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20493 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20494 | # libtool to hard-code these into programs |
| 20495 | ;; |
| 20496 | |
| 20497 | cygwin* | mingw* | pw32*) |
| 20498 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20499 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20500 | need_version=no |
| 20501 | need_lib_prefix=no |
| 20502 | |
| 20503 | case $GCC,$host_os in |
| 20504 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20505 | library_names_spec='$libname.dll.a' |
| 20506 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20507 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20508 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20509 | dldir=$destdir/`dirname \$dlpath`~ |
| 20510 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20511 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20512 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20513 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20514 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20515 | $rm \$dlpath' |
| 20516 | shlibpath_overrides_runpath=yes |
| 20517 | |
| 20518 | case $host_os in |
| 20519 | cygwin*) |
| 20520 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20521 | 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] | 20522 | 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] | 20523 | ;; |
| 20524 | mingw*) |
| 20525 | # MinGW DLLs use traditional 'lib' prefix |
| 20526 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20527 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20528 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20529 | # It is most probably a Windows format PATH printed by |
| 20530 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20531 | # path with ; separators, and with drive letters. We can handle the |
| 20532 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20533 | # especially as we might pass files found there to a mingw objdump, |
| 20534 | # which wouldn't understand a cygwinified path. Ahh. |
| 20535 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20536 | else |
| 20537 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20538 | fi |
| 20539 | ;; |
| 20540 | pw32*) |
| 20541 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20542 | 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] | 20543 | ;; |
| 20544 | esac |
| 20545 | ;; |
| 20546 | |
| 20547 | *) |
| 20548 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20549 | ;; |
| 20550 | esac |
| 20551 | dynamic_linker='Win32 ld.exe' |
| 20552 | # FIXME: first we should search . and the directory the executable is in |
| 20553 | shlibpath_var=PATH |
| 20554 | ;; |
| 20555 | |
| 20556 | darwin* | rhapsody*) |
| 20557 | dynamic_linker="$host_os dyld" |
| 20558 | version_type=darwin |
| 20559 | need_lib_prefix=no |
| 20560 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20561 | 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] | 20562 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20563 | shlibpath_overrides_runpath=yes |
| 20564 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20565 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20566 | # 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] | 20567 | if test "$GCC" = yes; then |
| 20568 | 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"` |
| 20569 | else |
| 20570 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20571 | fi |
| 20572 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20573 | ;; |
| 20574 | |
| 20575 | dgux*) |
| 20576 | version_type=linux |
| 20577 | need_lib_prefix=no |
| 20578 | need_version=no |
| 20579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20580 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20581 | shlibpath_var=LD_LIBRARY_PATH |
| 20582 | ;; |
| 20583 | |
| 20584 | freebsd1*) |
| 20585 | dynamic_linker=no |
| 20586 | ;; |
| 20587 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20588 | kfreebsd*-gnu) |
| 20589 | version_type=linux |
| 20590 | need_lib_prefix=no |
| 20591 | need_version=no |
| 20592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20594 | shlibpath_var=LD_LIBRARY_PATH |
| 20595 | shlibpath_overrides_runpath=no |
| 20596 | hardcode_into_libs=yes |
| 20597 | dynamic_linker='GNU ld.so' |
| 20598 | ;; |
| 20599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20600 | freebsd* | dragonfly*) |
| 20601 | # DragonFly does not have aout. When/if they implement a new |
| 20602 | # versioning mechanism, adjust this. |
| 20603 | if test -x /usr/bin/objformat; then |
| 20604 | objformat=`/usr/bin/objformat` |
| 20605 | else |
| 20606 | case $host_os in |
| 20607 | freebsd[123]*) objformat=aout ;; |
| 20608 | *) objformat=elf ;; |
| 20609 | esac |
| 20610 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20611 | version_type=freebsd-$objformat |
| 20612 | case $version_type in |
| 20613 | freebsd-elf*) |
| 20614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20615 | need_version=no |
| 20616 | need_lib_prefix=no |
| 20617 | ;; |
| 20618 | freebsd-*) |
| 20619 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20620 | need_version=yes |
| 20621 | ;; |
| 20622 | esac |
| 20623 | shlibpath_var=LD_LIBRARY_PATH |
| 20624 | case $host_os in |
| 20625 | freebsd2*) |
| 20626 | shlibpath_overrides_runpath=yes |
| 20627 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20628 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20629 | shlibpath_overrides_runpath=yes |
| 20630 | hardcode_into_libs=yes |
| 20631 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20632 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20633 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20634 | shlibpath_overrides_runpath=no |
| 20635 | hardcode_into_libs=yes |
| 20636 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20637 | freebsd*) # from 4.6 on |
| 20638 | shlibpath_overrides_runpath=yes |
| 20639 | hardcode_into_libs=yes |
| 20640 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20641 | esac |
| 20642 | ;; |
| 20643 | |
| 20644 | gnu*) |
| 20645 | version_type=linux |
| 20646 | need_lib_prefix=no |
| 20647 | need_version=no |
| 20648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20650 | shlibpath_var=LD_LIBRARY_PATH |
| 20651 | hardcode_into_libs=yes |
| 20652 | ;; |
| 20653 | |
| 20654 | hpux9* | hpux10* | hpux11*) |
| 20655 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20656 | # link against other versions. |
| 20657 | version_type=sunos |
| 20658 | need_lib_prefix=no |
| 20659 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20660 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20661 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20662 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20663 | hardcode_into_libs=yes |
| 20664 | dynamic_linker="$host_os dld.so" |
| 20665 | shlibpath_var=LD_LIBRARY_PATH |
| 20666 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20669 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20670 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20671 | else |
| 20672 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20673 | fi |
| 20674 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20675 | ;; |
| 20676 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20677 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20678 | hardcode_into_libs=yes |
| 20679 | dynamic_linker="$host_os dld.sl" |
| 20680 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20681 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20684 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20685 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20686 | ;; |
| 20687 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20688 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20689 | dynamic_linker="$host_os dld.sl" |
| 20690 | shlibpath_var=SHLIB_PATH |
| 20691 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20694 | ;; |
| 20695 | esac |
| 20696 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20697 | postinstall_cmds='chmod 555 $lib' |
| 20698 | ;; |
| 20699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20700 | interix3*) |
| 20701 | version_type=linux |
| 20702 | need_lib_prefix=no |
| 20703 | need_version=no |
| 20704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20705 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20706 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20707 | shlibpath_var=LD_LIBRARY_PATH |
| 20708 | shlibpath_overrides_runpath=no |
| 20709 | hardcode_into_libs=yes |
| 20710 | ;; |
| 20711 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20712 | irix5* | irix6* | nonstopux*) |
| 20713 | case $host_os in |
| 20714 | nonstopux*) version_type=nonstopux ;; |
| 20715 | *) |
| 20716 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20717 | version_type=linux |
| 20718 | else |
| 20719 | version_type=irix |
| 20720 | fi ;; |
| 20721 | esac |
| 20722 | need_lib_prefix=no |
| 20723 | need_version=no |
| 20724 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20726 | case $host_os in |
| 20727 | irix5* | nonstopux*) |
| 20728 | libsuff= shlibsuff= |
| 20729 | ;; |
| 20730 | *) |
| 20731 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20732 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20733 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20734 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20735 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20736 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20737 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20738 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20739 | esac |
| 20740 | ;; |
| 20741 | esac |
| 20742 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20743 | shlibpath_overrides_runpath=no |
| 20744 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20745 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20746 | hardcode_into_libs=yes |
| 20747 | ;; |
| 20748 | |
| 20749 | # No shared lib support for Linux oldld, aout, or coff. |
| 20750 | linux*oldld* | linux*aout* | linux*coff*) |
| 20751 | dynamic_linker=no |
| 20752 | ;; |
| 20753 | |
| 20754 | # This must be Linux ELF. |
| 20755 | linux*) |
| 20756 | version_type=linux |
| 20757 | need_lib_prefix=no |
| 20758 | need_version=no |
| 20759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20761 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20762 | shlibpath_var=LD_LIBRARY_PATH |
| 20763 | shlibpath_overrides_runpath=no |
| 20764 | # This implies no fast_install, which is unacceptable. |
| 20765 | # Some rework will be needed to allow for fast_install |
| 20766 | # before this can be enabled. |
| 20767 | hardcode_into_libs=yes |
| 20768 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20769 | # Append ld.so.conf contents to the search path |
| 20770 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20771 | 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] | 20772 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20773 | fi |
| 20774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20775 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20776 | # powerpc, because MkLinux only supported shared libraries with the |
| 20777 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20778 | # most powerpc-linux boxes support dynamic linking these days and |
| 20779 | # people can always --disable-shared, the test was removed, and we |
| 20780 | # assume the GNU/Linux dynamic linker is in use. |
| 20781 | dynamic_linker='GNU/Linux ld.so' |
| 20782 | ;; |
| 20783 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20784 | knetbsd*-gnu) |
| 20785 | version_type=linux |
| 20786 | need_lib_prefix=no |
| 20787 | need_version=no |
| 20788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20790 | shlibpath_var=LD_LIBRARY_PATH |
| 20791 | shlibpath_overrides_runpath=no |
| 20792 | hardcode_into_libs=yes |
| 20793 | dynamic_linker='GNU ld.so' |
| 20794 | ;; |
| 20795 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20796 | netbsd*) |
| 20797 | version_type=sunos |
| 20798 | need_lib_prefix=no |
| 20799 | need_version=no |
| 20800 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20802 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20803 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20804 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20805 | 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] | 20806 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20807 | dynamic_linker='NetBSD ld.elf_so' |
| 20808 | fi |
| 20809 | shlibpath_var=LD_LIBRARY_PATH |
| 20810 | shlibpath_overrides_runpath=yes |
| 20811 | hardcode_into_libs=yes |
| 20812 | ;; |
| 20813 | |
| 20814 | newsos6) |
| 20815 | version_type=linux |
| 20816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20817 | shlibpath_var=LD_LIBRARY_PATH |
| 20818 | shlibpath_overrides_runpath=yes |
| 20819 | ;; |
| 20820 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20821 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20822 | version_type=linux |
| 20823 | need_lib_prefix=no |
| 20824 | need_version=no |
| 20825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20827 | shlibpath_var=LD_LIBRARY_PATH |
| 20828 | shlibpath_overrides_runpath=yes |
| 20829 | ;; |
| 20830 | |
| 20831 | openbsd*) |
| 20832 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20833 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20834 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20835 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20836 | case $host_os in |
| 20837 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20838 | *) need_version=no ;; |
| 20839 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20841 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20842 | shlibpath_var=LD_LIBRARY_PATH |
| 20843 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20844 | case $host_os in |
| 20845 | openbsd2.[89] | openbsd2.[89].*) |
| 20846 | shlibpath_overrides_runpath=no |
| 20847 | ;; |
| 20848 | *) |
| 20849 | shlibpath_overrides_runpath=yes |
| 20850 | ;; |
| 20851 | esac |
| 20852 | else |
| 20853 | shlibpath_overrides_runpath=yes |
| 20854 | fi |
| 20855 | ;; |
| 20856 | |
| 20857 | os2*) |
| 20858 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20859 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20860 | need_lib_prefix=no |
| 20861 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20862 | dynamic_linker='OS/2 ld.exe' |
| 20863 | shlibpath_var=LIBPATH |
| 20864 | ;; |
| 20865 | |
| 20866 | osf3* | osf4* | osf5*) |
| 20867 | version_type=osf |
| 20868 | need_lib_prefix=no |
| 20869 | need_version=no |
| 20870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20872 | shlibpath_var=LD_LIBRARY_PATH |
| 20873 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20874 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20875 | ;; |
| 20876 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20877 | solaris*) |
| 20878 | version_type=linux |
| 20879 | need_lib_prefix=no |
| 20880 | need_version=no |
| 20881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20882 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20883 | shlibpath_var=LD_LIBRARY_PATH |
| 20884 | shlibpath_overrides_runpath=yes |
| 20885 | hardcode_into_libs=yes |
| 20886 | # ldd complains unless libraries are executable |
| 20887 | postinstall_cmds='chmod +x $lib' |
| 20888 | ;; |
| 20889 | |
| 20890 | sunos4*) |
| 20891 | version_type=sunos |
| 20892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20893 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20894 | shlibpath_var=LD_LIBRARY_PATH |
| 20895 | shlibpath_overrides_runpath=yes |
| 20896 | if test "$with_gnu_ld" = yes; then |
| 20897 | need_lib_prefix=no |
| 20898 | fi |
| 20899 | need_version=yes |
| 20900 | ;; |
| 20901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20902 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20903 | version_type=linux |
| 20904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20905 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20906 | shlibpath_var=LD_LIBRARY_PATH |
| 20907 | case $host_vendor in |
| 20908 | sni) |
| 20909 | shlibpath_overrides_runpath=no |
| 20910 | need_lib_prefix=no |
| 20911 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20912 | runpath_var=LD_RUN_PATH |
| 20913 | ;; |
| 20914 | siemens) |
| 20915 | need_lib_prefix=no |
| 20916 | ;; |
| 20917 | motorola) |
| 20918 | need_lib_prefix=no |
| 20919 | need_version=no |
| 20920 | shlibpath_overrides_runpath=no |
| 20921 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20922 | ;; |
| 20923 | esac |
| 20924 | ;; |
| 20925 | |
| 20926 | sysv4*MP*) |
| 20927 | if test -d /usr/nec ;then |
| 20928 | version_type=linux |
| 20929 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20930 | soname_spec='$libname${shared_ext}.$major' |
| 20931 | shlibpath_var=LD_LIBRARY_PATH |
| 20932 | fi |
| 20933 | ;; |
| 20934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20935 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20936 | version_type=freebsd-elf |
| 20937 | need_lib_prefix=no |
| 20938 | need_version=no |
| 20939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20940 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20941 | shlibpath_var=LD_LIBRARY_PATH |
| 20942 | hardcode_into_libs=yes |
| 20943 | if test "$with_gnu_ld" = yes; then |
| 20944 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20945 | shlibpath_overrides_runpath=no |
| 20946 | else |
| 20947 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20948 | shlibpath_overrides_runpath=yes |
| 20949 | case $host_os in |
| 20950 | sco3.2v5*) |
| 20951 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20952 | ;; |
| 20953 | esac |
| 20954 | fi |
| 20955 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20956 | ;; |
| 20957 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20958 | uts4*) |
| 20959 | version_type=linux |
| 20960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20961 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20962 | shlibpath_var=LD_LIBRARY_PATH |
| 20963 | ;; |
| 20964 | |
| 20965 | *) |
| 20966 | dynamic_linker=no |
| 20967 | ;; |
| 20968 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20969 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20970 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20971 | test "$dynamic_linker" = no && can_build_shared=no |
| 20972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20973 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20974 | if test "$GCC" = yes; then |
| 20975 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20976 | fi |
| 20977 | |
| 20978 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20979 | 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] | 20980 | hardcode_action_CXX= |
| 20981 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20982 | test -n "$runpath_var_CXX" || \ |
| 20983 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20984 | |
| 20985 | # We can hardcode non-existant directories. |
| 20986 | if test "$hardcode_direct_CXX" != no && |
| 20987 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20988 | # have to relink, otherwise we might link with an installed library |
| 20989 | # when we should be linking with a yet-to-be-installed one |
| 20990 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20991 | test "$hardcode_minus_L_CXX" != no; then |
| 20992 | # Linking always hardcodes the temporary library directory. |
| 20993 | hardcode_action_CXX=relink |
| 20994 | else |
| 20995 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20996 | hardcode_action_CXX=immediate |
| 20997 | fi |
| 20998 | else |
| 20999 | # We cannot hardcode anything, or else we can only hardcode existing |
| 21000 | # directories. |
| 21001 | hardcode_action_CXX=unsupported |
| 21002 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21003 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 21004 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21005 | |
| 21006 | if test "$hardcode_action_CXX" = relink; then |
| 21007 | # Fast installation is not supported |
| 21008 | enable_fast_install=no |
| 21009 | elif test "$shlibpath_overrides_runpath" = yes || |
| 21010 | test "$enable_shared" = no; then |
| 21011 | # Fast installation is not necessary |
| 21012 | enable_fast_install=needless |
| 21013 | fi |
| 21014 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21015 | |
| 21016 | # The else clause should only fire when bootstrapping the |
| 21017 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 21018 | # with your package, and you will get complaints that there are |
| 21019 | # no rules to generate ltmain.sh. |
| 21020 | if test -f "$ltmain"; then |
| 21021 | # See if we are running on zsh, and set the options which allow our commands through |
| 21022 | # without removal of \ escapes. |
| 21023 | if test -n "${ZSH_VERSION+set}" ; then |
| 21024 | setopt NO_GLOB_SUBST |
| 21025 | fi |
| 21026 | # Now quote all the things that may contain metacharacters while being |
| 21027 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 21028 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21029 | 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] | 21030 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21031 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 21032 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 21033 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 21034 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 21035 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 21036 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 21037 | old_postinstall_cmds old_postuninstall_cmds \ |
| 21038 | compiler_CXX \ |
| 21039 | CC_CXX \ |
| 21040 | LD_CXX \ |
| 21041 | lt_prog_compiler_wl_CXX \ |
| 21042 | lt_prog_compiler_pic_CXX \ |
| 21043 | lt_prog_compiler_static_CXX \ |
| 21044 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 21045 | export_dynamic_flag_spec_CXX \ |
| 21046 | thread_safe_flag_spec_CXX \ |
| 21047 | whole_archive_flag_spec_CXX \ |
| 21048 | enable_shared_with_static_runtimes_CXX \ |
| 21049 | old_archive_cmds_CXX \ |
| 21050 | old_archive_from_new_cmds_CXX \ |
| 21051 | predep_objects_CXX \ |
| 21052 | postdep_objects_CXX \ |
| 21053 | predeps_CXX \ |
| 21054 | postdeps_CXX \ |
| 21055 | compiler_lib_search_path_CXX \ |
| 21056 | archive_cmds_CXX \ |
| 21057 | archive_expsym_cmds_CXX \ |
| 21058 | postinstall_cmds_CXX \ |
| 21059 | postuninstall_cmds_CXX \ |
| 21060 | old_archive_from_expsyms_cmds_CXX \ |
| 21061 | allow_undefined_flag_CXX \ |
| 21062 | no_undefined_flag_CXX \ |
| 21063 | export_symbols_cmds_CXX \ |
| 21064 | hardcode_libdir_flag_spec_CXX \ |
| 21065 | hardcode_libdir_flag_spec_ld_CXX \ |
| 21066 | hardcode_libdir_separator_CXX \ |
| 21067 | hardcode_automatic_CXX \ |
| 21068 | module_cmds_CXX \ |
| 21069 | module_expsym_cmds_CXX \ |
| 21070 | lt_cv_prog_compiler_c_o_CXX \ |
| 21071 | exclude_expsyms_CXX \ |
| 21072 | include_expsyms_CXX; do |
| 21073 | |
| 21074 | case $var in |
| 21075 | old_archive_cmds_CXX | \ |
| 21076 | old_archive_from_new_cmds_CXX | \ |
| 21077 | archive_cmds_CXX | \ |
| 21078 | archive_expsym_cmds_CXX | \ |
| 21079 | module_cmds_CXX | \ |
| 21080 | module_expsym_cmds_CXX | \ |
| 21081 | old_archive_from_expsyms_cmds_CXX | \ |
| 21082 | export_symbols_cmds_CXX | \ |
| 21083 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 21084 | postinstall_cmds | postuninstall_cmds | \ |
| 21085 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 21086 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 21087 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21088 | 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] | 21089 | ;; |
| 21090 | *) |
| 21091 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 21092 | ;; |
| 21093 | esac |
| 21094 | done |
| 21095 | |
| 21096 | case $lt_echo in |
| 21097 | *'\$0 --fallback-echo"') |
| 21098 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 21099 | ;; |
| 21100 | esac |
| 21101 | |
| 21102 | cfgfile="$ofile" |
| 21103 | |
| 21104 | cat <<__EOF__ >> "$cfgfile" |
| 21105 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 21106 | |
| 21107 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 21108 | |
| 21109 | # Shell to use when invoking shell scripts. |
| 21110 | SHELL=$lt_SHELL |
| 21111 | |
| 21112 | # Whether or not to build shared libraries. |
| 21113 | build_libtool_libs=$enable_shared |
| 21114 | |
| 21115 | # Whether or not to build static libraries. |
| 21116 | build_old_libs=$enable_static |
| 21117 | |
| 21118 | # Whether or not to add -lc for building shared libraries. |
| 21119 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21120 | |
| 21121 | # Whether or not to disallow shared libs when runtime libs are static |
| 21122 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21123 | |
| 21124 | # Whether or not to optimize for fast installation. |
| 21125 | fast_install=$enable_fast_install |
| 21126 | |
| 21127 | # The host system. |
| 21128 | host_alias=$host_alias |
| 21129 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21130 | host_os=$host_os |
| 21131 | |
| 21132 | # The build system. |
| 21133 | build_alias=$build_alias |
| 21134 | build=$build |
| 21135 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21136 | |
| 21137 | # An echo program that does not interpret backslashes. |
| 21138 | echo=$lt_echo |
| 21139 | |
| 21140 | # The archiver. |
| 21141 | AR=$lt_AR |
| 21142 | AR_FLAGS=$lt_AR_FLAGS |
| 21143 | |
| 21144 | # A C compiler. |
| 21145 | LTCC=$lt_LTCC |
| 21146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21147 | # LTCC compiler flags. |
| 21148 | LTCFLAGS=$lt_LTCFLAGS |
| 21149 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21150 | # A language-specific compiler. |
| 21151 | CC=$lt_compiler_CXX |
| 21152 | |
| 21153 | # Is the compiler the GNU C compiler? |
| 21154 | with_gcc=$GCC_CXX |
| 21155 | |
| 21156 | # An ERE matcher. |
| 21157 | EGREP=$lt_EGREP |
| 21158 | |
| 21159 | # The linker used to build libraries. |
| 21160 | LD=$lt_LD_CXX |
| 21161 | |
| 21162 | # Whether we need hard or soft links. |
| 21163 | LN_S=$lt_LN_S |
| 21164 | |
| 21165 | # A BSD-compatible nm program. |
| 21166 | NM=$lt_NM |
| 21167 | |
| 21168 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21169 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21170 | |
| 21171 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21172 | MAGIC_CMD=$MAGIC_CMD |
| 21173 | |
| 21174 | # Used on cygwin: DLL creation program. |
| 21175 | DLLTOOL="$DLLTOOL" |
| 21176 | |
| 21177 | # Used on cygwin: object dumper. |
| 21178 | OBJDUMP="$OBJDUMP" |
| 21179 | |
| 21180 | # Used on cygwin: assembler. |
| 21181 | AS="$AS" |
| 21182 | |
| 21183 | # The name of the directory that contains temporary libtool files. |
| 21184 | objdir=$objdir |
| 21185 | |
| 21186 | # How to create reloadable object files. |
| 21187 | reload_flag=$lt_reload_flag |
| 21188 | reload_cmds=$lt_reload_cmds |
| 21189 | |
| 21190 | # How to pass a linker flag through the compiler. |
| 21191 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21192 | |
| 21193 | # Object file suffix (normally "o"). |
| 21194 | objext="$ac_objext" |
| 21195 | |
| 21196 | # Old archive suffix (normally "a"). |
| 21197 | libext="$libext" |
| 21198 | |
| 21199 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21200 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21201 | |
| 21202 | # Executable file suffix (normally ""). |
| 21203 | exeext="$exeext" |
| 21204 | |
| 21205 | # Additional compiler flags for building library objects. |
| 21206 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21207 | pic_mode=$pic_mode |
| 21208 | |
| 21209 | # What is the maximum length of a command? |
| 21210 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21211 | |
| 21212 | # Does compiler simultaneously support -c and -o options? |
| 21213 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21215 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21216 | need_locks=$lt_need_locks |
| 21217 | |
| 21218 | # Do we need the lib prefix for modules? |
| 21219 | need_lib_prefix=$need_lib_prefix |
| 21220 | |
| 21221 | # Do we need a version for libraries? |
| 21222 | need_version=$need_version |
| 21223 | |
| 21224 | # Whether dlopen is supported. |
| 21225 | dlopen_support=$enable_dlopen |
| 21226 | |
| 21227 | # Whether dlopen of programs is supported. |
| 21228 | dlopen_self=$enable_dlopen_self |
| 21229 | |
| 21230 | # Whether dlopen of statically linked programs is supported. |
| 21231 | dlopen_self_static=$enable_dlopen_self_static |
| 21232 | |
| 21233 | # Compiler flag to prevent dynamic linking. |
| 21234 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21235 | |
| 21236 | # Compiler flag to turn off builtin functions. |
| 21237 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21238 | |
| 21239 | # Compiler flag to allow reflexive dlopens. |
| 21240 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21241 | |
| 21242 | # Compiler flag to generate shared objects directly from archives. |
| 21243 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21244 | |
| 21245 | # Compiler flag to generate thread-safe objects. |
| 21246 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 21247 | |
| 21248 | # Library versioning type. |
| 21249 | version_type=$version_type |
| 21250 | |
| 21251 | # Format of library name prefix. |
| 21252 | libname_spec=$lt_libname_spec |
| 21253 | |
| 21254 | # List of archive names. First name is the real one, the rest are links. |
| 21255 | # The last name is the one that the linker finds with -lNAME. |
| 21256 | library_names_spec=$lt_library_names_spec |
| 21257 | |
| 21258 | # The coded name of the library, if different from the real name. |
| 21259 | soname_spec=$lt_soname_spec |
| 21260 | |
| 21261 | # Commands used to build and install an old-style archive. |
| 21262 | RANLIB=$lt_RANLIB |
| 21263 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21264 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21265 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21266 | |
| 21267 | # Create an old-style archive from a shared archive. |
| 21268 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21269 | |
| 21270 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21271 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21272 | |
| 21273 | # Commands used to build and install a shared archive. |
| 21274 | archive_cmds=$lt_archive_cmds_CXX |
| 21275 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21276 | postinstall_cmds=$lt_postinstall_cmds |
| 21277 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21278 | |
| 21279 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21280 | module_cmds=$lt_module_cmds_CXX |
| 21281 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21282 | |
| 21283 | # Commands to strip libraries. |
| 21284 | old_striplib=$lt_old_striplib |
| 21285 | striplib=$lt_striplib |
| 21286 | |
| 21287 | # Dependencies to place before the objects being linked to create a |
| 21288 | # shared library. |
| 21289 | predep_objects=$lt_predep_objects_CXX |
| 21290 | |
| 21291 | # Dependencies to place after the objects being linked to create a |
| 21292 | # shared library. |
| 21293 | postdep_objects=$lt_postdep_objects_CXX |
| 21294 | |
| 21295 | # Dependencies to place before the objects being linked to create a |
| 21296 | # shared library. |
| 21297 | predeps=$lt_predeps_CXX |
| 21298 | |
| 21299 | # Dependencies to place after the objects being linked to create a |
| 21300 | # shared library. |
| 21301 | postdeps=$lt_postdeps_CXX |
| 21302 | |
| 21303 | # The library search path used internally by the compiler when linking |
| 21304 | # a shared library. |
| 21305 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21306 | |
| 21307 | # Method to check whether dependent libraries are shared objects. |
| 21308 | deplibs_check_method=$lt_deplibs_check_method |
| 21309 | |
| 21310 | # Command to use when deplibs_check_method == file_magic. |
| 21311 | file_magic_cmd=$lt_file_magic_cmd |
| 21312 | |
| 21313 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21314 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21315 | |
| 21316 | # Flag that forces no undefined symbols. |
| 21317 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21318 | |
| 21319 | # Commands used to finish a libtool library installation in a directory. |
| 21320 | finish_cmds=$lt_finish_cmds |
| 21321 | |
| 21322 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21323 | finish_eval=$lt_finish_eval |
| 21324 | |
| 21325 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21326 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21327 | |
| 21328 | # Transform the output of nm in a proper C declaration |
| 21329 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21330 | |
| 21331 | # Transform the output of nm in a C name address pair |
| 21332 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21333 | |
| 21334 | # This is the shared library runtime path variable. |
| 21335 | runpath_var=$runpath_var |
| 21336 | |
| 21337 | # This is the shared library path variable. |
| 21338 | shlibpath_var=$shlibpath_var |
| 21339 | |
| 21340 | # Is shlibpath searched before the hard-coded library search path? |
| 21341 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21342 | |
| 21343 | # How to hardcode a shared library path into an executable. |
| 21344 | hardcode_action=$hardcode_action_CXX |
| 21345 | |
| 21346 | # Whether we should hardcode library paths into libraries. |
| 21347 | hardcode_into_libs=$hardcode_into_libs |
| 21348 | |
| 21349 | # Flag to hardcode \$libdir into a binary during linking. |
| 21350 | # This must work even if \$libdir does not exist. |
| 21351 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21352 | |
| 21353 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21354 | # a binary during linking. This must work even if \$libdir does |
| 21355 | # not exist. |
| 21356 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21357 | |
| 21358 | # Whether we need a single -rpath flag with a separated argument. |
| 21359 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21360 | |
| 21361 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21362 | # resulting binary. |
| 21363 | hardcode_direct=$hardcode_direct_CXX |
| 21364 | |
| 21365 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21366 | # resulting binary. |
| 21367 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21368 | |
| 21369 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21370 | # the resulting binary. |
| 21371 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21372 | |
| 21373 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21374 | # and all subsequent libraries and executables linked against it. |
| 21375 | hardcode_automatic=$hardcode_automatic_CXX |
| 21376 | |
| 21377 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21378 | # restored at relink time. |
| 21379 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21380 | |
| 21381 | # Whether libtool must link a program against all its dependency libraries. |
| 21382 | link_all_deplibs=$link_all_deplibs_CXX |
| 21383 | |
| 21384 | # Compile-time system search path for libraries |
| 21385 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21386 | |
| 21387 | # Run-time system search path for libraries |
| 21388 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21389 | |
| 21390 | # Fix the shell variable \$srcfile for the compiler. |
| 21391 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21392 | |
| 21393 | # Set to yes if exported symbols are required. |
| 21394 | always_export_symbols=$always_export_symbols_CXX |
| 21395 | |
| 21396 | # The commands to list exported symbols. |
| 21397 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21398 | |
| 21399 | # The commands to extract the exported symbol list from a shared archive. |
| 21400 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21401 | |
| 21402 | # Symbols that should not be listed in the preloaded symbols. |
| 21403 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21404 | |
| 21405 | # Symbols that must always be exported. |
| 21406 | include_expsyms=$lt_include_expsyms_CXX |
| 21407 | |
| 21408 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21409 | |
| 21410 | __EOF__ |
| 21411 | |
| 21412 | |
| 21413 | else |
| 21414 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21415 | # `config.status --recheck' to rerun these tests and create the |
| 21416 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21417 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21418 | if test -f "$ltmain_in"; then |
| 21419 | test -f Makefile && make "$ltmain" |
| 21420 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21421 | fi |
| 21422 | |
| 21423 | |
| 21424 | ac_ext=c |
| 21425 | ac_cpp='$CPP $CPPFLAGS' |
| 21426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21429 | |
| 21430 | CC=$lt_save_CC |
| 21431 | LDCXX=$LD |
| 21432 | LD=$lt_save_LD |
| 21433 | GCC=$lt_save_GCC |
| 21434 | with_gnu_ldcxx=$with_gnu_ld |
| 21435 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21436 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21437 | lt_cv_path_LD=$lt_save_path_LD |
| 21438 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21439 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21440 | |
| 21441 | else |
| 21442 | tagname="" |
| 21443 | fi |
| 21444 | ;; |
| 21445 | |
| 21446 | F77) |
| 21447 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21448 | |
| 21449 | ac_ext=f |
| 21450 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21451 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21452 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21453 | |
| 21454 | |
| 21455 | archive_cmds_need_lc_F77=no |
| 21456 | allow_undefined_flag_F77= |
| 21457 | always_export_symbols_F77=no |
| 21458 | archive_expsym_cmds_F77= |
| 21459 | export_dynamic_flag_spec_F77= |
| 21460 | hardcode_direct_F77=no |
| 21461 | hardcode_libdir_flag_spec_F77= |
| 21462 | hardcode_libdir_flag_spec_ld_F77= |
| 21463 | hardcode_libdir_separator_F77= |
| 21464 | hardcode_minus_L_F77=no |
| 21465 | hardcode_automatic_F77=no |
| 21466 | module_cmds_F77= |
| 21467 | module_expsym_cmds_F77= |
| 21468 | link_all_deplibs_F77=unknown |
| 21469 | old_archive_cmds_F77=$old_archive_cmds |
| 21470 | no_undefined_flag_F77= |
| 21471 | whole_archive_flag_spec_F77= |
| 21472 | enable_shared_with_static_runtimes_F77=no |
| 21473 | |
| 21474 | # Source file extension for f77 test sources. |
| 21475 | ac_ext=f |
| 21476 | |
| 21477 | # Object file extension for compiled f77 test sources. |
| 21478 | objext=o |
| 21479 | objext_F77=$objext |
| 21480 | |
| 21481 | # Code to be used in simple compile tests |
| 21482 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21483 | |
| 21484 | # Code to be used in simple link tests |
| 21485 | lt_simple_link_test_code=" program t\n end\n" |
| 21486 | |
| 21487 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21488 | |
| 21489 | # If no C compiler was specified, use CC. |
| 21490 | LTCC=${LTCC-"$CC"} |
| 21491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21492 | # If no C compiler flags were specified, use CFLAGS. |
| 21493 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21494 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21495 | # Allow CC to be a program name with arguments. |
| 21496 | compiler=$CC |
| 21497 | |
| 21498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21499 | # save warnings/boilerplate of simple test code |
| 21500 | ac_outfile=conftest.$ac_objext |
| 21501 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21502 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21503 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21504 | $rm conftest* |
| 21505 | |
| 21506 | ac_outfile=conftest.$ac_objext |
| 21507 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21508 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21509 | _lt_linker_boilerplate=`cat conftest.err` |
| 21510 | $rm conftest* |
| 21511 | |
| 21512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21513 | # Allow CC to be a program name with arguments. |
| 21514 | lt_save_CC="$CC" |
| 21515 | CC=${F77-"f77"} |
| 21516 | compiler=$CC |
| 21517 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21518 | for cc_temp in $compiler""; do |
| 21519 | case $cc_temp in |
| 21520 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21521 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21522 | \-*) ;; |
| 21523 | *) break;; |
| 21524 | esac |
| 21525 | done |
| 21526 | 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] | 21527 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21529 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21530 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21531 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21532 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21533 | |
| 21534 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21535 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21536 | test "$can_build_shared" = "no" && enable_shared=no |
| 21537 | |
| 21538 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21539 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21540 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21541 | aix3*) |
| 21542 | test "$enable_shared" = yes && enable_static=no |
| 21543 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21544 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21545 | postinstall_cmds='$RANLIB $lib' |
| 21546 | fi |
| 21547 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21548 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21549 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21550 | test "$enable_shared" = yes && enable_static=no |
| 21551 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21552 | ;; |
| 21553 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21554 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21555 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21557 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21558 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21559 | # Make sure either enable_shared or enable_static is yes. |
| 21560 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21561 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21562 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21563 | |
| 21564 | GCC_F77="$G77" |
| 21565 | LD_F77="$LD" |
| 21566 | |
| 21567 | lt_prog_compiler_wl_F77= |
| 21568 | lt_prog_compiler_pic_F77= |
| 21569 | lt_prog_compiler_static_F77= |
| 21570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21571 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21572 | 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] | 21573 | |
| 21574 | if test "$GCC" = yes; then |
| 21575 | lt_prog_compiler_wl_F77='-Wl,' |
| 21576 | lt_prog_compiler_static_F77='-static' |
| 21577 | |
| 21578 | case $host_os in |
| 21579 | aix*) |
| 21580 | # All AIX code is PIC. |
| 21581 | if test "$host_cpu" = ia64; then |
| 21582 | # AIX 5 now supports IA64 processor |
| 21583 | lt_prog_compiler_static_F77='-Bstatic' |
| 21584 | fi |
| 21585 | ;; |
| 21586 | |
| 21587 | amigaos*) |
| 21588 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21589 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21590 | # like `-m68040'. |
| 21591 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21592 | ;; |
| 21593 | |
| 21594 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21595 | # PIC is the default for these OSes. |
| 21596 | ;; |
| 21597 | |
| 21598 | mingw* | pw32* | os2*) |
| 21599 | # This hack is so that the source file can tell whether it is being |
| 21600 | # built for inclusion in a dll (and should export symbols for example). |
| 21601 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21602 | ;; |
| 21603 | |
| 21604 | darwin* | rhapsody*) |
| 21605 | # PIC is the default on this platform |
| 21606 | # Common symbols not allowed in MH_DYLIB files |
| 21607 | lt_prog_compiler_pic_F77='-fno-common' |
| 21608 | ;; |
| 21609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21610 | interix3*) |
| 21611 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21612 | # Instead, we relocate shared libraries at runtime. |
| 21613 | ;; |
| 21614 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21615 | msdosdjgpp*) |
| 21616 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21617 | # on systems that don't support them. |
| 21618 | lt_prog_compiler_can_build_shared_F77=no |
| 21619 | enable_shared=no |
| 21620 | ;; |
| 21621 | |
| 21622 | sysv4*MP*) |
| 21623 | if test -d /usr/nec; then |
| 21624 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21625 | fi |
| 21626 | ;; |
| 21627 | |
| 21628 | hpux*) |
| 21629 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21630 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21631 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21632 | hppa*64*|ia64*) |
| 21633 | # +Z the default |
| 21634 | ;; |
| 21635 | *) |
| 21636 | lt_prog_compiler_pic_F77='-fPIC' |
| 21637 | ;; |
| 21638 | esac |
| 21639 | ;; |
| 21640 | |
| 21641 | *) |
| 21642 | lt_prog_compiler_pic_F77='-fPIC' |
| 21643 | ;; |
| 21644 | esac |
| 21645 | else |
| 21646 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21647 | case $host_os in |
| 21648 | aix*) |
| 21649 | lt_prog_compiler_wl_F77='-Wl,' |
| 21650 | if test "$host_cpu" = ia64; then |
| 21651 | # AIX 5 now supports IA64 processor |
| 21652 | lt_prog_compiler_static_F77='-Bstatic' |
| 21653 | else |
| 21654 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21655 | fi |
| 21656 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21657 | darwin*) |
| 21658 | # PIC is the default on this platform |
| 21659 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21660 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21661 | xlc*) |
| 21662 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21663 | lt_prog_compiler_wl_F77='-Wl,' |
| 21664 | ;; |
| 21665 | esac |
| 21666 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21667 | |
| 21668 | mingw* | pw32* | os2*) |
| 21669 | # This hack is so that the source file can tell whether it is being |
| 21670 | # built for inclusion in a dll (and should export symbols for example). |
| 21671 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21672 | ;; |
| 21673 | |
| 21674 | hpux9* | hpux10* | hpux11*) |
| 21675 | lt_prog_compiler_wl_F77='-Wl,' |
| 21676 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21677 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21679 | hppa*64*|ia64*) |
| 21680 | # +Z the default |
| 21681 | ;; |
| 21682 | *) |
| 21683 | lt_prog_compiler_pic_F77='+Z' |
| 21684 | ;; |
| 21685 | esac |
| 21686 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21687 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21688 | ;; |
| 21689 | |
| 21690 | irix5* | irix6* | nonstopux*) |
| 21691 | lt_prog_compiler_wl_F77='-Wl,' |
| 21692 | # PIC (with -KPIC) is the default. |
| 21693 | lt_prog_compiler_static_F77='-non_shared' |
| 21694 | ;; |
| 21695 | |
| 21696 | newsos6) |
| 21697 | lt_prog_compiler_pic_F77='-KPIC' |
| 21698 | lt_prog_compiler_static_F77='-Bstatic' |
| 21699 | ;; |
| 21700 | |
| 21701 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21702 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21703 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21704 | lt_prog_compiler_wl_F77='-Wl,' |
| 21705 | lt_prog_compiler_pic_F77='-KPIC' |
| 21706 | lt_prog_compiler_static_F77='-static' |
| 21707 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21708 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21709 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21710 | # which looks to be a dead project) |
| 21711 | lt_prog_compiler_wl_F77='-Wl,' |
| 21712 | lt_prog_compiler_pic_F77='-fpic' |
| 21713 | lt_prog_compiler_static_F77='-Bstatic' |
| 21714 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21715 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21716 | lt_prog_compiler_wl_F77='-Wl,' |
| 21717 | # All Alpha code is PIC. |
| 21718 | lt_prog_compiler_static_F77='-non_shared' |
| 21719 | ;; |
| 21720 | esac |
| 21721 | ;; |
| 21722 | |
| 21723 | osf3* | osf4* | osf5*) |
| 21724 | lt_prog_compiler_wl_F77='-Wl,' |
| 21725 | # All OSF/1 code is PIC. |
| 21726 | lt_prog_compiler_static_F77='-non_shared' |
| 21727 | ;; |
| 21728 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21729 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21730 | lt_prog_compiler_pic_F77='-KPIC' |
| 21731 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21732 | case $cc_basename in |
| 21733 | f77* | f90* | f95*) |
| 21734 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21735 | *) |
| 21736 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21737 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21738 | ;; |
| 21739 | |
| 21740 | sunos4*) |
| 21741 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21742 | lt_prog_compiler_pic_F77='-PIC' |
| 21743 | lt_prog_compiler_static_F77='-Bstatic' |
| 21744 | ;; |
| 21745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21746 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21747 | lt_prog_compiler_wl_F77='-Wl,' |
| 21748 | lt_prog_compiler_pic_F77='-KPIC' |
| 21749 | lt_prog_compiler_static_F77='-Bstatic' |
| 21750 | ;; |
| 21751 | |
| 21752 | sysv4*MP*) |
| 21753 | if test -d /usr/nec ;then |
| 21754 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21755 | lt_prog_compiler_static_F77='-Bstatic' |
| 21756 | fi |
| 21757 | ;; |
| 21758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21759 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21760 | lt_prog_compiler_wl_F77='-Wl,' |
| 21761 | lt_prog_compiler_pic_F77='-KPIC' |
| 21762 | lt_prog_compiler_static_F77='-Bstatic' |
| 21763 | ;; |
| 21764 | |
| 21765 | unicos*) |
| 21766 | lt_prog_compiler_wl_F77='-Wl,' |
| 21767 | lt_prog_compiler_can_build_shared_F77=no |
| 21768 | ;; |
| 21769 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21770 | uts4*) |
| 21771 | lt_prog_compiler_pic_F77='-pic' |
| 21772 | lt_prog_compiler_static_F77='-Bstatic' |
| 21773 | ;; |
| 21774 | |
| 21775 | *) |
| 21776 | lt_prog_compiler_can_build_shared_F77=no |
| 21777 | ;; |
| 21778 | esac |
| 21779 | fi |
| 21780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21781 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21782 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21783 | |
| 21784 | # |
| 21785 | # Check to make sure the PIC flag actually works. |
| 21786 | # |
| 21787 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21789 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21790 | 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] | 21791 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21793 | else |
| 21794 | lt_prog_compiler_pic_works_F77=no |
| 21795 | ac_outfile=conftest.$ac_objext |
| 21796 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21797 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21798 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21799 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21800 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21801 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21802 | # The option is referenced via a variable to avoid confusing sed. |
| 21803 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21804 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21805 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21806 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 21807 | (eval echo "\"\$as_me:21807: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21808 | (eval "$lt_compile" 2>conftest.err) |
| 21809 | ac_status=$? |
| 21810 | cat conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 21811 | echo "$as_me:21811: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21812 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21813 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21814 | # So say no if there are warnings other than the usual output. |
| 21815 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21816 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21817 | 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] | 21818 | lt_prog_compiler_pic_works_F77=yes |
| 21819 | fi |
| 21820 | fi |
| 21821 | $rm conftest* |
| 21822 | |
| 21823 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21824 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21825 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21826 | |
| 21827 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21828 | case $lt_prog_compiler_pic_F77 in |
| 21829 | "" | " "*) ;; |
| 21830 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21831 | esac |
| 21832 | else |
| 21833 | lt_prog_compiler_pic_F77= |
| 21834 | lt_prog_compiler_can_build_shared_F77=no |
| 21835 | fi |
| 21836 | |
| 21837 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21838 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21839 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21840 | *djgpp*) |
| 21841 | lt_prog_compiler_pic_F77= |
| 21842 | ;; |
| 21843 | *) |
| 21844 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21845 | ;; |
| 21846 | esac |
| 21847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21848 | # |
| 21849 | # Check to make sure the static flag actually works. |
| 21850 | # |
| 21851 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21852 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21853 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21854 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21856 | else |
| 21857 | lt_prog_compiler_static_works_F77=no |
| 21858 | save_LDFLAGS="$LDFLAGS" |
| 21859 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21860 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21861 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21862 | # The linker can only warn and ignore the option if not recognized |
| 21863 | # So say no if there are warnings |
| 21864 | if test -s conftest.err; then |
| 21865 | # Append any errors to the config.log. |
| 21866 | cat conftest.err 1>&5 |
| 21867 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21868 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21869 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21870 | lt_prog_compiler_static_works_F77=yes |
| 21871 | fi |
| 21872 | else |
| 21873 | lt_prog_compiler_static_works_F77=yes |
| 21874 | fi |
| 21875 | fi |
| 21876 | $rm conftest* |
| 21877 | LDFLAGS="$save_LDFLAGS" |
| 21878 | |
| 21879 | fi |
| 21880 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21881 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21882 | |
| 21883 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21884 | : |
| 21885 | else |
| 21886 | lt_prog_compiler_static_F77= |
| 21887 | fi |
| 21888 | |
| 21889 | |
| 21890 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21891 | 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] | 21892 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21894 | else |
| 21895 | lt_cv_prog_compiler_c_o_F77=no |
| 21896 | $rm -r conftest 2>/dev/null |
| 21897 | mkdir conftest |
| 21898 | cd conftest |
| 21899 | mkdir out |
| 21900 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21901 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21902 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21903 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21904 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21905 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21906 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21907 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21908 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21909 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21910 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 21911 | (eval echo "\"\$as_me:21911: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21912 | (eval "$lt_compile" 2>out/conftest.err) |
| 21913 | ac_status=$? |
| 21914 | cat out/conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 21915 | echo "$as_me:21915: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21916 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21917 | then |
| 21918 | # The compiler can only warn and ignore the option if not recognized |
| 21919 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21920 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21921 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21922 | 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] | 21923 | lt_cv_prog_compiler_c_o_F77=yes |
| 21924 | fi |
| 21925 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21926 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21927 | $rm conftest* |
| 21928 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21929 | # template instantiation |
| 21930 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21931 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21932 | cd .. |
| 21933 | rmdir conftest |
| 21934 | $rm conftest* |
| 21935 | |
| 21936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21937 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21938 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21939 | |
| 21940 | |
| 21941 | hard_links="nottested" |
| 21942 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21943 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21944 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21945 | 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] | 21946 | hard_links=yes |
| 21947 | $rm conftest* |
| 21948 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21949 | touch conftest.a |
| 21950 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21951 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21952 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21953 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21954 | if test "$hard_links" = no; then |
| 21955 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21956 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21957 | need_locks=warn |
| 21958 | fi |
| 21959 | else |
| 21960 | need_locks=no |
| 21961 | fi |
| 21962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21963 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21964 | 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] | 21965 | |
| 21966 | runpath_var= |
| 21967 | allow_undefined_flag_F77= |
| 21968 | enable_shared_with_static_runtimes_F77=no |
| 21969 | archive_cmds_F77= |
| 21970 | archive_expsym_cmds_F77= |
| 21971 | old_archive_From_new_cmds_F77= |
| 21972 | old_archive_from_expsyms_cmds_F77= |
| 21973 | export_dynamic_flag_spec_F77= |
| 21974 | whole_archive_flag_spec_F77= |
| 21975 | thread_safe_flag_spec_F77= |
| 21976 | hardcode_libdir_flag_spec_F77= |
| 21977 | hardcode_libdir_flag_spec_ld_F77= |
| 21978 | hardcode_libdir_separator_F77= |
| 21979 | hardcode_direct_F77=no |
| 21980 | hardcode_minus_L_F77=no |
| 21981 | hardcode_shlibpath_var_F77=unsupported |
| 21982 | link_all_deplibs_F77=unknown |
| 21983 | hardcode_automatic_F77=no |
| 21984 | module_cmds_F77= |
| 21985 | module_expsym_cmds_F77= |
| 21986 | always_export_symbols_F77=no |
| 21987 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21988 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21989 | # included in the symbol list |
| 21990 | include_expsyms_F77= |
| 21991 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21992 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21993 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21994 | # as well as any symbol that contains `d'. |
| 21995 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21996 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21997 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21998 | # the symbol is explicitly referenced. Since portable code cannot |
| 21999 | # rely on this symbol name, it's probably fine to never include it in |
| 22000 | # preloaded symbol tables. |
| 22001 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22002 | # Just being paranoid about ensuring that cc_basename is set. |
| 22003 | for cc_temp in $compiler""; do |
| 22004 | case $cc_temp in |
| 22005 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 22006 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 22007 | \-*) ;; |
| 22008 | *) break;; |
| 22009 | esac |
| 22010 | done |
| 22011 | 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] | 22012 | |
| 22013 | case $host_os in |
| 22014 | cygwin* | mingw* | pw32*) |
| 22015 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 22016 | # When not using gcc, we currently assume that we are using |
| 22017 | # Microsoft Visual C++. |
| 22018 | if test "$GCC" != yes; then |
| 22019 | with_gnu_ld=no |
| 22020 | fi |
| 22021 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22022 | interix*) |
| 22023 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 22024 | with_gnu_ld=yes |
| 22025 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22026 | openbsd*) |
| 22027 | with_gnu_ld=no |
| 22028 | ;; |
| 22029 | esac |
| 22030 | |
| 22031 | ld_shlibs_F77=yes |
| 22032 | if test "$with_gnu_ld" = yes; then |
| 22033 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 22034 | wlarc='${wl}' |
| 22035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22036 | # Set some defaults for GNU ld with shared library support. These |
| 22037 | # are reset later if shared libraries are not supported. Putting them |
| 22038 | # here allows them to be overridden if necessary. |
| 22039 | runpath_var=LD_RUN_PATH |
| 22040 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 22041 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 22042 | # ancient GNU ld didn't support --whole-archive et. al. |
| 22043 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 22044 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 22045 | else |
| 22046 | whole_archive_flag_spec_F77= |
| 22047 | fi |
| 22048 | supports_anon_versioning=no |
| 22049 | case `$LD -v 2>/dev/null` in |
| 22050 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 22051 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 22052 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 22053 | *\ 2.11.*) ;; # other 2.11 versions |
| 22054 | *) supports_anon_versioning=yes ;; |
| 22055 | esac |
| 22056 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22057 | # See if GNU ld supports shared libraries. |
| 22058 | case $host_os in |
| 22059 | aix3* | aix4* | aix5*) |
| 22060 | # On AIX/PPC, the GNU linker is very broken |
| 22061 | if test "$host_cpu" != ia64; then |
| 22062 | ld_shlibs_F77=no |
| 22063 | cat <<EOF 1>&2 |
| 22064 | |
| 22065 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 22066 | *** to be unable to reliably create shared libraries on AIX. |
| 22067 | *** Therefore, libtool is disabling shared libraries support. If you |
| 22068 | *** really care for shared libraries, you may want to modify your PATH |
| 22069 | *** so that a non-GNU linker is found, and then restart. |
| 22070 | |
| 22071 | EOF |
| 22072 | fi |
| 22073 | ;; |
| 22074 | |
| 22075 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22076 | 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] | 22077 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22078 | hardcode_minus_L_F77=yes |
| 22079 | |
| 22080 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 22081 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 22082 | # to version 4, is to share data among multiple programs linked |
| 22083 | # with the same dynamic library. Since this doesn't match the |
| 22084 | # behavior of shared libraries on other platforms, we can't use |
| 22085 | # them. |
| 22086 | ld_shlibs_F77=no |
| 22087 | ;; |
| 22088 | |
| 22089 | beos*) |
| 22090 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22091 | allow_undefined_flag_F77=unsupported |
| 22092 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22093 | # support --undefined. This deserves some investigation. FIXME |
| 22094 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22095 | else |
| 22096 | ld_shlibs_F77=no |
| 22097 | fi |
| 22098 | ;; |
| 22099 | |
| 22100 | cygwin* | mingw* | pw32*) |
| 22101 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 22102 | # as there is no search path for DLLs. |
| 22103 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22104 | allow_undefined_flag_F77=unsupported |
| 22105 | always_export_symbols_F77=no |
| 22106 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22107 | 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] | 22108 | |
| 22109 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22110 | 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] | 22111 | # If the export-symbols file already is a .def file (1st line |
| 22112 | # is EXPORTS), use it as is; otherwise, prepend... |
| 22113 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 22114 | cp $export_symbols $output_objdir/$soname.def; |
| 22115 | else |
| 22116 | echo EXPORTS > $output_objdir/$soname.def; |
| 22117 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22118 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22119 | $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] | 22120 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22121 | ld_shlibs_F77=no |
| 22122 | fi |
| 22123 | ;; |
| 22124 | |
| 22125 | interix3*) |
| 22126 | hardcode_direct_F77=no |
| 22127 | hardcode_shlibpath_var_F77=no |
| 22128 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22129 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22130 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 22131 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 22132 | # default) and relocated if they conflict, which is a slow very memory |
| 22133 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 22134 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 22135 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 22136 | 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' |
| 22137 | 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' |
| 22138 | ;; |
| 22139 | |
| 22140 | linux*) |
| 22141 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22142 | tmp_addflag= |
| 22143 | case $cc_basename,$host_cpu in |
| 22144 | pgcc*) # Portland Group C compiler |
| 22145 | 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' |
| 22146 | tmp_addflag=' $pic_flag' |
| 22147 | ;; |
| 22148 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 22149 | 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' |
| 22150 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 22151 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 22152 | tmp_addflag=' -i_dynamic' ;; |
| 22153 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 22154 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 22155 | ifc* | ifort*) # Intel Fortran compiler |
| 22156 | tmp_addflag=' -nofor_main' ;; |
| 22157 | esac |
| 22158 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22159 | |
| 22160 | if test $supports_anon_versioning = yes; then |
| 22161 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22162 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22163 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 22164 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22165 | fi |
| 22166 | else |
| 22167 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22168 | fi |
| 22169 | ;; |
| 22170 | |
| 22171 | netbsd*) |
| 22172 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22173 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22174 | wlarc= |
| 22175 | else |
| 22176 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22177 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22178 | fi |
| 22179 | ;; |
| 22180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22181 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22182 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22183 | ld_shlibs_F77=no |
| 22184 | cat <<EOF 1>&2 |
| 22185 | |
| 22186 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22187 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22188 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22189 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22190 | *** your PATH or compiler configuration so that the native linker is |
| 22191 | *** used, and then restart. |
| 22192 | |
| 22193 | EOF |
| 22194 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22195 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22196 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22197 | else |
| 22198 | ld_shlibs_F77=no |
| 22199 | fi |
| 22200 | ;; |
| 22201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22202 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 22203 | case `$LD -v 2>&1` in |
| 22204 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 22205 | ld_shlibs_F77=no |
| 22206 | cat <<_LT_EOF 1>&2 |
| 22207 | |
| 22208 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 22209 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 22210 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22211 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 22212 | *** your PATH or compiler configuration so that the native linker is |
| 22213 | *** used, and then restart. |
| 22214 | |
| 22215 | _LT_EOF |
| 22216 | ;; |
| 22217 | *) |
| 22218 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22219 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 22220 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 22221 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 22222 | else |
| 22223 | ld_shlibs_F77=no |
| 22224 | fi |
| 22225 | ;; |
| 22226 | esac |
| 22227 | ;; |
| 22228 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22229 | sunos4*) |
| 22230 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22231 | wlarc= |
| 22232 | hardcode_direct_F77=yes |
| 22233 | hardcode_shlibpath_var_F77=no |
| 22234 | ;; |
| 22235 | |
| 22236 | *) |
| 22237 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22238 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22239 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22240 | else |
| 22241 | ld_shlibs_F77=no |
| 22242 | fi |
| 22243 | ;; |
| 22244 | esac |
| 22245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22246 | if test "$ld_shlibs_F77" = no; then |
| 22247 | runpath_var= |
| 22248 | hardcode_libdir_flag_spec_F77= |
| 22249 | export_dynamic_flag_spec_F77= |
| 22250 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22251 | fi |
| 22252 | else |
| 22253 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22254 | case $host_os in |
| 22255 | aix3*) |
| 22256 | allow_undefined_flag_F77=unsupported |
| 22257 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22258 | 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] | 22259 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22260 | # are no directories specified by -L. |
| 22261 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22262 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22263 | # Neither direct hardcoding nor static linking is supported with a |
| 22264 | # broken collect2. |
| 22265 | hardcode_direct_F77=unsupported |
| 22266 | fi |
| 22267 | ;; |
| 22268 | |
| 22269 | aix4* | aix5*) |
| 22270 | if test "$host_cpu" = ia64; then |
| 22271 | # On IA64, the linker does run time linking by default, so we don't |
| 22272 | # have to do anything special. |
| 22273 | aix_use_runtimelinking=no |
| 22274 | exp_sym_flag='-Bexport' |
| 22275 | no_entry_flag="" |
| 22276 | else |
| 22277 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22278 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22279 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22280 | 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' |
| 22281 | else |
| 22282 | 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' |
| 22283 | fi |
| 22284 | aix_use_runtimelinking=no |
| 22285 | |
| 22286 | # Test if we are trying to use run time linking or normal |
| 22287 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22288 | # need to do runtime linking. |
| 22289 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22290 | for ld_flag in $LDFLAGS; do |
| 22291 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22292 | aix_use_runtimelinking=yes |
| 22293 | break |
| 22294 | fi |
| 22295 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22296 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22297 | esac |
| 22298 | |
| 22299 | exp_sym_flag='-bexport' |
| 22300 | no_entry_flag='-bnoentry' |
| 22301 | fi |
| 22302 | |
| 22303 | # When large executables or shared objects are built, AIX ld can |
| 22304 | # have problems creating the table of contents. If linking a library |
| 22305 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22306 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22307 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22308 | |
| 22309 | archive_cmds_F77='' |
| 22310 | hardcode_direct_F77=yes |
| 22311 | hardcode_libdir_separator_F77=':' |
| 22312 | link_all_deplibs_F77=yes |
| 22313 | |
| 22314 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22315 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22316 | # We only want to do this on AIX 4.2 and lower, the check |
| 22317 | # below for broken collect2 doesn't work under 4.3+ |
| 22318 | collect2name=`${CC} -print-prog-name=collect2` |
| 22319 | if test -f "$collect2name" && \ |
| 22320 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22321 | then |
| 22322 | # We have reworked collect2 |
| 22323 | hardcode_direct_F77=yes |
| 22324 | else |
| 22325 | # We have old collect2 |
| 22326 | hardcode_direct_F77=unsupported |
| 22327 | # It fails to find uninstalled libraries when the uninstalled |
| 22328 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22329 | # to unsupported forces relinking |
| 22330 | hardcode_minus_L_F77=yes |
| 22331 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22332 | hardcode_libdir_separator_F77= |
| 22333 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22334 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22335 | esac |
| 22336 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22337 | if test "$aix_use_runtimelinking" = yes; then |
| 22338 | shared_flag="$shared_flag "'${wl}-G' |
| 22339 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22340 | else |
| 22341 | # not using gcc |
| 22342 | if test "$host_cpu" = ia64; then |
| 22343 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22344 | # chokes on -Wl,-G. The following line is correct: |
| 22345 | shared_flag='-G' |
| 22346 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22347 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22348 | shared_flag='${wl}-G' |
| 22349 | else |
| 22350 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22351 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22352 | fi |
| 22353 | fi |
| 22354 | |
| 22355 | # It seems that -bexpall does not export symbols beginning with |
| 22356 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22357 | always_export_symbols_F77=yes |
| 22358 | if test "$aix_use_runtimelinking" = yes; then |
| 22359 | # Warning - without using the other runtime loading flags (-brtl), |
| 22360 | # -berok will link without error, but may produce a broken library. |
| 22361 | allow_undefined_flag_F77='-berok' |
| 22362 | # Determine the default libpath from the value encoded in an empty executable. |
| 22363 | cat >conftest.$ac_ext <<_ACEOF |
| 22364 | program main |
| 22365 | |
| 22366 | end |
| 22367 | _ACEOF |
| 22368 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22369 | if { (ac_try="$ac_link" |
| 22370 | case "(($ac_try" in |
| 22371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22372 | *) ac_try_echo=$ac_try;; |
| 22373 | esac |
| 22374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22375 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22376 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22378 | rm -f conftest.er1 |
| 22379 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22381 | (exit $ac_status); } && |
| 22382 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22383 | { (case "(($ac_try" in |
| 22384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22385 | *) ac_try_echo=$ac_try;; |
| 22386 | esac |
| 22387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22388 | (eval "$ac_try") 2>&5 |
| 22389 | ac_status=$? |
| 22390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22391 | (exit $ac_status); }; } && |
| 22392 | { ac_try='test -s conftest$ac_exeext' |
| 22393 | { (case "(($ac_try" in |
| 22394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22395 | *) ac_try_echo=$ac_try;; |
| 22396 | esac |
| 22397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22398 | (eval "$ac_try") 2>&5 |
| 22399 | ac_status=$? |
| 22400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22401 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22402 | |
| 22403 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22404 | }'` |
| 22405 | # Check for a 64-bit object if we didn't find anything. |
| 22406 | 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; } |
| 22407 | }'`; fi |
| 22408 | else |
| 22409 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22412 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22413 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22414 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22415 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22416 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22417 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22418 | |
| 22419 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22420 | 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] | 22421 | else |
| 22422 | if test "$host_cpu" = ia64; then |
| 22423 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22424 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22425 | 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] | 22426 | else |
| 22427 | # Determine the default libpath from the value encoded in an empty executable. |
| 22428 | cat >conftest.$ac_ext <<_ACEOF |
| 22429 | program main |
| 22430 | |
| 22431 | end |
| 22432 | _ACEOF |
| 22433 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22434 | if { (ac_try="$ac_link" |
| 22435 | case "(($ac_try" in |
| 22436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22437 | *) ac_try_echo=$ac_try;; |
| 22438 | esac |
| 22439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22440 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22441 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22443 | rm -f conftest.er1 |
| 22444 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22446 | (exit $ac_status); } && |
| 22447 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22448 | { (case "(($ac_try" in |
| 22449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22450 | *) ac_try_echo=$ac_try;; |
| 22451 | esac |
| 22452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22453 | (eval "$ac_try") 2>&5 |
| 22454 | ac_status=$? |
| 22455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22456 | (exit $ac_status); }; } && |
| 22457 | { ac_try='test -s conftest$ac_exeext' |
| 22458 | { (case "(($ac_try" in |
| 22459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22460 | *) ac_try_echo=$ac_try;; |
| 22461 | esac |
| 22462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22463 | (eval "$ac_try") 2>&5 |
| 22464 | ac_status=$? |
| 22465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22466 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22467 | |
| 22468 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22469 | }'` |
| 22470 | # Check for a 64-bit object if we didn't find anything. |
| 22471 | 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; } |
| 22472 | }'`; fi |
| 22473 | else |
| 22474 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22477 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22479 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22480 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22481 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22482 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22483 | |
| 22484 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22485 | # Warning - without using the other run time loading flags, |
| 22486 | # -berok will link without error, but may produce a broken library. |
| 22487 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22488 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22489 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22490 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22491 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22492 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22493 | 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] | 22494 | fi |
| 22495 | fi |
| 22496 | ;; |
| 22497 | |
| 22498 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22499 | 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] | 22500 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22501 | hardcode_minus_L_F77=yes |
| 22502 | # see comment about different semantics on the GNU ld section |
| 22503 | ld_shlibs_F77=no |
| 22504 | ;; |
| 22505 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22506 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22507 | export_dynamic_flag_spec_F77=-rdynamic |
| 22508 | ;; |
| 22509 | |
| 22510 | cygwin* | mingw* | pw32*) |
| 22511 | # When not using gcc, we currently assume that we are using |
| 22512 | # Microsoft Visual C++. |
| 22513 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22514 | # no search path for DLLs. |
| 22515 | hardcode_libdir_flag_spec_F77=' ' |
| 22516 | allow_undefined_flag_F77=unsupported |
| 22517 | # Tell ltmain to make .lib files, not .a files. |
| 22518 | libext=lib |
| 22519 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22520 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22521 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22522 | 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] | 22523 | # The linker will automatically build a .lib file if we build a DLL. |
| 22524 | old_archive_From_new_cmds_F77='true' |
| 22525 | # FIXME: Should let the user specify the lib program. |
| 22526 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22527 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22528 | enable_shared_with_static_runtimes_F77=yes |
| 22529 | ;; |
| 22530 | |
| 22531 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22532 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22533 | rhapsody* | darwin1.[012]) |
| 22534 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22535 | ;; |
| 22536 | *) # Darwin 1.3 on |
| 22537 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22538 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22539 | else |
| 22540 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22541 | 10.[012]) |
| 22542 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22543 | ;; |
| 22544 | 10.*) |
| 22545 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22546 | ;; |
| 22547 | esac |
| 22548 | fi |
| 22549 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22550 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22551 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22552 | hardcode_direct_F77=no |
| 22553 | hardcode_automatic_F77=yes |
| 22554 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22555 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22556 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22557 | if test "$GCC" = yes ; then |
| 22558 | output_verbose_link_cmd='echo' |
| 22559 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22560 | 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] | 22561 | # 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] | 22562 | 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}' |
| 22563 | 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] | 22564 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22565 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22566 | xlc*) |
| 22567 | output_verbose_link_cmd='echo' |
| 22568 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22569 | 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] | 22570 | # 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] | 22571 | 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}' |
| 22572 | 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] | 22573 | ;; |
| 22574 | *) |
| 22575 | ld_shlibs_F77=no |
| 22576 | ;; |
| 22577 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22578 | fi |
| 22579 | ;; |
| 22580 | |
| 22581 | dgux*) |
| 22582 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22583 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22584 | hardcode_shlibpath_var_F77=no |
| 22585 | ;; |
| 22586 | |
| 22587 | freebsd1*) |
| 22588 | ld_shlibs_F77=no |
| 22589 | ;; |
| 22590 | |
| 22591 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22592 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22593 | # does not break anything, and helps significantly (at the cost of a little |
| 22594 | # extra space). |
| 22595 | freebsd2.2*) |
| 22596 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22597 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22598 | hardcode_direct_F77=yes |
| 22599 | hardcode_shlibpath_var_F77=no |
| 22600 | ;; |
| 22601 | |
| 22602 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22603 | freebsd2*) |
| 22604 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22605 | hardcode_direct_F77=yes |
| 22606 | hardcode_minus_L_F77=yes |
| 22607 | hardcode_shlibpath_var_F77=no |
| 22608 | ;; |
| 22609 | |
| 22610 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22611 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22612 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22613 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22614 | hardcode_direct_F77=yes |
| 22615 | hardcode_shlibpath_var_F77=no |
| 22616 | ;; |
| 22617 | |
| 22618 | hpux9*) |
| 22619 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22620 | 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] | 22621 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22622 | 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] | 22623 | fi |
| 22624 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22625 | hardcode_libdir_separator_F77=: |
| 22626 | hardcode_direct_F77=yes |
| 22627 | |
| 22628 | # hardcode_minus_L: Not really in the search PATH, |
| 22629 | # but as the default location of the library. |
| 22630 | hardcode_minus_L_F77=yes |
| 22631 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22632 | ;; |
| 22633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22634 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22635 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22636 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22637 | else |
| 22638 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22639 | fi |
| 22640 | if test "$with_gnu_ld" = no; then |
| 22641 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22642 | hardcode_libdir_separator_F77=: |
| 22643 | |
| 22644 | hardcode_direct_F77=yes |
| 22645 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22646 | |
| 22647 | # hardcode_minus_L: Not really in the search PATH, |
| 22648 | # but as the default location of the library. |
| 22649 | hardcode_minus_L_F77=yes |
| 22650 | fi |
| 22651 | ;; |
| 22652 | |
| 22653 | hpux11*) |
| 22654 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22655 | case $host_cpu in |
| 22656 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22657 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22658 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22659 | ia64*) |
| 22660 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22661 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22662 | *) |
| 22663 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22664 | ;; |
| 22665 | esac |
| 22666 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22667 | case $host_cpu in |
| 22668 | hppa*64*) |
| 22669 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22670 | ;; |
| 22671 | ia64*) |
| 22672 | 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] | 22673 | ;; |
| 22674 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22675 | 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] | 22676 | ;; |
| 22677 | esac |
| 22678 | fi |
| 22679 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22680 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22681 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22683 | case $host_cpu in |
| 22684 | hppa*64*|ia64*) |
| 22685 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22686 | hardcode_direct_F77=no |
| 22687 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22688 | ;; |
| 22689 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22690 | hardcode_direct_F77=yes |
| 22691 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22692 | |
| 22693 | # hardcode_minus_L: Not really in the search PATH, |
| 22694 | # but as the default location of the library. |
| 22695 | hardcode_minus_L_F77=yes |
| 22696 | ;; |
| 22697 | esac |
| 22698 | fi |
| 22699 | ;; |
| 22700 | |
| 22701 | irix5* | irix6* | nonstopux*) |
| 22702 | if test "$GCC" = yes; then |
| 22703 | 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' |
| 22704 | else |
| 22705 | 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' |
| 22706 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22707 | fi |
| 22708 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22709 | hardcode_libdir_separator_F77=: |
| 22710 | link_all_deplibs_F77=yes |
| 22711 | ;; |
| 22712 | |
| 22713 | netbsd*) |
| 22714 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22715 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22716 | else |
| 22717 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22718 | fi |
| 22719 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22720 | hardcode_direct_F77=yes |
| 22721 | hardcode_shlibpath_var_F77=no |
| 22722 | ;; |
| 22723 | |
| 22724 | newsos6) |
| 22725 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22726 | hardcode_direct_F77=yes |
| 22727 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22728 | hardcode_libdir_separator_F77=: |
| 22729 | hardcode_shlibpath_var_F77=no |
| 22730 | ;; |
| 22731 | |
| 22732 | openbsd*) |
| 22733 | hardcode_direct_F77=yes |
| 22734 | hardcode_shlibpath_var_F77=no |
| 22735 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22736 | 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] | 22737 | 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] | 22738 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22739 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22740 | else |
| 22741 | case $host_os in |
| 22742 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22743 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22744 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22745 | ;; |
| 22746 | *) |
| 22747 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22748 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22749 | ;; |
| 22750 | esac |
| 22751 | fi |
| 22752 | ;; |
| 22753 | |
| 22754 | os2*) |
| 22755 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22756 | hardcode_minus_L_F77=yes |
| 22757 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22758 | 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] | 22759 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22760 | ;; |
| 22761 | |
| 22762 | osf3*) |
| 22763 | if test "$GCC" = yes; then |
| 22764 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22765 | 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' |
| 22766 | else |
| 22767 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22768 | 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' |
| 22769 | fi |
| 22770 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22771 | hardcode_libdir_separator_F77=: |
| 22772 | ;; |
| 22773 | |
| 22774 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22775 | if test "$GCC" = yes; then |
| 22776 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22777 | 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' |
| 22778 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22779 | else |
| 22780 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22781 | 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] | 22782 | 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] | 22783 | $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] | 22784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22785 | # Both c and cxx compiler support -rpath directly |
| 22786 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22787 | fi |
| 22788 | hardcode_libdir_separator_F77=: |
| 22789 | ;; |
| 22790 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22791 | solaris*) |
| 22792 | no_undefined_flag_F77=' -z text' |
| 22793 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22794 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22795 | 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] | 22796 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22797 | $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] | 22798 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22799 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22800 | 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] | 22801 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22802 | $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] | 22803 | fi |
| 22804 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22805 | hardcode_shlibpath_var_F77=no |
| 22806 | case $host_os in |
| 22807 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22808 | *) |
| 22809 | # The compiler driver will combine linker options so we |
| 22810 | # cannot just pass the convience library names through |
| 22811 | # without $wl, iff we do not link with $LD. |
| 22812 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22813 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22814 | case $wlarc in |
| 22815 | '') |
| 22816 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22817 | *) |
| 22818 | 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' ;; |
| 22819 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22820 | esac |
| 22821 | link_all_deplibs_F77=yes |
| 22822 | ;; |
| 22823 | |
| 22824 | sunos4*) |
| 22825 | if test "x$host_vendor" = xsequent; then |
| 22826 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22827 | # files that make .init and .fini sections work. |
| 22828 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22829 | else |
| 22830 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22831 | fi |
| 22832 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22833 | hardcode_direct_F77=yes |
| 22834 | hardcode_minus_L_F77=yes |
| 22835 | hardcode_shlibpath_var_F77=no |
| 22836 | ;; |
| 22837 | |
| 22838 | sysv4) |
| 22839 | case $host_vendor in |
| 22840 | sni) |
| 22841 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22842 | hardcode_direct_F77=yes # is this really true??? |
| 22843 | ;; |
| 22844 | siemens) |
| 22845 | ## LD is ld it makes a PLAMLIB |
| 22846 | ## CC just makes a GrossModule. |
| 22847 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22848 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22849 | hardcode_direct_F77=no |
| 22850 | ;; |
| 22851 | motorola) |
| 22852 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22853 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22854 | ;; |
| 22855 | esac |
| 22856 | runpath_var='LD_RUN_PATH' |
| 22857 | hardcode_shlibpath_var_F77=no |
| 22858 | ;; |
| 22859 | |
| 22860 | sysv4.3*) |
| 22861 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22862 | hardcode_shlibpath_var_F77=no |
| 22863 | export_dynamic_flag_spec_F77='-Bexport' |
| 22864 | ;; |
| 22865 | |
| 22866 | sysv4*MP*) |
| 22867 | if test -d /usr/nec; then |
| 22868 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22869 | hardcode_shlibpath_var_F77=no |
| 22870 | runpath_var=LD_RUN_PATH |
| 22871 | hardcode_runpath_var=yes |
| 22872 | ld_shlibs_F77=yes |
| 22873 | fi |
| 22874 | ;; |
| 22875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22876 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22877 | no_undefined_flag_F77='${wl}-z,text' |
| 22878 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22879 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22880 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22881 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22882 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22883 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22884 | 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] | 22885 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22886 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22887 | 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] | 22888 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22889 | ;; |
| 22890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22891 | sysv5* | sco3.2v5* | sco5v6*) |
| 22892 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22893 | # link with -lc, and that would cause any symbols used from libc to |
| 22894 | # always be unresolved, which means just about no library would |
| 22895 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22896 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22897 | # as -z defs. |
| 22898 | no_undefined_flag_F77='${wl}-z,text' |
| 22899 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22900 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22901 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22902 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22903 | hardcode_libdir_separator_F77=':' |
| 22904 | link_all_deplibs_F77=yes |
| 22905 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22906 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22907 | |
| 22908 | if test "$GCC" = yes; then |
| 22909 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22910 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22911 | else |
| 22912 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22913 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22914 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22915 | ;; |
| 22916 | |
| 22917 | uts4*) |
| 22918 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22919 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22920 | hardcode_shlibpath_var_F77=no |
| 22921 | ;; |
| 22922 | |
| 22923 | *) |
| 22924 | ld_shlibs_F77=no |
| 22925 | ;; |
| 22926 | esac |
| 22927 | fi |
| 22928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22929 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22930 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22931 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22932 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22933 | # |
| 22934 | # Do we need to explicitly link libc? |
| 22935 | # |
| 22936 | case "x$archive_cmds_need_lc_F77" in |
| 22937 | x|xyes) |
| 22938 | # Assume -lc should be added |
| 22939 | archive_cmds_need_lc_F77=yes |
| 22940 | |
| 22941 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22942 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22943 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22944 | # FIXME: we may have to deal with multi-command sequences. |
| 22945 | ;; |
| 22946 | '$CC '*) |
| 22947 | # Test whether the compiler implicitly links with -lc since on some |
| 22948 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22949 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22950 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22951 | 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] | 22952 | $rm conftest* |
| 22953 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22954 | |
| 22955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22956 | (eval $ac_compile) 2>&5 |
| 22957 | ac_status=$? |
| 22958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22959 | (exit $ac_status); } 2>conftest.err; then |
| 22960 | soname=conftest |
| 22961 | lib=conftest |
| 22962 | libobjs=conftest.$ac_objext |
| 22963 | deplibs= |
| 22964 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22965 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22966 | compiler_flags=-v |
| 22967 | linker_flags=-v |
| 22968 | verstring= |
| 22969 | output_objdir=. |
| 22970 | libname=conftest |
| 22971 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22972 | allow_undefined_flag_F77= |
| 22973 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22974 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22975 | ac_status=$? |
| 22976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22977 | (exit $ac_status); } |
| 22978 | then |
| 22979 | archive_cmds_need_lc_F77=no |
| 22980 | else |
| 22981 | archive_cmds_need_lc_F77=yes |
| 22982 | fi |
| 22983 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22984 | else |
| 22985 | cat conftest.err 1>&5 |
| 22986 | fi |
| 22987 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22988 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22989 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22990 | ;; |
| 22991 | esac |
| 22992 | fi |
| 22993 | ;; |
| 22994 | esac |
| 22995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22996 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22997 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22998 | library_names_spec= |
| 22999 | libname_spec='lib$name' |
| 23000 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23001 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23002 | postinstall_cmds= |
| 23003 | postuninstall_cmds= |
| 23004 | finish_cmds= |
| 23005 | finish_eval= |
| 23006 | shlibpath_var= |
| 23007 | shlibpath_overrides_runpath=unknown |
| 23008 | version_type=none |
| 23009 | dynamic_linker="$host_os ld.so" |
| 23010 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 23011 | if test "$GCC" = yes; then |
| 23012 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23013 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 23014 | # if the path contains ";" then we assume it to be the separator |
| 23015 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 23016 | # assumed that no part of a normal pathname contains ";" but that should |
| 23017 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 23018 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23019 | else |
| 23020 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23021 | fi |
| 23022 | else |
| 23023 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 23024 | fi |
| 23025 | need_lib_prefix=unknown |
| 23026 | hardcode_into_libs=no |
| 23027 | |
| 23028 | # when you set need_version to no, make sure it does not cause -set_version |
| 23029 | # flags to be left without arguments |
| 23030 | need_version=unknown |
| 23031 | |
| 23032 | case $host_os in |
| 23033 | aix3*) |
| 23034 | version_type=linux |
| 23035 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 23036 | shlibpath_var=LIBPATH |
| 23037 | |
| 23038 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 23039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23040 | ;; |
| 23041 | |
| 23042 | aix4* | aix5*) |
| 23043 | version_type=linux |
| 23044 | need_lib_prefix=no |
| 23045 | need_version=no |
| 23046 | hardcode_into_libs=yes |
| 23047 | if test "$host_cpu" = ia64; then |
| 23048 | # AIX 5 supports IA64 |
| 23049 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 23050 | shlibpath_var=LD_LIBRARY_PATH |
| 23051 | else |
| 23052 | # With GCC up to 2.95.x, collect2 would create an import file |
| 23053 | # for dependence libraries. The import file would start with |
| 23054 | # the line `#! .'. This would cause the generated library to |
| 23055 | # depend on `.', always an invalid library. This was fixed in |
| 23056 | # development snapshots of GCC prior to 3.0. |
| 23057 | case $host_os in |
| 23058 | aix4 | aix4.[01] | aix4.[01].*) |
| 23059 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 23060 | echo ' yes ' |
| 23061 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 23062 | : |
| 23063 | else |
| 23064 | can_build_shared=no |
| 23065 | fi |
| 23066 | ;; |
| 23067 | esac |
| 23068 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 23069 | # soname into executable. Probably we can add versioning support to |
| 23070 | # collect2, so additional links can be useful in future. |
| 23071 | if test "$aix_use_runtimelinking" = yes; then |
| 23072 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 23073 | # instead of lib<name>.a to let people know that these are not |
| 23074 | # typical AIX shared libraries. |
| 23075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23076 | else |
| 23077 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 23078 | # and later when we are not doing run time linking. |
| 23079 | library_names_spec='${libname}${release}.a $libname.a' |
| 23080 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23081 | fi |
| 23082 | shlibpath_var=LIBPATH |
| 23083 | fi |
| 23084 | ;; |
| 23085 | |
| 23086 | amigaos*) |
| 23087 | library_names_spec='$libname.ixlibrary $libname.a' |
| 23088 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23089 | 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] | 23090 | ;; |
| 23091 | |
| 23092 | beos*) |
| 23093 | library_names_spec='${libname}${shared_ext}' |
| 23094 | dynamic_linker="$host_os ld.so" |
| 23095 | shlibpath_var=LIBRARY_PATH |
| 23096 | ;; |
| 23097 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23098 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23099 | version_type=linux |
| 23100 | need_version=no |
| 23101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23103 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 23104 | shlibpath_var=LD_LIBRARY_PATH |
| 23105 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 23106 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 23107 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 23108 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 23109 | # libtool to hard-code these into programs |
| 23110 | ;; |
| 23111 | |
| 23112 | cygwin* | mingw* | pw32*) |
| 23113 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23114 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23115 | need_version=no |
| 23116 | need_lib_prefix=no |
| 23117 | |
| 23118 | case $GCC,$host_os in |
| 23119 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 23120 | library_names_spec='$libname.dll.a' |
| 23121 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23122 | postinstall_cmds='base_file=`basename \${file}`~ |
| 23123 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 23124 | dldir=$destdir/`dirname \$dlpath`~ |
| 23125 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23126 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 23127 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23128 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 23129 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23130 | $rm \$dlpath' |
| 23131 | shlibpath_overrides_runpath=yes |
| 23132 | |
| 23133 | case $host_os in |
| 23134 | cygwin*) |
| 23135 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 23136 | 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] | 23137 | 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] | 23138 | ;; |
| 23139 | mingw*) |
| 23140 | # MinGW DLLs use traditional 'lib' prefix |
| 23141 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 23142 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23143 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 23144 | # It is most probably a Windows format PATH printed by |
| 23145 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 23146 | # path with ; separators, and with drive letters. We can handle the |
| 23147 | # drive letters (cygwin fileutils understands them), so leave them, |
| 23148 | # especially as we might pass files found there to a mingw objdump, |
| 23149 | # which wouldn't understand a cygwinified path. Ahh. |
| 23150 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23151 | else |
| 23152 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23153 | fi |
| 23154 | ;; |
| 23155 | pw32*) |
| 23156 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23157 | 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] | 23158 | ;; |
| 23159 | esac |
| 23160 | ;; |
| 23161 | |
| 23162 | *) |
| 23163 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23164 | ;; |
| 23165 | esac |
| 23166 | dynamic_linker='Win32 ld.exe' |
| 23167 | # FIXME: first we should search . and the directory the executable is in |
| 23168 | shlibpath_var=PATH |
| 23169 | ;; |
| 23170 | |
| 23171 | darwin* | rhapsody*) |
| 23172 | dynamic_linker="$host_os dyld" |
| 23173 | version_type=darwin |
| 23174 | need_lib_prefix=no |
| 23175 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23176 | 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] | 23177 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23178 | shlibpath_overrides_runpath=yes |
| 23179 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23180 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23181 | # 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] | 23182 | if test "$GCC" = yes; then |
| 23183 | 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"` |
| 23184 | else |
| 23185 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23186 | fi |
| 23187 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23188 | ;; |
| 23189 | |
| 23190 | dgux*) |
| 23191 | version_type=linux |
| 23192 | need_lib_prefix=no |
| 23193 | need_version=no |
| 23194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23195 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23196 | shlibpath_var=LD_LIBRARY_PATH |
| 23197 | ;; |
| 23198 | |
| 23199 | freebsd1*) |
| 23200 | dynamic_linker=no |
| 23201 | ;; |
| 23202 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23203 | kfreebsd*-gnu) |
| 23204 | version_type=linux |
| 23205 | need_lib_prefix=no |
| 23206 | need_version=no |
| 23207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23209 | shlibpath_var=LD_LIBRARY_PATH |
| 23210 | shlibpath_overrides_runpath=no |
| 23211 | hardcode_into_libs=yes |
| 23212 | dynamic_linker='GNU ld.so' |
| 23213 | ;; |
| 23214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23215 | freebsd* | dragonfly*) |
| 23216 | # DragonFly does not have aout. When/if they implement a new |
| 23217 | # versioning mechanism, adjust this. |
| 23218 | if test -x /usr/bin/objformat; then |
| 23219 | objformat=`/usr/bin/objformat` |
| 23220 | else |
| 23221 | case $host_os in |
| 23222 | freebsd[123]*) objformat=aout ;; |
| 23223 | *) objformat=elf ;; |
| 23224 | esac |
| 23225 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23226 | version_type=freebsd-$objformat |
| 23227 | case $version_type in |
| 23228 | freebsd-elf*) |
| 23229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23230 | need_version=no |
| 23231 | need_lib_prefix=no |
| 23232 | ;; |
| 23233 | freebsd-*) |
| 23234 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23235 | need_version=yes |
| 23236 | ;; |
| 23237 | esac |
| 23238 | shlibpath_var=LD_LIBRARY_PATH |
| 23239 | case $host_os in |
| 23240 | freebsd2*) |
| 23241 | shlibpath_overrides_runpath=yes |
| 23242 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23243 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23244 | shlibpath_overrides_runpath=yes |
| 23245 | hardcode_into_libs=yes |
| 23246 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23247 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 23248 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23249 | shlibpath_overrides_runpath=no |
| 23250 | hardcode_into_libs=yes |
| 23251 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23252 | freebsd*) # from 4.6 on |
| 23253 | shlibpath_overrides_runpath=yes |
| 23254 | hardcode_into_libs=yes |
| 23255 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23256 | esac |
| 23257 | ;; |
| 23258 | |
| 23259 | gnu*) |
| 23260 | version_type=linux |
| 23261 | need_lib_prefix=no |
| 23262 | need_version=no |
| 23263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23265 | shlibpath_var=LD_LIBRARY_PATH |
| 23266 | hardcode_into_libs=yes |
| 23267 | ;; |
| 23268 | |
| 23269 | hpux9* | hpux10* | hpux11*) |
| 23270 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23271 | # link against other versions. |
| 23272 | version_type=sunos |
| 23273 | need_lib_prefix=no |
| 23274 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23275 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23276 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23277 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23278 | hardcode_into_libs=yes |
| 23279 | dynamic_linker="$host_os dld.so" |
| 23280 | shlibpath_var=LD_LIBRARY_PATH |
| 23281 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23283 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23284 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23285 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23286 | else |
| 23287 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23288 | fi |
| 23289 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23290 | ;; |
| 23291 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23292 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23293 | hardcode_into_libs=yes |
| 23294 | dynamic_linker="$host_os dld.sl" |
| 23295 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23296 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23298 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23299 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23300 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23301 | ;; |
| 23302 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23303 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23304 | dynamic_linker="$host_os dld.sl" |
| 23305 | shlibpath_var=SHLIB_PATH |
| 23306 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23308 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23309 | ;; |
| 23310 | esac |
| 23311 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23312 | postinstall_cmds='chmod 555 $lib' |
| 23313 | ;; |
| 23314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23315 | interix3*) |
| 23316 | version_type=linux |
| 23317 | need_lib_prefix=no |
| 23318 | need_version=no |
| 23319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23320 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23321 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 23322 | shlibpath_var=LD_LIBRARY_PATH |
| 23323 | shlibpath_overrides_runpath=no |
| 23324 | hardcode_into_libs=yes |
| 23325 | ;; |
| 23326 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23327 | irix5* | irix6* | nonstopux*) |
| 23328 | case $host_os in |
| 23329 | nonstopux*) version_type=nonstopux ;; |
| 23330 | *) |
| 23331 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23332 | version_type=linux |
| 23333 | else |
| 23334 | version_type=irix |
| 23335 | fi ;; |
| 23336 | esac |
| 23337 | need_lib_prefix=no |
| 23338 | need_version=no |
| 23339 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23341 | case $host_os in |
| 23342 | irix5* | nonstopux*) |
| 23343 | libsuff= shlibsuff= |
| 23344 | ;; |
| 23345 | *) |
| 23346 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23347 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23348 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23349 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23350 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23351 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23352 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23353 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23354 | esac |
| 23355 | ;; |
| 23356 | esac |
| 23357 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23358 | shlibpath_overrides_runpath=no |
| 23359 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23360 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23361 | hardcode_into_libs=yes |
| 23362 | ;; |
| 23363 | |
| 23364 | # No shared lib support for Linux oldld, aout, or coff. |
| 23365 | linux*oldld* | linux*aout* | linux*coff*) |
| 23366 | dynamic_linker=no |
| 23367 | ;; |
| 23368 | |
| 23369 | # This must be Linux ELF. |
| 23370 | linux*) |
| 23371 | version_type=linux |
| 23372 | need_lib_prefix=no |
| 23373 | need_version=no |
| 23374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23375 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23377 | shlibpath_var=LD_LIBRARY_PATH |
| 23378 | shlibpath_overrides_runpath=no |
| 23379 | # This implies no fast_install, which is unacceptable. |
| 23380 | # Some rework will be needed to allow for fast_install |
| 23381 | # before this can be enabled. |
| 23382 | hardcode_into_libs=yes |
| 23383 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23384 | # Append ld.so.conf contents to the search path |
| 23385 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23386 | 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] | 23387 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23388 | fi |
| 23389 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23390 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23391 | # powerpc, because MkLinux only supported shared libraries with the |
| 23392 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23393 | # most powerpc-linux boxes support dynamic linking these days and |
| 23394 | # people can always --disable-shared, the test was removed, and we |
| 23395 | # assume the GNU/Linux dynamic linker is in use. |
| 23396 | dynamic_linker='GNU/Linux ld.so' |
| 23397 | ;; |
| 23398 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23399 | knetbsd*-gnu) |
| 23400 | version_type=linux |
| 23401 | need_lib_prefix=no |
| 23402 | need_version=no |
| 23403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23404 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23405 | shlibpath_var=LD_LIBRARY_PATH |
| 23406 | shlibpath_overrides_runpath=no |
| 23407 | hardcode_into_libs=yes |
| 23408 | dynamic_linker='GNU ld.so' |
| 23409 | ;; |
| 23410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23411 | netbsd*) |
| 23412 | version_type=sunos |
| 23413 | need_lib_prefix=no |
| 23414 | need_version=no |
| 23415 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23417 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23418 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23419 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23420 | 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] | 23421 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23422 | dynamic_linker='NetBSD ld.elf_so' |
| 23423 | fi |
| 23424 | shlibpath_var=LD_LIBRARY_PATH |
| 23425 | shlibpath_overrides_runpath=yes |
| 23426 | hardcode_into_libs=yes |
| 23427 | ;; |
| 23428 | |
| 23429 | newsos6) |
| 23430 | version_type=linux |
| 23431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23432 | shlibpath_var=LD_LIBRARY_PATH |
| 23433 | shlibpath_overrides_runpath=yes |
| 23434 | ;; |
| 23435 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23436 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23437 | version_type=linux |
| 23438 | need_lib_prefix=no |
| 23439 | need_version=no |
| 23440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23441 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23442 | shlibpath_var=LD_LIBRARY_PATH |
| 23443 | shlibpath_overrides_runpath=yes |
| 23444 | ;; |
| 23445 | |
| 23446 | openbsd*) |
| 23447 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23448 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23449 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23450 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23451 | case $host_os in |
| 23452 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23453 | *) need_version=no ;; |
| 23454 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23456 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23457 | shlibpath_var=LD_LIBRARY_PATH |
| 23458 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23459 | case $host_os in |
| 23460 | openbsd2.[89] | openbsd2.[89].*) |
| 23461 | shlibpath_overrides_runpath=no |
| 23462 | ;; |
| 23463 | *) |
| 23464 | shlibpath_overrides_runpath=yes |
| 23465 | ;; |
| 23466 | esac |
| 23467 | else |
| 23468 | shlibpath_overrides_runpath=yes |
| 23469 | fi |
| 23470 | ;; |
| 23471 | |
| 23472 | os2*) |
| 23473 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23474 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23475 | need_lib_prefix=no |
| 23476 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23477 | dynamic_linker='OS/2 ld.exe' |
| 23478 | shlibpath_var=LIBPATH |
| 23479 | ;; |
| 23480 | |
| 23481 | osf3* | osf4* | osf5*) |
| 23482 | version_type=osf |
| 23483 | need_lib_prefix=no |
| 23484 | need_version=no |
| 23485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23487 | shlibpath_var=LD_LIBRARY_PATH |
| 23488 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23489 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23490 | ;; |
| 23491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23492 | solaris*) |
| 23493 | version_type=linux |
| 23494 | need_lib_prefix=no |
| 23495 | need_version=no |
| 23496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23497 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23498 | shlibpath_var=LD_LIBRARY_PATH |
| 23499 | shlibpath_overrides_runpath=yes |
| 23500 | hardcode_into_libs=yes |
| 23501 | # ldd complains unless libraries are executable |
| 23502 | postinstall_cmds='chmod +x $lib' |
| 23503 | ;; |
| 23504 | |
| 23505 | sunos4*) |
| 23506 | version_type=sunos |
| 23507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23508 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23509 | shlibpath_var=LD_LIBRARY_PATH |
| 23510 | shlibpath_overrides_runpath=yes |
| 23511 | if test "$with_gnu_ld" = yes; then |
| 23512 | need_lib_prefix=no |
| 23513 | fi |
| 23514 | need_version=yes |
| 23515 | ;; |
| 23516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23517 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23518 | version_type=linux |
| 23519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23520 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23521 | shlibpath_var=LD_LIBRARY_PATH |
| 23522 | case $host_vendor in |
| 23523 | sni) |
| 23524 | shlibpath_overrides_runpath=no |
| 23525 | need_lib_prefix=no |
| 23526 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23527 | runpath_var=LD_RUN_PATH |
| 23528 | ;; |
| 23529 | siemens) |
| 23530 | need_lib_prefix=no |
| 23531 | ;; |
| 23532 | motorola) |
| 23533 | need_lib_prefix=no |
| 23534 | need_version=no |
| 23535 | shlibpath_overrides_runpath=no |
| 23536 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23537 | ;; |
| 23538 | esac |
| 23539 | ;; |
| 23540 | |
| 23541 | sysv4*MP*) |
| 23542 | if test -d /usr/nec ;then |
| 23543 | version_type=linux |
| 23544 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23545 | soname_spec='$libname${shared_ext}.$major' |
| 23546 | shlibpath_var=LD_LIBRARY_PATH |
| 23547 | fi |
| 23548 | ;; |
| 23549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23550 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23551 | version_type=freebsd-elf |
| 23552 | need_lib_prefix=no |
| 23553 | need_version=no |
| 23554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23555 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23556 | shlibpath_var=LD_LIBRARY_PATH |
| 23557 | hardcode_into_libs=yes |
| 23558 | if test "$with_gnu_ld" = yes; then |
| 23559 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23560 | shlibpath_overrides_runpath=no |
| 23561 | else |
| 23562 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23563 | shlibpath_overrides_runpath=yes |
| 23564 | case $host_os in |
| 23565 | sco3.2v5*) |
| 23566 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23567 | ;; |
| 23568 | esac |
| 23569 | fi |
| 23570 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23571 | ;; |
| 23572 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23573 | uts4*) |
| 23574 | version_type=linux |
| 23575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23577 | shlibpath_var=LD_LIBRARY_PATH |
| 23578 | ;; |
| 23579 | |
| 23580 | *) |
| 23581 | dynamic_linker=no |
| 23582 | ;; |
| 23583 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23584 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23585 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23586 | test "$dynamic_linker" = no && can_build_shared=no |
| 23587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23588 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23589 | if test "$GCC" = yes; then |
| 23590 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23591 | fi |
| 23592 | |
| 23593 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23594 | 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] | 23595 | hardcode_action_F77= |
| 23596 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23597 | test -n "$runpath_var_F77" || \ |
| 23598 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23599 | |
| 23600 | # We can hardcode non-existant directories. |
| 23601 | if test "$hardcode_direct_F77" != no && |
| 23602 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23603 | # have to relink, otherwise we might link with an installed library |
| 23604 | # when we should be linking with a yet-to-be-installed one |
| 23605 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23606 | test "$hardcode_minus_L_F77" != no; then |
| 23607 | # Linking always hardcodes the temporary library directory. |
| 23608 | hardcode_action_F77=relink |
| 23609 | else |
| 23610 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23611 | hardcode_action_F77=immediate |
| 23612 | fi |
| 23613 | else |
| 23614 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23615 | # directories. |
| 23616 | hardcode_action_F77=unsupported |
| 23617 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23618 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23619 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23620 | |
| 23621 | if test "$hardcode_action_F77" = relink; then |
| 23622 | # Fast installation is not supported |
| 23623 | enable_fast_install=no |
| 23624 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23625 | test "$enable_shared" = no; then |
| 23626 | # Fast installation is not necessary |
| 23627 | enable_fast_install=needless |
| 23628 | fi |
| 23629 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23630 | |
| 23631 | # The else clause should only fire when bootstrapping the |
| 23632 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23633 | # with your package, and you will get complaints that there are |
| 23634 | # no rules to generate ltmain.sh. |
| 23635 | if test -f "$ltmain"; then |
| 23636 | # See if we are running on zsh, and set the options which allow our commands through |
| 23637 | # without removal of \ escapes. |
| 23638 | if test -n "${ZSH_VERSION+set}" ; then |
| 23639 | setopt NO_GLOB_SUBST |
| 23640 | fi |
| 23641 | # Now quote all the things that may contain metacharacters while being |
| 23642 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23643 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23644 | 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] | 23645 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23646 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23647 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23648 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23649 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23650 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23651 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23652 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23653 | compiler_F77 \ |
| 23654 | CC_F77 \ |
| 23655 | LD_F77 \ |
| 23656 | lt_prog_compiler_wl_F77 \ |
| 23657 | lt_prog_compiler_pic_F77 \ |
| 23658 | lt_prog_compiler_static_F77 \ |
| 23659 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23660 | export_dynamic_flag_spec_F77 \ |
| 23661 | thread_safe_flag_spec_F77 \ |
| 23662 | whole_archive_flag_spec_F77 \ |
| 23663 | enable_shared_with_static_runtimes_F77 \ |
| 23664 | old_archive_cmds_F77 \ |
| 23665 | old_archive_from_new_cmds_F77 \ |
| 23666 | predep_objects_F77 \ |
| 23667 | postdep_objects_F77 \ |
| 23668 | predeps_F77 \ |
| 23669 | postdeps_F77 \ |
| 23670 | compiler_lib_search_path_F77 \ |
| 23671 | archive_cmds_F77 \ |
| 23672 | archive_expsym_cmds_F77 \ |
| 23673 | postinstall_cmds_F77 \ |
| 23674 | postuninstall_cmds_F77 \ |
| 23675 | old_archive_from_expsyms_cmds_F77 \ |
| 23676 | allow_undefined_flag_F77 \ |
| 23677 | no_undefined_flag_F77 \ |
| 23678 | export_symbols_cmds_F77 \ |
| 23679 | hardcode_libdir_flag_spec_F77 \ |
| 23680 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23681 | hardcode_libdir_separator_F77 \ |
| 23682 | hardcode_automatic_F77 \ |
| 23683 | module_cmds_F77 \ |
| 23684 | module_expsym_cmds_F77 \ |
| 23685 | lt_cv_prog_compiler_c_o_F77 \ |
| 23686 | exclude_expsyms_F77 \ |
| 23687 | include_expsyms_F77; do |
| 23688 | |
| 23689 | case $var in |
| 23690 | old_archive_cmds_F77 | \ |
| 23691 | old_archive_from_new_cmds_F77 | \ |
| 23692 | archive_cmds_F77 | \ |
| 23693 | archive_expsym_cmds_F77 | \ |
| 23694 | module_cmds_F77 | \ |
| 23695 | module_expsym_cmds_F77 | \ |
| 23696 | old_archive_from_expsyms_cmds_F77 | \ |
| 23697 | export_symbols_cmds_F77 | \ |
| 23698 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23699 | postinstall_cmds | postuninstall_cmds | \ |
| 23700 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23701 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23702 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23703 | 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] | 23704 | ;; |
| 23705 | *) |
| 23706 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23707 | ;; |
| 23708 | esac |
| 23709 | done |
| 23710 | |
| 23711 | case $lt_echo in |
| 23712 | *'\$0 --fallback-echo"') |
| 23713 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23714 | ;; |
| 23715 | esac |
| 23716 | |
| 23717 | cfgfile="$ofile" |
| 23718 | |
| 23719 | cat <<__EOF__ >> "$cfgfile" |
| 23720 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23721 | |
| 23722 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23723 | |
| 23724 | # Shell to use when invoking shell scripts. |
| 23725 | SHELL=$lt_SHELL |
| 23726 | |
| 23727 | # Whether or not to build shared libraries. |
| 23728 | build_libtool_libs=$enable_shared |
| 23729 | |
| 23730 | # Whether or not to build static libraries. |
| 23731 | build_old_libs=$enable_static |
| 23732 | |
| 23733 | # Whether or not to add -lc for building shared libraries. |
| 23734 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23735 | |
| 23736 | # Whether or not to disallow shared libs when runtime libs are static |
| 23737 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23738 | |
| 23739 | # Whether or not to optimize for fast installation. |
| 23740 | fast_install=$enable_fast_install |
| 23741 | |
| 23742 | # The host system. |
| 23743 | host_alias=$host_alias |
| 23744 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23745 | host_os=$host_os |
| 23746 | |
| 23747 | # The build system. |
| 23748 | build_alias=$build_alias |
| 23749 | build=$build |
| 23750 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23751 | |
| 23752 | # An echo program that does not interpret backslashes. |
| 23753 | echo=$lt_echo |
| 23754 | |
| 23755 | # The archiver. |
| 23756 | AR=$lt_AR |
| 23757 | AR_FLAGS=$lt_AR_FLAGS |
| 23758 | |
| 23759 | # A C compiler. |
| 23760 | LTCC=$lt_LTCC |
| 23761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23762 | # LTCC compiler flags. |
| 23763 | LTCFLAGS=$lt_LTCFLAGS |
| 23764 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23765 | # A language-specific compiler. |
| 23766 | CC=$lt_compiler_F77 |
| 23767 | |
| 23768 | # Is the compiler the GNU C compiler? |
| 23769 | with_gcc=$GCC_F77 |
| 23770 | |
| 23771 | # An ERE matcher. |
| 23772 | EGREP=$lt_EGREP |
| 23773 | |
| 23774 | # The linker used to build libraries. |
| 23775 | LD=$lt_LD_F77 |
| 23776 | |
| 23777 | # Whether we need hard or soft links. |
| 23778 | LN_S=$lt_LN_S |
| 23779 | |
| 23780 | # A BSD-compatible nm program. |
| 23781 | NM=$lt_NM |
| 23782 | |
| 23783 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23784 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23785 | |
| 23786 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23787 | MAGIC_CMD=$MAGIC_CMD |
| 23788 | |
| 23789 | # Used on cygwin: DLL creation program. |
| 23790 | DLLTOOL="$DLLTOOL" |
| 23791 | |
| 23792 | # Used on cygwin: object dumper. |
| 23793 | OBJDUMP="$OBJDUMP" |
| 23794 | |
| 23795 | # Used on cygwin: assembler. |
| 23796 | AS="$AS" |
| 23797 | |
| 23798 | # The name of the directory that contains temporary libtool files. |
| 23799 | objdir=$objdir |
| 23800 | |
| 23801 | # How to create reloadable object files. |
| 23802 | reload_flag=$lt_reload_flag |
| 23803 | reload_cmds=$lt_reload_cmds |
| 23804 | |
| 23805 | # How to pass a linker flag through the compiler. |
| 23806 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23807 | |
| 23808 | # Object file suffix (normally "o"). |
| 23809 | objext="$ac_objext" |
| 23810 | |
| 23811 | # Old archive suffix (normally "a"). |
| 23812 | libext="$libext" |
| 23813 | |
| 23814 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23815 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23816 | |
| 23817 | # Executable file suffix (normally ""). |
| 23818 | exeext="$exeext" |
| 23819 | |
| 23820 | # Additional compiler flags for building library objects. |
| 23821 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23822 | pic_mode=$pic_mode |
| 23823 | |
| 23824 | # What is the maximum length of a command? |
| 23825 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23826 | |
| 23827 | # Does compiler simultaneously support -c and -o options? |
| 23828 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23830 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23831 | need_locks=$lt_need_locks |
| 23832 | |
| 23833 | # Do we need the lib prefix for modules? |
| 23834 | need_lib_prefix=$need_lib_prefix |
| 23835 | |
| 23836 | # Do we need a version for libraries? |
| 23837 | need_version=$need_version |
| 23838 | |
| 23839 | # Whether dlopen is supported. |
| 23840 | dlopen_support=$enable_dlopen |
| 23841 | |
| 23842 | # Whether dlopen of programs is supported. |
| 23843 | dlopen_self=$enable_dlopen_self |
| 23844 | |
| 23845 | # Whether dlopen of statically linked programs is supported. |
| 23846 | dlopen_self_static=$enable_dlopen_self_static |
| 23847 | |
| 23848 | # Compiler flag to prevent dynamic linking. |
| 23849 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23850 | |
| 23851 | # Compiler flag to turn off builtin functions. |
| 23852 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23853 | |
| 23854 | # Compiler flag to allow reflexive dlopens. |
| 23855 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23856 | |
| 23857 | # Compiler flag to generate shared objects directly from archives. |
| 23858 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23859 | |
| 23860 | # Compiler flag to generate thread-safe objects. |
| 23861 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23862 | |
| 23863 | # Library versioning type. |
| 23864 | version_type=$version_type |
| 23865 | |
| 23866 | # Format of library name prefix. |
| 23867 | libname_spec=$lt_libname_spec |
| 23868 | |
| 23869 | # List of archive names. First name is the real one, the rest are links. |
| 23870 | # The last name is the one that the linker finds with -lNAME. |
| 23871 | library_names_spec=$lt_library_names_spec |
| 23872 | |
| 23873 | # The coded name of the library, if different from the real name. |
| 23874 | soname_spec=$lt_soname_spec |
| 23875 | |
| 23876 | # Commands used to build and install an old-style archive. |
| 23877 | RANLIB=$lt_RANLIB |
| 23878 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23879 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23880 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23881 | |
| 23882 | # Create an old-style archive from a shared archive. |
| 23883 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23884 | |
| 23885 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23886 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23887 | |
| 23888 | # Commands used to build and install a shared archive. |
| 23889 | archive_cmds=$lt_archive_cmds_F77 |
| 23890 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23891 | postinstall_cmds=$lt_postinstall_cmds |
| 23892 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23893 | |
| 23894 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23895 | module_cmds=$lt_module_cmds_F77 |
| 23896 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23897 | |
| 23898 | # Commands to strip libraries. |
| 23899 | old_striplib=$lt_old_striplib |
| 23900 | striplib=$lt_striplib |
| 23901 | |
| 23902 | # Dependencies to place before the objects being linked to create a |
| 23903 | # shared library. |
| 23904 | predep_objects=$lt_predep_objects_F77 |
| 23905 | |
| 23906 | # Dependencies to place after the objects being linked to create a |
| 23907 | # shared library. |
| 23908 | postdep_objects=$lt_postdep_objects_F77 |
| 23909 | |
| 23910 | # Dependencies to place before the objects being linked to create a |
| 23911 | # shared library. |
| 23912 | predeps=$lt_predeps_F77 |
| 23913 | |
| 23914 | # Dependencies to place after the objects being linked to create a |
| 23915 | # shared library. |
| 23916 | postdeps=$lt_postdeps_F77 |
| 23917 | |
| 23918 | # The library search path used internally by the compiler when linking |
| 23919 | # a shared library. |
| 23920 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23921 | |
| 23922 | # Method to check whether dependent libraries are shared objects. |
| 23923 | deplibs_check_method=$lt_deplibs_check_method |
| 23924 | |
| 23925 | # Command to use when deplibs_check_method == file_magic. |
| 23926 | file_magic_cmd=$lt_file_magic_cmd |
| 23927 | |
| 23928 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23929 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23930 | |
| 23931 | # Flag that forces no undefined symbols. |
| 23932 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23933 | |
| 23934 | # Commands used to finish a libtool library installation in a directory. |
| 23935 | finish_cmds=$lt_finish_cmds |
| 23936 | |
| 23937 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23938 | finish_eval=$lt_finish_eval |
| 23939 | |
| 23940 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23941 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23942 | |
| 23943 | # Transform the output of nm in a proper C declaration |
| 23944 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23945 | |
| 23946 | # Transform the output of nm in a C name address pair |
| 23947 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23948 | |
| 23949 | # This is the shared library runtime path variable. |
| 23950 | runpath_var=$runpath_var |
| 23951 | |
| 23952 | # This is the shared library path variable. |
| 23953 | shlibpath_var=$shlibpath_var |
| 23954 | |
| 23955 | # Is shlibpath searched before the hard-coded library search path? |
| 23956 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23957 | |
| 23958 | # How to hardcode a shared library path into an executable. |
| 23959 | hardcode_action=$hardcode_action_F77 |
| 23960 | |
| 23961 | # Whether we should hardcode library paths into libraries. |
| 23962 | hardcode_into_libs=$hardcode_into_libs |
| 23963 | |
| 23964 | # Flag to hardcode \$libdir into a binary during linking. |
| 23965 | # This must work even if \$libdir does not exist. |
| 23966 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23967 | |
| 23968 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23969 | # a binary during linking. This must work even if \$libdir does |
| 23970 | # not exist. |
| 23971 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23972 | |
| 23973 | # Whether we need a single -rpath flag with a separated argument. |
| 23974 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23975 | |
| 23976 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23977 | # resulting binary. |
| 23978 | hardcode_direct=$hardcode_direct_F77 |
| 23979 | |
| 23980 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23981 | # resulting binary. |
| 23982 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23983 | |
| 23984 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23985 | # the resulting binary. |
| 23986 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23987 | |
| 23988 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23989 | # and all subsequent libraries and executables linked against it. |
| 23990 | hardcode_automatic=$hardcode_automatic_F77 |
| 23991 | |
| 23992 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23993 | # restored at relink time. |
| 23994 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23995 | |
| 23996 | # Whether libtool must link a program against all its dependency libraries. |
| 23997 | link_all_deplibs=$link_all_deplibs_F77 |
| 23998 | |
| 23999 | # Compile-time system search path for libraries |
| 24000 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24001 | |
| 24002 | # Run-time system search path for libraries |
| 24003 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24004 | |
| 24005 | # Fix the shell variable \$srcfile for the compiler. |
| 24006 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 24007 | |
| 24008 | # Set to yes if exported symbols are required. |
| 24009 | always_export_symbols=$always_export_symbols_F77 |
| 24010 | |
| 24011 | # The commands to list exported symbols. |
| 24012 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 24013 | |
| 24014 | # The commands to extract the exported symbol list from a shared archive. |
| 24015 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24016 | |
| 24017 | # Symbols that should not be listed in the preloaded symbols. |
| 24018 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 24019 | |
| 24020 | # Symbols that must always be exported. |
| 24021 | include_expsyms=$lt_include_expsyms_F77 |
| 24022 | |
| 24023 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24024 | |
| 24025 | __EOF__ |
| 24026 | |
| 24027 | |
| 24028 | else |
| 24029 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24030 | # `config.status --recheck' to rerun these tests and create the |
| 24031 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24032 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24033 | if test -f "$ltmain_in"; then |
| 24034 | test -f Makefile && make "$ltmain" |
| 24035 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24036 | fi |
| 24037 | |
| 24038 | |
| 24039 | ac_ext=c |
| 24040 | ac_cpp='$CPP $CPPFLAGS' |
| 24041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24044 | |
| 24045 | CC="$lt_save_CC" |
| 24046 | |
| 24047 | else |
| 24048 | tagname="" |
| 24049 | fi |
| 24050 | ;; |
| 24051 | |
| 24052 | GCJ) |
| 24053 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24054 | ac_ext=c |
| 24055 | ac_cpp='$CPP $CPPFLAGS' |
| 24056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24059 | |
| 24060 | |
| 24061 | # Source file extension for Java test sources. |
| 24062 | ac_ext=java |
| 24063 | |
| 24064 | # Object file extension for compiled Java test sources. |
| 24065 | objext=o |
| 24066 | objext_GCJ=$objext |
| 24067 | |
| 24068 | # Code to be used in simple compile tests |
| 24069 | lt_simple_compile_test_code="class foo {}\n" |
| 24070 | |
| 24071 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24072 | 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] | 24073 | |
| 24074 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24075 | |
| 24076 | # If no C compiler was specified, use CC. |
| 24077 | LTCC=${LTCC-"$CC"} |
| 24078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24079 | # If no C compiler flags were specified, use CFLAGS. |
| 24080 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 24081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24082 | # Allow CC to be a program name with arguments. |
| 24083 | compiler=$CC |
| 24084 | |
| 24085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24086 | # save warnings/boilerplate of simple test code |
| 24087 | ac_outfile=conftest.$ac_objext |
| 24088 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 24089 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24090 | _lt_compiler_boilerplate=`cat conftest.err` |
| 24091 | $rm conftest* |
| 24092 | |
| 24093 | ac_outfile=conftest.$ac_objext |
| 24094 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 24095 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24096 | _lt_linker_boilerplate=`cat conftest.err` |
| 24097 | $rm conftest* |
| 24098 | |
| 24099 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24100 | # Allow CC to be a program name with arguments. |
| 24101 | lt_save_CC="$CC" |
| 24102 | CC=${GCJ-"gcj"} |
| 24103 | compiler=$CC |
| 24104 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24105 | for cc_temp in $compiler""; do |
| 24106 | case $cc_temp in |
| 24107 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24108 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24109 | \-*) ;; |
| 24110 | *) break;; |
| 24111 | esac |
| 24112 | done |
| 24113 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 24114 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24115 | |
| 24116 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 24117 | archive_cmds_need_lc_GCJ=no |
| 24118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24119 | old_archive_cmds_GCJ=$old_archive_cmds |
| 24120 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24121 | |
| 24122 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 24123 | |
| 24124 | if test "$GCC" = yes; then |
| 24125 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 24126 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24128 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 24129 | 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] | 24130 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 24131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24132 | else |
| 24133 | lt_cv_prog_compiler_rtti_exceptions=no |
| 24134 | ac_outfile=conftest.$ac_objext |
| 24135 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24136 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 24137 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24138 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24139 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24140 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24141 | # The option is referenced via a variable to avoid confusing sed. |
| 24142 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24143 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24144 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24145 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 24146 | (eval echo "\"\$as_me:24146: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24147 | (eval "$lt_compile" 2>conftest.err) |
| 24148 | ac_status=$? |
| 24149 | cat conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 24150 | echo "$as_me:24150: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24151 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24152 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24153 | # So say no if there are warnings other than the usual output. |
| 24154 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24155 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24156 | 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] | 24157 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 24158 | fi |
| 24159 | fi |
| 24160 | $rm conftest* |
| 24161 | |
| 24162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24163 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 24164 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24165 | |
| 24166 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 24167 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 24168 | else |
| 24169 | : |
| 24170 | fi |
| 24171 | |
| 24172 | fi |
| 24173 | |
| 24174 | lt_prog_compiler_wl_GCJ= |
| 24175 | lt_prog_compiler_pic_GCJ= |
| 24176 | lt_prog_compiler_static_GCJ= |
| 24177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24178 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 24179 | 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] | 24180 | |
| 24181 | if test "$GCC" = yes; then |
| 24182 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24183 | lt_prog_compiler_static_GCJ='-static' |
| 24184 | |
| 24185 | case $host_os in |
| 24186 | aix*) |
| 24187 | # All AIX code is PIC. |
| 24188 | if test "$host_cpu" = ia64; then |
| 24189 | # AIX 5 now supports IA64 processor |
| 24190 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24191 | fi |
| 24192 | ;; |
| 24193 | |
| 24194 | amigaos*) |
| 24195 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 24196 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 24197 | # like `-m68040'. |
| 24198 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 24199 | ;; |
| 24200 | |
| 24201 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 24202 | # PIC is the default for these OSes. |
| 24203 | ;; |
| 24204 | |
| 24205 | mingw* | pw32* | os2*) |
| 24206 | # This hack is so that the source file can tell whether it is being |
| 24207 | # built for inclusion in a dll (and should export symbols for example). |
| 24208 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24209 | ;; |
| 24210 | |
| 24211 | darwin* | rhapsody*) |
| 24212 | # PIC is the default on this platform |
| 24213 | # Common symbols not allowed in MH_DYLIB files |
| 24214 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 24215 | ;; |
| 24216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24217 | interix3*) |
| 24218 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 24219 | # Instead, we relocate shared libraries at runtime. |
| 24220 | ;; |
| 24221 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24222 | msdosdjgpp*) |
| 24223 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 24224 | # on systems that don't support them. |
| 24225 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24226 | enable_shared=no |
| 24227 | ;; |
| 24228 | |
| 24229 | sysv4*MP*) |
| 24230 | if test -d /usr/nec; then |
| 24231 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 24232 | fi |
| 24233 | ;; |
| 24234 | |
| 24235 | hpux*) |
| 24236 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24237 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24238 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24239 | hppa*64*|ia64*) |
| 24240 | # +Z the default |
| 24241 | ;; |
| 24242 | *) |
| 24243 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24244 | ;; |
| 24245 | esac |
| 24246 | ;; |
| 24247 | |
| 24248 | *) |
| 24249 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24250 | ;; |
| 24251 | esac |
| 24252 | else |
| 24253 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 24254 | case $host_os in |
| 24255 | aix*) |
| 24256 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24257 | if test "$host_cpu" = ia64; then |
| 24258 | # AIX 5 now supports IA64 processor |
| 24259 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24260 | else |
| 24261 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 24262 | fi |
| 24263 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24264 | darwin*) |
| 24265 | # PIC is the default on this platform |
| 24266 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24267 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24268 | xlc*) |
| 24269 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 24270 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24271 | ;; |
| 24272 | esac |
| 24273 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24274 | |
| 24275 | mingw* | pw32* | os2*) |
| 24276 | # This hack is so that the source file can tell whether it is being |
| 24277 | # built for inclusion in a dll (and should export symbols for example). |
| 24278 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24279 | ;; |
| 24280 | |
| 24281 | hpux9* | hpux10* | hpux11*) |
| 24282 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24283 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24284 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24285 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24286 | hppa*64*|ia64*) |
| 24287 | # +Z the default |
| 24288 | ;; |
| 24289 | *) |
| 24290 | lt_prog_compiler_pic_GCJ='+Z' |
| 24291 | ;; |
| 24292 | esac |
| 24293 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 24294 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 24295 | ;; |
| 24296 | |
| 24297 | irix5* | irix6* | nonstopux*) |
| 24298 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24299 | # PIC (with -KPIC) is the default. |
| 24300 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24301 | ;; |
| 24302 | |
| 24303 | newsos6) |
| 24304 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24305 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24306 | ;; |
| 24307 | |
| 24308 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24309 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24310 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24311 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24312 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24313 | lt_prog_compiler_static_GCJ='-static' |
| 24314 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24315 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 24316 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 24317 | # which looks to be a dead project) |
| 24318 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24319 | lt_prog_compiler_pic_GCJ='-fpic' |
| 24320 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24321 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24322 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24323 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24324 | # All Alpha code is PIC. |
| 24325 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24326 | ;; |
| 24327 | esac |
| 24328 | ;; |
| 24329 | |
| 24330 | osf3* | osf4* | osf5*) |
| 24331 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24332 | # All OSF/1 code is PIC. |
| 24333 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24334 | ;; |
| 24335 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24336 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24337 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24338 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24339 | case $cc_basename in |
| 24340 | f77* | f90* | f95*) |
| 24341 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24342 | *) |
| 24343 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24344 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24345 | ;; |
| 24346 | |
| 24347 | sunos4*) |
| 24348 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24349 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24350 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24351 | ;; |
| 24352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24353 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24354 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24355 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24356 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24357 | ;; |
| 24358 | |
| 24359 | sysv4*MP*) |
| 24360 | if test -d /usr/nec ;then |
| 24361 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24362 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24363 | fi |
| 24364 | ;; |
| 24365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24366 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24367 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24368 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24369 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24370 | ;; |
| 24371 | |
| 24372 | unicos*) |
| 24373 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24374 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24375 | ;; |
| 24376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24377 | uts4*) |
| 24378 | lt_prog_compiler_pic_GCJ='-pic' |
| 24379 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24380 | ;; |
| 24381 | |
| 24382 | *) |
| 24383 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24384 | ;; |
| 24385 | esac |
| 24386 | fi |
| 24387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24388 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24389 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24390 | |
| 24391 | # |
| 24392 | # Check to make sure the PIC flag actually works. |
| 24393 | # |
| 24394 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24396 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24397 | 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] | 24398 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24400 | else |
| 24401 | lt_prog_compiler_pic_works_GCJ=no |
| 24402 | ac_outfile=conftest.$ac_objext |
| 24403 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24404 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24405 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24406 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24407 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24408 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24409 | # The option is referenced via a variable to avoid confusing sed. |
| 24410 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24411 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24412 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24413 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 24414 | (eval echo "\"\$as_me:24414: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24415 | (eval "$lt_compile" 2>conftest.err) |
| 24416 | ac_status=$? |
| 24417 | cat conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 24418 | echo "$as_me:24418: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24419 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24420 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24421 | # So say no if there are warnings other than the usual output. |
| 24422 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24423 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24424 | 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] | 24425 | lt_prog_compiler_pic_works_GCJ=yes |
| 24426 | fi |
| 24427 | fi |
| 24428 | $rm conftest* |
| 24429 | |
| 24430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24431 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24432 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24433 | |
| 24434 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24435 | case $lt_prog_compiler_pic_GCJ in |
| 24436 | "" | " "*) ;; |
| 24437 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24438 | esac |
| 24439 | else |
| 24440 | lt_prog_compiler_pic_GCJ= |
| 24441 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24442 | fi |
| 24443 | |
| 24444 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24445 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24446 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24447 | *djgpp*) |
| 24448 | lt_prog_compiler_pic_GCJ= |
| 24449 | ;; |
| 24450 | *) |
| 24451 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24452 | ;; |
| 24453 | esac |
| 24454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24455 | # |
| 24456 | # Check to make sure the static flag actually works. |
| 24457 | # |
| 24458 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24459 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24460 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24461 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24463 | else |
| 24464 | lt_prog_compiler_static_works_GCJ=no |
| 24465 | save_LDFLAGS="$LDFLAGS" |
| 24466 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24467 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24468 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24469 | # The linker can only warn and ignore the option if not recognized |
| 24470 | # So say no if there are warnings |
| 24471 | if test -s conftest.err; then |
| 24472 | # Append any errors to the config.log. |
| 24473 | cat conftest.err 1>&5 |
| 24474 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24475 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24476 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24477 | lt_prog_compiler_static_works_GCJ=yes |
| 24478 | fi |
| 24479 | else |
| 24480 | lt_prog_compiler_static_works_GCJ=yes |
| 24481 | fi |
| 24482 | fi |
| 24483 | $rm conftest* |
| 24484 | LDFLAGS="$save_LDFLAGS" |
| 24485 | |
| 24486 | fi |
| 24487 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24488 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24489 | |
| 24490 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24491 | : |
| 24492 | else |
| 24493 | lt_prog_compiler_static_GCJ= |
| 24494 | fi |
| 24495 | |
| 24496 | |
| 24497 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24498 | 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] | 24499 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24501 | else |
| 24502 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24503 | $rm -r conftest 2>/dev/null |
| 24504 | mkdir conftest |
| 24505 | cd conftest |
| 24506 | mkdir out |
| 24507 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24508 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24509 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24510 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24511 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24512 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24513 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24514 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24515 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24516 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24517 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 24518 | (eval echo "\"\$as_me:24518: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24519 | (eval "$lt_compile" 2>out/conftest.err) |
| 24520 | ac_status=$? |
| 24521 | cat out/conftest.err >&5 |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 24522 | echo "$as_me:24522: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24523 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24524 | then |
| 24525 | # The compiler can only warn and ignore the option if not recognized |
| 24526 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24527 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24528 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24529 | 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] | 24530 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24531 | fi |
| 24532 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24533 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24534 | $rm conftest* |
| 24535 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24536 | # template instantiation |
| 24537 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24538 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24539 | cd .. |
| 24540 | rmdir conftest |
| 24541 | $rm conftest* |
| 24542 | |
| 24543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24544 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24545 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24546 | |
| 24547 | |
| 24548 | hard_links="nottested" |
| 24549 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24550 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24551 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24552 | 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] | 24553 | hard_links=yes |
| 24554 | $rm conftest* |
| 24555 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24556 | touch conftest.a |
| 24557 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24558 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24559 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24560 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24561 | if test "$hard_links" = no; then |
| 24562 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24563 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24564 | need_locks=warn |
| 24565 | fi |
| 24566 | else |
| 24567 | need_locks=no |
| 24568 | fi |
| 24569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24570 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24571 | 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] | 24572 | |
| 24573 | runpath_var= |
| 24574 | allow_undefined_flag_GCJ= |
| 24575 | enable_shared_with_static_runtimes_GCJ=no |
| 24576 | archive_cmds_GCJ= |
| 24577 | archive_expsym_cmds_GCJ= |
| 24578 | old_archive_From_new_cmds_GCJ= |
| 24579 | old_archive_from_expsyms_cmds_GCJ= |
| 24580 | export_dynamic_flag_spec_GCJ= |
| 24581 | whole_archive_flag_spec_GCJ= |
| 24582 | thread_safe_flag_spec_GCJ= |
| 24583 | hardcode_libdir_flag_spec_GCJ= |
| 24584 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24585 | hardcode_libdir_separator_GCJ= |
| 24586 | hardcode_direct_GCJ=no |
| 24587 | hardcode_minus_L_GCJ=no |
| 24588 | hardcode_shlibpath_var_GCJ=unsupported |
| 24589 | link_all_deplibs_GCJ=unknown |
| 24590 | hardcode_automatic_GCJ=no |
| 24591 | module_cmds_GCJ= |
| 24592 | module_expsym_cmds_GCJ= |
| 24593 | always_export_symbols_GCJ=no |
| 24594 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24595 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24596 | # included in the symbol list |
| 24597 | include_expsyms_GCJ= |
| 24598 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24599 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24600 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24601 | # as well as any symbol that contains `d'. |
| 24602 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24603 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24604 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24605 | # the symbol is explicitly referenced. Since portable code cannot |
| 24606 | # rely on this symbol name, it's probably fine to never include it in |
| 24607 | # preloaded symbol tables. |
| 24608 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24609 | # Just being paranoid about ensuring that cc_basename is set. |
| 24610 | for cc_temp in $compiler""; do |
| 24611 | case $cc_temp in |
| 24612 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24613 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24614 | \-*) ;; |
| 24615 | *) break;; |
| 24616 | esac |
| 24617 | done |
| 24618 | 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] | 24619 | |
| 24620 | case $host_os in |
| 24621 | cygwin* | mingw* | pw32*) |
| 24622 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24623 | # When not using gcc, we currently assume that we are using |
| 24624 | # Microsoft Visual C++. |
| 24625 | if test "$GCC" != yes; then |
| 24626 | with_gnu_ld=no |
| 24627 | fi |
| 24628 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24629 | interix*) |
| 24630 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24631 | with_gnu_ld=yes |
| 24632 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24633 | openbsd*) |
| 24634 | with_gnu_ld=no |
| 24635 | ;; |
| 24636 | esac |
| 24637 | |
| 24638 | ld_shlibs_GCJ=yes |
| 24639 | if test "$with_gnu_ld" = yes; then |
| 24640 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24641 | wlarc='${wl}' |
| 24642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24643 | # Set some defaults for GNU ld with shared library support. These |
| 24644 | # are reset later if shared libraries are not supported. Putting them |
| 24645 | # here allows them to be overridden if necessary. |
| 24646 | runpath_var=LD_RUN_PATH |
| 24647 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24648 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24649 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24650 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24651 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24652 | else |
| 24653 | whole_archive_flag_spec_GCJ= |
| 24654 | fi |
| 24655 | supports_anon_versioning=no |
| 24656 | case `$LD -v 2>/dev/null` in |
| 24657 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24658 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24659 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24660 | *\ 2.11.*) ;; # other 2.11 versions |
| 24661 | *) supports_anon_versioning=yes ;; |
| 24662 | esac |
| 24663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24664 | # See if GNU ld supports shared libraries. |
| 24665 | case $host_os in |
| 24666 | aix3* | aix4* | aix5*) |
| 24667 | # On AIX/PPC, the GNU linker is very broken |
| 24668 | if test "$host_cpu" != ia64; then |
| 24669 | ld_shlibs_GCJ=no |
| 24670 | cat <<EOF 1>&2 |
| 24671 | |
| 24672 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24673 | *** to be unable to reliably create shared libraries on AIX. |
| 24674 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24675 | *** really care for shared libraries, you may want to modify your PATH |
| 24676 | *** so that a non-GNU linker is found, and then restart. |
| 24677 | |
| 24678 | EOF |
| 24679 | fi |
| 24680 | ;; |
| 24681 | |
| 24682 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24683 | 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] | 24684 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24685 | hardcode_minus_L_GCJ=yes |
| 24686 | |
| 24687 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24688 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24689 | # to version 4, is to share data among multiple programs linked |
| 24690 | # with the same dynamic library. Since this doesn't match the |
| 24691 | # behavior of shared libraries on other platforms, we can't use |
| 24692 | # them. |
| 24693 | ld_shlibs_GCJ=no |
| 24694 | ;; |
| 24695 | |
| 24696 | beos*) |
| 24697 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24698 | allow_undefined_flag_GCJ=unsupported |
| 24699 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24700 | # support --undefined. This deserves some investigation. FIXME |
| 24701 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24702 | else |
| 24703 | ld_shlibs_GCJ=no |
| 24704 | fi |
| 24705 | ;; |
| 24706 | |
| 24707 | cygwin* | mingw* | pw32*) |
| 24708 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24709 | # as there is no search path for DLLs. |
| 24710 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24711 | allow_undefined_flag_GCJ=unsupported |
| 24712 | always_export_symbols_GCJ=no |
| 24713 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24714 | 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] | 24715 | |
| 24716 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24717 | 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] | 24718 | # If the export-symbols file already is a .def file (1st line |
| 24719 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24720 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24721 | cp $export_symbols $output_objdir/$soname.def; |
| 24722 | else |
| 24723 | echo EXPORTS > $output_objdir/$soname.def; |
| 24724 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24725 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24726 | $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] | 24727 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24728 | ld_shlibs_GCJ=no |
| 24729 | fi |
| 24730 | ;; |
| 24731 | |
| 24732 | interix3*) |
| 24733 | hardcode_direct_GCJ=no |
| 24734 | hardcode_shlibpath_var_GCJ=no |
| 24735 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24736 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24737 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24738 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24739 | # default) and relocated if they conflict, which is a slow very memory |
| 24740 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24741 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24742 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24743 | 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' |
| 24744 | 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' |
| 24745 | ;; |
| 24746 | |
| 24747 | linux*) |
| 24748 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24749 | tmp_addflag= |
| 24750 | case $cc_basename,$host_cpu in |
| 24751 | pgcc*) # Portland Group C compiler |
| 24752 | 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' |
| 24753 | tmp_addflag=' $pic_flag' |
| 24754 | ;; |
| 24755 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24756 | 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' |
| 24757 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24758 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24759 | tmp_addflag=' -i_dynamic' ;; |
| 24760 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24761 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24762 | ifc* | ifort*) # Intel Fortran compiler |
| 24763 | tmp_addflag=' -nofor_main' ;; |
| 24764 | esac |
| 24765 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24766 | |
| 24767 | if test $supports_anon_versioning = yes; then |
| 24768 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24769 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24770 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24771 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24772 | fi |
| 24773 | else |
| 24774 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24775 | fi |
| 24776 | ;; |
| 24777 | |
| 24778 | netbsd*) |
| 24779 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24780 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24781 | wlarc= |
| 24782 | else |
| 24783 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24784 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24785 | fi |
| 24786 | ;; |
| 24787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24788 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24789 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24790 | ld_shlibs_GCJ=no |
| 24791 | cat <<EOF 1>&2 |
| 24792 | |
| 24793 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24794 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24795 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24796 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24797 | *** your PATH or compiler configuration so that the native linker is |
| 24798 | *** used, and then restart. |
| 24799 | |
| 24800 | EOF |
| 24801 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24802 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24803 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24804 | else |
| 24805 | ld_shlibs_GCJ=no |
| 24806 | fi |
| 24807 | ;; |
| 24808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24809 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24810 | case `$LD -v 2>&1` in |
| 24811 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24812 | ld_shlibs_GCJ=no |
| 24813 | cat <<_LT_EOF 1>&2 |
| 24814 | |
| 24815 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24816 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24817 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24818 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24819 | *** your PATH or compiler configuration so that the native linker is |
| 24820 | *** used, and then restart. |
| 24821 | |
| 24822 | _LT_EOF |
| 24823 | ;; |
| 24824 | *) |
| 24825 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24826 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24827 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24828 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24829 | else |
| 24830 | ld_shlibs_GCJ=no |
| 24831 | fi |
| 24832 | ;; |
| 24833 | esac |
| 24834 | ;; |
| 24835 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24836 | sunos4*) |
| 24837 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24838 | wlarc= |
| 24839 | hardcode_direct_GCJ=yes |
| 24840 | hardcode_shlibpath_var_GCJ=no |
| 24841 | ;; |
| 24842 | |
| 24843 | *) |
| 24844 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24845 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24846 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24847 | else |
| 24848 | ld_shlibs_GCJ=no |
| 24849 | fi |
| 24850 | ;; |
| 24851 | esac |
| 24852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24853 | if test "$ld_shlibs_GCJ" = no; then |
| 24854 | runpath_var= |
| 24855 | hardcode_libdir_flag_spec_GCJ= |
| 24856 | export_dynamic_flag_spec_GCJ= |
| 24857 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24858 | fi |
| 24859 | else |
| 24860 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24861 | case $host_os in |
| 24862 | aix3*) |
| 24863 | allow_undefined_flag_GCJ=unsupported |
| 24864 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24865 | 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] | 24866 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24867 | # are no directories specified by -L. |
| 24868 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24869 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24870 | # Neither direct hardcoding nor static linking is supported with a |
| 24871 | # broken collect2. |
| 24872 | hardcode_direct_GCJ=unsupported |
| 24873 | fi |
| 24874 | ;; |
| 24875 | |
| 24876 | aix4* | aix5*) |
| 24877 | if test "$host_cpu" = ia64; then |
| 24878 | # On IA64, the linker does run time linking by default, so we don't |
| 24879 | # have to do anything special. |
| 24880 | aix_use_runtimelinking=no |
| 24881 | exp_sym_flag='-Bexport' |
| 24882 | no_entry_flag="" |
| 24883 | else |
| 24884 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24885 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24886 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24887 | 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' |
| 24888 | else |
| 24889 | 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' |
| 24890 | fi |
| 24891 | aix_use_runtimelinking=no |
| 24892 | |
| 24893 | # Test if we are trying to use run time linking or normal |
| 24894 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24895 | # need to do runtime linking. |
| 24896 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24897 | for ld_flag in $LDFLAGS; do |
| 24898 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24899 | aix_use_runtimelinking=yes |
| 24900 | break |
| 24901 | fi |
| 24902 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24903 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24904 | esac |
| 24905 | |
| 24906 | exp_sym_flag='-bexport' |
| 24907 | no_entry_flag='-bnoentry' |
| 24908 | fi |
| 24909 | |
| 24910 | # When large executables or shared objects are built, AIX ld can |
| 24911 | # have problems creating the table of contents. If linking a library |
| 24912 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24913 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24914 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24915 | |
| 24916 | archive_cmds_GCJ='' |
| 24917 | hardcode_direct_GCJ=yes |
| 24918 | hardcode_libdir_separator_GCJ=':' |
| 24919 | link_all_deplibs_GCJ=yes |
| 24920 | |
| 24921 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24922 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24923 | # We only want to do this on AIX 4.2 and lower, the check |
| 24924 | # below for broken collect2 doesn't work under 4.3+ |
| 24925 | collect2name=`${CC} -print-prog-name=collect2` |
| 24926 | if test -f "$collect2name" && \ |
| 24927 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24928 | then |
| 24929 | # We have reworked collect2 |
| 24930 | hardcode_direct_GCJ=yes |
| 24931 | else |
| 24932 | # We have old collect2 |
| 24933 | hardcode_direct_GCJ=unsupported |
| 24934 | # It fails to find uninstalled libraries when the uninstalled |
| 24935 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24936 | # to unsupported forces relinking |
| 24937 | hardcode_minus_L_GCJ=yes |
| 24938 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24939 | hardcode_libdir_separator_GCJ= |
| 24940 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24941 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24942 | esac |
| 24943 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24944 | if test "$aix_use_runtimelinking" = yes; then |
| 24945 | shared_flag="$shared_flag "'${wl}-G' |
| 24946 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24947 | else |
| 24948 | # not using gcc |
| 24949 | if test "$host_cpu" = ia64; then |
| 24950 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24951 | # chokes on -Wl,-G. The following line is correct: |
| 24952 | shared_flag='-G' |
| 24953 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24954 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24955 | shared_flag='${wl}-G' |
| 24956 | else |
| 24957 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24958 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24959 | fi |
| 24960 | fi |
| 24961 | |
| 24962 | # It seems that -bexpall does not export symbols beginning with |
| 24963 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24964 | always_export_symbols_GCJ=yes |
| 24965 | if test "$aix_use_runtimelinking" = yes; then |
| 24966 | # Warning - without using the other runtime loading flags (-brtl), |
| 24967 | # -berok will link without error, but may produce a broken library. |
| 24968 | allow_undefined_flag_GCJ='-berok' |
| 24969 | # Determine the default libpath from the value encoded in an empty executable. |
| 24970 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24971 | /* confdefs.h. */ |
| 24972 | _ACEOF |
| 24973 | cat confdefs.h >>conftest.$ac_ext |
| 24974 | cat >>conftest.$ac_ext <<_ACEOF |
| 24975 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24976 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24977 | int |
| 24978 | main () |
| 24979 | { |
| 24980 | |
| 24981 | ; |
| 24982 | return 0; |
| 24983 | } |
| 24984 | _ACEOF |
| 24985 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24986 | if { (ac_try="$ac_link" |
| 24987 | case "(($ac_try" in |
| 24988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24989 | *) ac_try_echo=$ac_try;; |
| 24990 | esac |
| 24991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24992 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24993 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24995 | rm -f conftest.er1 |
| 24996 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 24998 | (exit $ac_status); } && |
| 24999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25000 | { (case "(($ac_try" in |
| 25001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25002 | *) ac_try_echo=$ac_try;; |
| 25003 | esac |
| 25004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25005 | (eval "$ac_try") 2>&5 |
| 25006 | ac_status=$? |
| 25007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25008 | (exit $ac_status); }; } && |
| 25009 | { ac_try='test -s conftest$ac_exeext' |
| 25010 | { (case "(($ac_try" in |
| 25011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25012 | *) ac_try_echo=$ac_try;; |
| 25013 | esac |
| 25014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25015 | (eval "$ac_try") 2>&5 |
| 25016 | ac_status=$? |
| 25017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25018 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25019 | |
| 25020 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25021 | }'` |
| 25022 | # Check for a 64-bit object if we didn't find anything. |
| 25023 | 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; } |
| 25024 | }'`; fi |
| 25025 | else |
| 25026 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25029 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25031 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25032 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25033 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25034 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25035 | |
| 25036 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25037 | 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] | 25038 | else |
| 25039 | if test "$host_cpu" = ia64; then |
| 25040 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 25041 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25042 | 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] | 25043 | else |
| 25044 | # Determine the default libpath from the value encoded in an empty executable. |
| 25045 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25046 | /* confdefs.h. */ |
| 25047 | _ACEOF |
| 25048 | cat confdefs.h >>conftest.$ac_ext |
| 25049 | cat >>conftest.$ac_ext <<_ACEOF |
| 25050 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25051 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25052 | int |
| 25053 | main () |
| 25054 | { |
| 25055 | |
| 25056 | ; |
| 25057 | return 0; |
| 25058 | } |
| 25059 | _ACEOF |
| 25060 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25061 | if { (ac_try="$ac_link" |
| 25062 | case "(($ac_try" in |
| 25063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25064 | *) ac_try_echo=$ac_try;; |
| 25065 | esac |
| 25066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25067 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25068 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25070 | rm -f conftest.er1 |
| 25071 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25073 | (exit $ac_status); } && |
| 25074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25075 | { (case "(($ac_try" in |
| 25076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25077 | *) ac_try_echo=$ac_try;; |
| 25078 | esac |
| 25079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25080 | (eval "$ac_try") 2>&5 |
| 25081 | ac_status=$? |
| 25082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25083 | (exit $ac_status); }; } && |
| 25084 | { ac_try='test -s conftest$ac_exeext' |
| 25085 | { (case "(($ac_try" in |
| 25086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25087 | *) ac_try_echo=$ac_try;; |
| 25088 | esac |
| 25089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25090 | (eval "$ac_try") 2>&5 |
| 25091 | ac_status=$? |
| 25092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25093 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25094 | |
| 25095 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25096 | }'` |
| 25097 | # Check for a 64-bit object if we didn't find anything. |
| 25098 | 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; } |
| 25099 | }'`; fi |
| 25100 | else |
| 25101 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25104 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25105 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25106 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25107 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25108 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25109 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25110 | |
| 25111 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 25112 | # Warning - without using the other run time loading flags, |
| 25113 | # -berok will link without error, but may produce a broken library. |
| 25114 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 25115 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25116 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25117 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25118 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25119 | # This is similar to how AIX traditionally builds its shared libraries. |
| 25120 | 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] | 25121 | fi |
| 25122 | fi |
| 25123 | ;; |
| 25124 | |
| 25125 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25126 | 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] | 25127 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25128 | hardcode_minus_L_GCJ=yes |
| 25129 | # see comment about different semantics on the GNU ld section |
| 25130 | ld_shlibs_GCJ=no |
| 25131 | ;; |
| 25132 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25133 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25134 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 25135 | ;; |
| 25136 | |
| 25137 | cygwin* | mingw* | pw32*) |
| 25138 | # When not using gcc, we currently assume that we are using |
| 25139 | # Microsoft Visual C++. |
| 25140 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 25141 | # no search path for DLLs. |
| 25142 | hardcode_libdir_flag_spec_GCJ=' ' |
| 25143 | allow_undefined_flag_GCJ=unsupported |
| 25144 | # Tell ltmain to make .lib files, not .a files. |
| 25145 | libext=lib |
| 25146 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25147 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25148 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25149 | 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] | 25150 | # The linker will automatically build a .lib file if we build a DLL. |
| 25151 | old_archive_From_new_cmds_GCJ='true' |
| 25152 | # FIXME: Should let the user specify the lib program. |
| 25153 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25154 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25155 | enable_shared_with_static_runtimes_GCJ=yes |
| 25156 | ;; |
| 25157 | |
| 25158 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25159 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25160 | rhapsody* | darwin1.[012]) |
| 25161 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 25162 | ;; |
| 25163 | *) # Darwin 1.3 on |
| 25164 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 25165 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25166 | else |
| 25167 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 25168 | 10.[012]) |
| 25169 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25170 | ;; |
| 25171 | 10.*) |
| 25172 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 25173 | ;; |
| 25174 | esac |
| 25175 | fi |
| 25176 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25177 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25178 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25179 | hardcode_direct_GCJ=no |
| 25180 | hardcode_automatic_GCJ=yes |
| 25181 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25182 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25183 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25184 | if test "$GCC" = yes ; then |
| 25185 | output_verbose_link_cmd='echo' |
| 25186 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25187 | 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] | 25188 | # 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] | 25189 | 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}' |
| 25190 | 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] | 25191 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25192 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25193 | xlc*) |
| 25194 | output_verbose_link_cmd='echo' |
| 25195 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25196 | 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] | 25197 | # 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] | 25198 | 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}' |
| 25199 | 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] | 25200 | ;; |
| 25201 | *) |
| 25202 | ld_shlibs_GCJ=no |
| 25203 | ;; |
| 25204 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25205 | fi |
| 25206 | ;; |
| 25207 | |
| 25208 | dgux*) |
| 25209 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25210 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25211 | hardcode_shlibpath_var_GCJ=no |
| 25212 | ;; |
| 25213 | |
| 25214 | freebsd1*) |
| 25215 | ld_shlibs_GCJ=no |
| 25216 | ;; |
| 25217 | |
| 25218 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25219 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25220 | # does not break anything, and helps significantly (at the cost of a little |
| 25221 | # extra space). |
| 25222 | freebsd2.2*) |
| 25223 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25224 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25225 | hardcode_direct_GCJ=yes |
| 25226 | hardcode_shlibpath_var_GCJ=no |
| 25227 | ;; |
| 25228 | |
| 25229 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25230 | freebsd2*) |
| 25231 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25232 | hardcode_direct_GCJ=yes |
| 25233 | hardcode_minus_L_GCJ=yes |
| 25234 | hardcode_shlibpath_var_GCJ=no |
| 25235 | ;; |
| 25236 | |
| 25237 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25238 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25239 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25240 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25241 | hardcode_direct_GCJ=yes |
| 25242 | hardcode_shlibpath_var_GCJ=no |
| 25243 | ;; |
| 25244 | |
| 25245 | hpux9*) |
| 25246 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25247 | 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] | 25248 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25249 | 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] | 25250 | fi |
| 25251 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25252 | hardcode_libdir_separator_GCJ=: |
| 25253 | hardcode_direct_GCJ=yes |
| 25254 | |
| 25255 | # hardcode_minus_L: Not really in the search PATH, |
| 25256 | # but as the default location of the library. |
| 25257 | hardcode_minus_L_GCJ=yes |
| 25258 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25259 | ;; |
| 25260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25261 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25262 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25263 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25264 | else |
| 25265 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25266 | fi |
| 25267 | if test "$with_gnu_ld" = no; then |
| 25268 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25269 | hardcode_libdir_separator_GCJ=: |
| 25270 | |
| 25271 | hardcode_direct_GCJ=yes |
| 25272 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25273 | |
| 25274 | # hardcode_minus_L: Not really in the search PATH, |
| 25275 | # but as the default location of the library. |
| 25276 | hardcode_minus_L_GCJ=yes |
| 25277 | fi |
| 25278 | ;; |
| 25279 | |
| 25280 | hpux11*) |
| 25281 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25282 | case $host_cpu in |
| 25283 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25284 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25285 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25286 | ia64*) |
| 25287 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25288 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25289 | *) |
| 25290 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25291 | ;; |
| 25292 | esac |
| 25293 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25294 | case $host_cpu in |
| 25295 | hppa*64*) |
| 25296 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25297 | ;; |
| 25298 | ia64*) |
| 25299 | 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] | 25300 | ;; |
| 25301 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25302 | 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] | 25303 | ;; |
| 25304 | esac |
| 25305 | fi |
| 25306 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25307 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25308 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25310 | case $host_cpu in |
| 25311 | hppa*64*|ia64*) |
| 25312 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 25313 | hardcode_direct_GCJ=no |
| 25314 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25315 | ;; |
| 25316 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25317 | hardcode_direct_GCJ=yes |
| 25318 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25319 | |
| 25320 | # hardcode_minus_L: Not really in the search PATH, |
| 25321 | # but as the default location of the library. |
| 25322 | hardcode_minus_L_GCJ=yes |
| 25323 | ;; |
| 25324 | esac |
| 25325 | fi |
| 25326 | ;; |
| 25327 | |
| 25328 | irix5* | irix6* | nonstopux*) |
| 25329 | if test "$GCC" = yes; then |
| 25330 | 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' |
| 25331 | else |
| 25332 | 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' |
| 25333 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25334 | fi |
| 25335 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25336 | hardcode_libdir_separator_GCJ=: |
| 25337 | link_all_deplibs_GCJ=yes |
| 25338 | ;; |
| 25339 | |
| 25340 | netbsd*) |
| 25341 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25342 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25343 | else |
| 25344 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25345 | fi |
| 25346 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25347 | hardcode_direct_GCJ=yes |
| 25348 | hardcode_shlibpath_var_GCJ=no |
| 25349 | ;; |
| 25350 | |
| 25351 | newsos6) |
| 25352 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25353 | hardcode_direct_GCJ=yes |
| 25354 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25355 | hardcode_libdir_separator_GCJ=: |
| 25356 | hardcode_shlibpath_var_GCJ=no |
| 25357 | ;; |
| 25358 | |
| 25359 | openbsd*) |
| 25360 | hardcode_direct_GCJ=yes |
| 25361 | hardcode_shlibpath_var_GCJ=no |
| 25362 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25363 | 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] | 25364 | 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] | 25365 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25366 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25367 | else |
| 25368 | case $host_os in |
| 25369 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25370 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25371 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25372 | ;; |
| 25373 | *) |
| 25374 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25375 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25376 | ;; |
| 25377 | esac |
| 25378 | fi |
| 25379 | ;; |
| 25380 | |
| 25381 | os2*) |
| 25382 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25383 | hardcode_minus_L_GCJ=yes |
| 25384 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25385 | 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] | 25386 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25387 | ;; |
| 25388 | |
| 25389 | osf3*) |
| 25390 | if test "$GCC" = yes; then |
| 25391 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25392 | 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' |
| 25393 | else |
| 25394 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25395 | 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' |
| 25396 | fi |
| 25397 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25398 | hardcode_libdir_separator_GCJ=: |
| 25399 | ;; |
| 25400 | |
| 25401 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25402 | if test "$GCC" = yes; then |
| 25403 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25404 | 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' |
| 25405 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25406 | else |
| 25407 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25408 | 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] | 25409 | 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] | 25410 | $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] | 25411 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25412 | # Both c and cxx compiler support -rpath directly |
| 25413 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25414 | fi |
| 25415 | hardcode_libdir_separator_GCJ=: |
| 25416 | ;; |
| 25417 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25418 | solaris*) |
| 25419 | no_undefined_flag_GCJ=' -z text' |
| 25420 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25421 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25422 | 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] | 25423 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25424 | $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] | 25425 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25426 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25427 | 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] | 25428 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25429 | $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] | 25430 | fi |
| 25431 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25432 | hardcode_shlibpath_var_GCJ=no |
| 25433 | case $host_os in |
| 25434 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25435 | *) |
| 25436 | # The compiler driver will combine linker options so we |
| 25437 | # cannot just pass the convience library names through |
| 25438 | # without $wl, iff we do not link with $LD. |
| 25439 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25440 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25441 | case $wlarc in |
| 25442 | '') |
| 25443 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25444 | *) |
| 25445 | 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' ;; |
| 25446 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25447 | esac |
| 25448 | link_all_deplibs_GCJ=yes |
| 25449 | ;; |
| 25450 | |
| 25451 | sunos4*) |
| 25452 | if test "x$host_vendor" = xsequent; then |
| 25453 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25454 | # files that make .init and .fini sections work. |
| 25455 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25456 | else |
| 25457 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25458 | fi |
| 25459 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25460 | hardcode_direct_GCJ=yes |
| 25461 | hardcode_minus_L_GCJ=yes |
| 25462 | hardcode_shlibpath_var_GCJ=no |
| 25463 | ;; |
| 25464 | |
| 25465 | sysv4) |
| 25466 | case $host_vendor in |
| 25467 | sni) |
| 25468 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25469 | hardcode_direct_GCJ=yes # is this really true??? |
| 25470 | ;; |
| 25471 | siemens) |
| 25472 | ## LD is ld it makes a PLAMLIB |
| 25473 | ## CC just makes a GrossModule. |
| 25474 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25475 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25476 | hardcode_direct_GCJ=no |
| 25477 | ;; |
| 25478 | motorola) |
| 25479 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25480 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25481 | ;; |
| 25482 | esac |
| 25483 | runpath_var='LD_RUN_PATH' |
| 25484 | hardcode_shlibpath_var_GCJ=no |
| 25485 | ;; |
| 25486 | |
| 25487 | sysv4.3*) |
| 25488 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25489 | hardcode_shlibpath_var_GCJ=no |
| 25490 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25491 | ;; |
| 25492 | |
| 25493 | sysv4*MP*) |
| 25494 | if test -d /usr/nec; then |
| 25495 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25496 | hardcode_shlibpath_var_GCJ=no |
| 25497 | runpath_var=LD_RUN_PATH |
| 25498 | hardcode_runpath_var=yes |
| 25499 | ld_shlibs_GCJ=yes |
| 25500 | fi |
| 25501 | ;; |
| 25502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25503 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25504 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25505 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25506 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25507 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25508 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25509 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25510 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25511 | 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] | 25512 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25513 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25514 | 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] | 25515 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25516 | ;; |
| 25517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25518 | sysv5* | sco3.2v5* | sco5v6*) |
| 25519 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25520 | # link with -lc, and that would cause any symbols used from libc to |
| 25521 | # always be unresolved, which means just about no library would |
| 25522 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25523 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25524 | # as -z defs. |
| 25525 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25526 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25527 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25528 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25529 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25530 | hardcode_libdir_separator_GCJ=':' |
| 25531 | link_all_deplibs_GCJ=yes |
| 25532 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25533 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25534 | |
| 25535 | if test "$GCC" = yes; then |
| 25536 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25537 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25538 | else |
| 25539 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25540 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25541 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25542 | ;; |
| 25543 | |
| 25544 | uts4*) |
| 25545 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25546 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25547 | hardcode_shlibpath_var_GCJ=no |
| 25548 | ;; |
| 25549 | |
| 25550 | *) |
| 25551 | ld_shlibs_GCJ=no |
| 25552 | ;; |
| 25553 | esac |
| 25554 | fi |
| 25555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25556 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25557 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25558 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25559 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25560 | # |
| 25561 | # Do we need to explicitly link libc? |
| 25562 | # |
| 25563 | case "x$archive_cmds_need_lc_GCJ" in |
| 25564 | x|xyes) |
| 25565 | # Assume -lc should be added |
| 25566 | archive_cmds_need_lc_GCJ=yes |
| 25567 | |
| 25568 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25569 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25570 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25571 | # FIXME: we may have to deal with multi-command sequences. |
| 25572 | ;; |
| 25573 | '$CC '*) |
| 25574 | # Test whether the compiler implicitly links with -lc since on some |
| 25575 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25576 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25577 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25578 | 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] | 25579 | $rm conftest* |
| 25580 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25581 | |
| 25582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25583 | (eval $ac_compile) 2>&5 |
| 25584 | ac_status=$? |
| 25585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25586 | (exit $ac_status); } 2>conftest.err; then |
| 25587 | soname=conftest |
| 25588 | lib=conftest |
| 25589 | libobjs=conftest.$ac_objext |
| 25590 | deplibs= |
| 25591 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25592 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25593 | compiler_flags=-v |
| 25594 | linker_flags=-v |
| 25595 | verstring= |
| 25596 | output_objdir=. |
| 25597 | libname=conftest |
| 25598 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25599 | allow_undefined_flag_GCJ= |
| 25600 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25601 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25602 | ac_status=$? |
| 25603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25604 | (exit $ac_status); } |
| 25605 | then |
| 25606 | archive_cmds_need_lc_GCJ=no |
| 25607 | else |
| 25608 | archive_cmds_need_lc_GCJ=yes |
| 25609 | fi |
| 25610 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25611 | else |
| 25612 | cat conftest.err 1>&5 |
| 25613 | fi |
| 25614 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25615 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25616 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25617 | ;; |
| 25618 | esac |
| 25619 | fi |
| 25620 | ;; |
| 25621 | esac |
| 25622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25623 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25624 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25625 | library_names_spec= |
| 25626 | libname_spec='lib$name' |
| 25627 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25628 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25629 | postinstall_cmds= |
| 25630 | postuninstall_cmds= |
| 25631 | finish_cmds= |
| 25632 | finish_eval= |
| 25633 | shlibpath_var= |
| 25634 | shlibpath_overrides_runpath=unknown |
| 25635 | version_type=none |
| 25636 | dynamic_linker="$host_os ld.so" |
| 25637 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25638 | if test "$GCC" = yes; then |
| 25639 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25640 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25641 | # if the path contains ";" then we assume it to be the separator |
| 25642 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25643 | # assumed that no part of a normal pathname contains ";" but that should |
| 25644 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25645 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25646 | else |
| 25647 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25648 | fi |
| 25649 | else |
| 25650 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25651 | fi |
| 25652 | need_lib_prefix=unknown |
| 25653 | hardcode_into_libs=no |
| 25654 | |
| 25655 | # when you set need_version to no, make sure it does not cause -set_version |
| 25656 | # flags to be left without arguments |
| 25657 | need_version=unknown |
| 25658 | |
| 25659 | case $host_os in |
| 25660 | aix3*) |
| 25661 | version_type=linux |
| 25662 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25663 | shlibpath_var=LIBPATH |
| 25664 | |
| 25665 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25666 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25667 | ;; |
| 25668 | |
| 25669 | aix4* | aix5*) |
| 25670 | version_type=linux |
| 25671 | need_lib_prefix=no |
| 25672 | need_version=no |
| 25673 | hardcode_into_libs=yes |
| 25674 | if test "$host_cpu" = ia64; then |
| 25675 | # AIX 5 supports IA64 |
| 25676 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25677 | shlibpath_var=LD_LIBRARY_PATH |
| 25678 | else |
| 25679 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25680 | # for dependence libraries. The import file would start with |
| 25681 | # the line `#! .'. This would cause the generated library to |
| 25682 | # depend on `.', always an invalid library. This was fixed in |
| 25683 | # development snapshots of GCC prior to 3.0. |
| 25684 | case $host_os in |
| 25685 | aix4 | aix4.[01] | aix4.[01].*) |
| 25686 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25687 | echo ' yes ' |
| 25688 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25689 | : |
| 25690 | else |
| 25691 | can_build_shared=no |
| 25692 | fi |
| 25693 | ;; |
| 25694 | esac |
| 25695 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25696 | # soname into executable. Probably we can add versioning support to |
| 25697 | # collect2, so additional links can be useful in future. |
| 25698 | if test "$aix_use_runtimelinking" = yes; then |
| 25699 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25700 | # instead of lib<name>.a to let people know that these are not |
| 25701 | # typical AIX shared libraries. |
| 25702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25703 | else |
| 25704 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25705 | # and later when we are not doing run time linking. |
| 25706 | library_names_spec='${libname}${release}.a $libname.a' |
| 25707 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25708 | fi |
| 25709 | shlibpath_var=LIBPATH |
| 25710 | fi |
| 25711 | ;; |
| 25712 | |
| 25713 | amigaos*) |
| 25714 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25715 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25716 | 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] | 25717 | ;; |
| 25718 | |
| 25719 | beos*) |
| 25720 | library_names_spec='${libname}${shared_ext}' |
| 25721 | dynamic_linker="$host_os ld.so" |
| 25722 | shlibpath_var=LIBRARY_PATH |
| 25723 | ;; |
| 25724 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25725 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25726 | version_type=linux |
| 25727 | need_version=no |
| 25728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25729 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25730 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25731 | shlibpath_var=LD_LIBRARY_PATH |
| 25732 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25733 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25734 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25735 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25736 | # libtool to hard-code these into programs |
| 25737 | ;; |
| 25738 | |
| 25739 | cygwin* | mingw* | pw32*) |
| 25740 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25741 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25742 | need_version=no |
| 25743 | need_lib_prefix=no |
| 25744 | |
| 25745 | case $GCC,$host_os in |
| 25746 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25747 | library_names_spec='$libname.dll.a' |
| 25748 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25749 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25750 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25751 | dldir=$destdir/`dirname \$dlpath`~ |
| 25752 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25753 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25754 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25755 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25756 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25757 | $rm \$dlpath' |
| 25758 | shlibpath_overrides_runpath=yes |
| 25759 | |
| 25760 | case $host_os in |
| 25761 | cygwin*) |
| 25762 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25763 | 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] | 25764 | 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] | 25765 | ;; |
| 25766 | mingw*) |
| 25767 | # MinGW DLLs use traditional 'lib' prefix |
| 25768 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25769 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25770 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25771 | # It is most probably a Windows format PATH printed by |
| 25772 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25773 | # path with ; separators, and with drive letters. We can handle the |
| 25774 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25775 | # especially as we might pass files found there to a mingw objdump, |
| 25776 | # which wouldn't understand a cygwinified path. Ahh. |
| 25777 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25778 | else |
| 25779 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25780 | fi |
| 25781 | ;; |
| 25782 | pw32*) |
| 25783 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25784 | 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] | 25785 | ;; |
| 25786 | esac |
| 25787 | ;; |
| 25788 | |
| 25789 | *) |
| 25790 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25791 | ;; |
| 25792 | esac |
| 25793 | dynamic_linker='Win32 ld.exe' |
| 25794 | # FIXME: first we should search . and the directory the executable is in |
| 25795 | shlibpath_var=PATH |
| 25796 | ;; |
| 25797 | |
| 25798 | darwin* | rhapsody*) |
| 25799 | dynamic_linker="$host_os dyld" |
| 25800 | version_type=darwin |
| 25801 | need_lib_prefix=no |
| 25802 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25803 | 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] | 25804 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25805 | shlibpath_overrides_runpath=yes |
| 25806 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25807 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25808 | # 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] | 25809 | if test "$GCC" = yes; then |
| 25810 | 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"` |
| 25811 | else |
| 25812 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25813 | fi |
| 25814 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25815 | ;; |
| 25816 | |
| 25817 | dgux*) |
| 25818 | version_type=linux |
| 25819 | need_lib_prefix=no |
| 25820 | need_version=no |
| 25821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25822 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25823 | shlibpath_var=LD_LIBRARY_PATH |
| 25824 | ;; |
| 25825 | |
| 25826 | freebsd1*) |
| 25827 | dynamic_linker=no |
| 25828 | ;; |
| 25829 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25830 | kfreebsd*-gnu) |
| 25831 | version_type=linux |
| 25832 | need_lib_prefix=no |
| 25833 | need_version=no |
| 25834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25835 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25836 | shlibpath_var=LD_LIBRARY_PATH |
| 25837 | shlibpath_overrides_runpath=no |
| 25838 | hardcode_into_libs=yes |
| 25839 | dynamic_linker='GNU ld.so' |
| 25840 | ;; |
| 25841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25842 | freebsd* | dragonfly*) |
| 25843 | # DragonFly does not have aout. When/if they implement a new |
| 25844 | # versioning mechanism, adjust this. |
| 25845 | if test -x /usr/bin/objformat; then |
| 25846 | objformat=`/usr/bin/objformat` |
| 25847 | else |
| 25848 | case $host_os in |
| 25849 | freebsd[123]*) objformat=aout ;; |
| 25850 | *) objformat=elf ;; |
| 25851 | esac |
| 25852 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25853 | version_type=freebsd-$objformat |
| 25854 | case $version_type in |
| 25855 | freebsd-elf*) |
| 25856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25857 | need_version=no |
| 25858 | need_lib_prefix=no |
| 25859 | ;; |
| 25860 | freebsd-*) |
| 25861 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25862 | need_version=yes |
| 25863 | ;; |
| 25864 | esac |
| 25865 | shlibpath_var=LD_LIBRARY_PATH |
| 25866 | case $host_os in |
| 25867 | freebsd2*) |
| 25868 | shlibpath_overrides_runpath=yes |
| 25869 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25870 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25871 | shlibpath_overrides_runpath=yes |
| 25872 | hardcode_into_libs=yes |
| 25873 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25874 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25875 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25876 | shlibpath_overrides_runpath=no |
| 25877 | hardcode_into_libs=yes |
| 25878 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25879 | freebsd*) # from 4.6 on |
| 25880 | shlibpath_overrides_runpath=yes |
| 25881 | hardcode_into_libs=yes |
| 25882 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25883 | esac |
| 25884 | ;; |
| 25885 | |
| 25886 | gnu*) |
| 25887 | version_type=linux |
| 25888 | need_lib_prefix=no |
| 25889 | need_version=no |
| 25890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25891 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25892 | shlibpath_var=LD_LIBRARY_PATH |
| 25893 | hardcode_into_libs=yes |
| 25894 | ;; |
| 25895 | |
| 25896 | hpux9* | hpux10* | hpux11*) |
| 25897 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25898 | # link against other versions. |
| 25899 | version_type=sunos |
| 25900 | need_lib_prefix=no |
| 25901 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25902 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25903 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25904 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25905 | hardcode_into_libs=yes |
| 25906 | dynamic_linker="$host_os dld.so" |
| 25907 | shlibpath_var=LD_LIBRARY_PATH |
| 25908 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25910 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25911 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25912 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25913 | else |
| 25914 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25915 | fi |
| 25916 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25917 | ;; |
| 25918 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25919 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25920 | hardcode_into_libs=yes |
| 25921 | dynamic_linker="$host_os dld.sl" |
| 25922 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25923 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25925 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25926 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25927 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25928 | ;; |
| 25929 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25930 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25931 | dynamic_linker="$host_os dld.sl" |
| 25932 | shlibpath_var=SHLIB_PATH |
| 25933 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25935 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25936 | ;; |
| 25937 | esac |
| 25938 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25939 | postinstall_cmds='chmod 555 $lib' |
| 25940 | ;; |
| 25941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25942 | interix3*) |
| 25943 | version_type=linux |
| 25944 | need_lib_prefix=no |
| 25945 | need_version=no |
| 25946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25947 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25948 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25949 | shlibpath_var=LD_LIBRARY_PATH |
| 25950 | shlibpath_overrides_runpath=no |
| 25951 | hardcode_into_libs=yes |
| 25952 | ;; |
| 25953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25954 | irix5* | irix6* | nonstopux*) |
| 25955 | case $host_os in |
| 25956 | nonstopux*) version_type=nonstopux ;; |
| 25957 | *) |
| 25958 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25959 | version_type=linux |
| 25960 | else |
| 25961 | version_type=irix |
| 25962 | fi ;; |
| 25963 | esac |
| 25964 | need_lib_prefix=no |
| 25965 | need_version=no |
| 25966 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25968 | case $host_os in |
| 25969 | irix5* | nonstopux*) |
| 25970 | libsuff= shlibsuff= |
| 25971 | ;; |
| 25972 | *) |
| 25973 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25974 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25975 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25976 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25977 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25978 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25979 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25980 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25981 | esac |
| 25982 | ;; |
| 25983 | esac |
| 25984 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25985 | shlibpath_overrides_runpath=no |
| 25986 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25987 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25988 | hardcode_into_libs=yes |
| 25989 | ;; |
| 25990 | |
| 25991 | # No shared lib support for Linux oldld, aout, or coff. |
| 25992 | linux*oldld* | linux*aout* | linux*coff*) |
| 25993 | dynamic_linker=no |
| 25994 | ;; |
| 25995 | |
| 25996 | # This must be Linux ELF. |
| 25997 | linux*) |
| 25998 | version_type=linux |
| 25999 | need_lib_prefix=no |
| 26000 | need_version=no |
| 26001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26002 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26003 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 26004 | shlibpath_var=LD_LIBRARY_PATH |
| 26005 | shlibpath_overrides_runpath=no |
| 26006 | # This implies no fast_install, which is unacceptable. |
| 26007 | # Some rework will be needed to allow for fast_install |
| 26008 | # before this can be enabled. |
| 26009 | hardcode_into_libs=yes |
| 26010 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26011 | # Append ld.so.conf contents to the search path |
| 26012 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26013 | 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] | 26014 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 26015 | fi |
| 26016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26017 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 26018 | # powerpc, because MkLinux only supported shared libraries with the |
| 26019 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 26020 | # most powerpc-linux boxes support dynamic linking these days and |
| 26021 | # people can always --disable-shared, the test was removed, and we |
| 26022 | # assume the GNU/Linux dynamic linker is in use. |
| 26023 | dynamic_linker='GNU/Linux ld.so' |
| 26024 | ;; |
| 26025 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26026 | knetbsd*-gnu) |
| 26027 | version_type=linux |
| 26028 | need_lib_prefix=no |
| 26029 | need_version=no |
| 26030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 26031 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26032 | shlibpath_var=LD_LIBRARY_PATH |
| 26033 | shlibpath_overrides_runpath=no |
| 26034 | hardcode_into_libs=yes |
| 26035 | dynamic_linker='GNU ld.so' |
| 26036 | ;; |
| 26037 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26038 | netbsd*) |
| 26039 | version_type=sunos |
| 26040 | need_lib_prefix=no |
| 26041 | need_version=no |
| 26042 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 26043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26044 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26045 | dynamic_linker='NetBSD (a.out) ld.so' |
| 26046 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26047 | 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] | 26048 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26049 | dynamic_linker='NetBSD ld.elf_so' |
| 26050 | fi |
| 26051 | shlibpath_var=LD_LIBRARY_PATH |
| 26052 | shlibpath_overrides_runpath=yes |
| 26053 | hardcode_into_libs=yes |
| 26054 | ;; |
| 26055 | |
| 26056 | newsos6) |
| 26057 | version_type=linux |
| 26058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26059 | shlibpath_var=LD_LIBRARY_PATH |
| 26060 | shlibpath_overrides_runpath=yes |
| 26061 | ;; |
| 26062 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26063 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26064 | version_type=linux |
| 26065 | need_lib_prefix=no |
| 26066 | need_version=no |
| 26067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26069 | shlibpath_var=LD_LIBRARY_PATH |
| 26070 | shlibpath_overrides_runpath=yes |
| 26071 | ;; |
| 26072 | |
| 26073 | openbsd*) |
| 26074 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26075 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26076 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26077 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 26078 | case $host_os in |
| 26079 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 26080 | *) need_version=no ;; |
| 26081 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26084 | shlibpath_var=LD_LIBRARY_PATH |
| 26085 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 26086 | case $host_os in |
| 26087 | openbsd2.[89] | openbsd2.[89].*) |
| 26088 | shlibpath_overrides_runpath=no |
| 26089 | ;; |
| 26090 | *) |
| 26091 | shlibpath_overrides_runpath=yes |
| 26092 | ;; |
| 26093 | esac |
| 26094 | else |
| 26095 | shlibpath_overrides_runpath=yes |
| 26096 | fi |
| 26097 | ;; |
| 26098 | |
| 26099 | os2*) |
| 26100 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26101 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26102 | need_lib_prefix=no |
| 26103 | library_names_spec='$libname${shared_ext} $libname.a' |
| 26104 | dynamic_linker='OS/2 ld.exe' |
| 26105 | shlibpath_var=LIBPATH |
| 26106 | ;; |
| 26107 | |
| 26108 | osf3* | osf4* | osf5*) |
| 26109 | version_type=osf |
| 26110 | need_lib_prefix=no |
| 26111 | need_version=no |
| 26112 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26114 | shlibpath_var=LD_LIBRARY_PATH |
| 26115 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 26116 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 26117 | ;; |
| 26118 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26119 | solaris*) |
| 26120 | version_type=linux |
| 26121 | need_lib_prefix=no |
| 26122 | need_version=no |
| 26123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26124 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26125 | shlibpath_var=LD_LIBRARY_PATH |
| 26126 | shlibpath_overrides_runpath=yes |
| 26127 | hardcode_into_libs=yes |
| 26128 | # ldd complains unless libraries are executable |
| 26129 | postinstall_cmds='chmod +x $lib' |
| 26130 | ;; |
| 26131 | |
| 26132 | sunos4*) |
| 26133 | version_type=sunos |
| 26134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26135 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 26136 | shlibpath_var=LD_LIBRARY_PATH |
| 26137 | shlibpath_overrides_runpath=yes |
| 26138 | if test "$with_gnu_ld" = yes; then |
| 26139 | need_lib_prefix=no |
| 26140 | fi |
| 26141 | need_version=yes |
| 26142 | ;; |
| 26143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26144 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26145 | version_type=linux |
| 26146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26147 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26148 | shlibpath_var=LD_LIBRARY_PATH |
| 26149 | case $host_vendor in |
| 26150 | sni) |
| 26151 | shlibpath_overrides_runpath=no |
| 26152 | need_lib_prefix=no |
| 26153 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 26154 | runpath_var=LD_RUN_PATH |
| 26155 | ;; |
| 26156 | siemens) |
| 26157 | need_lib_prefix=no |
| 26158 | ;; |
| 26159 | motorola) |
| 26160 | need_lib_prefix=no |
| 26161 | need_version=no |
| 26162 | shlibpath_overrides_runpath=no |
| 26163 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 26164 | ;; |
| 26165 | esac |
| 26166 | ;; |
| 26167 | |
| 26168 | sysv4*MP*) |
| 26169 | if test -d /usr/nec ;then |
| 26170 | version_type=linux |
| 26171 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 26172 | soname_spec='$libname${shared_ext}.$major' |
| 26173 | shlibpath_var=LD_LIBRARY_PATH |
| 26174 | fi |
| 26175 | ;; |
| 26176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26177 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 26178 | version_type=freebsd-elf |
| 26179 | need_lib_prefix=no |
| 26180 | need_version=no |
| 26181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26183 | shlibpath_var=LD_LIBRARY_PATH |
| 26184 | hardcode_into_libs=yes |
| 26185 | if test "$with_gnu_ld" = yes; then |
| 26186 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 26187 | shlibpath_overrides_runpath=no |
| 26188 | else |
| 26189 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 26190 | shlibpath_overrides_runpath=yes |
| 26191 | case $host_os in |
| 26192 | sco3.2v5*) |
| 26193 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 26194 | ;; |
| 26195 | esac |
| 26196 | fi |
| 26197 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 26198 | ;; |
| 26199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26200 | uts4*) |
| 26201 | version_type=linux |
| 26202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26203 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26204 | shlibpath_var=LD_LIBRARY_PATH |
| 26205 | ;; |
| 26206 | |
| 26207 | *) |
| 26208 | dynamic_linker=no |
| 26209 | ;; |
| 26210 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26211 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 26212 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26213 | test "$dynamic_linker" = no && can_build_shared=no |
| 26214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26215 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 26216 | if test "$GCC" = yes; then |
| 26217 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 26218 | fi |
| 26219 | |
| 26220 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 26221 | 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] | 26222 | hardcode_action_GCJ= |
| 26223 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 26224 | test -n "$runpath_var_GCJ" || \ |
| 26225 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 26226 | |
| 26227 | # We can hardcode non-existant directories. |
| 26228 | if test "$hardcode_direct_GCJ" != no && |
| 26229 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 26230 | # have to relink, otherwise we might link with an installed library |
| 26231 | # when we should be linking with a yet-to-be-installed one |
| 26232 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 26233 | test "$hardcode_minus_L_GCJ" != no; then |
| 26234 | # Linking always hardcodes the temporary library directory. |
| 26235 | hardcode_action_GCJ=relink |
| 26236 | else |
| 26237 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 26238 | hardcode_action_GCJ=immediate |
| 26239 | fi |
| 26240 | else |
| 26241 | # We cannot hardcode anything, or else we can only hardcode existing |
| 26242 | # directories. |
| 26243 | hardcode_action_GCJ=unsupported |
| 26244 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26245 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 26246 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26247 | |
| 26248 | if test "$hardcode_action_GCJ" = relink; then |
| 26249 | # Fast installation is not supported |
| 26250 | enable_fast_install=no |
| 26251 | elif test "$shlibpath_overrides_runpath" = yes || |
| 26252 | test "$enable_shared" = no; then |
| 26253 | # Fast installation is not necessary |
| 26254 | enable_fast_install=needless |
| 26255 | fi |
| 26256 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26257 | |
| 26258 | # The else clause should only fire when bootstrapping the |
| 26259 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26260 | # with your package, and you will get complaints that there are |
| 26261 | # no rules to generate ltmain.sh. |
| 26262 | if test -f "$ltmain"; then |
| 26263 | # See if we are running on zsh, and set the options which allow our commands through |
| 26264 | # without removal of \ escapes. |
| 26265 | if test -n "${ZSH_VERSION+set}" ; then |
| 26266 | setopt NO_GLOB_SUBST |
| 26267 | fi |
| 26268 | # Now quote all the things that may contain metacharacters while being |
| 26269 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26270 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26271 | 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] | 26272 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26273 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26274 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26275 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26276 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26277 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26278 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26279 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26280 | compiler_GCJ \ |
| 26281 | CC_GCJ \ |
| 26282 | LD_GCJ \ |
| 26283 | lt_prog_compiler_wl_GCJ \ |
| 26284 | lt_prog_compiler_pic_GCJ \ |
| 26285 | lt_prog_compiler_static_GCJ \ |
| 26286 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 26287 | export_dynamic_flag_spec_GCJ \ |
| 26288 | thread_safe_flag_spec_GCJ \ |
| 26289 | whole_archive_flag_spec_GCJ \ |
| 26290 | enable_shared_with_static_runtimes_GCJ \ |
| 26291 | old_archive_cmds_GCJ \ |
| 26292 | old_archive_from_new_cmds_GCJ \ |
| 26293 | predep_objects_GCJ \ |
| 26294 | postdep_objects_GCJ \ |
| 26295 | predeps_GCJ \ |
| 26296 | postdeps_GCJ \ |
| 26297 | compiler_lib_search_path_GCJ \ |
| 26298 | archive_cmds_GCJ \ |
| 26299 | archive_expsym_cmds_GCJ \ |
| 26300 | postinstall_cmds_GCJ \ |
| 26301 | postuninstall_cmds_GCJ \ |
| 26302 | old_archive_from_expsyms_cmds_GCJ \ |
| 26303 | allow_undefined_flag_GCJ \ |
| 26304 | no_undefined_flag_GCJ \ |
| 26305 | export_symbols_cmds_GCJ \ |
| 26306 | hardcode_libdir_flag_spec_GCJ \ |
| 26307 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 26308 | hardcode_libdir_separator_GCJ \ |
| 26309 | hardcode_automatic_GCJ \ |
| 26310 | module_cmds_GCJ \ |
| 26311 | module_expsym_cmds_GCJ \ |
| 26312 | lt_cv_prog_compiler_c_o_GCJ \ |
| 26313 | exclude_expsyms_GCJ \ |
| 26314 | include_expsyms_GCJ; do |
| 26315 | |
| 26316 | case $var in |
| 26317 | old_archive_cmds_GCJ | \ |
| 26318 | old_archive_from_new_cmds_GCJ | \ |
| 26319 | archive_cmds_GCJ | \ |
| 26320 | archive_expsym_cmds_GCJ | \ |
| 26321 | module_cmds_GCJ | \ |
| 26322 | module_expsym_cmds_GCJ | \ |
| 26323 | old_archive_from_expsyms_cmds_GCJ | \ |
| 26324 | export_symbols_cmds_GCJ | \ |
| 26325 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26326 | postinstall_cmds | postuninstall_cmds | \ |
| 26327 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26328 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26329 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26330 | 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] | 26331 | ;; |
| 26332 | *) |
| 26333 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26334 | ;; |
| 26335 | esac |
| 26336 | done |
| 26337 | |
| 26338 | case $lt_echo in |
| 26339 | *'\$0 --fallback-echo"') |
| 26340 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26341 | ;; |
| 26342 | esac |
| 26343 | |
| 26344 | cfgfile="$ofile" |
| 26345 | |
| 26346 | cat <<__EOF__ >> "$cfgfile" |
| 26347 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26348 | |
| 26349 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26350 | |
| 26351 | # Shell to use when invoking shell scripts. |
| 26352 | SHELL=$lt_SHELL |
| 26353 | |
| 26354 | # Whether or not to build shared libraries. |
| 26355 | build_libtool_libs=$enable_shared |
| 26356 | |
| 26357 | # Whether or not to build static libraries. |
| 26358 | build_old_libs=$enable_static |
| 26359 | |
| 26360 | # Whether or not to add -lc for building shared libraries. |
| 26361 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26362 | |
| 26363 | # Whether or not to disallow shared libs when runtime libs are static |
| 26364 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26365 | |
| 26366 | # Whether or not to optimize for fast installation. |
| 26367 | fast_install=$enable_fast_install |
| 26368 | |
| 26369 | # The host system. |
| 26370 | host_alias=$host_alias |
| 26371 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26372 | host_os=$host_os |
| 26373 | |
| 26374 | # The build system. |
| 26375 | build_alias=$build_alias |
| 26376 | build=$build |
| 26377 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26378 | |
| 26379 | # An echo program that does not interpret backslashes. |
| 26380 | echo=$lt_echo |
| 26381 | |
| 26382 | # The archiver. |
| 26383 | AR=$lt_AR |
| 26384 | AR_FLAGS=$lt_AR_FLAGS |
| 26385 | |
| 26386 | # A C compiler. |
| 26387 | LTCC=$lt_LTCC |
| 26388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26389 | # LTCC compiler flags. |
| 26390 | LTCFLAGS=$lt_LTCFLAGS |
| 26391 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26392 | # A language-specific compiler. |
| 26393 | CC=$lt_compiler_GCJ |
| 26394 | |
| 26395 | # Is the compiler the GNU C compiler? |
| 26396 | with_gcc=$GCC_GCJ |
| 26397 | |
| 26398 | # An ERE matcher. |
| 26399 | EGREP=$lt_EGREP |
| 26400 | |
| 26401 | # The linker used to build libraries. |
| 26402 | LD=$lt_LD_GCJ |
| 26403 | |
| 26404 | # Whether we need hard or soft links. |
| 26405 | LN_S=$lt_LN_S |
| 26406 | |
| 26407 | # A BSD-compatible nm program. |
| 26408 | NM=$lt_NM |
| 26409 | |
| 26410 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26411 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26412 | |
| 26413 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26414 | MAGIC_CMD=$MAGIC_CMD |
| 26415 | |
| 26416 | # Used on cygwin: DLL creation program. |
| 26417 | DLLTOOL="$DLLTOOL" |
| 26418 | |
| 26419 | # Used on cygwin: object dumper. |
| 26420 | OBJDUMP="$OBJDUMP" |
| 26421 | |
| 26422 | # Used on cygwin: assembler. |
| 26423 | AS="$AS" |
| 26424 | |
| 26425 | # The name of the directory that contains temporary libtool files. |
| 26426 | objdir=$objdir |
| 26427 | |
| 26428 | # How to create reloadable object files. |
| 26429 | reload_flag=$lt_reload_flag |
| 26430 | reload_cmds=$lt_reload_cmds |
| 26431 | |
| 26432 | # How to pass a linker flag through the compiler. |
| 26433 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26434 | |
| 26435 | # Object file suffix (normally "o"). |
| 26436 | objext="$ac_objext" |
| 26437 | |
| 26438 | # Old archive suffix (normally "a"). |
| 26439 | libext="$libext" |
| 26440 | |
| 26441 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26442 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26443 | |
| 26444 | # Executable file suffix (normally ""). |
| 26445 | exeext="$exeext" |
| 26446 | |
| 26447 | # Additional compiler flags for building library objects. |
| 26448 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26449 | pic_mode=$pic_mode |
| 26450 | |
| 26451 | # What is the maximum length of a command? |
| 26452 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26453 | |
| 26454 | # Does compiler simultaneously support -c and -o options? |
| 26455 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26457 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26458 | need_locks=$lt_need_locks |
| 26459 | |
| 26460 | # Do we need the lib prefix for modules? |
| 26461 | need_lib_prefix=$need_lib_prefix |
| 26462 | |
| 26463 | # Do we need a version for libraries? |
| 26464 | need_version=$need_version |
| 26465 | |
| 26466 | # Whether dlopen is supported. |
| 26467 | dlopen_support=$enable_dlopen |
| 26468 | |
| 26469 | # Whether dlopen of programs is supported. |
| 26470 | dlopen_self=$enable_dlopen_self |
| 26471 | |
| 26472 | # Whether dlopen of statically linked programs is supported. |
| 26473 | dlopen_self_static=$enable_dlopen_self_static |
| 26474 | |
| 26475 | # Compiler flag to prevent dynamic linking. |
| 26476 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26477 | |
| 26478 | # Compiler flag to turn off builtin functions. |
| 26479 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26480 | |
| 26481 | # Compiler flag to allow reflexive dlopens. |
| 26482 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26483 | |
| 26484 | # Compiler flag to generate shared objects directly from archives. |
| 26485 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26486 | |
| 26487 | # Compiler flag to generate thread-safe objects. |
| 26488 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26489 | |
| 26490 | # Library versioning type. |
| 26491 | version_type=$version_type |
| 26492 | |
| 26493 | # Format of library name prefix. |
| 26494 | libname_spec=$lt_libname_spec |
| 26495 | |
| 26496 | # List of archive names. First name is the real one, the rest are links. |
| 26497 | # The last name is the one that the linker finds with -lNAME. |
| 26498 | library_names_spec=$lt_library_names_spec |
| 26499 | |
| 26500 | # The coded name of the library, if different from the real name. |
| 26501 | soname_spec=$lt_soname_spec |
| 26502 | |
| 26503 | # Commands used to build and install an old-style archive. |
| 26504 | RANLIB=$lt_RANLIB |
| 26505 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26506 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26507 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26508 | |
| 26509 | # Create an old-style archive from a shared archive. |
| 26510 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26511 | |
| 26512 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26513 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26514 | |
| 26515 | # Commands used to build and install a shared archive. |
| 26516 | archive_cmds=$lt_archive_cmds_GCJ |
| 26517 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26518 | postinstall_cmds=$lt_postinstall_cmds |
| 26519 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26520 | |
| 26521 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26522 | module_cmds=$lt_module_cmds_GCJ |
| 26523 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26524 | |
| 26525 | # Commands to strip libraries. |
| 26526 | old_striplib=$lt_old_striplib |
| 26527 | striplib=$lt_striplib |
| 26528 | |
| 26529 | # Dependencies to place before the objects being linked to create a |
| 26530 | # shared library. |
| 26531 | predep_objects=$lt_predep_objects_GCJ |
| 26532 | |
| 26533 | # Dependencies to place after the objects being linked to create a |
| 26534 | # shared library. |
| 26535 | postdep_objects=$lt_postdep_objects_GCJ |
| 26536 | |
| 26537 | # Dependencies to place before the objects being linked to create a |
| 26538 | # shared library. |
| 26539 | predeps=$lt_predeps_GCJ |
| 26540 | |
| 26541 | # Dependencies to place after the objects being linked to create a |
| 26542 | # shared library. |
| 26543 | postdeps=$lt_postdeps_GCJ |
| 26544 | |
| 26545 | # The library search path used internally by the compiler when linking |
| 26546 | # a shared library. |
| 26547 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26548 | |
| 26549 | # Method to check whether dependent libraries are shared objects. |
| 26550 | deplibs_check_method=$lt_deplibs_check_method |
| 26551 | |
| 26552 | # Command to use when deplibs_check_method == file_magic. |
| 26553 | file_magic_cmd=$lt_file_magic_cmd |
| 26554 | |
| 26555 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26556 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26557 | |
| 26558 | # Flag that forces no undefined symbols. |
| 26559 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26560 | |
| 26561 | # Commands used to finish a libtool library installation in a directory. |
| 26562 | finish_cmds=$lt_finish_cmds |
| 26563 | |
| 26564 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26565 | finish_eval=$lt_finish_eval |
| 26566 | |
| 26567 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26568 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26569 | |
| 26570 | # Transform the output of nm in a proper C declaration |
| 26571 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26572 | |
| 26573 | # Transform the output of nm in a C name address pair |
| 26574 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26575 | |
| 26576 | # This is the shared library runtime path variable. |
| 26577 | runpath_var=$runpath_var |
| 26578 | |
| 26579 | # This is the shared library path variable. |
| 26580 | shlibpath_var=$shlibpath_var |
| 26581 | |
| 26582 | # Is shlibpath searched before the hard-coded library search path? |
| 26583 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26584 | |
| 26585 | # How to hardcode a shared library path into an executable. |
| 26586 | hardcode_action=$hardcode_action_GCJ |
| 26587 | |
| 26588 | # Whether we should hardcode library paths into libraries. |
| 26589 | hardcode_into_libs=$hardcode_into_libs |
| 26590 | |
| 26591 | # Flag to hardcode \$libdir into a binary during linking. |
| 26592 | # This must work even if \$libdir does not exist. |
| 26593 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26594 | |
| 26595 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26596 | # a binary during linking. This must work even if \$libdir does |
| 26597 | # not exist. |
| 26598 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26599 | |
| 26600 | # Whether we need a single -rpath flag with a separated argument. |
| 26601 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26602 | |
| 26603 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26604 | # resulting binary. |
| 26605 | hardcode_direct=$hardcode_direct_GCJ |
| 26606 | |
| 26607 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26608 | # resulting binary. |
| 26609 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26610 | |
| 26611 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26612 | # the resulting binary. |
| 26613 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26614 | |
| 26615 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26616 | # and all subsequent libraries and executables linked against it. |
| 26617 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26618 | |
| 26619 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26620 | # restored at relink time. |
| 26621 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26622 | |
| 26623 | # Whether libtool must link a program against all its dependency libraries. |
| 26624 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26625 | |
| 26626 | # Compile-time system search path for libraries |
| 26627 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26628 | |
| 26629 | # Run-time system search path for libraries |
| 26630 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26631 | |
| 26632 | # Fix the shell variable \$srcfile for the compiler. |
| 26633 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26634 | |
| 26635 | # Set to yes if exported symbols are required. |
| 26636 | always_export_symbols=$always_export_symbols_GCJ |
| 26637 | |
| 26638 | # The commands to list exported symbols. |
| 26639 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26640 | |
| 26641 | # The commands to extract the exported symbol list from a shared archive. |
| 26642 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26643 | |
| 26644 | # Symbols that should not be listed in the preloaded symbols. |
| 26645 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26646 | |
| 26647 | # Symbols that must always be exported. |
| 26648 | include_expsyms=$lt_include_expsyms_GCJ |
| 26649 | |
| 26650 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26651 | |
| 26652 | __EOF__ |
| 26653 | |
| 26654 | |
| 26655 | else |
| 26656 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26657 | # `config.status --recheck' to rerun these tests and create the |
| 26658 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26659 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26660 | if test -f "$ltmain_in"; then |
| 26661 | test -f Makefile && make "$ltmain" |
| 26662 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26663 | fi |
| 26664 | |
| 26665 | |
| 26666 | ac_ext=c |
| 26667 | ac_cpp='$CPP $CPPFLAGS' |
| 26668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26671 | |
| 26672 | CC="$lt_save_CC" |
| 26673 | |
| 26674 | else |
| 26675 | tagname="" |
| 26676 | fi |
| 26677 | ;; |
| 26678 | |
| 26679 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26680 | ac_ext=c |
| 26681 | ac_cpp='$CPP $CPPFLAGS' |
| 26682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26685 | |
| 26686 | |
| 26687 | # Source file extension for RC test sources. |
| 26688 | ac_ext=rc |
| 26689 | |
| 26690 | # Object file extension for compiled RC test sources. |
| 26691 | objext=o |
| 26692 | objext_RC=$objext |
| 26693 | |
| 26694 | # Code to be used in simple compile tests |
| 26695 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26696 | |
| 26697 | # Code to be used in simple link tests |
| 26698 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26699 | |
| 26700 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26701 | |
| 26702 | # If no C compiler was specified, use CC. |
| 26703 | LTCC=${LTCC-"$CC"} |
| 26704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26705 | # If no C compiler flags were specified, use CFLAGS. |
| 26706 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26707 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26708 | # Allow CC to be a program name with arguments. |
| 26709 | compiler=$CC |
| 26710 | |
| 26711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26712 | # save warnings/boilerplate of simple test code |
| 26713 | ac_outfile=conftest.$ac_objext |
| 26714 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26715 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26716 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26717 | $rm conftest* |
| 26718 | |
| 26719 | ac_outfile=conftest.$ac_objext |
| 26720 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26721 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26722 | _lt_linker_boilerplate=`cat conftest.err` |
| 26723 | $rm conftest* |
| 26724 | |
| 26725 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26726 | # Allow CC to be a program name with arguments. |
| 26727 | lt_save_CC="$CC" |
| 26728 | CC=${RC-"windres"} |
| 26729 | compiler=$CC |
| 26730 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26731 | for cc_temp in $compiler""; do |
| 26732 | case $cc_temp in |
| 26733 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26734 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26735 | \-*) ;; |
| 26736 | *) break;; |
| 26737 | esac |
| 26738 | done |
| 26739 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26740 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26741 | lt_cv_prog_compiler_c_o_RC=yes |
| 26742 | |
| 26743 | # The else clause should only fire when bootstrapping the |
| 26744 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26745 | # with your package, and you will get complaints that there are |
| 26746 | # no rules to generate ltmain.sh. |
| 26747 | if test -f "$ltmain"; then |
| 26748 | # See if we are running on zsh, and set the options which allow our commands through |
| 26749 | # without removal of \ escapes. |
| 26750 | if test -n "${ZSH_VERSION+set}" ; then |
| 26751 | setopt NO_GLOB_SUBST |
| 26752 | fi |
| 26753 | # Now quote all the things that may contain metacharacters while being |
| 26754 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26755 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26756 | 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] | 26757 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26758 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26759 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26760 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26761 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26762 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26763 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26764 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26765 | compiler_RC \ |
| 26766 | CC_RC \ |
| 26767 | LD_RC \ |
| 26768 | lt_prog_compiler_wl_RC \ |
| 26769 | lt_prog_compiler_pic_RC \ |
| 26770 | lt_prog_compiler_static_RC \ |
| 26771 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26772 | export_dynamic_flag_spec_RC \ |
| 26773 | thread_safe_flag_spec_RC \ |
| 26774 | whole_archive_flag_spec_RC \ |
| 26775 | enable_shared_with_static_runtimes_RC \ |
| 26776 | old_archive_cmds_RC \ |
| 26777 | old_archive_from_new_cmds_RC \ |
| 26778 | predep_objects_RC \ |
| 26779 | postdep_objects_RC \ |
| 26780 | predeps_RC \ |
| 26781 | postdeps_RC \ |
| 26782 | compiler_lib_search_path_RC \ |
| 26783 | archive_cmds_RC \ |
| 26784 | archive_expsym_cmds_RC \ |
| 26785 | postinstall_cmds_RC \ |
| 26786 | postuninstall_cmds_RC \ |
| 26787 | old_archive_from_expsyms_cmds_RC \ |
| 26788 | allow_undefined_flag_RC \ |
| 26789 | no_undefined_flag_RC \ |
| 26790 | export_symbols_cmds_RC \ |
| 26791 | hardcode_libdir_flag_spec_RC \ |
| 26792 | hardcode_libdir_flag_spec_ld_RC \ |
| 26793 | hardcode_libdir_separator_RC \ |
| 26794 | hardcode_automatic_RC \ |
| 26795 | module_cmds_RC \ |
| 26796 | module_expsym_cmds_RC \ |
| 26797 | lt_cv_prog_compiler_c_o_RC \ |
| 26798 | exclude_expsyms_RC \ |
| 26799 | include_expsyms_RC; do |
| 26800 | |
| 26801 | case $var in |
| 26802 | old_archive_cmds_RC | \ |
| 26803 | old_archive_from_new_cmds_RC | \ |
| 26804 | archive_cmds_RC | \ |
| 26805 | archive_expsym_cmds_RC | \ |
| 26806 | module_cmds_RC | \ |
| 26807 | module_expsym_cmds_RC | \ |
| 26808 | old_archive_from_expsyms_cmds_RC | \ |
| 26809 | export_symbols_cmds_RC | \ |
| 26810 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26811 | postinstall_cmds | postuninstall_cmds | \ |
| 26812 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26813 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26814 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26815 | 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] | 26816 | ;; |
| 26817 | *) |
| 26818 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26819 | ;; |
| 26820 | esac |
| 26821 | done |
| 26822 | |
| 26823 | case $lt_echo in |
| 26824 | *'\$0 --fallback-echo"') |
| 26825 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26826 | ;; |
| 26827 | esac |
| 26828 | |
| 26829 | cfgfile="$ofile" |
| 26830 | |
| 26831 | cat <<__EOF__ >> "$cfgfile" |
| 26832 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26833 | |
| 26834 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26835 | |
| 26836 | # Shell to use when invoking shell scripts. |
| 26837 | SHELL=$lt_SHELL |
| 26838 | |
| 26839 | # Whether or not to build shared libraries. |
| 26840 | build_libtool_libs=$enable_shared |
| 26841 | |
| 26842 | # Whether or not to build static libraries. |
| 26843 | build_old_libs=$enable_static |
| 26844 | |
| 26845 | # Whether or not to add -lc for building shared libraries. |
| 26846 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26847 | |
| 26848 | # Whether or not to disallow shared libs when runtime libs are static |
| 26849 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26850 | |
| 26851 | # Whether or not to optimize for fast installation. |
| 26852 | fast_install=$enable_fast_install |
| 26853 | |
| 26854 | # The host system. |
| 26855 | host_alias=$host_alias |
| 26856 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26857 | host_os=$host_os |
| 26858 | |
| 26859 | # The build system. |
| 26860 | build_alias=$build_alias |
| 26861 | build=$build |
| 26862 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26863 | |
| 26864 | # An echo program that does not interpret backslashes. |
| 26865 | echo=$lt_echo |
| 26866 | |
| 26867 | # The archiver. |
| 26868 | AR=$lt_AR |
| 26869 | AR_FLAGS=$lt_AR_FLAGS |
| 26870 | |
| 26871 | # A C compiler. |
| 26872 | LTCC=$lt_LTCC |
| 26873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26874 | # LTCC compiler flags. |
| 26875 | LTCFLAGS=$lt_LTCFLAGS |
| 26876 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26877 | # A language-specific compiler. |
| 26878 | CC=$lt_compiler_RC |
| 26879 | |
| 26880 | # Is the compiler the GNU C compiler? |
| 26881 | with_gcc=$GCC_RC |
| 26882 | |
| 26883 | # An ERE matcher. |
| 26884 | EGREP=$lt_EGREP |
| 26885 | |
| 26886 | # The linker used to build libraries. |
| 26887 | LD=$lt_LD_RC |
| 26888 | |
| 26889 | # Whether we need hard or soft links. |
| 26890 | LN_S=$lt_LN_S |
| 26891 | |
| 26892 | # A BSD-compatible nm program. |
| 26893 | NM=$lt_NM |
| 26894 | |
| 26895 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26896 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26897 | |
| 26898 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26899 | MAGIC_CMD=$MAGIC_CMD |
| 26900 | |
| 26901 | # Used on cygwin: DLL creation program. |
| 26902 | DLLTOOL="$DLLTOOL" |
| 26903 | |
| 26904 | # Used on cygwin: object dumper. |
| 26905 | OBJDUMP="$OBJDUMP" |
| 26906 | |
| 26907 | # Used on cygwin: assembler. |
| 26908 | AS="$AS" |
| 26909 | |
| 26910 | # The name of the directory that contains temporary libtool files. |
| 26911 | objdir=$objdir |
| 26912 | |
| 26913 | # How to create reloadable object files. |
| 26914 | reload_flag=$lt_reload_flag |
| 26915 | reload_cmds=$lt_reload_cmds |
| 26916 | |
| 26917 | # How to pass a linker flag through the compiler. |
| 26918 | wl=$lt_lt_prog_compiler_wl_RC |
| 26919 | |
| 26920 | # Object file suffix (normally "o"). |
| 26921 | objext="$ac_objext" |
| 26922 | |
| 26923 | # Old archive suffix (normally "a"). |
| 26924 | libext="$libext" |
| 26925 | |
| 26926 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26927 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26928 | |
| 26929 | # Executable file suffix (normally ""). |
| 26930 | exeext="$exeext" |
| 26931 | |
| 26932 | # Additional compiler flags for building library objects. |
| 26933 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26934 | pic_mode=$pic_mode |
| 26935 | |
| 26936 | # What is the maximum length of a command? |
| 26937 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26938 | |
| 26939 | # Does compiler simultaneously support -c and -o options? |
| 26940 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26942 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26943 | need_locks=$lt_need_locks |
| 26944 | |
| 26945 | # Do we need the lib prefix for modules? |
| 26946 | need_lib_prefix=$need_lib_prefix |
| 26947 | |
| 26948 | # Do we need a version for libraries? |
| 26949 | need_version=$need_version |
| 26950 | |
| 26951 | # Whether dlopen is supported. |
| 26952 | dlopen_support=$enable_dlopen |
| 26953 | |
| 26954 | # Whether dlopen of programs is supported. |
| 26955 | dlopen_self=$enable_dlopen_self |
| 26956 | |
| 26957 | # Whether dlopen of statically linked programs is supported. |
| 26958 | dlopen_self_static=$enable_dlopen_self_static |
| 26959 | |
| 26960 | # Compiler flag to prevent dynamic linking. |
| 26961 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26962 | |
| 26963 | # Compiler flag to turn off builtin functions. |
| 26964 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26965 | |
| 26966 | # Compiler flag to allow reflexive dlopens. |
| 26967 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26968 | |
| 26969 | # Compiler flag to generate shared objects directly from archives. |
| 26970 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26971 | |
| 26972 | # Compiler flag to generate thread-safe objects. |
| 26973 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26974 | |
| 26975 | # Library versioning type. |
| 26976 | version_type=$version_type |
| 26977 | |
| 26978 | # Format of library name prefix. |
| 26979 | libname_spec=$lt_libname_spec |
| 26980 | |
| 26981 | # List of archive names. First name is the real one, the rest are links. |
| 26982 | # The last name is the one that the linker finds with -lNAME. |
| 26983 | library_names_spec=$lt_library_names_spec |
| 26984 | |
| 26985 | # The coded name of the library, if different from the real name. |
| 26986 | soname_spec=$lt_soname_spec |
| 26987 | |
| 26988 | # Commands used to build and install an old-style archive. |
| 26989 | RANLIB=$lt_RANLIB |
| 26990 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26991 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26992 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26993 | |
| 26994 | # Create an old-style archive from a shared archive. |
| 26995 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26996 | |
| 26997 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26998 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26999 | |
| 27000 | # Commands used to build and install a shared archive. |
| 27001 | archive_cmds=$lt_archive_cmds_RC |
| 27002 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 27003 | postinstall_cmds=$lt_postinstall_cmds |
| 27004 | postuninstall_cmds=$lt_postuninstall_cmds |
| 27005 | |
| 27006 | # Commands used to build a loadable module (assumed same as above if empty) |
| 27007 | module_cmds=$lt_module_cmds_RC |
| 27008 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 27009 | |
| 27010 | # Commands to strip libraries. |
| 27011 | old_striplib=$lt_old_striplib |
| 27012 | striplib=$lt_striplib |
| 27013 | |
| 27014 | # Dependencies to place before the objects being linked to create a |
| 27015 | # shared library. |
| 27016 | predep_objects=$lt_predep_objects_RC |
| 27017 | |
| 27018 | # Dependencies to place after the objects being linked to create a |
| 27019 | # shared library. |
| 27020 | postdep_objects=$lt_postdep_objects_RC |
| 27021 | |
| 27022 | # Dependencies to place before the objects being linked to create a |
| 27023 | # shared library. |
| 27024 | predeps=$lt_predeps_RC |
| 27025 | |
| 27026 | # Dependencies to place after the objects being linked to create a |
| 27027 | # shared library. |
| 27028 | postdeps=$lt_postdeps_RC |
| 27029 | |
| 27030 | # The library search path used internally by the compiler when linking |
| 27031 | # a shared library. |
| 27032 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 27033 | |
| 27034 | # Method to check whether dependent libraries are shared objects. |
| 27035 | deplibs_check_method=$lt_deplibs_check_method |
| 27036 | |
| 27037 | # Command to use when deplibs_check_method == file_magic. |
| 27038 | file_magic_cmd=$lt_file_magic_cmd |
| 27039 | |
| 27040 | # Flag that allows shared libraries with undefined symbols to be built. |
| 27041 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 27042 | |
| 27043 | # Flag that forces no undefined symbols. |
| 27044 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 27045 | |
| 27046 | # Commands used to finish a libtool library installation in a directory. |
| 27047 | finish_cmds=$lt_finish_cmds |
| 27048 | |
| 27049 | # Same as above, but a single script fragment to be evaled but not shown. |
| 27050 | finish_eval=$lt_finish_eval |
| 27051 | |
| 27052 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 27053 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 27054 | |
| 27055 | # Transform the output of nm in a proper C declaration |
| 27056 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 27057 | |
| 27058 | # Transform the output of nm in a C name address pair |
| 27059 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 27060 | |
| 27061 | # This is the shared library runtime path variable. |
| 27062 | runpath_var=$runpath_var |
| 27063 | |
| 27064 | # This is the shared library path variable. |
| 27065 | shlibpath_var=$shlibpath_var |
| 27066 | |
| 27067 | # Is shlibpath searched before the hard-coded library search path? |
| 27068 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27069 | |
| 27070 | # How to hardcode a shared library path into an executable. |
| 27071 | hardcode_action=$hardcode_action_RC |
| 27072 | |
| 27073 | # Whether we should hardcode library paths into libraries. |
| 27074 | hardcode_into_libs=$hardcode_into_libs |
| 27075 | |
| 27076 | # Flag to hardcode \$libdir into a binary during linking. |
| 27077 | # This must work even if \$libdir does not exist. |
| 27078 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 27079 | |
| 27080 | # If ld is used when linking, flag to hardcode \$libdir into |
| 27081 | # a binary during linking. This must work even if \$libdir does |
| 27082 | # not exist. |
| 27083 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 27084 | |
| 27085 | # Whether we need a single -rpath flag with a separated argument. |
| 27086 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 27087 | |
| 27088 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 27089 | # resulting binary. |
| 27090 | hardcode_direct=$hardcode_direct_RC |
| 27091 | |
| 27092 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 27093 | # resulting binary. |
| 27094 | hardcode_minus_L=$hardcode_minus_L_RC |
| 27095 | |
| 27096 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 27097 | # the resulting binary. |
| 27098 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 27099 | |
| 27100 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 27101 | # and all subsequent libraries and executables linked against it. |
| 27102 | hardcode_automatic=$hardcode_automatic_RC |
| 27103 | |
| 27104 | # Variables whose values should be saved in libtool wrapper scripts and |
| 27105 | # restored at relink time. |
| 27106 | variables_saved_for_relink="$variables_saved_for_relink" |
| 27107 | |
| 27108 | # Whether libtool must link a program against all its dependency libraries. |
| 27109 | link_all_deplibs=$link_all_deplibs_RC |
| 27110 | |
| 27111 | # Compile-time system search path for libraries |
| 27112 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27113 | |
| 27114 | # Run-time system search path for libraries |
| 27115 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 27116 | |
| 27117 | # Fix the shell variable \$srcfile for the compiler. |
| 27118 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 27119 | |
| 27120 | # Set to yes if exported symbols are required. |
| 27121 | always_export_symbols=$always_export_symbols_RC |
| 27122 | |
| 27123 | # The commands to list exported symbols. |
| 27124 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 27125 | |
| 27126 | # The commands to extract the exported symbol list from a shared archive. |
| 27127 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27128 | |
| 27129 | # Symbols that should not be listed in the preloaded symbols. |
| 27130 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 27131 | |
| 27132 | # Symbols that must always be exported. |
| 27133 | include_expsyms=$lt_include_expsyms_RC |
| 27134 | |
| 27135 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 27136 | |
| 27137 | __EOF__ |
| 27138 | |
| 27139 | |
| 27140 | else |
| 27141 | # If there is no Makefile yet, we rely on a make rule to execute |
| 27142 | # `config.status --recheck' to rerun these tests and create the |
| 27143 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27144 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 27145 | if test -f "$ltmain_in"; then |
| 27146 | test -f Makefile && make "$ltmain" |
| 27147 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27148 | fi |
| 27149 | |
| 27150 | |
| 27151 | ac_ext=c |
| 27152 | ac_cpp='$CPP $CPPFLAGS' |
| 27153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27156 | |
| 27157 | CC="$lt_save_CC" |
| 27158 | |
| 27159 | ;; |
| 27160 | |
| 27161 | *) |
| 27162 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 27163 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 27164 | { (exit 1); exit 1; }; } |
| 27165 | ;; |
| 27166 | esac |
| 27167 | |
| 27168 | # Append the new tag name to the list of available tags. |
| 27169 | if test -n "$tagname" ; then |
| 27170 | available_tags="$available_tags $tagname" |
| 27171 | fi |
| 27172 | fi |
| 27173 | done |
| 27174 | IFS="$lt_save_ifs" |
| 27175 | |
| 27176 | # Now substitute the updated list of available tags. |
| 27177 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 27178 | mv "${ofile}T" "$ofile" |
| 27179 | chmod +x "$ofile" |
| 27180 | else |
| 27181 | rm -f "${ofile}T" |
| 27182 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 27183 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 27184 | { (exit 1); exit 1; }; } |
| 27185 | fi |
| 27186 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27187 | |
| 27188 | |
| 27189 | |
| 27190 | # This can be used to rebuild libtool when needed |
| 27191 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 27192 | |
| 27193 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27194 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27195 | |
| 27196 | # Prevent multiple expansion |
| 27197 | |
| 27198 | |
| 27199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27200 | |
| 27201 | |
| 27202 | |
| 27203 | |
| 27204 | |
| 27205 | |
| 27206 | |
| 27207 | |
| 27208 | |
| 27209 | |
| 27210 | |
| 27211 | |
| 27212 | |
| 27213 | |
| 27214 | |
| 27215 | |
| 27216 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27217 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27218 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 27219 | |
| 27220 | cat >>confdefs.h <<\_ACEOF |
| 27221 | #define CAN_DLOPEN_SELF 1 |
| 27222 | _ACEOF |
| 27223 | |
| 27224 | fi |
| 27225 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 27226 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27227 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27228 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 27229 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27230 | LLVMGCCCOMMAND="$LLVMGCC" |
| 27231 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27232 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27233 | |
| 27234 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27235 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27236 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 27237 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27240 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 27241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27242 | else |
| 27243 | case $LLVMGCC in |
| 27244 | [\\/]* | ?:[\\/]*) |
| 27245 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 27246 | ;; |
| 27247 | *) |
| 27248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27249 | for as_dir in $PATH |
| 27250 | do |
| 27251 | IFS=$as_save_IFS |
| 27252 | test -z "$as_dir" && as_dir=. |
| 27253 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27254 | 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] | 27255 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 27256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27257 | break 2 |
| 27258 | fi |
| 27259 | done |
| 27260 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27261 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27262 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27263 | ;; |
| 27264 | esac |
| 27265 | fi |
| 27266 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27267 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27268 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 27269 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27270 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27271 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27272 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27273 | fi |
| 27274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27275 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27276 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 27277 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27280 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 27281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27282 | else |
| 27283 | case $LLVMGXX in |
| 27284 | [\\/]* | ?:[\\/]*) |
| 27285 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 27286 | ;; |
| 27287 | *) |
| 27288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27289 | for as_dir in $PATH |
| 27290 | do |
| 27291 | IFS=$as_save_IFS |
| 27292 | test -z "$as_dir" && as_dir=. |
| 27293 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27294 | 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] | 27295 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 27296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27297 | break 2 |
| 27298 | fi |
| 27299 | done |
| 27300 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27301 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27302 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27303 | ;; |
| 27304 | esac |
| 27305 | fi |
| 27306 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27307 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27308 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 27309 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27310 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27311 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27312 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27313 | fi |
| 27314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27315 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27316 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27317 | if test -z "$LLVMGCC"; then |
| 27318 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27319 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27320 | fi |
| 27321 | if test -z "$LLVMGXX"; then |
| 27322 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27323 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27324 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27325 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27326 | LLVMGCC=$LLVMGCC |
| 27327 | |
| 27328 | LLVMGXX=$LLVMGXX |
| 27329 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27330 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27331 | |
| 27332 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27333 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27334 | fi |
| 27335 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27337 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 27338 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27339 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27340 | ICC=no |
| 27341 | IXX=no |
| 27342 | case $CC in |
| 27343 | icc*|icpc*) |
| 27344 | ICC=yes |
| 27345 | IXX=yes |
| 27346 | ;; |
| 27347 | *) |
| 27348 | ;; |
| 27349 | esac |
| 27350 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27351 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27352 | then |
| 27353 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27354 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27355 | { (exit 1); exit 1; }; } |
| 27356 | fi |
| 27357 | |
| 27358 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27359 | then |
| 27360 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27361 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27362 | { (exit 1); exit 1; }; } |
| 27363 | fi |
| 27364 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27365 | if test "$GCC" = "yes" |
| 27366 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27367 | cat >conftest.$ac_ext <<_ACEOF |
| 27368 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27369 | #error Unsupported GCC version |
| 27370 | #endif |
| 27371 | |
| 27372 | _ACEOF |
| 27373 | rm -f conftest.$ac_objext |
| 27374 | if { (ac_try="$ac_compile" |
| 27375 | case "(($ac_try" in |
| 27376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27377 | *) ac_try_echo=$ac_try;; |
| 27378 | esac |
| 27379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27380 | (eval "$ac_compile") 2>conftest.er1 |
| 27381 | ac_status=$? |
| 27382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27383 | rm -f conftest.er1 |
| 27384 | cat conftest.err >&5 |
| 27385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27386 | (exit $ac_status); } && |
| 27387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27388 | { (case "(($ac_try" in |
| 27389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27390 | *) ac_try_echo=$ac_try;; |
| 27391 | esac |
| 27392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27393 | (eval "$ac_try") 2>&5 |
| 27394 | ac_status=$? |
| 27395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27396 | (exit $ac_status); }; } && |
| 27397 | { ac_try='test -s conftest.$ac_objext' |
| 27398 | { (case "(($ac_try" in |
| 27399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27400 | *) ac_try_echo=$ac_try;; |
| 27401 | esac |
| 27402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27403 | (eval "$ac_try") 2>&5 |
| 27404 | ac_status=$? |
| 27405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27406 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27407 | : |
| 27408 | else |
| 27409 | echo "$as_me: failed program was:" >&5 |
| 27410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27411 | |
| 27412 | { { 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] | 27413 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27414 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27415 | fi |
| 27416 | |
| 27417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27418 | fi |
| 27419 | |
| 27420 | if test -z "$llvm_cv_gnu_make_command" |
| 27421 | then |
| 27422 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27423 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27424 | { (exit 1); exit 1; }; } |
| 27425 | fi |
| 27426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27427 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27428 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27429 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 27430 | |
| 27431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27432 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27433 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27434 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27436 | else |
| 27437 | ac_check_lib_save_LIBS=$LIBS |
| 27438 | LIBS="-lm $LIBS" |
| 27439 | cat >conftest.$ac_ext <<_ACEOF |
| 27440 | /* confdefs.h. */ |
| 27441 | _ACEOF |
| 27442 | cat confdefs.h >>conftest.$ac_ext |
| 27443 | cat >>conftest.$ac_ext <<_ACEOF |
| 27444 | /* end confdefs.h. */ |
| 27445 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27446 | /* Override any GCC internal prototype to avoid an error. |
| 27447 | Use char because int might match the return type of a GCC |
| 27448 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27449 | #ifdef __cplusplus |
| 27450 | extern "C" |
| 27451 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27452 | char sin (); |
| 27453 | int |
| 27454 | main () |
| 27455 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27456 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27457 | ; |
| 27458 | return 0; |
| 27459 | } |
| 27460 | _ACEOF |
| 27461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27462 | if { (ac_try="$ac_link" |
| 27463 | case "(($ac_try" in |
| 27464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27465 | *) ac_try_echo=$ac_try;; |
| 27466 | esac |
| 27467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27468 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27469 | ac_status=$? |
| 27470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27471 | rm -f conftest.er1 |
| 27472 | cat conftest.err >&5 |
| 27473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27474 | (exit $ac_status); } && |
| 27475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27476 | { (case "(($ac_try" in |
| 27477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27478 | *) ac_try_echo=$ac_try;; |
| 27479 | esac |
| 27480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27481 | (eval "$ac_try") 2>&5 |
| 27482 | ac_status=$? |
| 27483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27484 | (exit $ac_status); }; } && |
| 27485 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27495 | ac_cv_lib_m_sin=yes |
| 27496 | else |
| 27497 | echo "$as_me: failed program was:" >&5 |
| 27498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27500 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27501 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27502 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27503 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27504 | conftest$ac_exeext conftest.$ac_ext |
| 27505 | LIBS=$ac_check_lib_save_LIBS |
| 27506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27507 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27508 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27509 | if test $ac_cv_lib_m_sin = yes; then |
| 27510 | cat >>confdefs.h <<_ACEOF |
| 27511 | #define HAVE_LIBM 1 |
| 27512 | _ACEOF |
| 27513 | |
| 27514 | LIBS="-lm $LIBS" |
| 27515 | |
| 27516 | fi |
| 27517 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27518 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27520 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27521 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27522 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27524 | else |
| 27525 | ac_check_lib_save_LIBS=$LIBS |
| 27526 | LIBS="-limagehlp $LIBS" |
| 27527 | cat >conftest.$ac_ext <<_ACEOF |
| 27528 | /* confdefs.h. */ |
| 27529 | _ACEOF |
| 27530 | cat confdefs.h >>conftest.$ac_ext |
| 27531 | cat >>conftest.$ac_ext <<_ACEOF |
| 27532 | /* end confdefs.h. */ |
| 27533 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27534 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27535 | int |
| 27536 | main () |
| 27537 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27538 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27539 | ; |
| 27540 | return 0; |
| 27541 | } |
| 27542 | _ACEOF |
| 27543 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27544 | if { (ac_try="$ac_link" |
| 27545 | case "(($ac_try" in |
| 27546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27547 | *) ac_try_echo=$ac_try;; |
| 27548 | esac |
| 27549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27550 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27551 | ac_status=$? |
| 27552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27553 | rm -f conftest.er1 |
| 27554 | cat conftest.err >&5 |
| 27555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27556 | (exit $ac_status); } && |
| 27557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27558 | { (case "(($ac_try" in |
| 27559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27560 | *) ac_try_echo=$ac_try;; |
| 27561 | esac |
| 27562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27563 | (eval "$ac_try") 2>&5 |
| 27564 | ac_status=$? |
| 27565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27566 | (exit $ac_status); }; } && |
| 27567 | { ac_try='test -s conftest$ac_exeext' |
| 27568 | { (case "(($ac_try" in |
| 27569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27570 | *) ac_try_echo=$ac_try;; |
| 27571 | esac |
| 27572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27573 | (eval "$ac_try") 2>&5 |
| 27574 | ac_status=$? |
| 27575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27576 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27577 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27578 | else |
| 27579 | echo "$as_me: failed program was:" >&5 |
| 27580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27582 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27583 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27584 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27585 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27586 | conftest$ac_exeext conftest.$ac_ext |
| 27587 | LIBS=$ac_check_lib_save_LIBS |
| 27588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27589 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27590 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27591 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27592 | cat >>confdefs.h <<_ACEOF |
| 27593 | #define HAVE_LIBIMAGEHLP 1 |
| 27594 | _ACEOF |
| 27595 | |
| 27596 | LIBS="-limagehlp $LIBS" |
| 27597 | |
| 27598 | fi |
| 27599 | |
| 27600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27601 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27602 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27603 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27605 | else |
| 27606 | ac_check_lib_save_LIBS=$LIBS |
| 27607 | LIBS="-lpsapi $LIBS" |
| 27608 | cat >conftest.$ac_ext <<_ACEOF |
| 27609 | /* confdefs.h. */ |
| 27610 | _ACEOF |
| 27611 | cat confdefs.h >>conftest.$ac_ext |
| 27612 | cat >>conftest.$ac_ext <<_ACEOF |
| 27613 | /* end confdefs.h. */ |
| 27614 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27615 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27616 | int |
| 27617 | main () |
| 27618 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27619 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27620 | ; |
| 27621 | return 0; |
| 27622 | } |
| 27623 | _ACEOF |
| 27624 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27625 | if { (ac_try="$ac_link" |
| 27626 | case "(($ac_try" in |
| 27627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27628 | *) ac_try_echo=$ac_try;; |
| 27629 | esac |
| 27630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27631 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27632 | ac_status=$? |
| 27633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27634 | rm -f conftest.er1 |
| 27635 | cat conftest.err >&5 |
| 27636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27637 | (exit $ac_status); } && |
| 27638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27639 | { (case "(($ac_try" in |
| 27640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27641 | *) ac_try_echo=$ac_try;; |
| 27642 | esac |
| 27643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27644 | (eval "$ac_try") 2>&5 |
| 27645 | ac_status=$? |
| 27646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27647 | (exit $ac_status); }; } && |
| 27648 | { ac_try='test -s conftest$ac_exeext' |
| 27649 | { (case "(($ac_try" in |
| 27650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27651 | *) ac_try_echo=$ac_try;; |
| 27652 | esac |
| 27653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27654 | (eval "$ac_try") 2>&5 |
| 27655 | ac_status=$? |
| 27656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27657 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27658 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27659 | else |
| 27660 | echo "$as_me: failed program was:" >&5 |
| 27661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27663 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27665 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27666 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27667 | conftest$ac_exeext conftest.$ac_ext |
| 27668 | LIBS=$ac_check_lib_save_LIBS |
| 27669 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27670 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27671 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27672 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27673 | cat >>confdefs.h <<_ACEOF |
| 27674 | #define HAVE_LIBPSAPI 1 |
| 27675 | _ACEOF |
| 27676 | |
| 27677 | LIBS="-lpsapi $LIBS" |
| 27678 | |
| 27679 | fi |
| 27680 | |
| 27681 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27683 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27684 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27685 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27687 | else |
| 27688 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27689 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27690 | /* confdefs.h. */ |
| 27691 | _ACEOF |
| 27692 | cat confdefs.h >>conftest.$ac_ext |
| 27693 | cat >>conftest.$ac_ext <<_ACEOF |
| 27694 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27696 | /* Override any GCC internal prototype to avoid an error. |
| 27697 | Use char because int might match the return type of a GCC |
| 27698 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27699 | #ifdef __cplusplus |
| 27700 | extern "C" |
| 27701 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27702 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27703 | int |
| 27704 | main () |
| 27705 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27706 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27707 | ; |
| 27708 | return 0; |
| 27709 | } |
| 27710 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27711 | for ac_lib in '' dl; do |
| 27712 | if test -z "$ac_lib"; then |
| 27713 | ac_res="none required" |
| 27714 | else |
| 27715 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27716 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27717 | fi |
| 27718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27719 | if { (ac_try="$ac_link" |
| 27720 | case "(($ac_try" in |
| 27721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27722 | *) ac_try_echo=$ac_try;; |
| 27723 | esac |
| 27724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27725 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27726 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27728 | rm -f conftest.er1 |
| 27729 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27731 | (exit $ac_status); } && |
| 27732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27733 | { (case "(($ac_try" in |
| 27734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27735 | *) ac_try_echo=$ac_try;; |
| 27736 | esac |
| 27737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27738 | (eval "$ac_try") 2>&5 |
| 27739 | ac_status=$? |
| 27740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27741 | (exit $ac_status); }; } && |
| 27742 | { ac_try='test -s conftest$ac_exeext' |
| 27743 | { (case "(($ac_try" in |
| 27744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27745 | *) ac_try_echo=$ac_try;; |
| 27746 | esac |
| 27747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27748 | (eval "$ac_try") 2>&5 |
| 27749 | ac_status=$? |
| 27750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27751 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27752 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27753 | else |
| 27754 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27758 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27759 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27760 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27761 | conftest$ac_exeext |
| 27762 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27763 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27764 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27765 | done |
| 27766 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27767 | : |
| 27768 | else |
| 27769 | ac_cv_search_dlopen=no |
| 27770 | fi |
| 27771 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27772 | LIBS=$ac_func_search_save_LIBS |
| 27773 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27774 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27775 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27776 | ac_res=$ac_cv_search_dlopen |
| 27777 | if test "$ac_res" != no; then |
| 27778 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27779 | |
| 27780 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27781 | #define HAVE_DLOPEN 1 |
| 27782 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27783 | |
| 27784 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27785 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27786 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27787 | fi |
| 27788 | |
| 27789 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27790 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 27791 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27792 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 27793 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27795 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27796 | ac_func_search_save_LIBS=$LIBS |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27797 | cat >conftest.$ac_ext <<_ACEOF |
| 27798 | /* confdefs.h. */ |
| 27799 | _ACEOF |
| 27800 | cat confdefs.h >>conftest.$ac_ext |
| 27801 | cat >>conftest.$ac_ext <<_ACEOF |
| 27802 | /* end confdefs.h. */ |
| 27803 | |
| 27804 | /* Override any GCC internal prototype to avoid an error. |
| 27805 | Use char because int might match the return type of a GCC |
| 27806 | builtin and then its argument prototype would still apply. */ |
| 27807 | #ifdef __cplusplus |
| 27808 | extern "C" |
| 27809 | #endif |
| 27810 | char ffi_call (); |
| 27811 | int |
| 27812 | main () |
| 27813 | { |
| 27814 | return ffi_call (); |
| 27815 | ; |
| 27816 | return 0; |
| 27817 | } |
| 27818 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27819 | for ac_lib in '' ffi; do |
| 27820 | if test -z "$ac_lib"; then |
| 27821 | ac_res="none required" |
| 27822 | else |
| 27823 | ac_res=-l$ac_lib |
| 27824 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 27825 | fi |
| 27826 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27827 | if { (ac_try="$ac_link" |
| 27828 | case "(($ac_try" in |
| 27829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27830 | *) ac_try_echo=$ac_try;; |
| 27831 | esac |
| 27832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27833 | (eval "$ac_link") 2>conftest.er1 |
| 27834 | ac_status=$? |
| 27835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27836 | rm -f conftest.er1 |
| 27837 | cat conftest.err >&5 |
| 27838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27839 | (exit $ac_status); } && |
| 27840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27841 | { (case "(($ac_try" in |
| 27842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27843 | *) ac_try_echo=$ac_try;; |
| 27844 | esac |
| 27845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27846 | (eval "$ac_try") 2>&5 |
| 27847 | ac_status=$? |
| 27848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27849 | (exit $ac_status); }; } && |
| 27850 | { ac_try='test -s conftest$ac_exeext' |
| 27851 | { (case "(($ac_try" in |
| 27852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27853 | *) ac_try_echo=$ac_try;; |
| 27854 | esac |
| 27855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27856 | (eval "$ac_try") 2>&5 |
| 27857 | ac_status=$? |
| 27858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27859 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27860 | ac_cv_search_ffi_call=$ac_res |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27861 | else |
| 27862 | echo "$as_me: failed program was:" >&5 |
| 27863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27864 | |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27865 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27866 | fi |
| 27867 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27868 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27869 | conftest$ac_exeext |
| 27870 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27871 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27872 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27873 | done |
| 27874 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27875 | : |
| 27876 | else |
| 27877 | ac_cv_search_ffi_call=no |
| 27878 | fi |
| 27879 | rm conftest.$ac_ext |
| 27880 | LIBS=$ac_func_search_save_LIBS |
| 27881 | fi |
| 27882 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 27883 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
| 27884 | ac_res=$ac_cv_search_ffi_call |
| 27885 | if test "$ac_res" != no; then |
| 27886 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 27887 | |
| 27888 | cat >>confdefs.h <<\_ACEOF |
| 27889 | #define HAVE_FFI_CALL 1 |
| 27890 | _ACEOF |
| 27891 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27892 | else |
| 27893 | { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 27894 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
| 27895 | fi |
| 27896 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27897 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27899 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27900 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27901 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27903 | else |
| 27904 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27905 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27906 | /* confdefs.h. */ |
| 27907 | _ACEOF |
| 27908 | cat confdefs.h >>conftest.$ac_ext |
| 27909 | cat >>conftest.$ac_ext <<_ACEOF |
| 27910 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27912 | /* Override any GCC internal prototype to avoid an error. |
| 27913 | Use char because int might match the return type of a GCC |
| 27914 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27915 | #ifdef __cplusplus |
| 27916 | extern "C" |
| 27917 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27918 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27919 | int |
| 27920 | main () |
| 27921 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27922 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27923 | ; |
| 27924 | return 0; |
| 27925 | } |
| 27926 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27927 | for ac_lib in '' malloc; do |
| 27928 | if test -z "$ac_lib"; then |
| 27929 | ac_res="none required" |
| 27930 | else |
| 27931 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27932 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27933 | fi |
| 27934 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27935 | if { (ac_try="$ac_link" |
| 27936 | case "(($ac_try" in |
| 27937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27938 | *) ac_try_echo=$ac_try;; |
| 27939 | esac |
| 27940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27941 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27942 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27944 | rm -f conftest.er1 |
| 27945 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27947 | (exit $ac_status); } && |
| 27948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27949 | { (case "(($ac_try" in |
| 27950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27951 | *) ac_try_echo=$ac_try;; |
| 27952 | esac |
| 27953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27954 | (eval "$ac_try") 2>&5 |
| 27955 | ac_status=$? |
| 27956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27957 | (exit $ac_status); }; } && |
| 27958 | { ac_try='test -s conftest$ac_exeext' |
| 27959 | { (case "(($ac_try" in |
| 27960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27961 | *) ac_try_echo=$ac_try;; |
| 27962 | esac |
| 27963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27964 | (eval "$ac_try") 2>&5 |
| 27965 | ac_status=$? |
| 27966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27967 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27968 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27969 | else |
| 27970 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27973 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27975 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27976 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27977 | conftest$ac_exeext |
| 27978 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27979 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27980 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27981 | done |
| 27982 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27983 | : |
| 27984 | else |
| 27985 | ac_cv_search_mallinfo=no |
| 27986 | fi |
| 27987 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27988 | LIBS=$ac_func_search_save_LIBS |
| 27989 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27990 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27991 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27992 | ac_res=$ac_cv_search_mallinfo |
| 27993 | if test "$ac_res" != no; then |
| 27994 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27995 | |
| 27996 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27997 | #define HAVE_MALLINFO 1 |
| 27998 | _ACEOF |
| 27999 | |
| 28000 | fi |
| 28001 | |
| 28002 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28003 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28005 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 28006 | 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] | 28007 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 28008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28009 | else |
| 28010 | ac_check_lib_save_LIBS=$LIBS |
| 28011 | LIBS="-lpthread $LIBS" |
| 28012 | cat >conftest.$ac_ext <<_ACEOF |
| 28013 | /* confdefs.h. */ |
| 28014 | _ACEOF |
| 28015 | cat confdefs.h >>conftest.$ac_ext |
| 28016 | cat >>conftest.$ac_ext <<_ACEOF |
| 28017 | /* end confdefs.h. */ |
| 28018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28019 | /* Override any GCC internal prototype to avoid an error. |
| 28020 | Use char because int might match the return type of a GCC |
| 28021 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28022 | #ifdef __cplusplus |
| 28023 | extern "C" |
| 28024 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28025 | char pthread_mutex_init (); |
| 28026 | int |
| 28027 | main () |
| 28028 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28029 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28030 | ; |
| 28031 | return 0; |
| 28032 | } |
| 28033 | _ACEOF |
| 28034 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28035 | if { (ac_try="$ac_link" |
| 28036 | case "(($ac_try" in |
| 28037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28038 | *) ac_try_echo=$ac_try;; |
| 28039 | esac |
| 28040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28041 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28042 | ac_status=$? |
| 28043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28044 | rm -f conftest.er1 |
| 28045 | cat conftest.err >&5 |
| 28046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28047 | (exit $ac_status); } && |
| 28048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28049 | { (case "(($ac_try" in |
| 28050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28051 | *) ac_try_echo=$ac_try;; |
| 28052 | esac |
| 28053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28054 | (eval "$ac_try") 2>&5 |
| 28055 | ac_status=$? |
| 28056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28057 | (exit $ac_status); }; } && |
| 28058 | { ac_try='test -s conftest$ac_exeext' |
| 28059 | { (case "(($ac_try" in |
| 28060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28061 | *) ac_try_echo=$ac_try;; |
| 28062 | esac |
| 28063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28064 | (eval "$ac_try") 2>&5 |
| 28065 | ac_status=$? |
| 28066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28067 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28068 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 28069 | else |
| 28070 | echo "$as_me: failed program was:" >&5 |
| 28071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28073 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28075 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28076 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28077 | conftest$ac_exeext conftest.$ac_ext |
| 28078 | LIBS=$ac_check_lib_save_LIBS |
| 28079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28080 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 28081 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28082 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 28083 | cat >>confdefs.h <<_ACEOF |
| 28084 | #define HAVE_LIBPTHREAD 1 |
| 28085 | _ACEOF |
| 28086 | |
| 28087 | LIBS="-lpthread $LIBS" |
| 28088 | |
| 28089 | fi |
| 28090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28091 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 28092 | 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] | 28093 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28095 | else |
| 28096 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28097 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28098 | /* confdefs.h. */ |
| 28099 | _ACEOF |
| 28100 | cat confdefs.h >>conftest.$ac_ext |
| 28101 | cat >>conftest.$ac_ext <<_ACEOF |
| 28102 | /* end confdefs.h. */ |
| 28103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28104 | /* Override any GCC internal prototype to avoid an error. |
| 28105 | Use char because int might match the return type of a GCC |
| 28106 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28107 | #ifdef __cplusplus |
| 28108 | extern "C" |
| 28109 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28110 | char pthread_mutex_lock (); |
| 28111 | int |
| 28112 | main () |
| 28113 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28114 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28115 | ; |
| 28116 | return 0; |
| 28117 | } |
| 28118 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28119 | for ac_lib in '' pthread; do |
| 28120 | if test -z "$ac_lib"; then |
| 28121 | ac_res="none required" |
| 28122 | else |
| 28123 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28124 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28125 | fi |
| 28126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28127 | if { (ac_try="$ac_link" |
| 28128 | case "(($ac_try" in |
| 28129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28130 | *) ac_try_echo=$ac_try;; |
| 28131 | esac |
| 28132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28133 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28134 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28136 | rm -f conftest.er1 |
| 28137 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28139 | (exit $ac_status); } && |
| 28140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28141 | { (case "(($ac_try" in |
| 28142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28143 | *) ac_try_echo=$ac_try;; |
| 28144 | esac |
| 28145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28146 | (eval "$ac_try") 2>&5 |
| 28147 | ac_status=$? |
| 28148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28149 | (exit $ac_status); }; } && |
| 28150 | { ac_try='test -s conftest$ac_exeext' |
| 28151 | { (case "(($ac_try" in |
| 28152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28153 | *) ac_try_echo=$ac_try;; |
| 28154 | esac |
| 28155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28156 | (eval "$ac_try") 2>&5 |
| 28157 | ac_status=$? |
| 28158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28159 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28160 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28161 | else |
| 28162 | echo "$as_me: failed program was:" >&5 |
| 28163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28165 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28166 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28167 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28168 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28169 | conftest$ac_exeext |
| 28170 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28171 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28173 | done |
| 28174 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28175 | : |
| 28176 | else |
| 28177 | ac_cv_search_pthread_mutex_lock=no |
| 28178 | fi |
| 28179 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28180 | LIBS=$ac_func_search_save_LIBS |
| 28181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28182 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 28183 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 28184 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 28185 | if test "$ac_res" != no; then |
| 28186 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28187 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28188 | cat >>confdefs.h <<\_ACEOF |
| 28189 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 28190 | _ACEOF |
| 28191 | |
| 28192 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28193 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 28194 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 28195 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 28196 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28198 | else |
| 28199 | ac_func_search_save_LIBS=$LIBS |
| 28200 | cat >conftest.$ac_ext <<_ACEOF |
| 28201 | /* confdefs.h. */ |
| 28202 | _ACEOF |
| 28203 | cat confdefs.h >>conftest.$ac_ext |
| 28204 | cat >>conftest.$ac_ext <<_ACEOF |
| 28205 | /* end confdefs.h. */ |
| 28206 | |
| 28207 | /* Override any GCC internal prototype to avoid an error. |
| 28208 | Use char because int might match the return type of a GCC |
| 28209 | builtin and then its argument prototype would still apply. */ |
| 28210 | #ifdef __cplusplus |
| 28211 | extern "C" |
| 28212 | #endif |
| 28213 | char pthread_rwlock_init (); |
| 28214 | int |
| 28215 | main () |
| 28216 | { |
| 28217 | return pthread_rwlock_init (); |
| 28218 | ; |
| 28219 | return 0; |
| 28220 | } |
| 28221 | _ACEOF |
| 28222 | for ac_lib in '' pthread; do |
| 28223 | if test -z "$ac_lib"; then |
| 28224 | ac_res="none required" |
| 28225 | else |
| 28226 | ac_res=-l$ac_lib |
| 28227 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28228 | fi |
| 28229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28230 | if { (ac_try="$ac_link" |
| 28231 | case "(($ac_try" in |
| 28232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28233 | *) ac_try_echo=$ac_try;; |
| 28234 | esac |
| 28235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28236 | (eval "$ac_link") 2>conftest.er1 |
| 28237 | ac_status=$? |
| 28238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28239 | rm -f conftest.er1 |
| 28240 | cat conftest.err >&5 |
| 28241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28242 | (exit $ac_status); } && |
| 28243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28244 | { (case "(($ac_try" in |
| 28245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28246 | *) ac_try_echo=$ac_try;; |
| 28247 | esac |
| 28248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28249 | (eval "$ac_try") 2>&5 |
| 28250 | ac_status=$? |
| 28251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28252 | (exit $ac_status); }; } && |
| 28253 | { ac_try='test -s conftest$ac_exeext' |
| 28254 | { (case "(($ac_try" in |
| 28255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28256 | *) ac_try_echo=$ac_try;; |
| 28257 | esac |
| 28258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28259 | (eval "$ac_try") 2>&5 |
| 28260 | ac_status=$? |
| 28261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28262 | (exit $ac_status); }; }; then |
| 28263 | ac_cv_search_pthread_rwlock_init=$ac_res |
| 28264 | else |
| 28265 | echo "$as_me: failed program was:" >&5 |
| 28266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28267 | |
| 28268 | |
| 28269 | fi |
| 28270 | |
| 28271 | rm -f core conftest.err conftest.$ac_objext \ |
| 28272 | conftest$ac_exeext |
| 28273 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28274 | break |
| 28275 | fi |
| 28276 | done |
| 28277 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28278 | : |
| 28279 | else |
| 28280 | ac_cv_search_pthread_rwlock_init=no |
| 28281 | fi |
| 28282 | rm conftest.$ac_ext |
| 28283 | LIBS=$ac_func_search_save_LIBS |
| 28284 | fi |
| 28285 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 28286 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
| 28287 | ac_res=$ac_cv_search_pthread_rwlock_init |
| 28288 | if test "$ac_res" != no; then |
| 28289 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28290 | |
| 28291 | cat >>confdefs.h <<\_ACEOF |
| 28292 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 28293 | _ACEOF |
| 28294 | |
| 28295 | fi |
| 28296 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 28297 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 28298 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 28299 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28301 | else |
| 28302 | ac_func_search_save_LIBS=$LIBS |
| 28303 | cat >conftest.$ac_ext <<_ACEOF |
| 28304 | /* confdefs.h. */ |
| 28305 | _ACEOF |
| 28306 | cat confdefs.h >>conftest.$ac_ext |
| 28307 | cat >>conftest.$ac_ext <<_ACEOF |
| 28308 | /* end confdefs.h. */ |
| 28309 | |
| 28310 | /* Override any GCC internal prototype to avoid an error. |
| 28311 | Use char because int might match the return type of a GCC |
| 28312 | builtin and then its argument prototype would still apply. */ |
| 28313 | #ifdef __cplusplus |
| 28314 | extern "C" |
| 28315 | #endif |
| 28316 | char pthread_getspecific (); |
| 28317 | int |
| 28318 | main () |
| 28319 | { |
| 28320 | return pthread_getspecific (); |
| 28321 | ; |
| 28322 | return 0; |
| 28323 | } |
| 28324 | _ACEOF |
| 28325 | for ac_lib in '' pthread; do |
| 28326 | if test -z "$ac_lib"; then |
| 28327 | ac_res="none required" |
| 28328 | else |
| 28329 | ac_res=-l$ac_lib |
| 28330 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28331 | fi |
| 28332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28333 | if { (ac_try="$ac_link" |
| 28334 | case "(($ac_try" in |
| 28335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28336 | *) ac_try_echo=$ac_try;; |
| 28337 | esac |
| 28338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28339 | (eval "$ac_link") 2>conftest.er1 |
| 28340 | ac_status=$? |
| 28341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28342 | rm -f conftest.er1 |
| 28343 | cat conftest.err >&5 |
| 28344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28345 | (exit $ac_status); } && |
| 28346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28347 | { (case "(($ac_try" in |
| 28348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28349 | *) ac_try_echo=$ac_try;; |
| 28350 | esac |
| 28351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28352 | (eval "$ac_try") 2>&5 |
| 28353 | ac_status=$? |
| 28354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28355 | (exit $ac_status); }; } && |
| 28356 | { ac_try='test -s conftest$ac_exeext' |
| 28357 | { (case "(($ac_try" in |
| 28358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28359 | *) ac_try_echo=$ac_try;; |
| 28360 | esac |
| 28361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28362 | (eval "$ac_try") 2>&5 |
| 28363 | ac_status=$? |
| 28364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28365 | (exit $ac_status); }; }; then |
| 28366 | ac_cv_search_pthread_getspecific=$ac_res |
| 28367 | else |
| 28368 | echo "$as_me: failed program was:" >&5 |
| 28369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28370 | |
| 28371 | |
| 28372 | fi |
| 28373 | |
| 28374 | rm -f core conftest.err conftest.$ac_objext \ |
| 28375 | conftest$ac_exeext |
| 28376 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28377 | break |
| 28378 | fi |
| 28379 | done |
| 28380 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28381 | : |
| 28382 | else |
| 28383 | ac_cv_search_pthread_getspecific=no |
| 28384 | fi |
| 28385 | rm conftest.$ac_ext |
| 28386 | LIBS=$ac_func_search_save_LIBS |
| 28387 | fi |
| 28388 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 28389 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
| 28390 | ac_res=$ac_cv_search_pthread_getspecific |
| 28391 | if test "$ac_res" != no; then |
| 28392 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28393 | |
| 28394 | cat >>confdefs.h <<\_ACEOF |
| 28395 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 28396 | _ACEOF |
| 28397 | |
| 28398 | fi |
| 28399 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28400 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28401 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28402 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28403 | # Check whether --with-udis86 was given. |
| 28404 | if test "${with_udis86+set}" = set; then |
| 28405 | withval=$with_udis86; |
| 28406 | USE_UDIS86=1 |
| 28407 | |
| 28408 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28409 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28410 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 28411 | esac |
| 28412 | |
| 28413 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 28414 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 28415 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 28416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28417 | else |
| 28418 | ac_check_lib_save_LIBS=$LIBS |
| 28419 | LIBS="-ludis86 $LIBS" |
| 28420 | cat >conftest.$ac_ext <<_ACEOF |
| 28421 | /* confdefs.h. */ |
| 28422 | _ACEOF |
| 28423 | cat confdefs.h >>conftest.$ac_ext |
| 28424 | cat >>conftest.$ac_ext <<_ACEOF |
| 28425 | /* end confdefs.h. */ |
| 28426 | |
| 28427 | /* Override any GCC internal prototype to avoid an error. |
| 28428 | Use char because int might match the return type of a GCC |
| 28429 | builtin and then its argument prototype would still apply. */ |
| 28430 | #ifdef __cplusplus |
| 28431 | extern "C" |
| 28432 | #endif |
| 28433 | char ud_init (); |
| 28434 | int |
| 28435 | main () |
| 28436 | { |
| 28437 | return ud_init (); |
| 28438 | ; |
| 28439 | return 0; |
| 28440 | } |
| 28441 | _ACEOF |
| 28442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28443 | if { (ac_try="$ac_link" |
| 28444 | case "(($ac_try" in |
| 28445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28446 | *) ac_try_echo=$ac_try;; |
| 28447 | esac |
| 28448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28449 | (eval "$ac_link") 2>conftest.er1 |
| 28450 | ac_status=$? |
| 28451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28452 | rm -f conftest.er1 |
| 28453 | cat conftest.err >&5 |
| 28454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28455 | (exit $ac_status); } && |
| 28456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28457 | { (case "(($ac_try" in |
| 28458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28459 | *) ac_try_echo=$ac_try;; |
| 28460 | esac |
| 28461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28462 | (eval "$ac_try") 2>&5 |
| 28463 | ac_status=$? |
| 28464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28465 | (exit $ac_status); }; } && |
| 28466 | { ac_try='test -s conftest$ac_exeext' |
| 28467 | { (case "(($ac_try" in |
| 28468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28469 | *) ac_try_echo=$ac_try;; |
| 28470 | esac |
| 28471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28472 | (eval "$ac_try") 2>&5 |
| 28473 | ac_status=$? |
| 28474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28475 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28476 | ac_cv_lib_udis86_ud_init=yes |
| 28477 | else |
| 28478 | echo "$as_me: failed program was:" >&5 |
| 28479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28480 | |
| 28481 | ac_cv_lib_udis86_ud_init=no |
| 28482 | fi |
| 28483 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28484 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28485 | conftest$ac_exeext conftest.$ac_ext |
| 28486 | LIBS=$ac_check_lib_save_LIBS |
| 28487 | fi |
| 28488 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 28489 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 28490 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 28491 | cat >>confdefs.h <<_ACEOF |
| 28492 | #define HAVE_LIBUDIS86 1 |
| 28493 | _ACEOF |
| 28494 | |
| 28495 | LIBS="-ludis86 $LIBS" |
| 28496 | |
| 28497 | else |
| 28498 | |
| 28499 | echo "Error! You need to have libudis86 around." |
| 28500 | exit -1 |
| 28501 | |
| 28502 | fi |
| 28503 | |
| 28504 | |
| 28505 | else |
| 28506 | USE_UDIS86=0 |
| 28507 | |
| 28508 | fi |
| 28509 | |
| 28510 | |
| 28511 | cat >>confdefs.h <<_ACEOF |
| 28512 | #define USE_UDIS86 $USE_UDIS86 |
| 28513 | _ACEOF |
| 28514 | |
| 28515 | |
| 28516 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28517 | # Check whether --with-oprofile was given. |
| 28518 | if test "${with_oprofile+set}" = set; then |
| 28519 | withval=$with_oprofile; |
| 28520 | USE_OPROFILE=1 |
| 28521 | |
| 28522 | case "$withval" in |
| 28523 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
| 28524 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 28525 | CPPFLAGS="-I${withval}/include";; |
| 28526 | esac |
| 28527 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 28528 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28529 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28530 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28532 | else |
| 28533 | ac_func_search_save_LIBS=$LIBS |
| 28534 | cat >conftest.$ac_ext <<_ACEOF |
| 28535 | /* confdefs.h. */ |
| 28536 | _ACEOF |
| 28537 | cat confdefs.h >>conftest.$ac_ext |
| 28538 | cat >>conftest.$ac_ext <<_ACEOF |
| 28539 | /* end confdefs.h. */ |
| 28540 | |
| 28541 | /* Override any GCC internal prototype to avoid an error. |
| 28542 | Use char because int might match the return type of a GCC |
| 28543 | builtin and then its argument prototype would still apply. */ |
| 28544 | #ifdef __cplusplus |
| 28545 | extern "C" |
| 28546 | #endif |
| 28547 | char op_open_agent (); |
| 28548 | int |
| 28549 | main () |
| 28550 | { |
| 28551 | return op_open_agent (); |
| 28552 | ; |
| 28553 | return 0; |
| 28554 | } |
| 28555 | _ACEOF |
| 28556 | for ac_lib in '' opagent; do |
| 28557 | if test -z "$ac_lib"; then |
| 28558 | ac_res="none required" |
| 28559 | else |
| 28560 | ac_res=-l$ac_lib |
| 28561 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28562 | fi |
| 28563 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28564 | if { (ac_try="$ac_link" |
| 28565 | case "(($ac_try" in |
| 28566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28567 | *) ac_try_echo=$ac_try;; |
| 28568 | esac |
| 28569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28570 | (eval "$ac_link") 2>conftest.er1 |
| 28571 | ac_status=$? |
| 28572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28573 | rm -f conftest.er1 |
| 28574 | cat conftest.err >&5 |
| 28575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28576 | (exit $ac_status); } && |
| 28577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28578 | { (case "(($ac_try" in |
| 28579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28580 | *) ac_try_echo=$ac_try;; |
| 28581 | esac |
| 28582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28583 | (eval "$ac_try") 2>&5 |
| 28584 | ac_status=$? |
| 28585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28586 | (exit $ac_status); }; } && |
| 28587 | { ac_try='test -s conftest$ac_exeext' |
| 28588 | { (case "(($ac_try" in |
| 28589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28590 | *) ac_try_echo=$ac_try;; |
| 28591 | esac |
| 28592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28593 | (eval "$ac_try") 2>&5 |
| 28594 | ac_status=$? |
| 28595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28596 | (exit $ac_status); }; }; then |
| 28597 | ac_cv_search_op_open_agent=$ac_res |
| 28598 | else |
| 28599 | echo "$as_me: failed program was:" >&5 |
| 28600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28601 | |
| 28602 | |
| 28603 | fi |
| 28604 | |
| 28605 | rm -f core conftest.err conftest.$ac_objext \ |
| 28606 | conftest$ac_exeext |
| 28607 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28608 | break |
| 28609 | fi |
| 28610 | done |
| 28611 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28612 | : |
| 28613 | else |
| 28614 | ac_cv_search_op_open_agent=no |
| 28615 | fi |
| 28616 | rm conftest.$ac_ext |
| 28617 | LIBS=$ac_func_search_save_LIBS |
| 28618 | fi |
| 28619 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28620 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28621 | ac_res=$ac_cv_search_op_open_agent |
| 28622 | if test "$ac_res" != no; then |
| 28623 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28624 | |
| 28625 | else |
| 28626 | |
| 28627 | echo "Error! You need to have libopagent around." |
| 28628 | exit -1 |
| 28629 | |
| 28630 | fi |
| 28631 | |
| 28632 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28633 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28634 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28635 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28637 | fi |
| 28638 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28639 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28640 | else |
| 28641 | # Is the header compilable? |
| 28642 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28643 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28644 | cat >conftest.$ac_ext <<_ACEOF |
| 28645 | /* confdefs.h. */ |
| 28646 | _ACEOF |
| 28647 | cat confdefs.h >>conftest.$ac_ext |
| 28648 | cat >>conftest.$ac_ext <<_ACEOF |
| 28649 | /* end confdefs.h. */ |
| 28650 | $ac_includes_default |
| 28651 | #include <opagent.h> |
| 28652 | _ACEOF |
| 28653 | rm -f conftest.$ac_objext |
| 28654 | if { (ac_try="$ac_compile" |
| 28655 | case "(($ac_try" in |
| 28656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28657 | *) ac_try_echo=$ac_try;; |
| 28658 | esac |
| 28659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28660 | (eval "$ac_compile") 2>conftest.er1 |
| 28661 | ac_status=$? |
| 28662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28663 | rm -f conftest.er1 |
| 28664 | cat conftest.err >&5 |
| 28665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28666 | (exit $ac_status); } && |
| 28667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28668 | { (case "(($ac_try" in |
| 28669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28670 | *) ac_try_echo=$ac_try;; |
| 28671 | esac |
| 28672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28673 | (eval "$ac_try") 2>&5 |
| 28674 | ac_status=$? |
| 28675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28676 | (exit $ac_status); }; } && |
| 28677 | { ac_try='test -s conftest.$ac_objext' |
| 28678 | { (case "(($ac_try" in |
| 28679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28680 | *) ac_try_echo=$ac_try;; |
| 28681 | esac |
| 28682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28683 | (eval "$ac_try") 2>&5 |
| 28684 | ac_status=$? |
| 28685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28686 | (exit $ac_status); }; }; then |
| 28687 | ac_header_compiler=yes |
| 28688 | else |
| 28689 | echo "$as_me: failed program was:" >&5 |
| 28690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28691 | |
| 28692 | ac_header_compiler=no |
| 28693 | fi |
| 28694 | |
| 28695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28696 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28697 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28698 | |
| 28699 | # Is the header present? |
| 28700 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28701 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28702 | cat >conftest.$ac_ext <<_ACEOF |
| 28703 | /* confdefs.h. */ |
| 28704 | _ACEOF |
| 28705 | cat confdefs.h >>conftest.$ac_ext |
| 28706 | cat >>conftest.$ac_ext <<_ACEOF |
| 28707 | /* end confdefs.h. */ |
| 28708 | #include <opagent.h> |
| 28709 | _ACEOF |
| 28710 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28711 | case "(($ac_try" in |
| 28712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28713 | *) ac_try_echo=$ac_try;; |
| 28714 | esac |
| 28715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28716 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28717 | ac_status=$? |
| 28718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28719 | rm -f conftest.er1 |
| 28720 | cat conftest.err >&5 |
| 28721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28722 | (exit $ac_status); } >/dev/null; then |
| 28723 | if test -s conftest.err; then |
| 28724 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28725 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28726 | else |
| 28727 | ac_cpp_err= |
| 28728 | fi |
| 28729 | else |
| 28730 | ac_cpp_err=yes |
| 28731 | fi |
| 28732 | if test -z "$ac_cpp_err"; then |
| 28733 | ac_header_preproc=yes |
| 28734 | else |
| 28735 | echo "$as_me: failed program was:" >&5 |
| 28736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28737 | |
| 28738 | ac_header_preproc=no |
| 28739 | fi |
| 28740 | |
| 28741 | rm -f conftest.err conftest.$ac_ext |
| 28742 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28743 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28744 | |
| 28745 | # So? What about this header? |
| 28746 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28747 | yes:no: ) |
| 28748 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28749 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28750 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 28751 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 28752 | ac_header_preproc=yes |
| 28753 | ;; |
| 28754 | no:yes:* ) |
| 28755 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 28756 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 28757 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 28758 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 28759 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 28760 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 28761 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 28762 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28763 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 28764 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 28765 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 28766 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 28767 | ( cat <<\_ASBOX |
| 28768 | ## ----------------------------------- ## |
| 28769 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28770 | ## ----------------------------------- ## |
| 28771 | _ASBOX |
| 28772 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28773 | ;; |
| 28774 | esac |
| 28775 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28776 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28777 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28779 | else |
| 28780 | ac_cv_header_opagent_h=$ac_header_preproc |
| 28781 | fi |
| 28782 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28783 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28784 | |
| 28785 | fi |
| 28786 | if test $ac_cv_header_opagent_h = yes; then |
| 28787 | : |
| 28788 | else |
| 28789 | |
| 28790 | echo "Error! You need to have opagent.h around." |
| 28791 | exit -1 |
| 28792 | |
| 28793 | fi |
| 28794 | |
| 28795 | |
| 28796 | |
| 28797 | else |
| 28798 | |
| 28799 | llvm_cv_old_LIBS="$LIBS" |
| 28800 | LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile" |
| 28801 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28802 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28803 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28805 | else |
| 28806 | ac_func_search_save_LIBS=$LIBS |
| 28807 | cat >conftest.$ac_ext <<_ACEOF |
| 28808 | /* confdefs.h. */ |
| 28809 | _ACEOF |
| 28810 | cat confdefs.h >>conftest.$ac_ext |
| 28811 | cat >>conftest.$ac_ext <<_ACEOF |
| 28812 | /* end confdefs.h. */ |
| 28813 | |
| 28814 | /* Override any GCC internal prototype to avoid an error. |
| 28815 | Use char because int might match the return type of a GCC |
| 28816 | builtin and then its argument prototype would still apply. */ |
| 28817 | #ifdef __cplusplus |
| 28818 | extern "C" |
| 28819 | #endif |
| 28820 | char op_open_agent (); |
| 28821 | int |
| 28822 | main () |
| 28823 | { |
| 28824 | return op_open_agent (); |
| 28825 | ; |
| 28826 | return 0; |
| 28827 | } |
| 28828 | _ACEOF |
| 28829 | for ac_lib in '' opagent; do |
| 28830 | if test -z "$ac_lib"; then |
| 28831 | ac_res="none required" |
| 28832 | else |
| 28833 | ac_res=-l$ac_lib |
| 28834 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28835 | fi |
| 28836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28837 | if { (ac_try="$ac_link" |
| 28838 | case "(($ac_try" in |
| 28839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28840 | *) ac_try_echo=$ac_try;; |
| 28841 | esac |
| 28842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28843 | (eval "$ac_link") 2>conftest.er1 |
| 28844 | ac_status=$? |
| 28845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28846 | rm -f conftest.er1 |
| 28847 | cat conftest.err >&5 |
| 28848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28849 | (exit $ac_status); } && |
| 28850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28851 | { (case "(($ac_try" in |
| 28852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28853 | *) ac_try_echo=$ac_try;; |
| 28854 | esac |
| 28855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28856 | (eval "$ac_try") 2>&5 |
| 28857 | ac_status=$? |
| 28858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28859 | (exit $ac_status); }; } && |
| 28860 | { ac_try='test -s conftest$ac_exeext' |
| 28861 | { (case "(($ac_try" in |
| 28862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28863 | *) ac_try_echo=$ac_try;; |
| 28864 | esac |
| 28865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28866 | (eval "$ac_try") 2>&5 |
| 28867 | ac_status=$? |
| 28868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28869 | (exit $ac_status); }; }; then |
| 28870 | ac_cv_search_op_open_agent=$ac_res |
| 28871 | else |
| 28872 | echo "$as_me: failed program was:" >&5 |
| 28873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28874 | |
| 28875 | |
| 28876 | fi |
| 28877 | |
| 28878 | rm -f core conftest.err conftest.$ac_objext \ |
| 28879 | conftest$ac_exeext |
| 28880 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28881 | break |
| 28882 | fi |
| 28883 | done |
| 28884 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28885 | : |
| 28886 | else |
| 28887 | ac_cv_search_op_open_agent=no |
| 28888 | fi |
| 28889 | rm conftest.$ac_ext |
| 28890 | LIBS=$ac_func_search_save_LIBS |
| 28891 | fi |
| 28892 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28893 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28894 | ac_res=$ac_cv_search_op_open_agent |
| 28895 | if test "$ac_res" != no; then |
| 28896 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28897 | USE_OPROFILE=1 |
| 28898 | |
| 28899 | else |
| 28900 | LIBS="$llvm_cv_old_LIBS" |
| 28901 | USE_OPROFILE=0 |
| 28902 | |
| 28903 | fi |
| 28904 | |
| 28905 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28906 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28907 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28908 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28910 | fi |
| 28911 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28912 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28913 | else |
| 28914 | # Is the header compilable? |
| 28915 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28916 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28917 | cat >conftest.$ac_ext <<_ACEOF |
| 28918 | /* confdefs.h. */ |
| 28919 | _ACEOF |
| 28920 | cat confdefs.h >>conftest.$ac_ext |
| 28921 | cat >>conftest.$ac_ext <<_ACEOF |
| 28922 | /* end confdefs.h. */ |
| 28923 | $ac_includes_default |
| 28924 | #include <opagent.h> |
| 28925 | _ACEOF |
| 28926 | rm -f conftest.$ac_objext |
| 28927 | if { (ac_try="$ac_compile" |
| 28928 | case "(($ac_try" in |
| 28929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28930 | *) ac_try_echo=$ac_try;; |
| 28931 | esac |
| 28932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28933 | (eval "$ac_compile") 2>conftest.er1 |
| 28934 | ac_status=$? |
| 28935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28936 | rm -f conftest.er1 |
| 28937 | cat conftest.err >&5 |
| 28938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28939 | (exit $ac_status); } && |
| 28940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28941 | { (case "(($ac_try" in |
| 28942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28943 | *) ac_try_echo=$ac_try;; |
| 28944 | esac |
| 28945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28946 | (eval "$ac_try") 2>&5 |
| 28947 | ac_status=$? |
| 28948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28949 | (exit $ac_status); }; } && |
| 28950 | { ac_try='test -s conftest.$ac_objext' |
| 28951 | { (case "(($ac_try" in |
| 28952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28953 | *) ac_try_echo=$ac_try;; |
| 28954 | esac |
| 28955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28956 | (eval "$ac_try") 2>&5 |
| 28957 | ac_status=$? |
| 28958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28959 | (exit $ac_status); }; }; then |
| 28960 | ac_header_compiler=yes |
| 28961 | else |
| 28962 | echo "$as_me: failed program was:" >&5 |
| 28963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28964 | |
| 28965 | ac_header_compiler=no |
| 28966 | fi |
| 28967 | |
| 28968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28969 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28970 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28971 | |
| 28972 | # Is the header present? |
| 28973 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28974 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28975 | cat >conftest.$ac_ext <<_ACEOF |
| 28976 | /* confdefs.h. */ |
| 28977 | _ACEOF |
| 28978 | cat confdefs.h >>conftest.$ac_ext |
| 28979 | cat >>conftest.$ac_ext <<_ACEOF |
| 28980 | /* end confdefs.h. */ |
| 28981 | #include <opagent.h> |
| 28982 | _ACEOF |
| 28983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28984 | case "(($ac_try" in |
| 28985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28986 | *) ac_try_echo=$ac_try;; |
| 28987 | esac |
| 28988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28990 | ac_status=$? |
| 28991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28992 | rm -f conftest.er1 |
| 28993 | cat conftest.err >&5 |
| 28994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28995 | (exit $ac_status); } >/dev/null; then |
| 28996 | if test -s conftest.err; then |
| 28997 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28999 | else |
| 29000 | ac_cpp_err= |
| 29001 | fi |
| 29002 | else |
| 29003 | ac_cpp_err=yes |
| 29004 | fi |
| 29005 | if test -z "$ac_cpp_err"; then |
| 29006 | ac_header_preproc=yes |
| 29007 | else |
| 29008 | echo "$as_me: failed program was:" >&5 |
| 29009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29010 | |
| 29011 | ac_header_preproc=no |
| 29012 | fi |
| 29013 | |
| 29014 | rm -f conftest.err conftest.$ac_ext |
| 29015 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29016 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29017 | |
| 29018 | # So? What about this header? |
| 29019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29020 | yes:no: ) |
| 29021 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29022 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29023 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 29024 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 29025 | ac_header_preproc=yes |
| 29026 | ;; |
| 29027 | no:yes:* ) |
| 29028 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 29029 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 29030 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 29031 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 29032 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 29033 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 29034 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 29035 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29036 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 29037 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 29038 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 29039 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 29040 | ( cat <<\_ASBOX |
| 29041 | ## ----------------------------------- ## |
| 29042 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29043 | ## ----------------------------------- ## |
| 29044 | _ASBOX |
| 29045 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29046 | ;; |
| 29047 | esac |
| 29048 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 29049 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 29050 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 29051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29052 | else |
| 29053 | ac_cv_header_opagent_h=$ac_header_preproc |
| 29054 | fi |
| 29055 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 29056 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 29057 | |
| 29058 | fi |
| 29059 | if test $ac_cv_header_opagent_h = yes; then |
| 29060 | : |
| 29061 | else |
| 29062 | |
| 29063 | LIBS="$llvm_cv_old_LIBS" |
| 29064 | USE_OPROFILE=0 |
| 29065 | |
| 29066 | |
| 29067 | fi |
| 29068 | |
| 29069 | |
| 29070 | |
| 29071 | fi |
| 29072 | |
| 29073 | |
| 29074 | cat >>confdefs.h <<_ACEOF |
| 29075 | #define USE_OPROFILE $USE_OPROFILE |
| 29076 | _ACEOF |
| 29077 | |
| 29078 | |
| 29079 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29080 | |
| 29081 | |
| 29082 | |
| 29083 | |
| 29084 | |
| 29085 | ac_header_dirent=no |
| 29086 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 29087 | 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] | 29088 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 29089 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 29090 | 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] | 29091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29092 | else |
| 29093 | cat >conftest.$ac_ext <<_ACEOF |
| 29094 | /* confdefs.h. */ |
| 29095 | _ACEOF |
| 29096 | cat confdefs.h >>conftest.$ac_ext |
| 29097 | cat >>conftest.$ac_ext <<_ACEOF |
| 29098 | /* end confdefs.h. */ |
| 29099 | #include <sys/types.h> |
| 29100 | #include <$ac_hdr> |
| 29101 | |
| 29102 | int |
| 29103 | main () |
| 29104 | { |
| 29105 | if ((DIR *) 0) |
| 29106 | return 0; |
| 29107 | ; |
| 29108 | return 0; |
| 29109 | } |
| 29110 | _ACEOF |
| 29111 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29112 | if { (ac_try="$ac_compile" |
| 29113 | case "(($ac_try" in |
| 29114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29115 | *) ac_try_echo=$ac_try;; |
| 29116 | esac |
| 29117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29118 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29119 | ac_status=$? |
| 29120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29121 | rm -f conftest.er1 |
| 29122 | cat conftest.err >&5 |
| 29123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29124 | (exit $ac_status); } && |
| 29125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29126 | { (case "(($ac_try" in |
| 29127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29128 | *) ac_try_echo=$ac_try;; |
| 29129 | esac |
| 29130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29131 | (eval "$ac_try") 2>&5 |
| 29132 | ac_status=$? |
| 29133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29134 | (exit $ac_status); }; } && |
| 29135 | { ac_try='test -s conftest.$ac_objext' |
| 29136 | { (case "(($ac_try" in |
| 29137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29138 | *) ac_try_echo=$ac_try;; |
| 29139 | esac |
| 29140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29141 | (eval "$ac_try") 2>&5 |
| 29142 | ac_status=$? |
| 29143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29144 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29145 | eval "$as_ac_Header=yes" |
| 29146 | else |
| 29147 | echo "$as_me: failed program was:" >&5 |
| 29148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29150 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29151 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29152 | |
| 29153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29154 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29155 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29156 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29157 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29158 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29159 | cat >>confdefs.h <<_ACEOF |
| 29160 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 29161 | _ACEOF |
| 29162 | |
| 29163 | ac_header_dirent=$ac_hdr; break |
| 29164 | fi |
| 29165 | |
| 29166 | done |
| 29167 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 29168 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29169 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29170 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29171 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29173 | else |
| 29174 | ac_func_search_save_LIBS=$LIBS |
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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29182 | /* Override any GCC internal prototype to avoid an error. |
| 29183 | Use char because int might match the return type of a GCC |
| 29184 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29185 | #ifdef __cplusplus |
| 29186 | extern "C" |
| 29187 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29188 | char opendir (); |
| 29189 | int |
| 29190 | main () |
| 29191 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29192 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29193 | ; |
| 29194 | return 0; |
| 29195 | } |
| 29196 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29197 | for ac_lib in '' dir; do |
| 29198 | if test -z "$ac_lib"; then |
| 29199 | ac_res="none required" |
| 29200 | else |
| 29201 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29203 | fi |
| 29204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29205 | if { (ac_try="$ac_link" |
| 29206 | case "(($ac_try" in |
| 29207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29208 | *) ac_try_echo=$ac_try;; |
| 29209 | esac |
| 29210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29211 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29212 | ac_status=$? |
| 29213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29214 | rm -f conftest.er1 |
| 29215 | cat conftest.err >&5 |
| 29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29217 | (exit $ac_status); } && |
| 29218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29219 | { (case "(($ac_try" in |
| 29220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29221 | *) ac_try_echo=$ac_try;; |
| 29222 | esac |
| 29223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29224 | (eval "$ac_try") 2>&5 |
| 29225 | ac_status=$? |
| 29226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29227 | (exit $ac_status); }; } && |
| 29228 | { ac_try='test -s conftest$ac_exeext' |
| 29229 | { (case "(($ac_try" in |
| 29230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29231 | *) ac_try_echo=$ac_try;; |
| 29232 | esac |
| 29233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29234 | (eval "$ac_try") 2>&5 |
| 29235 | ac_status=$? |
| 29236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29237 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29238 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29239 | else |
| 29240 | echo "$as_me: failed program was:" >&5 |
| 29241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29243 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29244 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29245 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29246 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29247 | conftest$ac_exeext |
| 29248 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29249 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29250 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29251 | done |
| 29252 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29253 | : |
| 29254 | else |
| 29255 | ac_cv_search_opendir=no |
| 29256 | fi |
| 29257 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29258 | LIBS=$ac_func_search_save_LIBS |
| 29259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29260 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29261 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29262 | ac_res=$ac_cv_search_opendir |
| 29263 | if test "$ac_res" != no; then |
| 29264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29265 | |
| 29266 | fi |
| 29267 | |
| 29268 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29269 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29270 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29271 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29273 | else |
| 29274 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29275 | cat >conftest.$ac_ext <<_ACEOF |
| 29276 | /* confdefs.h. */ |
| 29277 | _ACEOF |
| 29278 | cat confdefs.h >>conftest.$ac_ext |
| 29279 | cat >>conftest.$ac_ext <<_ACEOF |
| 29280 | /* end confdefs.h. */ |
| 29281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29282 | /* Override any GCC internal prototype to avoid an error. |
| 29283 | Use char because int might match the return type of a GCC |
| 29284 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29285 | #ifdef __cplusplus |
| 29286 | extern "C" |
| 29287 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29288 | char opendir (); |
| 29289 | int |
| 29290 | main () |
| 29291 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29292 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29293 | ; |
| 29294 | return 0; |
| 29295 | } |
| 29296 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29297 | for ac_lib in '' x; do |
| 29298 | if test -z "$ac_lib"; then |
| 29299 | ac_res="none required" |
| 29300 | else |
| 29301 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29302 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29303 | fi |
| 29304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29305 | if { (ac_try="$ac_link" |
| 29306 | case "(($ac_try" in |
| 29307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29308 | *) ac_try_echo=$ac_try;; |
| 29309 | esac |
| 29310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29311 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29312 | ac_status=$? |
| 29313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29314 | rm -f conftest.er1 |
| 29315 | cat conftest.err >&5 |
| 29316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29317 | (exit $ac_status); } && |
| 29318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29319 | { (case "(($ac_try" in |
| 29320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29321 | *) ac_try_echo=$ac_try;; |
| 29322 | esac |
| 29323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29324 | (eval "$ac_try") 2>&5 |
| 29325 | ac_status=$? |
| 29326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29327 | (exit $ac_status); }; } && |
| 29328 | { ac_try='test -s conftest$ac_exeext' |
| 29329 | { (case "(($ac_try" in |
| 29330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29331 | *) ac_try_echo=$ac_try;; |
| 29332 | esac |
| 29333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29334 | (eval "$ac_try") 2>&5 |
| 29335 | ac_status=$? |
| 29336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29337 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29338 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29339 | else |
| 29340 | echo "$as_me: failed program was:" >&5 |
| 29341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29343 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29344 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29345 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29346 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29347 | conftest$ac_exeext |
| 29348 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29349 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29350 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29351 | done |
| 29352 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29353 | : |
| 29354 | else |
| 29355 | ac_cv_search_opendir=no |
| 29356 | fi |
| 29357 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29358 | LIBS=$ac_func_search_save_LIBS |
| 29359 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29360 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29361 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29362 | ac_res=$ac_cv_search_opendir |
| 29363 | if test "$ac_res" != no; then |
| 29364 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29365 | |
| 29366 | fi |
| 29367 | |
| 29368 | fi |
| 29369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29370 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 29371 | 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] | 29372 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 29373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29374 | else |
| 29375 | ac_ext=c |
| 29376 | ac_cpp='$CPP $CPPFLAGS' |
| 29377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29380 | |
| 29381 | cat >conftest.$ac_ext <<_ACEOF |
| 29382 | /* confdefs.h. */ |
| 29383 | _ACEOF |
| 29384 | cat confdefs.h >>conftest.$ac_ext |
| 29385 | cat >>conftest.$ac_ext <<_ACEOF |
| 29386 | /* end confdefs.h. */ |
| 29387 | #include <sys/mman.h> |
| 29388 | #include <unistd.h> |
| 29389 | #include <fcntl.h> |
| 29390 | int |
| 29391 | main () |
| 29392 | { |
| 29393 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 29394 | ; |
| 29395 | return 0; |
| 29396 | } |
| 29397 | _ACEOF |
| 29398 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29399 | if { (ac_try="$ac_compile" |
| 29400 | case "(($ac_try" in |
| 29401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29402 | *) ac_try_echo=$ac_try;; |
| 29403 | esac |
| 29404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29405 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29406 | ac_status=$? |
| 29407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29408 | rm -f conftest.er1 |
| 29409 | cat conftest.err >&5 |
| 29410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29411 | (exit $ac_status); } && |
| 29412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29413 | { (case "(($ac_try" in |
| 29414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29415 | *) ac_try_echo=$ac_try;; |
| 29416 | esac |
| 29417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29418 | (eval "$ac_try") 2>&5 |
| 29419 | ac_status=$? |
| 29420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29421 | (exit $ac_status); }; } && |
| 29422 | { ac_try='test -s conftest.$ac_objext' |
| 29423 | { (case "(($ac_try" in |
| 29424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29425 | *) ac_try_echo=$ac_try;; |
| 29426 | esac |
| 29427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29428 | (eval "$ac_try") 2>&5 |
| 29429 | ac_status=$? |
| 29430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29431 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29432 | ac_cv_header_mmap_anon=yes |
| 29433 | else |
| 29434 | echo "$as_me: failed program was:" >&5 |
| 29435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29436 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29437 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29439 | |
| 29440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29441 | ac_ext=c |
| 29442 | ac_cpp='$CPP $CPPFLAGS' |
| 29443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29446 | |
| 29447 | |
| 29448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29449 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 29450 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29451 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 29452 | |
| 29453 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29454 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29455 | _ACEOF |
| 29456 | |
| 29457 | fi |
| 29458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29459 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 29460 | 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] | 29461 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 29462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29463 | else |
| 29464 | cat >conftest.$ac_ext <<_ACEOF |
| 29465 | /* confdefs.h. */ |
| 29466 | _ACEOF |
| 29467 | cat confdefs.h >>conftest.$ac_ext |
| 29468 | cat >>conftest.$ac_ext <<_ACEOF |
| 29469 | /* end confdefs.h. */ |
| 29470 | #include <sys/types.h> |
| 29471 | #include <sys/stat.h> |
| 29472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29473 | #if defined S_ISBLK && defined S_IFDIR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29474 | # if S_ISBLK (S_IFDIR) |
| 29475 | You lose. |
| 29476 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29477 | #endif |
| 29478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29479 | #if defined S_ISBLK && defined S_IFCHR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29480 | # if S_ISBLK (S_IFCHR) |
| 29481 | You lose. |
| 29482 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29483 | #endif |
| 29484 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29485 | #if defined S_ISLNK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29486 | # if S_ISLNK (S_IFREG) |
| 29487 | You lose. |
| 29488 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29489 | #endif |
| 29490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29491 | #if defined S_ISSOCK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29492 | # if S_ISSOCK (S_IFREG) |
| 29493 | You lose. |
| 29494 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29495 | #endif |
| 29496 | |
| 29497 | _ACEOF |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29499 | $EGREP "You lose" >/dev/null 2>&1; then |
| 29500 | ac_cv_header_stat_broken=yes |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29501 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29502 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29503 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29504 | rm -f conftest* |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29505 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29507 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 29508 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29509 | if test $ac_cv_header_stat_broken = yes; then |
| 29510 | |
| 29511 | cat >>confdefs.h <<\_ACEOF |
| 29512 | #define STAT_MACROS_BROKEN 1 |
| 29513 | _ACEOF |
| 29514 | |
| 29515 | fi |
| 29516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29517 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 29518 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29519 | if test "${ac_cv_header_stdc+set}" = set; then |
| 29520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29521 | else |
| 29522 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29523 | /* confdefs.h. */ |
| 29524 | _ACEOF |
| 29525 | cat confdefs.h >>conftest.$ac_ext |
| 29526 | cat >>conftest.$ac_ext <<_ACEOF |
| 29527 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29528 | #include <stdlib.h> |
| 29529 | #include <stdarg.h> |
| 29530 | #include <string.h> |
| 29531 | #include <float.h> |
| 29532 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29533 | int |
| 29534 | main () |
| 29535 | { |
| 29536 | |
| 29537 | ; |
| 29538 | return 0; |
| 29539 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29540 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29541 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29542 | if { (ac_try="$ac_compile" |
| 29543 | case "(($ac_try" in |
| 29544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29545 | *) ac_try_echo=$ac_try;; |
| 29546 | esac |
| 29547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29548 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29549 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29551 | rm -f conftest.er1 |
| 29552 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29554 | (exit $ac_status); } && |
| 29555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29556 | { (case "(($ac_try" in |
| 29557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29558 | *) ac_try_echo=$ac_try;; |
| 29559 | esac |
| 29560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29561 | (eval "$ac_try") 2>&5 |
| 29562 | ac_status=$? |
| 29563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29564 | (exit $ac_status); }; } && |
| 29565 | { ac_try='test -s conftest.$ac_objext' |
| 29566 | { (case "(($ac_try" in |
| 29567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29568 | *) ac_try_echo=$ac_try;; |
| 29569 | esac |
| 29570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29571 | (eval "$ac_try") 2>&5 |
| 29572 | ac_status=$? |
| 29573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29574 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29575 | ac_cv_header_stdc=yes |
| 29576 | else |
| 29577 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29580 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29582 | |
| 29583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29584 | |
| 29585 | if test $ac_cv_header_stdc = yes; then |
| 29586 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 29587 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29588 | /* confdefs.h. */ |
| 29589 | _ACEOF |
| 29590 | cat confdefs.h >>conftest.$ac_ext |
| 29591 | cat >>conftest.$ac_ext <<_ACEOF |
| 29592 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29593 | #include <string.h> |
| 29594 | |
| 29595 | _ACEOF |
| 29596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29597 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29598 | : |
| 29599 | else |
| 29600 | ac_cv_header_stdc=no |
| 29601 | fi |
| 29602 | rm -f conftest* |
| 29603 | |
| 29604 | fi |
| 29605 | |
| 29606 | if test $ac_cv_header_stdc = yes; then |
| 29607 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 29608 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29609 | /* confdefs.h. */ |
| 29610 | _ACEOF |
| 29611 | cat confdefs.h >>conftest.$ac_ext |
| 29612 | cat >>conftest.$ac_ext <<_ACEOF |
| 29613 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29614 | #include <stdlib.h> |
| 29615 | |
| 29616 | _ACEOF |
| 29617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29618 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29619 | : |
| 29620 | else |
| 29621 | ac_cv_header_stdc=no |
| 29622 | fi |
| 29623 | rm -f conftest* |
| 29624 | |
| 29625 | fi |
| 29626 | |
| 29627 | if test $ac_cv_header_stdc = yes; then |
| 29628 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 29629 | if test "$cross_compiling" = yes; then |
| 29630 | : |
| 29631 | else |
| 29632 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29633 | /* confdefs.h. */ |
| 29634 | _ACEOF |
| 29635 | cat confdefs.h >>conftest.$ac_ext |
| 29636 | cat >>conftest.$ac_ext <<_ACEOF |
| 29637 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29638 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29639 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29640 | #if ((' ' & 0x0FF) == 0x020) |
| 29641 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 29642 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 29643 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29644 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29645 | (('a' <= (c) && (c) <= 'i') \ |
| 29646 | || ('j' <= (c) && (c) <= 'r') \ |
| 29647 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29648 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 29649 | #endif |
| 29650 | |
| 29651 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 29652 | int |
| 29653 | main () |
| 29654 | { |
| 29655 | int i; |
| 29656 | for (i = 0; i < 256; i++) |
| 29657 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29658 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29659 | return 2; |
| 29660 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29661 | } |
| 29662 | _ACEOF |
| 29663 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29664 | if { (ac_try="$ac_link" |
| 29665 | case "(($ac_try" in |
| 29666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29667 | *) ac_try_echo=$ac_try;; |
| 29668 | esac |
| 29669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29670 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29671 | ac_status=$? |
| 29672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29674 | { (case "(($ac_try" in |
| 29675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29676 | *) ac_try_echo=$ac_try;; |
| 29677 | esac |
| 29678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29679 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29680 | ac_status=$? |
| 29681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29682 | (exit $ac_status); }; }; then |
| 29683 | : |
| 29684 | else |
| 29685 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29686 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29688 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29689 | ( exit $ac_status ) |
| 29690 | ac_cv_header_stdc=no |
| 29691 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29692 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29693 | fi |
| 29694 | |
| 29695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29696 | fi |
| 29697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29698 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 29699 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29700 | if test $ac_cv_header_stdc = yes; then |
| 29701 | |
| 29702 | cat >>confdefs.h <<\_ACEOF |
| 29703 | #define STDC_HEADERS 1 |
| 29704 | _ACEOF |
| 29705 | |
| 29706 | fi |
| 29707 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29708 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 29709 | 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] | 29710 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 29711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29712 | else |
| 29713 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29714 | /* confdefs.h. */ |
| 29715 | _ACEOF |
| 29716 | cat confdefs.h >>conftest.$ac_ext |
| 29717 | cat >>conftest.$ac_ext <<_ACEOF |
| 29718 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29719 | #include <sys/types.h> |
| 29720 | #include <sys/wait.h> |
| 29721 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29722 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29723 | #endif |
| 29724 | #ifndef WIFEXITED |
| 29725 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 29726 | #endif |
| 29727 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29728 | int |
| 29729 | main () |
| 29730 | { |
| 29731 | int s; |
| 29732 | wait (&s); |
| 29733 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 29734 | ; |
| 29735 | return 0; |
| 29736 | } |
| 29737 | _ACEOF |
| 29738 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29739 | if { (ac_try="$ac_compile" |
| 29740 | case "(($ac_try" in |
| 29741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29742 | *) ac_try_echo=$ac_try;; |
| 29743 | esac |
| 29744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29745 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29746 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29748 | rm -f conftest.er1 |
| 29749 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29751 | (exit $ac_status); } && |
| 29752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29753 | { (case "(($ac_try" in |
| 29754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29755 | *) ac_try_echo=$ac_try;; |
| 29756 | esac |
| 29757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29758 | (eval "$ac_try") 2>&5 |
| 29759 | ac_status=$? |
| 29760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29761 | (exit $ac_status); }; } && |
| 29762 | { ac_try='test -s conftest.$ac_objext' |
| 29763 | { (case "(($ac_try" in |
| 29764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29765 | *) ac_try_echo=$ac_try;; |
| 29766 | esac |
| 29767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29768 | (eval "$ac_try") 2>&5 |
| 29769 | ac_status=$? |
| 29770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29771 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29772 | ac_cv_header_sys_wait_h=yes |
| 29773 | else |
| 29774 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29777 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29779 | |
| 29780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29782 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 29783 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29784 | if test $ac_cv_header_sys_wait_h = yes; then |
| 29785 | |
| 29786 | cat >>confdefs.h <<\_ACEOF |
| 29787 | #define HAVE_SYS_WAIT_H 1 |
| 29788 | _ACEOF |
| 29789 | |
| 29790 | fi |
| 29791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29792 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 29793 | 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] | 29794 | if test "${ac_cv_header_time+set}" = set; then |
| 29795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29796 | else |
| 29797 | cat >conftest.$ac_ext <<_ACEOF |
| 29798 | /* confdefs.h. */ |
| 29799 | _ACEOF |
| 29800 | cat confdefs.h >>conftest.$ac_ext |
| 29801 | cat >>conftest.$ac_ext <<_ACEOF |
| 29802 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29803 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29804 | #include <sys/time.h> |
| 29805 | #include <time.h> |
| 29806 | |
| 29807 | int |
| 29808 | main () |
| 29809 | { |
| 29810 | if ((struct tm *) 0) |
| 29811 | return 0; |
| 29812 | ; |
| 29813 | return 0; |
| 29814 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29815 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29816 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29817 | if { (ac_try="$ac_compile" |
| 29818 | case "(($ac_try" in |
| 29819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29820 | *) ac_try_echo=$ac_try;; |
| 29821 | esac |
| 29822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29823 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29824 | ac_status=$? |
| 29825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29826 | rm -f conftest.er1 |
| 29827 | cat conftest.err >&5 |
| 29828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29829 | (exit $ac_status); } && |
| 29830 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29831 | { (case "(($ac_try" in |
| 29832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29833 | *) ac_try_echo=$ac_try;; |
| 29834 | esac |
| 29835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29836 | (eval "$ac_try") 2>&5 |
| 29837 | ac_status=$? |
| 29838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29839 | (exit $ac_status); }; } && |
| 29840 | { ac_try='test -s conftest.$ac_objext' |
| 29841 | { (case "(($ac_try" in |
| 29842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29843 | *) ac_try_echo=$ac_try;; |
| 29844 | esac |
| 29845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29846 | (eval "$ac_try") 2>&5 |
| 29847 | ac_status=$? |
| 29848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29849 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29850 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29851 | else |
| 29852 | echo "$as_me: failed program was:" >&5 |
| 29853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29854 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29855 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29856 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29857 | |
| 29858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29859 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29860 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 29861 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29862 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29863 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29864 | cat >>confdefs.h <<\_ACEOF |
| 29865 | #define TIME_WITH_SYS_TIME 1 |
| 29866 | _ACEOF |
| 29867 | |
| 29868 | fi |
| 29869 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29870 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29871 | |
| 29872 | |
| 29873 | |
| 29874 | |
| 29875 | |
| 29876 | |
| 29877 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 29878 | do |
| 29879 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29880 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29881 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29883 | 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] | 29884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29886 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29888 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29889 | else |
| 29890 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29891 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29892 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29893 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29894 | /* confdefs.h. */ |
| 29895 | _ACEOF |
| 29896 | cat confdefs.h >>conftest.$ac_ext |
| 29897 | cat >>conftest.$ac_ext <<_ACEOF |
| 29898 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29899 | $ac_includes_default |
| 29900 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29901 | _ACEOF |
| 29902 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29903 | if { (ac_try="$ac_compile" |
| 29904 | case "(($ac_try" in |
| 29905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29906 | *) ac_try_echo=$ac_try;; |
| 29907 | esac |
| 29908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29909 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29910 | ac_status=$? |
| 29911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29912 | rm -f conftest.er1 |
| 29913 | cat conftest.err >&5 |
| 29914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29915 | (exit $ac_status); } && |
| 29916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29917 | { (case "(($ac_try" in |
| 29918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29919 | *) ac_try_echo=$ac_try;; |
| 29920 | esac |
| 29921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29922 | (eval "$ac_try") 2>&5 |
| 29923 | ac_status=$? |
| 29924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29925 | (exit $ac_status); }; } && |
| 29926 | { ac_try='test -s conftest.$ac_objext' |
| 29927 | { (case "(($ac_try" in |
| 29928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29929 | *) ac_try_echo=$ac_try;; |
| 29930 | esac |
| 29931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29932 | (eval "$ac_try") 2>&5 |
| 29933 | ac_status=$? |
| 29934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29935 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29936 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29937 | else |
| 29938 | echo "$as_me: failed program was:" >&5 |
| 29939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29940 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29941 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29942 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29943 | |
| 29944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29945 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29946 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29947 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29948 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29949 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29950 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29951 | cat >conftest.$ac_ext <<_ACEOF |
| 29952 | /* confdefs.h. */ |
| 29953 | _ACEOF |
| 29954 | cat confdefs.h >>conftest.$ac_ext |
| 29955 | cat >>conftest.$ac_ext <<_ACEOF |
| 29956 | /* end confdefs.h. */ |
| 29957 | #include <$ac_header> |
| 29958 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29959 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29960 | case "(($ac_try" in |
| 29961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29962 | *) ac_try_echo=$ac_try;; |
| 29963 | esac |
| 29964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29965 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29966 | ac_status=$? |
| 29967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29968 | rm -f conftest.er1 |
| 29969 | cat conftest.err >&5 |
| 29970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29971 | (exit $ac_status); } >/dev/null; then |
| 29972 | if test -s conftest.err; then |
| 29973 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29974 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29975 | else |
| 29976 | ac_cpp_err= |
| 29977 | fi |
| 29978 | else |
| 29979 | ac_cpp_err=yes |
| 29980 | fi |
| 29981 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29982 | ac_header_preproc=yes |
| 29983 | else |
| 29984 | echo "$as_me: failed program was:" >&5 |
| 29985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29986 | |
| 29987 | ac_header_preproc=no |
| 29988 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29989 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29990 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29991 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29992 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29993 | |
| 29994 | # So? What about this header? |
| 29995 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29996 | yes:no: ) |
| 29997 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29998 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29999 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30000 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30001 | ac_header_preproc=yes |
| 30002 | ;; |
| 30003 | no:yes:* ) |
| 30004 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30005 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30006 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30007 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30008 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30009 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30010 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30011 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30012 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30013 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30014 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30015 | 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] | 30016 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30017 | ## ----------------------------------- ## |
| 30018 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30019 | ## ----------------------------------- ## |
| 30020 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30021 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30022 | ;; |
| 30023 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30024 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30026 | 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] | 30027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30028 | else |
| 30029 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30033 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30034 | |
| 30035 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30037 | cat >>confdefs.h <<_ACEOF |
| 30038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30039 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30040 | |
| 30041 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30042 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30043 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30044 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30045 | |
| 30046 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30047 | |
| 30048 | |
| 30049 | |
| 30050 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30051 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30052 | do |
| 30053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30055 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30057 | 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] | 30058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30059 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30060 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30062 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30063 | else |
| 30064 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30065 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30066 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30067 | cat >conftest.$ac_ext <<_ACEOF |
| 30068 | /* confdefs.h. */ |
| 30069 | _ACEOF |
| 30070 | cat confdefs.h >>conftest.$ac_ext |
| 30071 | cat >>conftest.$ac_ext <<_ACEOF |
| 30072 | /* end confdefs.h. */ |
| 30073 | $ac_includes_default |
| 30074 | #include <$ac_header> |
| 30075 | _ACEOF |
| 30076 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30077 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30084 | ac_status=$? |
| 30085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30086 | rm -f conftest.er1 |
| 30087 | cat conftest.err >&5 |
| 30088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30089 | (exit $ac_status); } && |
| 30090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30091 | { (case "(($ac_try" in |
| 30092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30093 | *) ac_try_echo=$ac_try;; |
| 30094 | esac |
| 30095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30096 | (eval "$ac_try") 2>&5 |
| 30097 | ac_status=$? |
| 30098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30099 | (exit $ac_status); }; } && |
| 30100 | { ac_try='test -s conftest.$ac_objext' |
| 30101 | { (case "(($ac_try" in |
| 30102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30103 | *) ac_try_echo=$ac_try;; |
| 30104 | esac |
| 30105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30106 | (eval "$ac_try") 2>&5 |
| 30107 | ac_status=$? |
| 30108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30109 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30110 | ac_header_compiler=yes |
| 30111 | else |
| 30112 | echo "$as_me: failed program was:" >&5 |
| 30113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30115 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30116 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30117 | |
| 30118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30119 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30120 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30121 | |
| 30122 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30123 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30125 | cat >conftest.$ac_ext <<_ACEOF |
| 30126 | /* confdefs.h. */ |
| 30127 | _ACEOF |
| 30128 | cat confdefs.h >>conftest.$ac_ext |
| 30129 | cat >>conftest.$ac_ext <<_ACEOF |
| 30130 | /* end confdefs.h. */ |
| 30131 | #include <$ac_header> |
| 30132 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30133 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30134 | case "(($ac_try" in |
| 30135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30136 | *) ac_try_echo=$ac_try;; |
| 30137 | esac |
| 30138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30139 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30140 | ac_status=$? |
| 30141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30142 | rm -f conftest.er1 |
| 30143 | cat conftest.err >&5 |
| 30144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30145 | (exit $ac_status); } >/dev/null; then |
| 30146 | if test -s conftest.err; then |
| 30147 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30148 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30149 | else |
| 30150 | ac_cpp_err= |
| 30151 | fi |
| 30152 | else |
| 30153 | ac_cpp_err=yes |
| 30154 | fi |
| 30155 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30156 | ac_header_preproc=yes |
| 30157 | else |
| 30158 | echo "$as_me: failed program was:" >&5 |
| 30159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30160 | |
| 30161 | ac_header_preproc=no |
| 30162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30163 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30164 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30165 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30166 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30167 | |
| 30168 | # So? What about this header? |
| 30169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30170 | yes:no: ) |
| 30171 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30172 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30174 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30175 | ac_header_preproc=yes |
| 30176 | ;; |
| 30177 | no:yes:* ) |
| 30178 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30179 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30180 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30181 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30182 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30183 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30184 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30185 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30187 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30188 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30189 | 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] | 30190 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30191 | ## ----------------------------------- ## |
| 30192 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30193 | ## ----------------------------------- ## |
| 30194 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30195 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30196 | ;; |
| 30197 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30198 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30200 | 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] | 30201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30202 | else |
| 30203 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30204 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30205 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30206 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30207 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30208 | |
| 30209 | fi |
| 30210 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30211 | cat >>confdefs.h <<_ACEOF |
| 30212 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30213 | _ACEOF |
| 30214 | |
| 30215 | fi |
| 30216 | |
| 30217 | done |
| 30218 | |
| 30219 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30220 | |
| 30221 | for ac_header in utime.h windows.h |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30222 | do |
| 30223 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30224 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30225 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30227 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30229 | fi |
| 30230 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30231 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30232 | echo "${ECHO_T}$ac_res" >&6; } |
| 30233 | else |
| 30234 | # Is the header compilable? |
| 30235 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30236 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30237 | cat >conftest.$ac_ext <<_ACEOF |
| 30238 | /* confdefs.h. */ |
| 30239 | _ACEOF |
| 30240 | cat confdefs.h >>conftest.$ac_ext |
| 30241 | cat >>conftest.$ac_ext <<_ACEOF |
| 30242 | /* end confdefs.h. */ |
| 30243 | $ac_includes_default |
| 30244 | #include <$ac_header> |
| 30245 | _ACEOF |
| 30246 | rm -f conftest.$ac_objext |
| 30247 | if { (ac_try="$ac_compile" |
| 30248 | case "(($ac_try" in |
| 30249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30250 | *) ac_try_echo=$ac_try;; |
| 30251 | esac |
| 30252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30253 | (eval "$ac_compile") 2>conftest.er1 |
| 30254 | ac_status=$? |
| 30255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30256 | rm -f conftest.er1 |
| 30257 | cat conftest.err >&5 |
| 30258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30259 | (exit $ac_status); } && |
| 30260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30261 | { (case "(($ac_try" in |
| 30262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30263 | *) ac_try_echo=$ac_try;; |
| 30264 | esac |
| 30265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30266 | (eval "$ac_try") 2>&5 |
| 30267 | ac_status=$? |
| 30268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30269 | (exit $ac_status); }; } && |
| 30270 | { ac_try='test -s conftest.$ac_objext' |
| 30271 | { (case "(($ac_try" in |
| 30272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30273 | *) ac_try_echo=$ac_try;; |
| 30274 | esac |
| 30275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30276 | (eval "$ac_try") 2>&5 |
| 30277 | ac_status=$? |
| 30278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30279 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30280 | ac_header_compiler=yes |
| 30281 | else |
| 30282 | echo "$as_me: failed program was:" >&5 |
| 30283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30284 | |
| 30285 | ac_header_compiler=no |
| 30286 | fi |
| 30287 | |
| 30288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30289 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30290 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30291 | |
| 30292 | # Is the header present? |
| 30293 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30294 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30295 | cat >conftest.$ac_ext <<_ACEOF |
| 30296 | /* confdefs.h. */ |
| 30297 | _ACEOF |
| 30298 | cat confdefs.h >>conftest.$ac_ext |
| 30299 | cat >>conftest.$ac_ext <<_ACEOF |
| 30300 | /* end confdefs.h. */ |
| 30301 | #include <$ac_header> |
| 30302 | _ACEOF |
| 30303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30304 | case "(($ac_try" in |
| 30305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30306 | *) ac_try_echo=$ac_try;; |
| 30307 | esac |
| 30308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30310 | ac_status=$? |
| 30311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30312 | rm -f conftest.er1 |
| 30313 | cat conftest.err >&5 |
| 30314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30315 | (exit $ac_status); } >/dev/null; then |
| 30316 | if test -s conftest.err; then |
| 30317 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30319 | else |
| 30320 | ac_cpp_err= |
| 30321 | fi |
| 30322 | else |
| 30323 | ac_cpp_err=yes |
| 30324 | fi |
| 30325 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30326 | ac_header_preproc=yes |
| 30327 | else |
| 30328 | echo "$as_me: failed program was:" >&5 |
| 30329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30330 | |
| 30331 | ac_header_preproc=no |
| 30332 | fi |
| 30333 | |
| 30334 | rm -f conftest.err conftest.$ac_ext |
| 30335 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30336 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30337 | |
| 30338 | # So? What about this header? |
| 30339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30340 | yes:no: ) |
| 30341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30345 | ac_header_preproc=yes |
| 30346 | ;; |
| 30347 | no:yes:* ) |
| 30348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30360 | ( cat <<\_ASBOX |
| 30361 | ## ----------------------------------- ## |
| 30362 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30363 | ## ----------------------------------- ## |
| 30364 | _ASBOX |
| 30365 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30366 | ;; |
| 30367 | esac |
| 30368 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30372 | else |
| 30373 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30374 | fi |
| 30375 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30376 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30377 | echo "${ECHO_T}$ac_res" >&6; } |
| 30378 | |
| 30379 | fi |
| 30380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30381 | cat >>confdefs.h <<_ACEOF |
| 30382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30383 | _ACEOF |
| 30384 | |
| 30385 | fi |
| 30386 | |
| 30387 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30388 | |
| 30389 | |
| 30390 | |
| 30391 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30392 | |
| 30393 | 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] | 30394 | do |
| 30395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30396 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30397 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30399 | 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] | 30400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30401 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30402 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30403 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30404 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30405 | else |
| 30406 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30407 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30408 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30409 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30410 | /* confdefs.h. */ |
| 30411 | _ACEOF |
| 30412 | cat confdefs.h >>conftest.$ac_ext |
| 30413 | cat >>conftest.$ac_ext <<_ACEOF |
| 30414 | /* end confdefs.h. */ |
| 30415 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30416 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30417 | _ACEOF |
| 30418 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30419 | if { (ac_try="$ac_compile" |
| 30420 | case "(($ac_try" in |
| 30421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30422 | *) ac_try_echo=$ac_try;; |
| 30423 | esac |
| 30424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30425 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30426 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30428 | rm -f conftest.er1 |
| 30429 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30431 | (exit $ac_status); } && |
| 30432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30433 | { (case "(($ac_try" in |
| 30434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30435 | *) ac_try_echo=$ac_try;; |
| 30436 | esac |
| 30437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30438 | (eval "$ac_try") 2>&5 |
| 30439 | ac_status=$? |
| 30440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30441 | (exit $ac_status); }; } && |
| 30442 | { ac_try='test -s conftest.$ac_objext' |
| 30443 | { (case "(($ac_try" in |
| 30444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30445 | *) ac_try_echo=$ac_try;; |
| 30446 | esac |
| 30447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30448 | (eval "$ac_try") 2>&5 |
| 30449 | ac_status=$? |
| 30450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30451 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30452 | ac_header_compiler=yes |
| 30453 | else |
| 30454 | echo "$as_me: failed program was:" >&5 |
| 30455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30457 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30458 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30459 | |
| 30460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30461 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30462 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30463 | |
| 30464 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30465 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30466 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30467 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30468 | /* confdefs.h. */ |
| 30469 | _ACEOF |
| 30470 | cat confdefs.h >>conftest.$ac_ext |
| 30471 | cat >>conftest.$ac_ext <<_ACEOF |
| 30472 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30473 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30474 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30475 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30476 | case "(($ac_try" in |
| 30477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30478 | *) ac_try_echo=$ac_try;; |
| 30479 | esac |
| 30480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30481 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30482 | ac_status=$? |
| 30483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30484 | rm -f conftest.er1 |
| 30485 | cat conftest.err >&5 |
| 30486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30487 | (exit $ac_status); } >/dev/null; then |
| 30488 | if test -s conftest.err; then |
| 30489 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30490 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30491 | else |
| 30492 | ac_cpp_err= |
| 30493 | fi |
| 30494 | else |
| 30495 | ac_cpp_err=yes |
| 30496 | fi |
| 30497 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30498 | ac_header_preproc=yes |
| 30499 | else |
| 30500 | echo "$as_me: failed program was:" >&5 |
| 30501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30502 | |
| 30503 | ac_header_preproc=no |
| 30504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30505 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30506 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30507 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30508 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30509 | |
| 30510 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30512 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30513 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30514 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30516 | 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] | 30517 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30518 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30519 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30520 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30521 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30522 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30523 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30524 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30525 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30526 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30527 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30530 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30531 | 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] | 30532 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30533 | ## ----------------------------------- ## |
| 30534 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30535 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30536 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30537 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30538 | ;; |
| 30539 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30540 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30542 | 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] | 30543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30544 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30545 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30546 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30547 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30548 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30549 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30550 | |
| 30551 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30553 | cat >>confdefs.h <<_ACEOF |
| 30554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30555 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30556 | |
| 30557 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30558 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30559 | done |
| 30560 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30561 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30562 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 30563 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 30564 | |
| 30565 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30566 | do |
| 30567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30569 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30571 | 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] | 30572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30574 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30575 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30576 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30577 | else |
| 30578 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30579 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30580 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30581 | cat >conftest.$ac_ext <<_ACEOF |
| 30582 | /* confdefs.h. */ |
| 30583 | _ACEOF |
| 30584 | cat confdefs.h >>conftest.$ac_ext |
| 30585 | cat >>conftest.$ac_ext <<_ACEOF |
| 30586 | /* end confdefs.h. */ |
| 30587 | $ac_includes_default |
| 30588 | #include <$ac_header> |
| 30589 | _ACEOF |
| 30590 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30591 | if { (ac_try="$ac_compile" |
| 30592 | case "(($ac_try" in |
| 30593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30594 | *) ac_try_echo=$ac_try;; |
| 30595 | esac |
| 30596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30597 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30598 | ac_status=$? |
| 30599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30600 | rm -f conftest.er1 |
| 30601 | cat conftest.err >&5 |
| 30602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30603 | (exit $ac_status); } && |
| 30604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30605 | { (case "(($ac_try" in |
| 30606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30607 | *) ac_try_echo=$ac_try;; |
| 30608 | esac |
| 30609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30610 | (eval "$ac_try") 2>&5 |
| 30611 | ac_status=$? |
| 30612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30613 | (exit $ac_status); }; } && |
| 30614 | { ac_try='test -s conftest.$ac_objext' |
| 30615 | { (case "(($ac_try" in |
| 30616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30617 | *) ac_try_echo=$ac_try;; |
| 30618 | esac |
| 30619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30620 | (eval "$ac_try") 2>&5 |
| 30621 | ac_status=$? |
| 30622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30623 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30624 | ac_header_compiler=yes |
| 30625 | else |
| 30626 | echo "$as_me: failed program was:" >&5 |
| 30627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30629 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30630 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30631 | |
| 30632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30633 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30634 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30635 | |
| 30636 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30637 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30638 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30639 | cat >conftest.$ac_ext <<_ACEOF |
| 30640 | /* confdefs.h. */ |
| 30641 | _ACEOF |
| 30642 | cat confdefs.h >>conftest.$ac_ext |
| 30643 | cat >>conftest.$ac_ext <<_ACEOF |
| 30644 | /* end confdefs.h. */ |
| 30645 | #include <$ac_header> |
| 30646 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30647 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30648 | case "(($ac_try" in |
| 30649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30650 | *) ac_try_echo=$ac_try;; |
| 30651 | esac |
| 30652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30654 | ac_status=$? |
| 30655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30656 | rm -f conftest.er1 |
| 30657 | cat conftest.err >&5 |
| 30658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30659 | (exit $ac_status); } >/dev/null; then |
| 30660 | if test -s conftest.err; then |
| 30661 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30662 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30663 | else |
| 30664 | ac_cpp_err= |
| 30665 | fi |
| 30666 | else |
| 30667 | ac_cpp_err=yes |
| 30668 | fi |
| 30669 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30670 | ac_header_preproc=yes |
| 30671 | else |
| 30672 | echo "$as_me: failed program was:" >&5 |
| 30673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30674 | |
| 30675 | ac_header_preproc=no |
| 30676 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30677 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30678 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30679 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30680 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30681 | |
| 30682 | # So? What about this header? |
| 30683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30684 | yes:no: ) |
| 30685 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30686 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30688 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30689 | ac_header_preproc=yes |
| 30690 | ;; |
| 30691 | no:yes:* ) |
| 30692 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30693 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30694 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30695 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30696 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30697 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30698 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30699 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30702 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30703 | 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] | 30704 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30705 | ## ----------------------------------- ## |
| 30706 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30707 | ## ----------------------------------- ## |
| 30708 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30709 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30710 | ;; |
| 30711 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30714 | 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] | 30715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30716 | else |
| 30717 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30719 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30721 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30722 | |
| 30723 | fi |
| 30724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30725 | cat >>confdefs.h <<_ACEOF |
| 30726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30727 | _ACEOF |
| 30728 | |
| 30729 | fi |
| 30730 | |
| 30731 | done |
| 30732 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30733 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30734 | |
| 30735 | for ac_header in pthread.h |
| 30736 | do |
| 30737 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30739 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30741 | 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] | 30742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30743 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30744 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30745 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30746 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30747 | else |
| 30748 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30749 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30750 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30751 | cat >conftest.$ac_ext <<_ACEOF |
| 30752 | /* confdefs.h. */ |
| 30753 | _ACEOF |
| 30754 | cat confdefs.h >>conftest.$ac_ext |
| 30755 | cat >>conftest.$ac_ext <<_ACEOF |
| 30756 | /* end confdefs.h. */ |
| 30757 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30758 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30759 | _ACEOF |
| 30760 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30761 | if { (ac_try="$ac_compile" |
| 30762 | case "(($ac_try" in |
| 30763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30764 | *) ac_try_echo=$ac_try;; |
| 30765 | esac |
| 30766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30767 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30768 | ac_status=$? |
| 30769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30770 | rm -f conftest.er1 |
| 30771 | cat conftest.err >&5 |
| 30772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30773 | (exit $ac_status); } && |
| 30774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30775 | { (case "(($ac_try" in |
| 30776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30777 | *) ac_try_echo=$ac_try;; |
| 30778 | esac |
| 30779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30780 | (eval "$ac_try") 2>&5 |
| 30781 | ac_status=$? |
| 30782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30783 | (exit $ac_status); }; } && |
| 30784 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30794 | ac_header_compiler=yes |
| 30795 | else |
| 30796 | echo "$as_me: failed program was:" >&5 |
| 30797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30799 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30801 | |
| 30802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30803 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30804 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30805 | |
| 30806 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30807 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30808 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30809 | cat >conftest.$ac_ext <<_ACEOF |
| 30810 | /* confdefs.h. */ |
| 30811 | _ACEOF |
| 30812 | cat confdefs.h >>conftest.$ac_ext |
| 30813 | cat >>conftest.$ac_ext <<_ACEOF |
| 30814 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30815 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30816 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30817 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30818 | case "(($ac_try" in |
| 30819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30820 | *) ac_try_echo=$ac_try;; |
| 30821 | esac |
| 30822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30823 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30824 | ac_status=$? |
| 30825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30826 | rm -f conftest.er1 |
| 30827 | cat conftest.err >&5 |
| 30828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30829 | (exit $ac_status); } >/dev/null; then |
| 30830 | if test -s conftest.err; then |
| 30831 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30832 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30833 | else |
| 30834 | ac_cpp_err= |
| 30835 | fi |
| 30836 | else |
| 30837 | ac_cpp_err=yes |
| 30838 | fi |
| 30839 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30840 | ac_header_preproc=yes |
| 30841 | else |
| 30842 | echo "$as_me: failed program was:" >&5 |
| 30843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30844 | |
| 30845 | ac_header_preproc=no |
| 30846 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30847 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30848 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30849 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30850 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30851 | |
| 30852 | # So? What about this header? |
| 30853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30854 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30855 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30856 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30858 | 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] | 30859 | ac_header_preproc=yes |
| 30860 | ;; |
| 30861 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30862 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30863 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30864 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30865 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30866 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30867 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30868 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30869 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30871 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30872 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30873 | 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] | 30874 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30875 | ## ----------------------------------- ## |
| 30876 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30877 | ## ----------------------------------- ## |
| 30878 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30879 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30880 | ;; |
| 30881 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30882 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30883 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30884 | 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] | 30885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30886 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30887 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30888 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30889 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30891 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30892 | |
| 30893 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30894 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30895 | cat >>confdefs.h <<_ACEOF |
| 30896 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30897 | _ACEOF |
| 30898 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30899 | |
| 30900 | else |
| 30901 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30902 | |
| 30903 | fi |
| 30904 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30905 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30906 | |
| 30907 | else |
| 30908 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30909 | |
| 30910 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 30911 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 30912 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30913 | |
| 30914 | |
| 30915 | for ac_header in ffi.h ffi/ffi.h |
| 30916 | do |
| 30917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30923 | fi |
| 30924 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30926 | echo "${ECHO_T}$ac_res" >&6; } |
| 30927 | else |
| 30928 | # Is the header compilable? |
| 30929 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30931 | cat >conftest.$ac_ext <<_ACEOF |
| 30932 | /* confdefs.h. */ |
| 30933 | _ACEOF |
| 30934 | cat confdefs.h >>conftest.$ac_ext |
| 30935 | cat >>conftest.$ac_ext <<_ACEOF |
| 30936 | /* end confdefs.h. */ |
| 30937 | $ac_includes_default |
| 30938 | #include <$ac_header> |
| 30939 | _ACEOF |
| 30940 | rm -f conftest.$ac_objext |
| 30941 | if { (ac_try="$ac_compile" |
| 30942 | case "(($ac_try" in |
| 30943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30944 | *) ac_try_echo=$ac_try;; |
| 30945 | esac |
| 30946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30947 | (eval "$ac_compile") 2>conftest.er1 |
| 30948 | ac_status=$? |
| 30949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30950 | rm -f conftest.er1 |
| 30951 | cat conftest.err >&5 |
| 30952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30953 | (exit $ac_status); } && |
| 30954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30955 | { (case "(($ac_try" in |
| 30956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30957 | *) ac_try_echo=$ac_try;; |
| 30958 | esac |
| 30959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30960 | (eval "$ac_try") 2>&5 |
| 30961 | ac_status=$? |
| 30962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30963 | (exit $ac_status); }; } && |
| 30964 | { ac_try='test -s conftest.$ac_objext' |
| 30965 | { (case "(($ac_try" in |
| 30966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30967 | *) ac_try_echo=$ac_try;; |
| 30968 | esac |
| 30969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30970 | (eval "$ac_try") 2>&5 |
| 30971 | ac_status=$? |
| 30972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30973 | (exit $ac_status); }; }; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30974 | ac_header_compiler=yes |
| 30975 | else |
| 30976 | echo "$as_me: failed program was:" >&5 |
| 30977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30978 | |
| 30979 | ac_header_compiler=no |
| 30980 | fi |
| 30981 | |
| 30982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30983 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30984 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30985 | |
| 30986 | # Is the header present? |
| 30987 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30988 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30989 | cat >conftest.$ac_ext <<_ACEOF |
| 30990 | /* confdefs.h. */ |
| 30991 | _ACEOF |
| 30992 | cat confdefs.h >>conftest.$ac_ext |
| 30993 | cat >>conftest.$ac_ext <<_ACEOF |
| 30994 | /* end confdefs.h. */ |
| 30995 | #include <$ac_header> |
| 30996 | _ACEOF |
| 30997 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
| 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 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31009 | (exit $ac_status); } >/dev/null; then |
| 31010 | if test -s conftest.err; then |
| 31011 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 31012 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 31013 | else |
| 31014 | ac_cpp_err= |
| 31015 | fi |
| 31016 | else |
| 31017 | ac_cpp_err=yes |
| 31018 | fi |
| 31019 | if test -z "$ac_cpp_err"; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31020 | ac_header_preproc=yes |
| 31021 | else |
| 31022 | echo "$as_me: failed program was:" >&5 |
| 31023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31024 | |
| 31025 | ac_header_preproc=no |
| 31026 | fi |
| 31027 | |
| 31028 | rm -f conftest.err conftest.$ac_ext |
| 31029 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 31030 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 31031 | |
| 31032 | # So? What about this header? |
| 31033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 31034 | yes:no: ) |
| 31035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 31036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 31037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 31038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 31039 | ac_header_preproc=yes |
| 31040 | ;; |
| 31041 | no:yes:* ) |
| 31042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 31043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 31044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 31045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 31046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 31047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 31048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 31049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 31050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 31051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 31052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 31053 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 31054 | ( cat <<\_ASBOX |
| 31055 | ## ----------------------------------- ## |
| 31056 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 31057 | ## ----------------------------------- ## |
| 31058 | _ASBOX |
| 31059 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 31060 | ;; |
| 31061 | esac |
| 31062 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 31063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 31064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31066 | else |
| 31067 | eval "$as_ac_Header=\$ac_header_preproc" |
| 31068 | fi |
| 31069 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31071 | echo "${ECHO_T}$ac_res" >&6; } |
| 31072 | |
| 31073 | fi |
| 31074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 31075 | cat >>confdefs.h <<_ACEOF |
| 31076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31077 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31078 | |
| 31079 | fi |
| 31080 | |
| 31081 | done |
| 31082 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 31083 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31084 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 31085 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 31086 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31087 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 31088 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 31089 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 31090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31091 | else |
| 31092 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31093 | ac_ext=cpp |
| 31094 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31095 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31096 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31097 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31098 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31099 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31100 | if test "$cross_compiling" = yes; then |
| 31101 | ac_cv_huge_val_sanity=yes |
| 31102 | else |
| 31103 | cat >conftest.$ac_ext <<_ACEOF |
| 31104 | /* confdefs.h. */ |
| 31105 | _ACEOF |
| 31106 | cat confdefs.h >>conftest.$ac_ext |
| 31107 | cat >>conftest.$ac_ext <<_ACEOF |
| 31108 | /* end confdefs.h. */ |
| 31109 | #include <math.h> |
| 31110 | int |
| 31111 | main () |
| 31112 | { |
| 31113 | double x = HUGE_VAL; return x != x; |
| 31114 | ; |
| 31115 | return 0; |
| 31116 | } |
| 31117 | _ACEOF |
| 31118 | rm -f conftest$ac_exeext |
| 31119 | if { (ac_try="$ac_link" |
| 31120 | case "(($ac_try" in |
| 31121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31122 | *) ac_try_echo=$ac_try;; |
| 31123 | esac |
| 31124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31125 | (eval "$ac_link") 2>&5 |
| 31126 | ac_status=$? |
| 31127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31129 | { (case "(($ac_try" in |
| 31130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31131 | *) ac_try_echo=$ac_try;; |
| 31132 | esac |
| 31133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31134 | (eval "$ac_try") 2>&5 |
| 31135 | ac_status=$? |
| 31136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31137 | (exit $ac_status); }; }; then |
| 31138 | ac_cv_huge_val_sanity=yes |
| 31139 | else |
| 31140 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31141 | echo "$as_me: failed program was:" >&5 |
| 31142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31143 | |
| 31144 | ( exit $ac_status ) |
| 31145 | ac_cv_huge_val_sanity=no |
| 31146 | fi |
| 31147 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 31148 | fi |
| 31149 | |
| 31150 | |
| 31151 | ac_ext=c |
| 31152 | ac_cpp='$CPP $CPPFLAGS' |
| 31153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31156 | |
| 31157 | |
| 31158 | fi |
| 31159 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 31160 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 31161 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 31162 | |
| 31163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31164 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 31165 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31166 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 31167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31168 | else |
| 31169 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31170 | /* confdefs.h. */ |
| 31171 | _ACEOF |
| 31172 | cat confdefs.h >>conftest.$ac_ext |
| 31173 | cat >>conftest.$ac_ext <<_ACEOF |
| 31174 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31175 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31176 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31177 | int |
| 31178 | main () |
| 31179 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31180 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31181 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31182 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31183 | return 0; |
| 31184 | ; |
| 31185 | return 0; |
| 31186 | } |
| 31187 | _ACEOF |
| 31188 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31189 | if { (ac_try="$ac_compile" |
| 31190 | case "(($ac_try" in |
| 31191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31192 | *) ac_try_echo=$ac_try;; |
| 31193 | esac |
| 31194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31195 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31196 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31198 | rm -f conftest.er1 |
| 31199 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31201 | (exit $ac_status); } && |
| 31202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31203 | { (case "(($ac_try" in |
| 31204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31205 | *) ac_try_echo=$ac_try;; |
| 31206 | esac |
| 31207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31208 | (eval "$ac_try") 2>&5 |
| 31209 | ac_status=$? |
| 31210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31211 | (exit $ac_status); }; } && |
| 31212 | { ac_try='test -s conftest.$ac_objext' |
| 31213 | { (case "(($ac_try" in |
| 31214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31215 | *) ac_try_echo=$ac_try;; |
| 31216 | esac |
| 31217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31218 | (eval "$ac_try") 2>&5 |
| 31219 | ac_status=$? |
| 31220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31221 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31222 | ac_cv_type_pid_t=yes |
| 31223 | else |
| 31224 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31227 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31228 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31229 | |
| 31230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31231 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31232 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 31233 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31234 | if test $ac_cv_type_pid_t = yes; then |
| 31235 | : |
| 31236 | else |
| 31237 | |
| 31238 | cat >>confdefs.h <<_ACEOF |
| 31239 | #define pid_t int |
| 31240 | _ACEOF |
| 31241 | |
| 31242 | fi |
| 31243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31244 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 31245 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31246 | if test "${ac_cv_type_size_t+set}" = set; then |
| 31247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31248 | else |
| 31249 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31250 | /* confdefs.h. */ |
| 31251 | _ACEOF |
| 31252 | cat confdefs.h >>conftest.$ac_ext |
| 31253 | cat >>conftest.$ac_ext <<_ACEOF |
| 31254 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31255 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31256 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31257 | int |
| 31258 | main () |
| 31259 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31260 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31261 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31262 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31263 | return 0; |
| 31264 | ; |
| 31265 | return 0; |
| 31266 | } |
| 31267 | _ACEOF |
| 31268 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31269 | if { (ac_try="$ac_compile" |
| 31270 | case "(($ac_try" in |
| 31271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31272 | *) ac_try_echo=$ac_try;; |
| 31273 | esac |
| 31274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31275 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31276 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31278 | rm -f conftest.er1 |
| 31279 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31281 | (exit $ac_status); } && |
| 31282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31283 | { (case "(($ac_try" in |
| 31284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31285 | *) ac_try_echo=$ac_try;; |
| 31286 | esac |
| 31287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31288 | (eval "$ac_try") 2>&5 |
| 31289 | ac_status=$? |
| 31290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31291 | (exit $ac_status); }; } && |
| 31292 | { ac_try='test -s conftest.$ac_objext' |
| 31293 | { (case "(($ac_try" in |
| 31294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31295 | *) ac_try_echo=$ac_try;; |
| 31296 | esac |
| 31297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31298 | (eval "$ac_try") 2>&5 |
| 31299 | ac_status=$? |
| 31300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31301 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31302 | ac_cv_type_size_t=yes |
| 31303 | else |
| 31304 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31307 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31308 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31309 | |
| 31310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31311 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31312 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 31313 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31314 | if test $ac_cv_type_size_t = yes; then |
| 31315 | : |
| 31316 | else |
| 31317 | |
| 31318 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31319 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31320 | _ACEOF |
| 31321 | |
| 31322 | fi |
| 31323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31324 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 31325 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31326 | if test "${ac_cv_type_signal+set}" = set; then |
| 31327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31328 | else |
| 31329 | cat >conftest.$ac_ext <<_ACEOF |
| 31330 | /* confdefs.h. */ |
| 31331 | _ACEOF |
| 31332 | cat confdefs.h >>conftest.$ac_ext |
| 31333 | cat >>conftest.$ac_ext <<_ACEOF |
| 31334 | /* end confdefs.h. */ |
| 31335 | #include <sys/types.h> |
| 31336 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31337 | |
| 31338 | int |
| 31339 | main () |
| 31340 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31341 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31342 | ; |
| 31343 | return 0; |
| 31344 | } |
| 31345 | _ACEOF |
| 31346 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31347 | if { (ac_try="$ac_compile" |
| 31348 | case "(($ac_try" in |
| 31349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31350 | *) ac_try_echo=$ac_try;; |
| 31351 | esac |
| 31352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31353 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31354 | ac_status=$? |
| 31355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31356 | rm -f conftest.er1 |
| 31357 | cat conftest.err >&5 |
| 31358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31359 | (exit $ac_status); } && |
| 31360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31361 | { (case "(($ac_try" in |
| 31362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31363 | *) ac_try_echo=$ac_try;; |
| 31364 | esac |
| 31365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31366 | (eval "$ac_try") 2>&5 |
| 31367 | ac_status=$? |
| 31368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31369 | (exit $ac_status); }; } && |
| 31370 | { ac_try='test -s conftest.$ac_objext' |
| 31371 | { (case "(($ac_try" in |
| 31372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31373 | *) ac_try_echo=$ac_try;; |
| 31374 | esac |
| 31375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31376 | (eval "$ac_try") 2>&5 |
| 31377 | ac_status=$? |
| 31378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31379 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31380 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31381 | else |
| 31382 | echo "$as_me: failed program was:" >&5 |
| 31383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31385 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31386 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31387 | |
| 31388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31390 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 31391 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31392 | |
| 31393 | cat >>confdefs.h <<_ACEOF |
| 31394 | #define RETSIGTYPE $ac_cv_type_signal |
| 31395 | _ACEOF |
| 31396 | |
| 31397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31398 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 31399 | 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] | 31400 | if test "${ac_cv_struct_tm+set}" = set; then |
| 31401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31402 | else |
| 31403 | cat >conftest.$ac_ext <<_ACEOF |
| 31404 | /* confdefs.h. */ |
| 31405 | _ACEOF |
| 31406 | cat confdefs.h >>conftest.$ac_ext |
| 31407 | cat >>conftest.$ac_ext <<_ACEOF |
| 31408 | /* end confdefs.h. */ |
| 31409 | #include <sys/types.h> |
| 31410 | #include <time.h> |
| 31411 | |
| 31412 | int |
| 31413 | main () |
| 31414 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31415 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31416 | ; |
| 31417 | return 0; |
| 31418 | } |
| 31419 | _ACEOF |
| 31420 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31421 | if { (ac_try="$ac_compile" |
| 31422 | case "(($ac_try" in |
| 31423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31424 | *) ac_try_echo=$ac_try;; |
| 31425 | esac |
| 31426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31427 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31428 | ac_status=$? |
| 31429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31430 | rm -f conftest.er1 |
| 31431 | cat conftest.err >&5 |
| 31432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31433 | (exit $ac_status); } && |
| 31434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31435 | { (case "(($ac_try" in |
| 31436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31437 | *) ac_try_echo=$ac_try;; |
| 31438 | esac |
| 31439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31440 | (eval "$ac_try") 2>&5 |
| 31441 | ac_status=$? |
| 31442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31443 | (exit $ac_status); }; } && |
| 31444 | { ac_try='test -s conftest.$ac_objext' |
| 31445 | { (case "(($ac_try" in |
| 31446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31447 | *) ac_try_echo=$ac_try;; |
| 31448 | esac |
| 31449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31450 | (eval "$ac_try") 2>&5 |
| 31451 | ac_status=$? |
| 31452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31453 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31454 | ac_cv_struct_tm=time.h |
| 31455 | else |
| 31456 | echo "$as_me: failed program was:" >&5 |
| 31457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31459 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31460 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31461 | |
| 31462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31463 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31464 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 31465 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31466 | if test $ac_cv_struct_tm = sys/time.h; then |
| 31467 | |
| 31468 | cat >>confdefs.h <<\_ACEOF |
| 31469 | #define TM_IN_SYS_TIME 1 |
| 31470 | _ACEOF |
| 31471 | |
| 31472 | fi |
| 31473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31474 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 31475 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31476 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 31477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31478 | else |
| 31479 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31480 | /* confdefs.h. */ |
| 31481 | _ACEOF |
| 31482 | cat confdefs.h >>conftest.$ac_ext |
| 31483 | cat >>conftest.$ac_ext <<_ACEOF |
| 31484 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31485 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31486 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31487 | int |
| 31488 | main () |
| 31489 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31490 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31491 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31492 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31493 | return 0; |
| 31494 | ; |
| 31495 | return 0; |
| 31496 | } |
| 31497 | _ACEOF |
| 31498 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31499 | if { (ac_try="$ac_compile" |
| 31500 | case "(($ac_try" in |
| 31501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31502 | *) ac_try_echo=$ac_try;; |
| 31503 | esac |
| 31504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31505 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31506 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31508 | rm -f conftest.er1 |
| 31509 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31511 | (exit $ac_status); } && |
| 31512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 31519 | ac_status=$? |
| 31520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31521 | (exit $ac_status); }; } && |
| 31522 | { ac_try='test -s conftest.$ac_objext' |
| 31523 | { (case "(($ac_try" in |
| 31524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31525 | *) ac_try_echo=$ac_try;; |
| 31526 | esac |
| 31527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31528 | (eval "$ac_try") 2>&5 |
| 31529 | ac_status=$? |
| 31530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31531 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31532 | ac_cv_type_int64_t=yes |
| 31533 | else |
| 31534 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31537 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31539 | |
| 31540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31541 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31542 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 31543 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31544 | if test $ac_cv_type_int64_t = yes; then |
| 31545 | |
| 31546 | cat >>confdefs.h <<_ACEOF |
| 31547 | #define HAVE_INT64_T 1 |
| 31548 | _ACEOF |
| 31549 | |
| 31550 | |
| 31551 | else |
| 31552 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 31553 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 31554 | { (exit 1); exit 1; }; } |
| 31555 | fi |
| 31556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31557 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 31558 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31559 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 31560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31561 | else |
| 31562 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31563 | /* confdefs.h. */ |
| 31564 | _ACEOF |
| 31565 | cat confdefs.h >>conftest.$ac_ext |
| 31566 | cat >>conftest.$ac_ext <<_ACEOF |
| 31567 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31568 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31569 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31570 | int |
| 31571 | main () |
| 31572 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31573 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31574 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31575 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31576 | return 0; |
| 31577 | ; |
| 31578 | return 0; |
| 31579 | } |
| 31580 | _ACEOF |
| 31581 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31582 | if { (ac_try="$ac_compile" |
| 31583 | case "(($ac_try" in |
| 31584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31585 | *) ac_try_echo=$ac_try;; |
| 31586 | esac |
| 31587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31588 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31589 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31591 | rm -f conftest.er1 |
| 31592 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31594 | (exit $ac_status); } && |
| 31595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31596 | { (case "(($ac_try" in |
| 31597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31598 | *) ac_try_echo=$ac_try;; |
| 31599 | esac |
| 31600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31601 | (eval "$ac_try") 2>&5 |
| 31602 | ac_status=$? |
| 31603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31604 | (exit $ac_status); }; } && |
| 31605 | { ac_try='test -s conftest.$ac_objext' |
| 31606 | { (case "(($ac_try" in |
| 31607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31608 | *) ac_try_echo=$ac_try;; |
| 31609 | esac |
| 31610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31611 | (eval "$ac_try") 2>&5 |
| 31612 | ac_status=$? |
| 31613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31614 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31615 | ac_cv_type_uint64_t=yes |
| 31616 | else |
| 31617 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31620 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31621 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31622 | |
| 31623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31624 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31625 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 31626 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31627 | if test $ac_cv_type_uint64_t = yes; then |
| 31628 | |
| 31629 | cat >>confdefs.h <<_ACEOF |
| 31630 | #define HAVE_UINT64_T 1 |
| 31631 | _ACEOF |
| 31632 | |
| 31633 | |
| 31634 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31635 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 31636 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31637 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 31638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31639 | else |
| 31640 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31641 | /* confdefs.h. */ |
| 31642 | _ACEOF |
| 31643 | cat confdefs.h >>conftest.$ac_ext |
| 31644 | cat >>conftest.$ac_ext <<_ACEOF |
| 31645 | /* end confdefs.h. */ |
| 31646 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31647 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31648 | int |
| 31649 | main () |
| 31650 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31651 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31652 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31653 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31654 | return 0; |
| 31655 | ; |
| 31656 | return 0; |
| 31657 | } |
| 31658 | _ACEOF |
| 31659 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31660 | if { (ac_try="$ac_compile" |
| 31661 | case "(($ac_try" in |
| 31662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31663 | *) ac_try_echo=$ac_try;; |
| 31664 | esac |
| 31665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31666 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31667 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31669 | rm -f conftest.er1 |
| 31670 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31672 | (exit $ac_status); } && |
| 31673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31674 | { (case "(($ac_try" in |
| 31675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31676 | *) ac_try_echo=$ac_try;; |
| 31677 | esac |
| 31678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31679 | (eval "$ac_try") 2>&5 |
| 31680 | ac_status=$? |
| 31681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31682 | (exit $ac_status); }; } && |
| 31683 | { ac_try='test -s conftest.$ac_objext' |
| 31684 | { (case "(($ac_try" in |
| 31685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31686 | *) ac_try_echo=$ac_try;; |
| 31687 | esac |
| 31688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31689 | (eval "$ac_try") 2>&5 |
| 31690 | ac_status=$? |
| 31691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31692 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31693 | ac_cv_type_u_int64_t=yes |
| 31694 | else |
| 31695 | echo "$as_me: failed program was:" >&5 |
| 31696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31698 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31699 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31700 | |
| 31701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31703 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 31704 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31705 | if test $ac_cv_type_u_int64_t = yes; then |
| 31706 | |
| 31707 | cat >>confdefs.h <<_ACEOF |
| 31708 | #define HAVE_U_INT64_T 1 |
| 31709 | _ACEOF |
| 31710 | |
| 31711 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 31712 | else |
| 31713 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 31714 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 31715 | { (exit 1); exit 1; }; } |
| 31716 | fi |
| 31717 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31718 | fi |
| 31719 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31720 | |
| 31721 | |
| 31722 | |
| 31723 | |
| 31724 | |
| 31725 | |
| 31726 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 31727 | |
| 31728 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31729 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31730 | do |
| 31731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31732 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31734 | 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] | 31735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31736 | else |
| 31737 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31738 | /* confdefs.h. */ |
| 31739 | _ACEOF |
| 31740 | cat confdefs.h >>conftest.$ac_ext |
| 31741 | cat >>conftest.$ac_ext <<_ACEOF |
| 31742 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31743 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31745 | #define $ac_func innocuous_$ac_func |
| 31746 | |
| 31747 | /* System header to define __stub macros and hopefully few prototypes, |
| 31748 | which can conflict with char $ac_func (); below. |
| 31749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31750 | <limits.h> exists even on freestanding compilers. */ |
| 31751 | |
| 31752 | #ifdef __STDC__ |
| 31753 | # include <limits.h> |
| 31754 | #else |
| 31755 | # include <assert.h> |
| 31756 | #endif |
| 31757 | |
| 31758 | #undef $ac_func |
| 31759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31760 | /* Override any GCC internal prototype to avoid an error. |
| 31761 | Use char because int might match the return type of a GCC |
| 31762 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31763 | #ifdef __cplusplus |
| 31764 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31765 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31766 | char $ac_func (); |
| 31767 | /* The GNU C library defines this for functions which it implements |
| 31768 | to always fail with ENOSYS. Some functions are actually named |
| 31769 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31770 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31771 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31772 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31773 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31774 | int |
| 31775 | main () |
| 31776 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31777 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31778 | ; |
| 31779 | return 0; |
| 31780 | } |
| 31781 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31783 | if { (ac_try="$ac_link" |
| 31784 | case "(($ac_try" in |
| 31785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31786 | *) ac_try_echo=$ac_try;; |
| 31787 | esac |
| 31788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31789 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31790 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31792 | rm -f conftest.er1 |
| 31793 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31795 | (exit $ac_status); } && |
| 31796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31797 | { (case "(($ac_try" in |
| 31798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31799 | *) ac_try_echo=$ac_try;; |
| 31800 | esac |
| 31801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31802 | (eval "$ac_try") 2>&5 |
| 31803 | ac_status=$? |
| 31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31805 | (exit $ac_status); }; } && |
| 31806 | { ac_try='test -s conftest$ac_exeext' |
| 31807 | { (case "(($ac_try" in |
| 31808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31809 | *) ac_try_echo=$ac_try;; |
| 31810 | esac |
| 31811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31812 | (eval "$ac_try") 2>&5 |
| 31813 | ac_status=$? |
| 31814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31815 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31816 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31817 | else |
| 31818 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31821 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31823 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31824 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31825 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31826 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31827 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31828 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31829 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31830 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31831 | cat >>confdefs.h <<_ACEOF |
| 31832 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31833 | _ACEOF |
| 31834 | |
| 31835 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31836 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31837 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31838 | |
| 31839 | |
| 31840 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31841 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31842 | for ac_func in powf fmodf strtof round |
| 31843 | do |
| 31844 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31845 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31846 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31847 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31849 | else |
| 31850 | cat >conftest.$ac_ext <<_ACEOF |
| 31851 | /* confdefs.h. */ |
| 31852 | _ACEOF |
| 31853 | cat confdefs.h >>conftest.$ac_ext |
| 31854 | cat >>conftest.$ac_ext <<_ACEOF |
| 31855 | /* end confdefs.h. */ |
| 31856 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31858 | #define $ac_func innocuous_$ac_func |
| 31859 | |
| 31860 | /* System header to define __stub macros and hopefully few prototypes, |
| 31861 | which can conflict with char $ac_func (); below. |
| 31862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31863 | <limits.h> exists even on freestanding compilers. */ |
| 31864 | |
| 31865 | #ifdef __STDC__ |
| 31866 | # include <limits.h> |
| 31867 | #else |
| 31868 | # include <assert.h> |
| 31869 | #endif |
| 31870 | |
| 31871 | #undef $ac_func |
| 31872 | |
| 31873 | /* Override any GCC internal prototype to avoid an error. |
| 31874 | Use char because int might match the return type of a GCC |
| 31875 | builtin and then its argument prototype would still apply. */ |
| 31876 | #ifdef __cplusplus |
| 31877 | extern "C" |
| 31878 | #endif |
| 31879 | char $ac_func (); |
| 31880 | /* The GNU C library defines this for functions which it implements |
| 31881 | to always fail with ENOSYS. Some functions are actually named |
| 31882 | something starting with __ and the normal name is an alias. */ |
| 31883 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31884 | choke me |
| 31885 | #endif |
| 31886 | |
| 31887 | int |
| 31888 | main () |
| 31889 | { |
| 31890 | return $ac_func (); |
| 31891 | ; |
| 31892 | return 0; |
| 31893 | } |
| 31894 | _ACEOF |
| 31895 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31896 | if { (ac_try="$ac_link" |
| 31897 | case "(($ac_try" in |
| 31898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31899 | *) ac_try_echo=$ac_try;; |
| 31900 | esac |
| 31901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31902 | (eval "$ac_link") 2>conftest.er1 |
| 31903 | ac_status=$? |
| 31904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31905 | rm -f conftest.er1 |
| 31906 | cat conftest.err >&5 |
| 31907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31908 | (exit $ac_status); } && |
| 31909 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31910 | { (case "(($ac_try" in |
| 31911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31912 | *) ac_try_echo=$ac_try;; |
| 31913 | esac |
| 31914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31915 | (eval "$ac_try") 2>&5 |
| 31916 | ac_status=$? |
| 31917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31918 | (exit $ac_status); }; } && |
| 31919 | { ac_try='test -s conftest$ac_exeext' |
| 31920 | { (case "(($ac_try" in |
| 31921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31922 | *) ac_try_echo=$ac_try;; |
| 31923 | esac |
| 31924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31925 | (eval "$ac_try") 2>&5 |
| 31926 | ac_status=$? |
| 31927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31928 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31929 | eval "$as_ac_var=yes" |
| 31930 | else |
| 31931 | echo "$as_me: failed program was:" >&5 |
| 31932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31933 | |
| 31934 | eval "$as_ac_var=no" |
| 31935 | fi |
| 31936 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31937 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31938 | conftest$ac_exeext conftest.$ac_ext |
| 31939 | fi |
| 31940 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31942 | echo "${ECHO_T}$ac_res" >&6; } |
| 31943 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31944 | cat >>confdefs.h <<_ACEOF |
| 31945 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31946 | _ACEOF |
| 31947 | |
| 31948 | fi |
| 31949 | done |
| 31950 | |
| 31951 | |
| 31952 | |
| 31953 | |
| 31954 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31955 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31956 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 31957 | do |
| 31958 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31959 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31960 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31961 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31963 | else |
| 31964 | cat >conftest.$ac_ext <<_ACEOF |
| 31965 | /* confdefs.h. */ |
| 31966 | _ACEOF |
| 31967 | cat confdefs.h >>conftest.$ac_ext |
| 31968 | cat >>conftest.$ac_ext <<_ACEOF |
| 31969 | /* end confdefs.h. */ |
| 31970 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31971 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31972 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31973 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31974 | /* System header to define __stub macros and hopefully few prototypes, |
| 31975 | which can conflict with char $ac_func (); below. |
| 31976 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31977 | <limits.h> exists even on freestanding compilers. */ |
| 31978 | |
| 31979 | #ifdef __STDC__ |
| 31980 | # include <limits.h> |
| 31981 | #else |
| 31982 | # include <assert.h> |
| 31983 | #endif |
| 31984 | |
| 31985 | #undef $ac_func |
| 31986 | |
| 31987 | /* Override any GCC internal prototype to avoid an error. |
| 31988 | Use char because int might match the return type of a GCC |
| 31989 | builtin and then its argument prototype would still apply. */ |
| 31990 | #ifdef __cplusplus |
| 31991 | extern "C" |
| 31992 | #endif |
| 31993 | char $ac_func (); |
| 31994 | /* The GNU C library defines this for functions which it implements |
| 31995 | to always fail with ENOSYS. Some functions are actually named |
| 31996 | something starting with __ and the normal name is an alias. */ |
| 31997 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31998 | choke me |
| 31999 | #endif |
| 32000 | |
| 32001 | int |
| 32002 | main () |
| 32003 | { |
| 32004 | return $ac_func (); |
| 32005 | ; |
| 32006 | return 0; |
| 32007 | } |
| 32008 | _ACEOF |
| 32009 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32010 | if { (ac_try="$ac_link" |
| 32011 | case "(($ac_try" in |
| 32012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32013 | *) ac_try_echo=$ac_try;; |
| 32014 | esac |
| 32015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32016 | (eval "$ac_link") 2>conftest.er1 |
| 32017 | ac_status=$? |
| 32018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32019 | rm -f conftest.er1 |
| 32020 | cat conftest.err >&5 |
| 32021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32022 | (exit $ac_status); } && |
| 32023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32024 | { (case "(($ac_try" in |
| 32025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32026 | *) ac_try_echo=$ac_try;; |
| 32027 | esac |
| 32028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32029 | (eval "$ac_try") 2>&5 |
| 32030 | ac_status=$? |
| 32031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32032 | (exit $ac_status); }; } && |
| 32033 | { ac_try='test -s conftest$ac_exeext' |
| 32034 | { (case "(($ac_try" in |
| 32035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32036 | *) ac_try_echo=$ac_try;; |
| 32037 | esac |
| 32038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32039 | (eval "$ac_try") 2>&5 |
| 32040 | ac_status=$? |
| 32041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32042 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32043 | eval "$as_ac_var=yes" |
| 32044 | else |
| 32045 | echo "$as_me: failed program was:" >&5 |
| 32046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32047 | |
| 32048 | eval "$as_ac_var=no" |
| 32049 | fi |
| 32050 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32051 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32052 | conftest$ac_exeext conftest.$ac_ext |
| 32053 | fi |
| 32054 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32055 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32056 | echo "${ECHO_T}$ac_res" >&6; } |
| 32057 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32058 | cat >>confdefs.h <<_ACEOF |
| 32059 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32060 | _ACEOF |
| 32061 | |
| 32062 | fi |
| 32063 | done |
| 32064 | |
| 32065 | |
| 32066 | |
| 32067 | |
| 32068 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32069 | do |
| 32070 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32071 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32072 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32073 | 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] | 32074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32075 | else |
| 32076 | cat >conftest.$ac_ext <<_ACEOF |
| 32077 | /* confdefs.h. */ |
| 32078 | _ACEOF |
| 32079 | cat confdefs.h >>conftest.$ac_ext |
| 32080 | cat >>conftest.$ac_ext <<_ACEOF |
| 32081 | /* end confdefs.h. */ |
| 32082 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32083 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32084 | #define $ac_func innocuous_$ac_func |
| 32085 | |
| 32086 | /* System header to define __stub macros and hopefully few prototypes, |
| 32087 | which can conflict with char $ac_func (); below. |
| 32088 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32089 | <limits.h> exists even on freestanding compilers. */ |
| 32090 | |
| 32091 | #ifdef __STDC__ |
| 32092 | # include <limits.h> |
| 32093 | #else |
| 32094 | # include <assert.h> |
| 32095 | #endif |
| 32096 | |
| 32097 | #undef $ac_func |
| 32098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32099 | /* Override any GCC internal prototype to avoid an error. |
| 32100 | Use char because int might match the return type of a GCC |
| 32101 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32102 | #ifdef __cplusplus |
| 32103 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32104 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32105 | char $ac_func (); |
| 32106 | /* The GNU C library defines this for functions which it implements |
| 32107 | to always fail with ENOSYS. Some functions are actually named |
| 32108 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32109 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32110 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32111 | #endif |
| 32112 | |
| 32113 | int |
| 32114 | main () |
| 32115 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32116 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32117 | ; |
| 32118 | return 0; |
| 32119 | } |
| 32120 | _ACEOF |
| 32121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32122 | if { (ac_try="$ac_link" |
| 32123 | case "(($ac_try" in |
| 32124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32125 | *) ac_try_echo=$ac_try;; |
| 32126 | esac |
| 32127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32128 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32129 | ac_status=$? |
| 32130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32131 | rm -f conftest.er1 |
| 32132 | cat conftest.err >&5 |
| 32133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32134 | (exit $ac_status); } && |
| 32135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32136 | { (case "(($ac_try" in |
| 32137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32138 | *) ac_try_echo=$ac_try;; |
| 32139 | esac |
| 32140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32141 | (eval "$ac_try") 2>&5 |
| 32142 | ac_status=$? |
| 32143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32144 | (exit $ac_status); }; } && |
| 32145 | { ac_try='test -s conftest$ac_exeext' |
| 32146 | { (case "(($ac_try" in |
| 32147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32148 | *) ac_try_echo=$ac_try;; |
| 32149 | esac |
| 32150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32151 | (eval "$ac_try") 2>&5 |
| 32152 | ac_status=$? |
| 32153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32154 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32155 | eval "$as_ac_var=yes" |
| 32156 | else |
| 32157 | echo "$as_me: failed program was:" >&5 |
| 32158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32160 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32162 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32163 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32164 | conftest$ac_exeext conftest.$ac_ext |
| 32165 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32166 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32168 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32169 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32170 | cat >>confdefs.h <<_ACEOF |
| 32171 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32172 | _ACEOF |
| 32173 | |
| 32174 | fi |
| 32175 | done |
| 32176 | |
| 32177 | |
| 32178 | |
| 32179 | |
| 32180 | |
| 32181 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32182 | for ac_func in mktemp realpath sbrk setrlimit strdup |
| 32183 | do |
| 32184 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 32185 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32186 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32187 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32189 | else |
| 32190 | cat >conftest.$ac_ext <<_ACEOF |
| 32191 | /* confdefs.h. */ |
| 32192 | _ACEOF |
| 32193 | cat confdefs.h >>conftest.$ac_ext |
| 32194 | cat >>conftest.$ac_ext <<_ACEOF |
| 32195 | /* end confdefs.h. */ |
| 32196 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32198 | #define $ac_func innocuous_$ac_func |
| 32199 | |
| 32200 | /* System header to define __stub macros and hopefully few prototypes, |
| 32201 | which can conflict with char $ac_func (); below. |
| 32202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32203 | <limits.h> exists even on freestanding compilers. */ |
| 32204 | |
| 32205 | #ifdef __STDC__ |
| 32206 | # include <limits.h> |
| 32207 | #else |
| 32208 | # include <assert.h> |
| 32209 | #endif |
| 32210 | |
| 32211 | #undef $ac_func |
| 32212 | |
| 32213 | /* Override any GCC internal prototype to avoid an error. |
| 32214 | Use char because int might match the return type of a GCC |
| 32215 | builtin and then its argument prototype would still apply. */ |
| 32216 | #ifdef __cplusplus |
| 32217 | extern "C" |
| 32218 | #endif |
| 32219 | char $ac_func (); |
| 32220 | /* The GNU C library defines this for functions which it implements |
| 32221 | to always fail with ENOSYS. Some functions are actually named |
| 32222 | something starting with __ and the normal name is an alias. */ |
| 32223 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 32224 | choke me |
| 32225 | #endif |
| 32226 | |
| 32227 | int |
| 32228 | main () |
| 32229 | { |
| 32230 | return $ac_func (); |
| 32231 | ; |
| 32232 | return 0; |
| 32233 | } |
| 32234 | _ACEOF |
| 32235 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32236 | if { (ac_try="$ac_link" |
| 32237 | case "(($ac_try" in |
| 32238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32239 | *) ac_try_echo=$ac_try;; |
| 32240 | esac |
| 32241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32242 | (eval "$ac_link") 2>conftest.er1 |
| 32243 | ac_status=$? |
| 32244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32245 | rm -f conftest.er1 |
| 32246 | cat conftest.err >&5 |
| 32247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32248 | (exit $ac_status); } && |
| 32249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32250 | { (case "(($ac_try" in |
| 32251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32252 | *) ac_try_echo=$ac_try;; |
| 32253 | esac |
| 32254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32255 | (eval "$ac_try") 2>&5 |
| 32256 | ac_status=$? |
| 32257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32258 | (exit $ac_status); }; } && |
| 32259 | { ac_try='test -s conftest$ac_exeext' |
| 32260 | { (case "(($ac_try" in |
| 32261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32262 | *) ac_try_echo=$ac_try;; |
| 32263 | esac |
| 32264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32265 | (eval "$ac_try") 2>&5 |
| 32266 | ac_status=$? |
| 32267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32268 | (exit $ac_status); }; }; then |
| 32269 | eval "$as_ac_var=yes" |
| 32270 | else |
| 32271 | echo "$as_me: failed program was:" >&5 |
| 32272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32273 | |
| 32274 | eval "$as_ac_var=no" |
| 32275 | fi |
| 32276 | |
| 32277 | rm -f core conftest.err conftest.$ac_objext \ |
| 32278 | conftest$ac_exeext conftest.$ac_ext |
| 32279 | fi |
| 32280 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32281 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32282 | echo "${ECHO_T}$ac_res" >&6; } |
| 32283 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32284 | cat >>confdefs.h <<_ACEOF |
| 32285 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32286 | _ACEOF |
| 32287 | |
| 32288 | fi |
| 32289 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32290 | |
| 32291 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32292 | |
| 32293 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 32294 | |
| 32295 | for ac_func in strerror strerror_r strerror_s setenv |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32296 | do |
| 32297 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32298 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32299 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32300 | 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] | 32301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32302 | else |
| 32303 | cat >conftest.$ac_ext <<_ACEOF |
| 32304 | /* confdefs.h. */ |
| 32305 | _ACEOF |
| 32306 | cat confdefs.h >>conftest.$ac_ext |
| 32307 | cat >>conftest.$ac_ext <<_ACEOF |
| 32308 | /* end confdefs.h. */ |
| 32309 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32311 | #define $ac_func innocuous_$ac_func |
| 32312 | |
| 32313 | /* System header to define __stub macros and hopefully few prototypes, |
| 32314 | which can conflict with char $ac_func (); below. |
| 32315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32316 | <limits.h> exists even on freestanding compilers. */ |
| 32317 | |
| 32318 | #ifdef __STDC__ |
| 32319 | # include <limits.h> |
| 32320 | #else |
| 32321 | # include <assert.h> |
| 32322 | #endif |
| 32323 | |
| 32324 | #undef $ac_func |
| 32325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32326 | /* Override any GCC internal prototype to avoid an error. |
| 32327 | Use char because int might match the return type of a GCC |
| 32328 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32329 | #ifdef __cplusplus |
| 32330 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32331 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32332 | char $ac_func (); |
| 32333 | /* The GNU C library defines this for functions which it implements |
| 32334 | to always fail with ENOSYS. Some functions are actually named |
| 32335 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32336 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32337 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32338 | #endif |
| 32339 | |
| 32340 | int |
| 32341 | main () |
| 32342 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32343 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32344 | ; |
| 32345 | return 0; |
| 32346 | } |
| 32347 | _ACEOF |
| 32348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32349 | if { (ac_try="$ac_link" |
| 32350 | case "(($ac_try" in |
| 32351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32352 | *) ac_try_echo=$ac_try;; |
| 32353 | esac |
| 32354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32355 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32356 | ac_status=$? |
| 32357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32358 | rm -f conftest.er1 |
| 32359 | cat conftest.err >&5 |
| 32360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32361 | (exit $ac_status); } && |
| 32362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32363 | { (case "(($ac_try" in |
| 32364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32365 | *) ac_try_echo=$ac_try;; |
| 32366 | esac |
| 32367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32368 | (eval "$ac_try") 2>&5 |
| 32369 | ac_status=$? |
| 32370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32371 | (exit $ac_status); }; } && |
| 32372 | { ac_try='test -s conftest$ac_exeext' |
| 32373 | { (case "(($ac_try" in |
| 32374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32375 | *) ac_try_echo=$ac_try;; |
| 32376 | esac |
| 32377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32378 | (eval "$ac_try") 2>&5 |
| 32379 | ac_status=$? |
| 32380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32381 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32382 | eval "$as_ac_var=yes" |
| 32383 | else |
| 32384 | echo "$as_me: failed program was:" >&5 |
| 32385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32387 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32388 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32389 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32390 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32391 | conftest$ac_exeext conftest.$ac_ext |
| 32392 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32393 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32395 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32396 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32397 | cat >>confdefs.h <<_ACEOF |
| 32398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32399 | _ACEOF |
| 32400 | |
| 32401 | fi |
| 32402 | done |
| 32403 | |
| 32404 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 32405 | |
| 32406 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 32407 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 32408 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32409 | do |
| 32410 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32411 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32412 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32413 | 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] | 32414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32415 | else |
| 32416 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32417 | /* confdefs.h. */ |
| 32418 | _ACEOF |
| 32419 | cat confdefs.h >>conftest.$ac_ext |
| 32420 | cat >>conftest.$ac_ext <<_ACEOF |
| 32421 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32424 | #define $ac_func innocuous_$ac_func |
| 32425 | |
| 32426 | /* System header to define __stub macros and hopefully few prototypes, |
| 32427 | which can conflict with char $ac_func (); below. |
| 32428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32429 | <limits.h> exists even on freestanding compilers. */ |
| 32430 | |
| 32431 | #ifdef __STDC__ |
| 32432 | # include <limits.h> |
| 32433 | #else |
| 32434 | # include <assert.h> |
| 32435 | #endif |
| 32436 | |
| 32437 | #undef $ac_func |
| 32438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32439 | /* Override any GCC internal prototype to avoid an error. |
| 32440 | Use char because int might match the return type of a GCC |
| 32441 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32442 | #ifdef __cplusplus |
| 32443 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32444 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32445 | char $ac_func (); |
| 32446 | /* The GNU C library defines this for functions which it implements |
| 32447 | to always fail with ENOSYS. Some functions are actually named |
| 32448 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32449 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32450 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32451 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32452 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32453 | int |
| 32454 | main () |
| 32455 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32456 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32457 | ; |
| 32458 | return 0; |
| 32459 | } |
| 32460 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32462 | if { (ac_try="$ac_link" |
| 32463 | case "(($ac_try" in |
| 32464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32465 | *) ac_try_echo=$ac_try;; |
| 32466 | esac |
| 32467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32468 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32469 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32471 | rm -f conftest.er1 |
| 32472 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32474 | (exit $ac_status); } && |
| 32475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32476 | { (case "(($ac_try" in |
| 32477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32478 | *) ac_try_echo=$ac_try;; |
| 32479 | esac |
| 32480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32481 | (eval "$ac_try") 2>&5 |
| 32482 | ac_status=$? |
| 32483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32484 | (exit $ac_status); }; } && |
| 32485 | { ac_try='test -s conftest$ac_exeext' |
| 32486 | { (case "(($ac_try" in |
| 32487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32488 | *) ac_try_echo=$ac_try;; |
| 32489 | esac |
| 32490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32491 | (eval "$ac_try") 2>&5 |
| 32492 | ac_status=$? |
| 32493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32494 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32495 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32496 | else |
| 32497 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32500 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32501 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32502 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32503 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32504 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32506 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32508 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32509 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32510 | cat >>confdefs.h <<_ACEOF |
| 32511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32512 | _ACEOF |
| 32513 | |
| 32514 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32515 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32516 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32517 | |
| 32518 | |
| 32519 | |
| 32520 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 32521 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32522 | do |
| 32523 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32524 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32525 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32526 | 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] | 32527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32528 | else |
| 32529 | cat >conftest.$ac_ext <<_ACEOF |
| 32530 | /* confdefs.h. */ |
| 32531 | _ACEOF |
| 32532 | cat confdefs.h >>conftest.$ac_ext |
| 32533 | cat >>conftest.$ac_ext <<_ACEOF |
| 32534 | /* end confdefs.h. */ |
| 32535 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32537 | #define $ac_func innocuous_$ac_func |
| 32538 | |
| 32539 | /* System header to define __stub macros and hopefully few prototypes, |
| 32540 | which can conflict with char $ac_func (); below. |
| 32541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32542 | <limits.h> exists even on freestanding compilers. */ |
| 32543 | |
| 32544 | #ifdef __STDC__ |
| 32545 | # include <limits.h> |
| 32546 | #else |
| 32547 | # include <assert.h> |
| 32548 | #endif |
| 32549 | |
| 32550 | #undef $ac_func |
| 32551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32552 | /* Override any GCC internal prototype to avoid an error. |
| 32553 | Use char because int might match the return type of a GCC |
| 32554 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32555 | #ifdef __cplusplus |
| 32556 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32557 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32558 | char $ac_func (); |
| 32559 | /* The GNU C library defines this for functions which it implements |
| 32560 | to always fail with ENOSYS. Some functions are actually named |
| 32561 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32562 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32563 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32564 | #endif |
| 32565 | |
| 32566 | int |
| 32567 | main () |
| 32568 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32569 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32570 | ; |
| 32571 | return 0; |
| 32572 | } |
| 32573 | _ACEOF |
| 32574 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32575 | if { (ac_try="$ac_link" |
| 32576 | case "(($ac_try" in |
| 32577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32578 | *) ac_try_echo=$ac_try;; |
| 32579 | esac |
| 32580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32581 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32582 | ac_status=$? |
| 32583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32584 | rm -f conftest.er1 |
| 32585 | cat conftest.err >&5 |
| 32586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32587 | (exit $ac_status); } && |
| 32588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32589 | { (case "(($ac_try" in |
| 32590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32591 | *) ac_try_echo=$ac_try;; |
| 32592 | esac |
| 32593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32594 | (eval "$ac_try") 2>&5 |
| 32595 | ac_status=$? |
| 32596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32597 | (exit $ac_status); }; } && |
| 32598 | { ac_try='test -s conftest$ac_exeext' |
| 32599 | { (case "(($ac_try" in |
| 32600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32601 | *) ac_try_echo=$ac_try;; |
| 32602 | esac |
| 32603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32604 | (eval "$ac_try") 2>&5 |
| 32605 | ac_status=$? |
| 32606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32607 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32608 | eval "$as_ac_var=yes" |
| 32609 | else |
| 32610 | echo "$as_me: failed program was:" >&5 |
| 32611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32613 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32614 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32615 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32616 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32617 | conftest$ac_exeext conftest.$ac_ext |
| 32618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32619 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32621 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32622 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32623 | cat >>confdefs.h <<_ACEOF |
| 32624 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32625 | _ACEOF |
| 32626 | |
| 32627 | fi |
| 32628 | done |
| 32629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32630 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 32631 | 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] | 32632 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32634 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32635 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32636 | ac_cpp='$CPP $CPPFLAGS' |
| 32637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32640 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32641 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32642 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32643 | else |
| 32644 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32645 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32646 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32647 | _ACEOF |
| 32648 | cat confdefs.h >>conftest.$ac_ext |
| 32649 | cat >>conftest.$ac_ext <<_ACEOF |
| 32650 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32651 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32652 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32653 | #include <stdlib.h> |
| 32654 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32655 | int |
| 32656 | main () |
| 32657 | { |
| 32658 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32659 | volatile double A, B; |
| 32660 | char Buffer[100]; |
| 32661 | A = 1; |
| 32662 | A /= 10.0; |
| 32663 | sprintf(Buffer, "%a", A); |
| 32664 | B = atof(Buffer); |
| 32665 | if (A != B) |
| 32666 | return (1); |
| 32667 | if (A != 0x1.999999999999ap-4) |
| 32668 | return (1); |
| 32669 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32670 | ; |
| 32671 | return 0; |
| 32672 | } |
| 32673 | _ACEOF |
| 32674 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32675 | if { (ac_try="$ac_link" |
| 32676 | case "(($ac_try" in |
| 32677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32678 | *) ac_try_echo=$ac_try;; |
| 32679 | esac |
| 32680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32681 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32682 | ac_status=$? |
| 32683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32685 | { (case "(($ac_try" in |
| 32686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32687 | *) ac_try_echo=$ac_try;; |
| 32688 | esac |
| 32689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32690 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32691 | ac_status=$? |
| 32692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32693 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32694 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32695 | else |
| 32696 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32697 | echo "$as_me: failed program was:" >&5 |
| 32698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32699 | |
| 32700 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32701 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32703 | 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] | 32704 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32705 | |
| 32706 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32707 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32708 | ac_cpp='$CPP $CPPFLAGS' |
| 32709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32712 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32714 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 32715 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32716 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32717 | |
| 32718 | cat >>confdefs.h <<\_ACEOF |
| 32719 | #define HAVE_PRINTF_A 1 |
| 32720 | _ACEOF |
| 32721 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32722 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32723 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32724 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 32725 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32726 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 32727 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32728 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32730 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32731 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32732 | /* confdefs.h. */ |
| 32733 | _ACEOF |
| 32734 | cat confdefs.h >>conftest.$ac_ext |
| 32735 | cat >>conftest.$ac_ext <<_ACEOF |
| 32736 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32737 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32738 | int |
| 32739 | main () |
| 32740 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32741 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32742 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32743 | ; |
| 32744 | return 0; |
| 32745 | } |
| 32746 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32747 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32748 | if { (ac_try="$ac_link" |
| 32749 | case "(($ac_try" in |
| 32750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32751 | *) ac_try_echo=$ac_try;; |
| 32752 | esac |
| 32753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32754 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32755 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32757 | rm -f conftest.er1 |
| 32758 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32760 | (exit $ac_status); } && |
| 32761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32762 | { (case "(($ac_try" in |
| 32763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32764 | *) ac_try_echo=$ac_try;; |
| 32765 | esac |
| 32766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32767 | (eval "$ac_try") 2>&5 |
| 32768 | ac_status=$? |
| 32769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32770 | (exit $ac_status); }; } && |
| 32771 | { ac_try='test -s conftest$ac_exeext' |
| 32772 | { (case "(($ac_try" in |
| 32773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32774 | *) ac_try_echo=$ac_try;; |
| 32775 | esac |
| 32776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32777 | (eval "$ac_try") 2>&5 |
| 32778 | ac_status=$? |
| 32779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32780 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32781 | ac_cv_working_alloca_h=yes |
| 32782 | else |
| 32783 | echo "$as_me: failed program was:" >&5 |
| 32784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32786 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32787 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32788 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32789 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32790 | conftest$ac_exeext conftest.$ac_ext |
| 32791 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32792 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 32793 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32794 | if test $ac_cv_working_alloca_h = yes; then |
| 32795 | |
| 32796 | cat >>confdefs.h <<\_ACEOF |
| 32797 | #define HAVE_ALLOCA_H 1 |
| 32798 | _ACEOF |
| 32799 | |
| 32800 | fi |
| 32801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32802 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 32803 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32804 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 32805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32806 | else |
| 32807 | cat >conftest.$ac_ext <<_ACEOF |
| 32808 | /* confdefs.h. */ |
| 32809 | _ACEOF |
| 32810 | cat confdefs.h >>conftest.$ac_ext |
| 32811 | cat >>conftest.$ac_ext <<_ACEOF |
| 32812 | /* end confdefs.h. */ |
| 32813 | #ifdef __GNUC__ |
| 32814 | # define alloca __builtin_alloca |
| 32815 | #else |
| 32816 | # ifdef _MSC_VER |
| 32817 | # include <malloc.h> |
| 32818 | # define alloca _alloca |
| 32819 | # else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32820 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32821 | # include <alloca.h> |
| 32822 | # else |
| 32823 | # ifdef _AIX |
| 32824 | #pragma alloca |
| 32825 | # else |
| 32826 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 32827 | char *alloca (); |
| 32828 | # endif |
| 32829 | # endif |
| 32830 | # endif |
| 32831 | # endif |
| 32832 | #endif |
| 32833 | |
| 32834 | int |
| 32835 | main () |
| 32836 | { |
| 32837 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32838 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32839 | ; |
| 32840 | return 0; |
| 32841 | } |
| 32842 | _ACEOF |
| 32843 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32844 | if { (ac_try="$ac_link" |
| 32845 | case "(($ac_try" in |
| 32846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32847 | *) ac_try_echo=$ac_try;; |
| 32848 | esac |
| 32849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32850 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32851 | ac_status=$? |
| 32852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32853 | rm -f conftest.er1 |
| 32854 | cat conftest.err >&5 |
| 32855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32856 | (exit $ac_status); } && |
| 32857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32858 | { (case "(($ac_try" in |
| 32859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32860 | *) ac_try_echo=$ac_try;; |
| 32861 | esac |
| 32862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32863 | (eval "$ac_try") 2>&5 |
| 32864 | ac_status=$? |
| 32865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32866 | (exit $ac_status); }; } && |
| 32867 | { ac_try='test -s conftest$ac_exeext' |
| 32868 | { (case "(($ac_try" in |
| 32869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32870 | *) ac_try_echo=$ac_try;; |
| 32871 | esac |
| 32872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32873 | (eval "$ac_try") 2>&5 |
| 32874 | ac_status=$? |
| 32875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32876 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32877 | ac_cv_func_alloca_works=yes |
| 32878 | else |
| 32879 | echo "$as_me: failed program was:" >&5 |
| 32880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32882 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32883 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32884 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32885 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32886 | conftest$ac_exeext conftest.$ac_ext |
| 32887 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32888 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 32889 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32890 | |
| 32891 | if test $ac_cv_func_alloca_works = yes; then |
| 32892 | |
| 32893 | cat >>confdefs.h <<\_ACEOF |
| 32894 | #define HAVE_ALLOCA 1 |
| 32895 | _ACEOF |
| 32896 | |
| 32897 | else |
| 32898 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 32899 | # that cause trouble. Some versions do not even contain alloca or |
| 32900 | # contain a buggy version. If you still want to use their alloca, |
| 32901 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 32902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32903 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32904 | |
| 32905 | cat >>confdefs.h <<\_ACEOF |
| 32906 | #define C_ALLOCA 1 |
| 32907 | _ACEOF |
| 32908 | |
| 32909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32910 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 32911 | 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] | 32912 | if test "${ac_cv_os_cray+set}" = set; then |
| 32913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32914 | else |
| 32915 | cat >conftest.$ac_ext <<_ACEOF |
| 32916 | /* confdefs.h. */ |
| 32917 | _ACEOF |
| 32918 | cat confdefs.h >>conftest.$ac_ext |
| 32919 | cat >>conftest.$ac_ext <<_ACEOF |
| 32920 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32921 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32922 | webecray |
| 32923 | #else |
| 32924 | wenotbecray |
| 32925 | #endif |
| 32926 | |
| 32927 | _ACEOF |
| 32928 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32929 | $EGREP "webecray" >/dev/null 2>&1; then |
| 32930 | ac_cv_os_cray=yes |
| 32931 | else |
| 32932 | ac_cv_os_cray=no |
| 32933 | fi |
| 32934 | rm -f conftest* |
| 32935 | |
| 32936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32937 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 32938 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32939 | if test $ac_cv_os_cray = yes; then |
| 32940 | for ac_func in _getb67 GETB67 getb67; do |
| 32941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32942 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32944 | 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] | 32945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32946 | else |
| 32947 | cat >conftest.$ac_ext <<_ACEOF |
| 32948 | /* confdefs.h. */ |
| 32949 | _ACEOF |
| 32950 | cat confdefs.h >>conftest.$ac_ext |
| 32951 | cat >>conftest.$ac_ext <<_ACEOF |
| 32952 | /* end confdefs.h. */ |
| 32953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32955 | #define $ac_func innocuous_$ac_func |
| 32956 | |
| 32957 | /* System header to define __stub macros and hopefully few prototypes, |
| 32958 | which can conflict with char $ac_func (); below. |
| 32959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32960 | <limits.h> exists even on freestanding compilers. */ |
| 32961 | |
| 32962 | #ifdef __STDC__ |
| 32963 | # include <limits.h> |
| 32964 | #else |
| 32965 | # include <assert.h> |
| 32966 | #endif |
| 32967 | |
| 32968 | #undef $ac_func |
| 32969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32970 | /* Override any GCC internal prototype to avoid an error. |
| 32971 | Use char because int might match the return type of a GCC |
| 32972 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32973 | #ifdef __cplusplus |
| 32974 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32975 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32976 | char $ac_func (); |
| 32977 | /* The GNU C library defines this for functions which it implements |
| 32978 | to always fail with ENOSYS. Some functions are actually named |
| 32979 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32980 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32981 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32982 | #endif |
| 32983 | |
| 32984 | int |
| 32985 | main () |
| 32986 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32987 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32988 | ; |
| 32989 | return 0; |
| 32990 | } |
| 32991 | _ACEOF |
| 32992 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32993 | if { (ac_try="$ac_link" |
| 32994 | case "(($ac_try" in |
| 32995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32996 | *) ac_try_echo=$ac_try;; |
| 32997 | esac |
| 32998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32999 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33000 | ac_status=$? |
| 33001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33002 | rm -f conftest.er1 |
| 33003 | cat conftest.err >&5 |
| 33004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33005 | (exit $ac_status); } && |
| 33006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33007 | { (case "(($ac_try" in |
| 33008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33009 | *) ac_try_echo=$ac_try;; |
| 33010 | esac |
| 33011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33012 | (eval "$ac_try") 2>&5 |
| 33013 | ac_status=$? |
| 33014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33015 | (exit $ac_status); }; } && |
| 33016 | { ac_try='test -s conftest$ac_exeext' |
| 33017 | { (case "(($ac_try" in |
| 33018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33019 | *) ac_try_echo=$ac_try;; |
| 33020 | esac |
| 33021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33022 | (eval "$ac_try") 2>&5 |
| 33023 | ac_status=$? |
| 33024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33025 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33026 | eval "$as_ac_var=yes" |
| 33027 | else |
| 33028 | echo "$as_me: failed program was:" >&5 |
| 33029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33031 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33032 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33033 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33034 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33035 | conftest$ac_exeext conftest.$ac_ext |
| 33036 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33037 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33038 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33039 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33040 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33041 | |
| 33042 | cat >>confdefs.h <<_ACEOF |
| 33043 | #define CRAY_STACKSEG_END $ac_func |
| 33044 | _ACEOF |
| 33045 | |
| 33046 | break |
| 33047 | fi |
| 33048 | |
| 33049 | done |
| 33050 | fi |
| 33051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33052 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 33053 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33054 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 33055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33056 | else |
| 33057 | if test "$cross_compiling" = yes; then |
| 33058 | ac_cv_c_stack_direction=0 |
| 33059 | else |
| 33060 | cat >conftest.$ac_ext <<_ACEOF |
| 33061 | /* confdefs.h. */ |
| 33062 | _ACEOF |
| 33063 | cat confdefs.h >>conftest.$ac_ext |
| 33064 | cat >>conftest.$ac_ext <<_ACEOF |
| 33065 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33066 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33067 | int |
| 33068 | find_stack_direction () |
| 33069 | { |
| 33070 | static char *addr = 0; |
| 33071 | auto char dummy; |
| 33072 | if (addr == 0) |
| 33073 | { |
| 33074 | addr = &dummy; |
| 33075 | return find_stack_direction (); |
| 33076 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33077 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33078 | return (&dummy > addr) ? 1 : -1; |
| 33079 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33080 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33081 | int |
| 33082 | main () |
| 33083 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33084 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33085 | } |
| 33086 | _ACEOF |
| 33087 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33088 | if { (ac_try="$ac_link" |
| 33089 | case "(($ac_try" in |
| 33090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33091 | *) ac_try_echo=$ac_try;; |
| 33092 | esac |
| 33093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33094 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33095 | ac_status=$? |
| 33096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33098 | { (case "(($ac_try" in |
| 33099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33100 | *) ac_try_echo=$ac_try;; |
| 33101 | esac |
| 33102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33103 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33104 | ac_status=$? |
| 33105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33106 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33107 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33108 | else |
| 33109 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33110 | echo "$as_me: failed program was:" >&5 |
| 33111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33112 | |
| 33113 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33114 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33115 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33116 | 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] | 33117 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33118 | |
| 33119 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33120 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33121 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 33122 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33123 | |
| 33124 | cat >>confdefs.h <<_ACEOF |
| 33125 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 33126 | _ACEOF |
| 33127 | |
| 33128 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33129 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33130 | |
| 33131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33132 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 33133 | 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] | 33134 | if test "${ac_cv_func_rand48+set}" = set; then |
| 33135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33136 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33137 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33138 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33139 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33140 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33141 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33142 | |
| 33143 | cat >conftest.$ac_ext <<_ACEOF |
| 33144 | /* confdefs.h. */ |
| 33145 | _ACEOF |
| 33146 | cat confdefs.h >>conftest.$ac_ext |
| 33147 | cat >>conftest.$ac_ext <<_ACEOF |
| 33148 | /* end confdefs.h. */ |
| 33149 | #include <stdlib.h> |
| 33150 | int |
| 33151 | main () |
| 33152 | { |
| 33153 | srand48(0);lrand48();drand48(); |
| 33154 | ; |
| 33155 | return 0; |
| 33156 | } |
| 33157 | _ACEOF |
| 33158 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33159 | if { (ac_try="$ac_compile" |
| 33160 | case "(($ac_try" in |
| 33161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33162 | *) ac_try_echo=$ac_try;; |
| 33163 | esac |
| 33164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33165 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33166 | ac_status=$? |
| 33167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33168 | rm -f conftest.er1 |
| 33169 | cat conftest.err >&5 |
| 33170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33171 | (exit $ac_status); } && |
| 33172 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33173 | { (case "(($ac_try" in |
| 33174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33175 | *) ac_try_echo=$ac_try;; |
| 33176 | esac |
| 33177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33178 | (eval "$ac_try") 2>&5 |
| 33179 | ac_status=$? |
| 33180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33181 | (exit $ac_status); }; } && |
| 33182 | { ac_try='test -s conftest.$ac_objext' |
| 33183 | { (case "(($ac_try" in |
| 33184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33185 | *) ac_try_echo=$ac_try;; |
| 33186 | esac |
| 33187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33188 | (eval "$ac_try") 2>&5 |
| 33189 | ac_status=$? |
| 33190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33191 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33192 | ac_cv_func_rand48=yes |
| 33193 | else |
| 33194 | echo "$as_me: failed program was:" >&5 |
| 33195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33197 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33198 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33199 | |
| 33200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33201 | ac_ext=c |
| 33202 | ac_cpp='$CPP $CPPFLAGS' |
| 33203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33206 | |
| 33207 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33208 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 33209 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33210 | |
| 33211 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 33212 | |
| 33213 | cat >>confdefs.h <<\_ACEOF |
| 33214 | #define HAVE_RAND48 1 |
| 33215 | _ACEOF |
| 33216 | |
| 33217 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33218 | |
| 33219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33220 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 33221 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33222 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 33223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33224 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33225 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33226 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33230 | |
| 33231 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33232 | /* confdefs.h. */ |
| 33233 | _ACEOF |
| 33234 | cat confdefs.h >>conftest.$ac_ext |
| 33235 | cat >>conftest.$ac_ext <<_ACEOF |
| 33236 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33237 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33238 | int |
| 33239 | main () |
| 33240 | { |
| 33241 | using namespace Outer::Inner; return i; |
| 33242 | ; |
| 33243 | return 0; |
| 33244 | } |
| 33245 | _ACEOF |
| 33246 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33247 | if { (ac_try="$ac_compile" |
| 33248 | case "(($ac_try" in |
| 33249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33250 | *) ac_try_echo=$ac_try;; |
| 33251 | esac |
| 33252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33253 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33254 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33256 | rm -f conftest.er1 |
| 33257 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33259 | (exit $ac_status); } && |
| 33260 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33261 | { (case "(($ac_try" in |
| 33262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33263 | *) ac_try_echo=$ac_try;; |
| 33264 | esac |
| 33265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33266 | (eval "$ac_try") 2>&5 |
| 33267 | ac_status=$? |
| 33268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33269 | (exit $ac_status); }; } && |
| 33270 | { ac_try='test -s conftest.$ac_objext' |
| 33271 | { (case "(($ac_try" in |
| 33272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33273 | *) ac_try_echo=$ac_try;; |
| 33274 | esac |
| 33275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33276 | (eval "$ac_try") 2>&5 |
| 33277 | ac_status=$? |
| 33278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33279 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33280 | ac_cv_cxx_namespaces=yes |
| 33281 | else |
| 33282 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33285 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33287 | |
| 33288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33289 | ac_ext=c |
| 33290 | ac_cpp='$CPP $CPPFLAGS' |
| 33291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33294 | |
| 33295 | |
| 33296 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33297 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 33298 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33299 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 33300 | |
| 33301 | cat >>confdefs.h <<\_ACEOF |
| 33302 | #define HAVE_NAMESPACES |
| 33303 | _ACEOF |
| 33304 | |
| 33305 | fi |
| 33306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33307 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 33308 | 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] | 33309 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 33310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33311 | else |
| 33312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33313 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33314 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33318 | |
| 33319 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33320 | /* confdefs.h. */ |
| 33321 | _ACEOF |
| 33322 | cat confdefs.h >>conftest.$ac_ext |
| 33323 | cat >>conftest.$ac_ext <<_ACEOF |
| 33324 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33325 | #include <iterator> |
| 33326 | #ifdef HAVE_NAMESPACES |
| 33327 | using namespace std; |
| 33328 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33329 | int |
| 33330 | main () |
| 33331 | { |
| 33332 | iterator<int,int,int> t; return 0; |
| 33333 | ; |
| 33334 | return 0; |
| 33335 | } |
| 33336 | _ACEOF |
| 33337 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33338 | if { (ac_try="$ac_compile" |
| 33339 | case "(($ac_try" in |
| 33340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33341 | *) ac_try_echo=$ac_try;; |
| 33342 | esac |
| 33343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33344 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33345 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33347 | rm -f conftest.er1 |
| 33348 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33350 | (exit $ac_status); } && |
| 33351 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33352 | { (case "(($ac_try" in |
| 33353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33354 | *) ac_try_echo=$ac_try;; |
| 33355 | esac |
| 33356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33357 | (eval "$ac_try") 2>&5 |
| 33358 | ac_status=$? |
| 33359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33360 | (exit $ac_status); }; } && |
| 33361 | { ac_try='test -s conftest.$ac_objext' |
| 33362 | { (case "(($ac_try" in |
| 33363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33364 | *) ac_try_echo=$ac_try;; |
| 33365 | esac |
| 33366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33367 | (eval "$ac_try") 2>&5 |
| 33368 | ac_status=$? |
| 33369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33370 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33371 | ac_cv_cxx_have_std_iterator=yes |
| 33372 | else |
| 33373 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33376 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33378 | |
| 33379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33380 | ac_ext=c |
| 33381 | ac_cpp='$CPP $CPPFLAGS' |
| 33382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33385 | |
| 33386 | |
| 33387 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33388 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 33389 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33390 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 33391 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33392 | |
| 33393 | cat >>confdefs.h <<\_ACEOF |
| 33394 | #define HAVE_STD_ITERATOR 1 |
| 33395 | _ACEOF |
| 33396 | |
| 33397 | else |
| 33398 | |
| 33399 | cat >>confdefs.h <<\_ACEOF |
| 33400 | #define HAVE_STD_ITERATOR 0 |
| 33401 | _ACEOF |
| 33402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33403 | fi |
| 33404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33405 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 33406 | 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] | 33407 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 33408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33409 | else |
| 33410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33411 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33412 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33413 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33414 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33415 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33416 | |
| 33417 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33418 | /* confdefs.h. */ |
| 33419 | _ACEOF |
| 33420 | cat confdefs.h >>conftest.$ac_ext |
| 33421 | cat >>conftest.$ac_ext <<_ACEOF |
| 33422 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33423 | #include <iterator> |
| 33424 | #ifdef HAVE_NAMESPACES |
| 33425 | using namespace std; |
| 33426 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33427 | int |
| 33428 | main () |
| 33429 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33430 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33431 | ; |
| 33432 | return 0; |
| 33433 | } |
| 33434 | _ACEOF |
| 33435 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33436 | if { (ac_try="$ac_compile" |
| 33437 | case "(($ac_try" in |
| 33438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33439 | *) ac_try_echo=$ac_try;; |
| 33440 | esac |
| 33441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33442 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33443 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33445 | rm -f conftest.er1 |
| 33446 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33448 | (exit $ac_status); } && |
| 33449 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33450 | { (case "(($ac_try" in |
| 33451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33452 | *) ac_try_echo=$ac_try;; |
| 33453 | esac |
| 33454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33455 | (eval "$ac_try") 2>&5 |
| 33456 | ac_status=$? |
| 33457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33458 | (exit $ac_status); }; } && |
| 33459 | { ac_try='test -s conftest.$ac_objext' |
| 33460 | { (case "(($ac_try" in |
| 33461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33462 | *) ac_try_echo=$ac_try;; |
| 33463 | esac |
| 33464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33465 | (eval "$ac_try") 2>&5 |
| 33466 | ac_status=$? |
| 33467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33468 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33469 | ac_cv_cxx_have_bi_iterator=yes |
| 33470 | else |
| 33471 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33474 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33476 | |
| 33477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33478 | ac_ext=c |
| 33479 | ac_cpp='$CPP $CPPFLAGS' |
| 33480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33483 | |
| 33484 | |
| 33485 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33486 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 33487 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33488 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 33489 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33490 | |
| 33491 | cat >>confdefs.h <<\_ACEOF |
| 33492 | #define HAVE_BI_ITERATOR 1 |
| 33493 | _ACEOF |
| 33494 | |
| 33495 | else |
| 33496 | |
| 33497 | cat >>confdefs.h <<\_ACEOF |
| 33498 | #define HAVE_BI_ITERATOR 0 |
| 33499 | _ACEOF |
| 33500 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33501 | fi |
| 33502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33503 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 33504 | 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] | 33505 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 33506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33507 | else |
| 33508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33509 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33510 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33511 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33512 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33513 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33514 | |
| 33515 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33516 | /* confdefs.h. */ |
| 33517 | _ACEOF |
| 33518 | cat confdefs.h >>conftest.$ac_ext |
| 33519 | cat >>conftest.$ac_ext <<_ACEOF |
| 33520 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33521 | #include <iterator> |
| 33522 | #ifdef HAVE_NAMESPACES |
| 33523 | using namespace std; |
| 33524 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33525 | int |
| 33526 | main () |
| 33527 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33528 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33529 | ; |
| 33530 | return 0; |
| 33531 | } |
| 33532 | _ACEOF |
| 33533 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33534 | if { (ac_try="$ac_compile" |
| 33535 | case "(($ac_try" in |
| 33536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33537 | *) ac_try_echo=$ac_try;; |
| 33538 | esac |
| 33539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33540 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33541 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33543 | rm -f conftest.er1 |
| 33544 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33546 | (exit $ac_status); } && |
| 33547 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33548 | { (case "(($ac_try" in |
| 33549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33550 | *) ac_try_echo=$ac_try;; |
| 33551 | esac |
| 33552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33553 | (eval "$ac_try") 2>&5 |
| 33554 | ac_status=$? |
| 33555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33556 | (exit $ac_status); }; } && |
| 33557 | { ac_try='test -s conftest.$ac_objext' |
| 33558 | { (case "(($ac_try" in |
| 33559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33560 | *) ac_try_echo=$ac_try;; |
| 33561 | esac |
| 33562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33563 | (eval "$ac_try") 2>&5 |
| 33564 | ac_status=$? |
| 33565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33566 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33567 | ac_cv_cxx_have_fwd_iterator=yes |
| 33568 | else |
| 33569 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33572 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33574 | |
| 33575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33576 | ac_ext=c |
| 33577 | ac_cpp='$CPP $CPPFLAGS' |
| 33578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33581 | |
| 33582 | |
| 33583 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33584 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 33585 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33586 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 33587 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33588 | |
| 33589 | cat >>confdefs.h <<\_ACEOF |
| 33590 | #define HAVE_FWD_ITERATOR 1 |
| 33591 | _ACEOF |
| 33592 | |
| 33593 | else |
| 33594 | |
| 33595 | cat >>confdefs.h <<\_ACEOF |
| 33596 | #define HAVE_FWD_ITERATOR 0 |
| 33597 | _ACEOF |
| 33598 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33599 | fi |
| 33600 | |
| 33601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33602 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 33603 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33604 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 33605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33606 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33607 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33608 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33609 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33610 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33611 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33612 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33613 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33614 | /* confdefs.h. */ |
| 33615 | _ACEOF |
| 33616 | cat confdefs.h >>conftest.$ac_ext |
| 33617 | cat >>conftest.$ac_ext <<_ACEOF |
| 33618 | /* end confdefs.h. */ |
| 33619 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33620 | int |
| 33621 | main () |
| 33622 | { |
| 33623 | float f; isnan(f); |
| 33624 | ; |
| 33625 | return 0; |
| 33626 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33627 | _ACEOF |
| 33628 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33629 | if { (ac_try="$ac_compile" |
| 33630 | case "(($ac_try" in |
| 33631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33632 | *) ac_try_echo=$ac_try;; |
| 33633 | esac |
| 33634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33635 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33636 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33638 | rm -f conftest.er1 |
| 33639 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33641 | (exit $ac_status); } && |
| 33642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33643 | { (case "(($ac_try" in |
| 33644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33645 | *) ac_try_echo=$ac_try;; |
| 33646 | esac |
| 33647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33648 | (eval "$ac_try") 2>&5 |
| 33649 | ac_status=$? |
| 33650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33651 | (exit $ac_status); }; } && |
| 33652 | { ac_try='test -s conftest.$ac_objext' |
| 33653 | { (case "(($ac_try" in |
| 33654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33655 | *) ac_try_echo=$ac_try;; |
| 33656 | esac |
| 33657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33658 | (eval "$ac_try") 2>&5 |
| 33659 | ac_status=$? |
| 33660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33661 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33662 | ac_cv_func_isnan_in_math_h=yes |
| 33663 | else |
| 33664 | echo "$as_me: failed program was:" >&5 |
| 33665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33667 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33669 | |
| 33670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33671 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33672 | ac_cpp='$CPP $CPPFLAGS' |
| 33673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33676 | |
| 33677 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33678 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 33679 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33680 | |
| 33681 | |
| 33682 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33683 | |
| 33684 | cat >>confdefs.h <<\_ACEOF |
| 33685 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 33686 | _ACEOF |
| 33687 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33688 | fi |
| 33689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33690 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 33691 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33692 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 33693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33694 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33695 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33696 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33697 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33698 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33699 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33700 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33701 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33702 | /* confdefs.h. */ |
| 33703 | _ACEOF |
| 33704 | cat confdefs.h >>conftest.$ac_ext |
| 33705 | cat >>conftest.$ac_ext <<_ACEOF |
| 33706 | /* end confdefs.h. */ |
| 33707 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33708 | int |
| 33709 | main () |
| 33710 | { |
| 33711 | float f; isnan(f); |
| 33712 | ; |
| 33713 | return 0; |
| 33714 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33715 | _ACEOF |
| 33716 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33717 | if { (ac_try="$ac_compile" |
| 33718 | case "(($ac_try" in |
| 33719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33720 | *) ac_try_echo=$ac_try;; |
| 33721 | esac |
| 33722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33723 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33724 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33726 | rm -f conftest.er1 |
| 33727 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33729 | (exit $ac_status); } && |
| 33730 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33731 | { (case "(($ac_try" in |
| 33732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33733 | *) ac_try_echo=$ac_try;; |
| 33734 | esac |
| 33735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33736 | (eval "$ac_try") 2>&5 |
| 33737 | ac_status=$? |
| 33738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33739 | (exit $ac_status); }; } && |
| 33740 | { ac_try='test -s conftest.$ac_objext' |
| 33741 | { (case "(($ac_try" in |
| 33742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33743 | *) ac_try_echo=$ac_try;; |
| 33744 | esac |
| 33745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33746 | (eval "$ac_try") 2>&5 |
| 33747 | ac_status=$? |
| 33748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33749 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33750 | ac_cv_func_isnan_in_cmath=yes |
| 33751 | else |
| 33752 | echo "$as_me: failed program was:" >&5 |
| 33753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33755 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33756 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33757 | |
| 33758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33759 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33760 | ac_cpp='$CPP $CPPFLAGS' |
| 33761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33764 | |
| 33765 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33766 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 33767 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33768 | |
| 33769 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33770 | |
| 33771 | cat >>confdefs.h <<\_ACEOF |
| 33772 | #define HAVE_ISNAN_IN_CMATH 1 |
| 33773 | _ACEOF |
| 33774 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33775 | fi |
| 33776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33777 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 33778 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33779 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 33780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33781 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33782 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33783 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33784 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33785 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33786 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33787 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33788 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33789 | /* confdefs.h. */ |
| 33790 | _ACEOF |
| 33791 | cat confdefs.h >>conftest.$ac_ext |
| 33792 | cat >>conftest.$ac_ext <<_ACEOF |
| 33793 | /* end confdefs.h. */ |
| 33794 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33795 | int |
| 33796 | main () |
| 33797 | { |
| 33798 | float f; std::isnan(f); |
| 33799 | ; |
| 33800 | return 0; |
| 33801 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33802 | _ACEOF |
| 33803 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33804 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33811 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33813 | rm -f conftest.er1 |
| 33814 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33816 | (exit $ac_status); } && |
| 33817 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33818 | { (case "(($ac_try" in |
| 33819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33820 | *) ac_try_echo=$ac_try;; |
| 33821 | esac |
| 33822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33823 | (eval "$ac_try") 2>&5 |
| 33824 | ac_status=$? |
| 33825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33826 | (exit $ac_status); }; } && |
| 33827 | { ac_try='test -s conftest.$ac_objext' |
| 33828 | { (case "(($ac_try" in |
| 33829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33830 | *) ac_try_echo=$ac_try;; |
| 33831 | esac |
| 33832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33833 | (eval "$ac_try") 2>&5 |
| 33834 | ac_status=$? |
| 33835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33836 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33837 | ac_cv_func_std_isnan_in_cmath=yes |
| 33838 | else |
| 33839 | echo "$as_me: failed program was:" >&5 |
| 33840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33842 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33843 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33844 | |
| 33845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33846 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33847 | ac_cpp='$CPP $CPPFLAGS' |
| 33848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33851 | |
| 33852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33853 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33854 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33855 | |
| 33856 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33857 | |
| 33858 | cat >>confdefs.h <<\_ACEOF |
| 33859 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33860 | _ACEOF |
| 33861 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33862 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33863 | |
| 33864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33865 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33866 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33867 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33869 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33870 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33871 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33872 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33873 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33874 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33875 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33876 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33877 | /* confdefs.h. */ |
| 33878 | _ACEOF |
| 33879 | cat confdefs.h >>conftest.$ac_ext |
| 33880 | cat >>conftest.$ac_ext <<_ACEOF |
| 33881 | /* end confdefs.h. */ |
| 33882 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33883 | int |
| 33884 | main () |
| 33885 | { |
| 33886 | float f; isinf(f); |
| 33887 | ; |
| 33888 | return 0; |
| 33889 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33890 | _ACEOF |
| 33891 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33892 | if { (ac_try="$ac_compile" |
| 33893 | case "(($ac_try" in |
| 33894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33895 | *) ac_try_echo=$ac_try;; |
| 33896 | esac |
| 33897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33898 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33899 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33901 | rm -f conftest.er1 |
| 33902 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33904 | (exit $ac_status); } && |
| 33905 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33906 | { (case "(($ac_try" in |
| 33907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33908 | *) ac_try_echo=$ac_try;; |
| 33909 | esac |
| 33910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33911 | (eval "$ac_try") 2>&5 |
| 33912 | ac_status=$? |
| 33913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33914 | (exit $ac_status); }; } && |
| 33915 | { ac_try='test -s conftest.$ac_objext' |
| 33916 | { (case "(($ac_try" in |
| 33917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33918 | *) ac_try_echo=$ac_try;; |
| 33919 | esac |
| 33920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33921 | (eval "$ac_try") 2>&5 |
| 33922 | ac_status=$? |
| 33923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33924 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33925 | ac_cv_func_isinf_in_math_h=yes |
| 33926 | else |
| 33927 | echo "$as_me: failed program was:" >&5 |
| 33928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33930 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33931 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33932 | |
| 33933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33934 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33935 | ac_cpp='$CPP $CPPFLAGS' |
| 33936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33939 | |
| 33940 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33941 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33942 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33943 | |
| 33944 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33945 | |
| 33946 | cat >>confdefs.h <<\_ACEOF |
| 33947 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33948 | _ACEOF |
| 33949 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33950 | fi |
| 33951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33952 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33953 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33954 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33956 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33957 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33958 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33959 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33960 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33961 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33962 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33963 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33964 | /* confdefs.h. */ |
| 33965 | _ACEOF |
| 33966 | cat confdefs.h >>conftest.$ac_ext |
| 33967 | cat >>conftest.$ac_ext <<_ACEOF |
| 33968 | /* end confdefs.h. */ |
| 33969 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33970 | int |
| 33971 | main () |
| 33972 | { |
| 33973 | float f; isinf(f); |
| 33974 | ; |
| 33975 | return 0; |
| 33976 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33977 | _ACEOF |
| 33978 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33979 | if { (ac_try="$ac_compile" |
| 33980 | case "(($ac_try" in |
| 33981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33982 | *) ac_try_echo=$ac_try;; |
| 33983 | esac |
| 33984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33985 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33986 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33988 | rm -f conftest.er1 |
| 33989 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33991 | (exit $ac_status); } && |
| 33992 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33993 | { (case "(($ac_try" in |
| 33994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33995 | *) ac_try_echo=$ac_try;; |
| 33996 | esac |
| 33997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33998 | (eval "$ac_try") 2>&5 |
| 33999 | ac_status=$? |
| 34000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34001 | (exit $ac_status); }; } && |
| 34002 | { ac_try='test -s conftest.$ac_objext' |
| 34003 | { (case "(($ac_try" in |
| 34004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34005 | *) ac_try_echo=$ac_try;; |
| 34006 | esac |
| 34007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34008 | (eval "$ac_try") 2>&5 |
| 34009 | ac_status=$? |
| 34010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34011 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34012 | ac_cv_func_isinf_in_cmath=yes |
| 34013 | else |
| 34014 | echo "$as_me: failed program was:" >&5 |
| 34015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34017 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34019 | |
| 34020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34021 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34022 | ac_cpp='$CPP $CPPFLAGS' |
| 34023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34026 | |
| 34027 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34028 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 34029 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34030 | |
| 34031 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34032 | |
| 34033 | cat >>confdefs.h <<\_ACEOF |
| 34034 | #define HAVE_ISINF_IN_CMATH 1 |
| 34035 | _ACEOF |
| 34036 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34037 | fi |
| 34038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34039 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 34040 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34041 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 34042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34043 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34044 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34045 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34046 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34047 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34048 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34049 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34050 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34051 | /* confdefs.h. */ |
| 34052 | _ACEOF |
| 34053 | cat confdefs.h >>conftest.$ac_ext |
| 34054 | cat >>conftest.$ac_ext <<_ACEOF |
| 34055 | /* end confdefs.h. */ |
| 34056 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34057 | int |
| 34058 | main () |
| 34059 | { |
| 34060 | float f; std::isinf(f)} |
| 34061 | ; |
| 34062 | return 0; |
| 34063 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34064 | _ACEOF |
| 34065 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34066 | if { (ac_try="$ac_compile" |
| 34067 | case "(($ac_try" in |
| 34068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34069 | *) ac_try_echo=$ac_try;; |
| 34070 | esac |
| 34071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34072 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34073 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34075 | rm -f conftest.er1 |
| 34076 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34078 | (exit $ac_status); } && |
| 34079 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34080 | { (case "(($ac_try" in |
| 34081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34082 | *) ac_try_echo=$ac_try;; |
| 34083 | esac |
| 34084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34085 | (eval "$ac_try") 2>&5 |
| 34086 | ac_status=$? |
| 34087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34088 | (exit $ac_status); }; } && |
| 34089 | { ac_try='test -s conftest.$ac_objext' |
| 34090 | { (case "(($ac_try" in |
| 34091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34092 | *) ac_try_echo=$ac_try;; |
| 34093 | esac |
| 34094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34095 | (eval "$ac_try") 2>&5 |
| 34096 | ac_status=$? |
| 34097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34098 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34099 | ac_cv_func_std_isinf_in_cmath=yes |
| 34100 | else |
| 34101 | echo "$as_me: failed program was:" >&5 |
| 34102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34104 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34105 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34106 | |
| 34107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34108 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34109 | ac_cpp='$CPP $CPPFLAGS' |
| 34110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34113 | |
| 34114 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34115 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 34116 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34117 | |
| 34118 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34119 | |
| 34120 | cat >>confdefs.h <<\_ACEOF |
| 34121 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 34122 | _ACEOF |
| 34123 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34124 | fi |
| 34125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34126 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 34127 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34128 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 34129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34130 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34131 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34132 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34136 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34137 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34138 | /* confdefs.h. */ |
| 34139 | _ACEOF |
| 34140 | cat confdefs.h >>conftest.$ac_ext |
| 34141 | cat >>conftest.$ac_ext <<_ACEOF |
| 34142 | /* end confdefs.h. */ |
| 34143 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34144 | int |
| 34145 | main () |
| 34146 | { |
| 34147 | float f; finite(f); |
| 34148 | ; |
| 34149 | return 0; |
| 34150 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34151 | _ACEOF |
| 34152 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34153 | if { (ac_try="$ac_compile" |
| 34154 | case "(($ac_try" in |
| 34155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34156 | *) ac_try_echo=$ac_try;; |
| 34157 | esac |
| 34158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34159 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34160 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34162 | rm -f conftest.er1 |
| 34163 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34165 | (exit $ac_status); } && |
| 34166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34167 | { (case "(($ac_try" in |
| 34168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34169 | *) ac_try_echo=$ac_try;; |
| 34170 | esac |
| 34171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34172 | (eval "$ac_try") 2>&5 |
| 34173 | ac_status=$? |
| 34174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34175 | (exit $ac_status); }; } && |
| 34176 | { ac_try='test -s conftest.$ac_objext' |
| 34177 | { (case "(($ac_try" in |
| 34178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34179 | *) ac_try_echo=$ac_try;; |
| 34180 | esac |
| 34181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34182 | (eval "$ac_try") 2>&5 |
| 34183 | ac_status=$? |
| 34184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34185 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34186 | ac_cv_func_finite_in_ieeefp_h=yes |
| 34187 | else |
| 34188 | echo "$as_me: failed program was:" >&5 |
| 34189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34191 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34193 | |
| 34194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34195 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34196 | ac_cpp='$CPP $CPPFLAGS' |
| 34197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34200 | |
| 34201 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34202 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 34203 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34204 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34205 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34206 | |
| 34207 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34208 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34209 | _ACEOF |
| 34210 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34211 | fi |
| 34212 | |
| 34213 | |
| 34214 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34215 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34216 | |
| 34217 | |
| 34218 | for ac_header in stdlib.h unistd.h |
| 34219 | do |
| 34220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34222 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34224 | 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] | 34225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34226 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34227 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34229 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34230 | else |
| 34231 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34232 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 34233 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34234 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34235 | /* confdefs.h. */ |
| 34236 | _ACEOF |
| 34237 | cat confdefs.h >>conftest.$ac_ext |
| 34238 | cat >>conftest.$ac_ext <<_ACEOF |
| 34239 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34240 | $ac_includes_default |
| 34241 | #include <$ac_header> |
| 34242 | _ACEOF |
| 34243 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34244 | if { (ac_try="$ac_compile" |
| 34245 | case "(($ac_try" in |
| 34246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34247 | *) ac_try_echo=$ac_try;; |
| 34248 | esac |
| 34249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34250 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34251 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34253 | rm -f conftest.er1 |
| 34254 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34256 | (exit $ac_status); } && |
| 34257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34258 | { (case "(($ac_try" in |
| 34259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34260 | *) ac_try_echo=$ac_try;; |
| 34261 | esac |
| 34262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34263 | (eval "$ac_try") 2>&5 |
| 34264 | ac_status=$? |
| 34265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34266 | (exit $ac_status); }; } && |
| 34267 | { ac_try='test -s conftest.$ac_objext' |
| 34268 | { (case "(($ac_try" in |
| 34269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34270 | *) ac_try_echo=$ac_try;; |
| 34271 | esac |
| 34272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34273 | (eval "$ac_try") 2>&5 |
| 34274 | ac_status=$? |
| 34275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34276 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34277 | ac_header_compiler=yes |
| 34278 | else |
| 34279 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34282 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34283 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34284 | |
| 34285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34286 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 34287 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34288 | |
| 34289 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34290 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 34291 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34292 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34293 | /* confdefs.h. */ |
| 34294 | _ACEOF |
| 34295 | cat confdefs.h >>conftest.$ac_ext |
| 34296 | cat >>conftest.$ac_ext <<_ACEOF |
| 34297 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34298 | #include <$ac_header> |
| 34299 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34300 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 34301 | case "(($ac_try" in |
| 34302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34303 | *) ac_try_echo=$ac_try;; |
| 34304 | esac |
| 34305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34306 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34307 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34308 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34309 | rm -f conftest.er1 |
| 34310 | cat conftest.err >&5 |
| 34311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34312 | (exit $ac_status); } >/dev/null; then |
| 34313 | if test -s conftest.err; then |
| 34314 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 34315 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 34316 | else |
| 34317 | ac_cpp_err= |
| 34318 | fi |
| 34319 | else |
| 34320 | ac_cpp_err=yes |
| 34321 | fi |
| 34322 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34323 | ac_header_preproc=yes |
| 34324 | else |
| 34325 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34327 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34328 | ac_header_preproc=no |
| 34329 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34330 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34331 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34332 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 34333 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34334 | |
| 34335 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34336 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 34337 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34338 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 34339 | 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] | 34340 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 34341 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 34342 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34343 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34344 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34345 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 34346 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34347 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 34348 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 34349 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 34350 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 34351 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 34352 | 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] | 34353 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 34354 | 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] | 34355 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 34356 | 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] | 34357 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34358 | ## ----------------------------------- ## |
| 34359 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 34360 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34361 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34362 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34363 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34364 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34365 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34367 | 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] | 34368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34369 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34370 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34371 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34372 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34374 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34375 | |
| 34376 | fi |
| 34377 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 34378 | cat >>confdefs.h <<_ACEOF |
| 34379 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34380 | _ACEOF |
| 34381 | |
| 34382 | fi |
| 34383 | |
| 34384 | done |
| 34385 | |
| 34386 | |
| 34387 | for ac_func in getpagesize |
| 34388 | do |
| 34389 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34390 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34391 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34392 | 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] | 34393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34394 | else |
| 34395 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34396 | /* confdefs.h. */ |
| 34397 | _ACEOF |
| 34398 | cat confdefs.h >>conftest.$ac_ext |
| 34399 | cat >>conftest.$ac_ext <<_ACEOF |
| 34400 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34401 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34403 | #define $ac_func innocuous_$ac_func |
| 34404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34405 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34406 | which can conflict with char $ac_func (); below. |
| 34407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34408 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34409 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34410 | #ifdef __STDC__ |
| 34411 | # include <limits.h> |
| 34412 | #else |
| 34413 | # include <assert.h> |
| 34414 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34415 | |
| 34416 | #undef $ac_func |
| 34417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34418 | /* Override any GCC internal prototype to avoid an error. |
| 34419 | Use char because int might match the return type of a GCC |
| 34420 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34421 | #ifdef __cplusplus |
| 34422 | extern "C" |
| 34423 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34424 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34425 | /* The GNU C library defines this for functions which it implements |
| 34426 | to always fail with ENOSYS. Some functions are actually named |
| 34427 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34428 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34429 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34430 | #endif |
| 34431 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34432 | int |
| 34433 | main () |
| 34434 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34435 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34436 | ; |
| 34437 | return 0; |
| 34438 | } |
| 34439 | _ACEOF |
| 34440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34441 | if { (ac_try="$ac_link" |
| 34442 | case "(($ac_try" in |
| 34443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34444 | *) ac_try_echo=$ac_try;; |
| 34445 | esac |
| 34446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34447 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34448 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34450 | rm -f conftest.er1 |
| 34451 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34453 | (exit $ac_status); } && |
| 34454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34455 | { (case "(($ac_try" in |
| 34456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34457 | *) ac_try_echo=$ac_try;; |
| 34458 | esac |
| 34459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34460 | (eval "$ac_try") 2>&5 |
| 34461 | ac_status=$? |
| 34462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34463 | (exit $ac_status); }; } && |
| 34464 | { ac_try='test -s conftest$ac_exeext' |
| 34465 | { (case "(($ac_try" in |
| 34466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34467 | *) ac_try_echo=$ac_try;; |
| 34468 | esac |
| 34469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34470 | (eval "$ac_try") 2>&5 |
| 34471 | ac_status=$? |
| 34472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34473 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34474 | eval "$as_ac_var=yes" |
| 34475 | else |
| 34476 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34479 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34481 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34482 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34483 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34484 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34485 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34486 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34487 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34488 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34489 | cat >>confdefs.h <<_ACEOF |
| 34490 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34491 | _ACEOF |
| 34492 | |
| 34493 | fi |
| 34494 | done |
| 34495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34496 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 34497 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34498 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 34499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34500 | else |
| 34501 | if test "$cross_compiling" = yes; then |
| 34502 | ac_cv_func_mmap_fixed_mapped=no |
| 34503 | else |
| 34504 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34505 | /* confdefs.h. */ |
| 34506 | _ACEOF |
| 34507 | cat confdefs.h >>conftest.$ac_ext |
| 34508 | cat >>conftest.$ac_ext <<_ACEOF |
| 34509 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34510 | $ac_includes_default |
| 34511 | /* malloc might have been renamed as rpl_malloc. */ |
| 34512 | #undef malloc |
| 34513 | |
| 34514 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 34515 | Here is a matrix of mmap possibilities: |
| 34516 | mmap private not fixed |
| 34517 | mmap private fixed at somewhere currently unmapped |
| 34518 | mmap private fixed at somewhere already mapped |
| 34519 | mmap shared not fixed |
| 34520 | mmap shared fixed at somewhere currently unmapped |
| 34521 | mmap shared fixed at somewhere already mapped |
| 34522 | For private mappings, we should verify that changes cannot be read() |
| 34523 | back from the file, nor mmap's back from the file at a different |
| 34524 | address. (There have been systems where private was not correctly |
| 34525 | implemented like the infamous i386 svr4.0, and systems where the |
| 34526 | VM page cache was not coherent with the file system buffer cache |
| 34527 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 34528 | For shared mappings, we should conversely verify that changes get |
| 34529 | propagated back to all the places they're supposed to be. |
| 34530 | |
| 34531 | Grep wants private fixed already mapped. |
| 34532 | The main things grep needs to know about mmap are: |
| 34533 | * does it exist and is it safe to write into the mmap'd area |
| 34534 | * how to use it (BSD variants) */ |
| 34535 | |
| 34536 | #include <fcntl.h> |
| 34537 | #include <sys/mman.h> |
| 34538 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34539 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34540 | char *malloc (); |
| 34541 | #endif |
| 34542 | |
| 34543 | /* This mess was copied from the GNU getpagesize.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34544 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34545 | /* Assume that all systems that can run configure have sys/param.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34546 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34547 | # define HAVE_SYS_PARAM_H 1 |
| 34548 | # endif |
| 34549 | |
| 34550 | # ifdef _SC_PAGESIZE |
| 34551 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 34552 | # else /* no _SC_PAGESIZE */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34553 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34554 | # include <sys/param.h> |
| 34555 | # ifdef EXEC_PAGESIZE |
| 34556 | # define getpagesize() EXEC_PAGESIZE |
| 34557 | # else /* no EXEC_PAGESIZE */ |
| 34558 | # ifdef NBPG |
| 34559 | # define getpagesize() NBPG * CLSIZE |
| 34560 | # ifndef CLSIZE |
| 34561 | # define CLSIZE 1 |
| 34562 | # endif /* no CLSIZE */ |
| 34563 | # else /* no NBPG */ |
| 34564 | # ifdef NBPC |
| 34565 | # define getpagesize() NBPC |
| 34566 | # else /* no NBPC */ |
| 34567 | # ifdef PAGESIZE |
| 34568 | # define getpagesize() PAGESIZE |
| 34569 | # endif /* PAGESIZE */ |
| 34570 | # endif /* no NBPC */ |
| 34571 | # endif /* no NBPG */ |
| 34572 | # endif /* no EXEC_PAGESIZE */ |
| 34573 | # else /* no HAVE_SYS_PARAM_H */ |
| 34574 | # define getpagesize() 8192 /* punt totally */ |
| 34575 | # endif /* no HAVE_SYS_PARAM_H */ |
| 34576 | # endif /* no _SC_PAGESIZE */ |
| 34577 | |
| 34578 | #endif /* no HAVE_GETPAGESIZE */ |
| 34579 | |
| 34580 | int |
| 34581 | main () |
| 34582 | { |
| 34583 | char *data, *data2, *data3; |
| 34584 | int i, pagesize; |
| 34585 | int fd; |
| 34586 | |
| 34587 | pagesize = getpagesize (); |
| 34588 | |
| 34589 | /* First, make a file with some known garbage in it. */ |
| 34590 | data = (char *) malloc (pagesize); |
| 34591 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34592 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34593 | for (i = 0; i < pagesize; ++i) |
| 34594 | *(data + i) = rand (); |
| 34595 | umask (0); |
| 34596 | fd = creat ("conftest.mmap", 0600); |
| 34597 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34598 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34599 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34600 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34601 | close (fd); |
| 34602 | |
| 34603 | /* Next, try to mmap the file at a fixed address which already has |
| 34604 | something else allocated at it. If we can, also make sure that |
| 34605 | we see the same garbage. */ |
| 34606 | fd = open ("conftest.mmap", O_RDWR); |
| 34607 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34608 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34609 | data2 = (char *) malloc (2 * pagesize); |
| 34610 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34611 | return 1; |
| 34612 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34613 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34614 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34615 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34616 | for (i = 0; i < pagesize; ++i) |
| 34617 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34618 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34619 | |
| 34620 | /* Finally, make sure that changes to the mapped area do not |
| 34621 | percolate back to the file as seen by read(). (This is a bug on |
| 34622 | some variants of i386 svr4.0.) */ |
| 34623 | for (i = 0; i < pagesize; ++i) |
| 34624 | *(data2 + i) = *(data2 + i) + 1; |
| 34625 | data3 = (char *) malloc (pagesize); |
| 34626 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34627 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34628 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34629 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34630 | for (i = 0; i < pagesize; ++i) |
| 34631 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34632 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34633 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34634 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34635 | } |
| 34636 | _ACEOF |
| 34637 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34638 | if { (ac_try="$ac_link" |
| 34639 | case "(($ac_try" in |
| 34640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34641 | *) ac_try_echo=$ac_try;; |
| 34642 | esac |
| 34643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34644 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34645 | ac_status=$? |
| 34646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34648 | { (case "(($ac_try" in |
| 34649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34650 | *) ac_try_echo=$ac_try;; |
| 34651 | esac |
| 34652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34653 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34654 | ac_status=$? |
| 34655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34656 | (exit $ac_status); }; }; then |
| 34657 | ac_cv_func_mmap_fixed_mapped=yes |
| 34658 | else |
| 34659 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34660 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34663 | ( exit $ac_status ) |
| 34664 | ac_cv_func_mmap_fixed_mapped=no |
| 34665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34666 | 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] | 34667 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34668 | |
| 34669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34671 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 34672 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34673 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 34674 | |
| 34675 | cat >>confdefs.h <<\_ACEOF |
| 34676 | #define HAVE_MMAP 1 |
| 34677 | _ACEOF |
| 34678 | |
| 34679 | fi |
| 34680 | rm -f conftest.mmap |
| 34681 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34682 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34683 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34684 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 34685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34686 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34687 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34688 | ac_cpp='$CPP $CPPFLAGS' |
| 34689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34692 | |
| 34693 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34694 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34695 | else |
| 34696 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34697 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34698 | /* confdefs.h. */ |
| 34699 | _ACEOF |
| 34700 | cat confdefs.h >>conftest.$ac_ext |
| 34701 | cat >>conftest.$ac_ext <<_ACEOF |
| 34702 | /* end confdefs.h. */ |
| 34703 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34704 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34705 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34706 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34707 | |
| 34708 | int |
| 34709 | main () |
| 34710 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34711 | |
| 34712 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34713 | fd = creat ("foo",0777); |
| 34714 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 34715 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34716 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34717 | ; |
| 34718 | return 0; |
| 34719 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34720 | _ACEOF |
| 34721 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34722 | if { (ac_try="$ac_link" |
| 34723 | case "(($ac_try" in |
| 34724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34725 | *) ac_try_echo=$ac_try;; |
| 34726 | esac |
| 34727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34728 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34729 | ac_status=$? |
| 34730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34732 | { (case "(($ac_try" in |
| 34733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34734 | *) ac_try_echo=$ac_try;; |
| 34735 | esac |
| 34736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34737 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34738 | ac_status=$? |
| 34739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34740 | (exit $ac_status); }; }; then |
| 34741 | ac_cv_func_mmap_file=yes |
| 34742 | else |
| 34743 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34744 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34746 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34747 | ( exit $ac_status ) |
| 34748 | ac_cv_func_mmap_file=no |
| 34749 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34750 | 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] | 34751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34752 | |
| 34753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34754 | ac_ext=c |
| 34755 | ac_cpp='$CPP $CPPFLAGS' |
| 34756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34759 | |
| 34760 | |
| 34761 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34762 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 34763 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34764 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34765 | |
| 34766 | cat >>confdefs.h <<\_ACEOF |
| 34767 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34768 | _ACEOF |
| 34769 | |
| 34770 | MMAP_FILE=yes |
| 34771 | |
| 34772 | fi |
| 34773 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34774 | { 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] | 34775 | 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] | 34776 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 34777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34778 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34779 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34780 | ac_cv_need_dev_zero_for_mmap=yes |
| 34781 | else |
| 34782 | ac_cv_need_dev_zero_for_mmap=no |
| 34783 | fi |
| 34784 | |
| 34785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34786 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 34787 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34788 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 34789 | |
| 34790 | cat >>confdefs.h <<\_ACEOF |
| 34791 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 34792 | _ACEOF |
| 34793 | |
| 34794 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34795 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34796 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 34797 | then |
| 34798 | { 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] | 34799 | 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] | 34800 | fi |
| 34801 | if test "$ac_cv_func_mmap_file" = "no" |
| 34802 | then |
| 34803 | { 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] | 34804 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34805 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34806 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34807 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34808 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34809 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34810 | cat >conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34811 | /* confdefs.h. */ |
| 34812 | _ACEOF |
| 34813 | cat confdefs.h >>conftest.$ac_ext |
| 34814 | cat >>conftest.$ac_ext <<_ACEOF |
| 34815 | /* end confdefs.h. */ |
| 34816 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34817 | volatile unsigned long val = 1; |
| 34818 | __sync_synchronize(); |
| 34819 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 34820 | __sync_add_and_fetch(&val, 1); |
| 34821 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34822 | return 0; |
| 34823 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34824 | |
| 34825 | _ACEOF |
| 34826 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34827 | if { (ac_try="$ac_link" |
| 34828 | case "(($ac_try" in |
| 34829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34830 | *) ac_try_echo=$ac_try;; |
| 34831 | esac |
| 34832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34833 | (eval "$ac_link") 2>conftest.er1 |
| 34834 | ac_status=$? |
| 34835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34836 | rm -f conftest.er1 |
| 34837 | cat conftest.err >&5 |
| 34838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34839 | (exit $ac_status); } && |
| 34840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34841 | { (case "(($ac_try" in |
| 34842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34843 | *) ac_try_echo=$ac_try;; |
| 34844 | esac |
| 34845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34846 | (eval "$ac_try") 2>&5 |
| 34847 | ac_status=$? |
| 34848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34849 | (exit $ac_status); }; } && |
| 34850 | { ac_try='test -s conftest$ac_exeext' |
| 34851 | { (case "(($ac_try" in |
| 34852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34853 | *) ac_try_echo=$ac_try;; |
| 34854 | esac |
| 34855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34856 | (eval "$ac_try") 2>&5 |
| 34857 | ac_status=$? |
| 34858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34859 | (exit $ac_status); }; }; then |
| 34860 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 34861 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34862 | |
| 34863 | cat >>confdefs.h <<\_ACEOF |
| 34864 | #define LLVM_MULTITHREADED 1 |
| 34865 | _ACEOF |
| 34866 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34867 | else |
| 34868 | echo "$as_me: failed program was:" >&5 |
| 34869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34870 | |
| 34871 | { echo "$as_me:$LINENO: result: no" >&5 |
| 34872 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34873 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34874 | cat >>confdefs.h <<\_ACEOF |
| 34875 | #define LLVM_MULTITHREADED 0 |
| 34876 | _ACEOF |
| 34877 | |
| 34878 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 34879 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34880 | fi |
| 34881 | |
| 34882 | rm -f core conftest.err conftest.$ac_objext \ |
| 34883 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34884 | |
| 34885 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34886 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34887 | |
| 34888 | for ac_func in __dso_handle |
| 34889 | do |
| 34890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34891 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34893 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34895 | else |
| 34896 | cat >conftest.$ac_ext <<_ACEOF |
| 34897 | /* confdefs.h. */ |
| 34898 | _ACEOF |
| 34899 | cat confdefs.h >>conftest.$ac_ext |
| 34900 | cat >>conftest.$ac_ext <<_ACEOF |
| 34901 | /* end confdefs.h. */ |
| 34902 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34903 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34904 | #define $ac_func innocuous_$ac_func |
| 34905 | |
| 34906 | /* System header to define __stub macros and hopefully few prototypes, |
| 34907 | which can conflict with char $ac_func (); below. |
| 34908 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34909 | <limits.h> exists even on freestanding compilers. */ |
| 34910 | |
| 34911 | #ifdef __STDC__ |
| 34912 | # include <limits.h> |
| 34913 | #else |
| 34914 | # include <assert.h> |
| 34915 | #endif |
| 34916 | |
| 34917 | #undef $ac_func |
| 34918 | |
| 34919 | /* Override any GCC internal prototype to avoid an error. |
| 34920 | Use char because int might match the return type of a GCC |
| 34921 | builtin and then its argument prototype would still apply. */ |
| 34922 | #ifdef __cplusplus |
| 34923 | extern "C" |
| 34924 | #endif |
| 34925 | char $ac_func (); |
| 34926 | /* The GNU C library defines this for functions which it implements |
| 34927 | to always fail with ENOSYS. Some functions are actually named |
| 34928 | something starting with __ and the normal name is an alias. */ |
| 34929 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34930 | choke me |
| 34931 | #endif |
| 34932 | |
| 34933 | int |
| 34934 | main () |
| 34935 | { |
| 34936 | return $ac_func (); |
| 34937 | ; |
| 34938 | return 0; |
| 34939 | } |
| 34940 | _ACEOF |
| 34941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34942 | if { (ac_try="$ac_link" |
| 34943 | case "(($ac_try" in |
| 34944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34945 | *) ac_try_echo=$ac_try;; |
| 34946 | esac |
| 34947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34948 | (eval "$ac_link") 2>conftest.er1 |
| 34949 | ac_status=$? |
| 34950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34951 | rm -f conftest.er1 |
| 34952 | cat conftest.err >&5 |
| 34953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34954 | (exit $ac_status); } && |
| 34955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34956 | { (case "(($ac_try" in |
| 34957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34958 | *) ac_try_echo=$ac_try;; |
| 34959 | esac |
| 34960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34961 | (eval "$ac_try") 2>&5 |
| 34962 | ac_status=$? |
| 34963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34964 | (exit $ac_status); }; } && |
| 34965 | { ac_try='test -s conftest$ac_exeext' |
| 34966 | { (case "(($ac_try" in |
| 34967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34968 | *) ac_try_echo=$ac_try;; |
| 34969 | esac |
| 34970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34971 | (eval "$ac_try") 2>&5 |
| 34972 | ac_status=$? |
| 34973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34974 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34975 | eval "$as_ac_var=yes" |
| 34976 | else |
| 34977 | echo "$as_me: failed program was:" >&5 |
| 34978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34979 | |
| 34980 | eval "$as_ac_var=no" |
| 34981 | fi |
| 34982 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34983 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34984 | conftest$ac_exeext conftest.$ac_ext |
| 34985 | fi |
| 34986 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34987 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34988 | echo "${ECHO_T}$ac_res" >&6; } |
| 34989 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34990 | cat >>confdefs.h <<_ACEOF |
| 34991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34992 | _ACEOF |
| 34993 | |
| 34994 | fi |
| 34995 | done |
| 34996 | |
| 34997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34998 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34999 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35000 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 35001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35002 | else |
| 35003 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35004 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35005 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 35006 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 35007 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35008 | if test $? -eq 0 ; then |
| 35009 | llvm_cv_llvmgcc_sanity="yes" |
| 35010 | fi |
| 35011 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35012 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35014 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 35015 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35016 | |
| 35017 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35018 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 35019 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35020 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35021 | LLVMCC1=$llvmcc1path |
| 35022 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35023 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35024 | LLVMCC1PLUS=$llvmcc1pluspath |
| 35025 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35026 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 35027 | LLVMGCCDIR=$llvmgccdir |
| 35028 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35029 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 35030 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 35031 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 35032 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 35033 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 35034 | LLVMGCC_VERSION=$llvmgccversion |
| 35035 | |
| 35036 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 35037 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 35038 | 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] | 35039 | LLVMGCC_LANGS=$llvmgcclangs |
| 35040 | |
| 35041 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 35042 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35043 | fi |
| 35044 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35045 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 35046 | |
| 35047 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35048 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35049 | # information into substitutions that will end up in Makefile.config.in |
| 35050 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 35051 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 35052 | prefix="/usr/local" |
| 35053 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35054 | eval LLVM_PREFIX="${prefix}"; |
| 35055 | eval LLVM_BINDIR="${prefix}/bin"; |
| 35056 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35057 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 35058 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 35059 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35060 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 35061 | eval LLVM_INFODIR="${prefix}/info"; |
| 35062 | eval LLVM_MANDIR="${prefix}/man"; |
| 35063 | LLVM_CONFIGTIME=`date` |
| 35064 | |
| 35065 | |
| 35066 | |
| 35067 | |
| 35068 | |
| 35069 | |
| 35070 | |
| 35071 | |
| 35072 | |
| 35073 | |
| 35074 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35075 | # Place the various directores into the config.h file as #defines so that we |
| 35076 | # can know about the installation paths within LLVM. |
| 35077 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35078 | cat >>confdefs.h <<_ACEOF |
| 35079 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 35080 | _ACEOF |
| 35081 | |
| 35082 | |
| 35083 | cat >>confdefs.h <<_ACEOF |
| 35084 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 35085 | _ACEOF |
| 35086 | |
| 35087 | |
| 35088 | cat >>confdefs.h <<_ACEOF |
| 35089 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 35090 | _ACEOF |
| 35091 | |
| 35092 | |
| 35093 | cat >>confdefs.h <<_ACEOF |
| 35094 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 35095 | _ACEOF |
| 35096 | |
| 35097 | |
| 35098 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 35099 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35100 | _ACEOF |
| 35101 | |
| 35102 | |
| 35103 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 35104 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35105 | _ACEOF |
| 35106 | |
| 35107 | |
| 35108 | cat >>confdefs.h <<_ACEOF |
| 35109 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 35110 | _ACEOF |
| 35111 | |
| 35112 | |
| 35113 | cat >>confdefs.h <<_ACEOF |
| 35114 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 35115 | _ACEOF |
| 35116 | |
| 35117 | |
| 35118 | cat >>confdefs.h <<_ACEOF |
| 35119 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 35120 | _ACEOF |
| 35121 | |
| 35122 | |
| 35123 | cat >>confdefs.h <<_ACEOF |
| 35124 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 35125 | _ACEOF |
| 35126 | |
| 35127 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 35128 | cat >>confdefs.h <<_ACEOF |
| 35129 | #define LLVM_HOSTTRIPLE "$host" |
| 35130 | _ACEOF |
| 35131 | |
| 35132 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35133 | # Determine which bindings to build. |
| 35134 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 35135 | BINDINGS_TO_BUILD="" |
| 35136 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 35137 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 35138 | fi |
| 35139 | fi |
| 35140 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 35141 | |
| 35142 | |
| 35143 | # This isn't really configurey, but it avoids having to repeat the list in |
| 35144 | # other files. |
| 35145 | ALL_BINDINGS=ocaml |
| 35146 | |
| 35147 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35148 | # Do any work necessary to ensure that bindings have what they need. |
| 35149 | binding_prereqs_failed=0 |
| 35150 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 35151 | case "$a_binding" in |
| 35152 | ocaml) |
| 35153 | if test "x$OCAMLC" = x ; then |
| 35154 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 35155 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 35156 | binding_prereqs_failed=1 |
| 35157 | fi |
| 35158 | if test "x$OCAMLDEP" = x ; then |
| 35159 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 35160 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 35161 | binding_prereqs_failed=1 |
| 35162 | fi |
| 35163 | if test "x$OCAMLOPT" = x ; then |
| 35164 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 35165 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 35166 | fi |
| 35167 | if test "x$with_ocaml_libdir" != xauto ; then |
| 35168 | OCAML_LIBDIR=$with_ocaml_libdir |
| 35169 | |
| 35170 | else |
| 35171 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 35172 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 35173 | then |
| 35174 | # ocaml stdlib is beneath our prefix; use stdlib |
| 35175 | OCAML_LIBDIR=$ocaml_stdlib |
| 35176 | |
| 35177 | else |
| 35178 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 35179 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 35180 | |
| 35181 | fi |
| 35182 | fi |
| 35183 | ;; |
| 35184 | esac |
| 35185 | done |
| 35186 | if test "$binding_prereqs_failed" = 1 ; then |
| 35187 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 35188 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 35189 | { (exit 1); exit 1; }; } |
| 35190 | fi |
| 35191 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35192 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 35193 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 35194 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 35195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35196 | else |
| 35197 | ac_ext=cpp |
| 35198 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 35199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 35202 | |
| 35203 | oldcxxflags="$CXXFLAGS" |
| 35204 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 35205 | cat >conftest.$ac_ext <<_ACEOF |
| 35206 | /* confdefs.h. */ |
| 35207 | _ACEOF |
| 35208 | cat confdefs.h >>conftest.$ac_ext |
| 35209 | cat >>conftest.$ac_ext <<_ACEOF |
| 35210 | /* end confdefs.h. */ |
| 35211 | |
| 35212 | int |
| 35213 | main () |
| 35214 | { |
| 35215 | |
| 35216 | ; |
| 35217 | return 0; |
| 35218 | } |
| 35219 | _ACEOF |
| 35220 | rm -f conftest.$ac_objext |
| 35221 | if { (ac_try="$ac_compile" |
| 35222 | case "(($ac_try" in |
| 35223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35224 | *) ac_try_echo=$ac_try;; |
| 35225 | esac |
| 35226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35227 | (eval "$ac_compile") 2>conftest.er1 |
| 35228 | ac_status=$? |
| 35229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35230 | rm -f conftest.er1 |
| 35231 | cat conftest.err >&5 |
| 35232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35233 | (exit $ac_status); } && |
| 35234 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 35235 | { (case "(($ac_try" in |
| 35236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35237 | *) ac_try_echo=$ac_try;; |
| 35238 | esac |
| 35239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35240 | (eval "$ac_try") 2>&5 |
| 35241 | ac_status=$? |
| 35242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35243 | (exit $ac_status); }; } && |
| 35244 | { ac_try='test -s conftest.$ac_objext' |
| 35245 | { (case "(($ac_try" in |
| 35246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35247 | *) ac_try_echo=$ac_try;; |
| 35248 | esac |
| 35249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35250 | (eval "$ac_try") 2>&5 |
| 35251 | ac_status=$? |
| 35252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35253 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35254 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 35255 | else |
| 35256 | echo "$as_me: failed program was:" >&5 |
| 35257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35258 | |
| 35259 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 35260 | fi |
| 35261 | |
| 35262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35263 | CXXFLAGS="$oldcxxflags" |
| 35264 | ac_ext=c |
| 35265 | ac_cpp='$CPP $CPPFLAGS' |
| 35266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 35269 | |
| 35270 | |
| 35271 | fi |
| 35272 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 35273 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 35274 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 35275 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 35276 | |
| 35277 | else |
| 35278 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 35279 | |
| 35280 | fi |
| 35281 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35282 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 35283 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 35284 | RPATH="-Wl,-R" |
| 35285 | else |
| 35286 | RPATH="-Wl,-rpath" |
| 35287 | fi |
| 35288 | |
| 35289 | |
| 35290 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 35291 | RDYNAMIC="-Wl,-export-dynamic" |
| 35292 | else |
| 35293 | RDYNAMIC="" |
| 35294 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 35295 | |
| 35296 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35298 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35299 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35300 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 35301 | |
| 35302 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 35303 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35304 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 35305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35306 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35307 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35309 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35310 | |
| 35311 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35312 | ac_config_files="$ac_config_files llvm.spec" |
| 35313 | |
| 35314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35315 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35316 | |
| 35317 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35318 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 35319 | |
| 35320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35321 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 35322 | |
| 35323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35324 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35326 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35327 | |
| 35328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35329 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35330 | |
| 35331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35332 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35333 | |
| 35334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35335 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35336 | |
| 35337 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35338 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 35339 | |
| 35340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35341 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35342 | |
| 35343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35344 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35345 | |
| 35346 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35347 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 35348 | |
| 35349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35350 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35351 | |
| 35352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35353 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35354 | |
| 35355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35356 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35357 | |
| 35358 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35359 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 35360 | |
| 35361 | |
| 35362 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 35363 | |
| 35364 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35365 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35366 | cat >confcache <<\_ACEOF |
| 35367 | # This file is a shell script that caches the results of configure |
| 35368 | # tests run on this system so they can be shared between configure |
| 35369 | # scripts and configure runs, see configure's option --config-cache. |
| 35370 | # It is not useful on other systems. If it contains results you don't |
| 35371 | # want to keep, you may remove or edit it. |
| 35372 | # |
| 35373 | # config.status only pays attention to the cache file if you give it |
| 35374 | # the --recheck option to rerun configure. |
| 35375 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35376 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35377 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35378 | # following values. |
| 35379 | |
| 35380 | _ACEOF |
| 35381 | |
| 35382 | # The following way of writing the cache mishandles newlines in values, |
| 35383 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35384 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35385 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35386 | # 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] | 35387 | ( |
| 35388 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35389 | eval ac_val=\$$ac_var |
| 35390 | case $ac_val in #( |
| 35391 | *${as_nl}*) |
| 35392 | case $ac_var in #( |
| 35393 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 35394 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 35395 | esac |
| 35396 | case $ac_var in #( |
| 35397 | _ | IFS | as_nl) ;; #( |
| 35398 | *) $as_unset $ac_var ;; |
| 35399 | esac ;; |
| 35400 | esac |
| 35401 | done |
| 35402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35403 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35404 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35405 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35406 | # `set' does not quote correctly, so add quotes (double-quote |
| 35407 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 35408 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35409 | "s/'/'\\\\''/g; |
| 35410 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35411 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35412 | *) |
| 35413 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35414 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35415 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35416 | esac | |
| 35417 | sort |
| 35418 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35419 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35420 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35421 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35422 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35423 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35424 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35425 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35426 | :end' >>confcache |
| 35427 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35428 | if test -w "$cache_file"; then |
| 35429 | test "x$cache_file" != "x/dev/null" && |
| 35430 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 35431 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35432 | cat confcache >$cache_file |
| 35433 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35434 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 35435 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35436 | fi |
| 35437 | fi |
| 35438 | rm -f confcache |
| 35439 | |
| 35440 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35441 | # Let make expand exec_prefix. |
| 35442 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35443 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35444 | DEFS=-DHAVE_CONFIG_H |
| 35445 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35446 | ac_libobjs= |
| 35447 | ac_ltlibobjs= |
| 35448 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35449 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35450 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35451 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 35452 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35453 | # will be set to the directory where LIBOBJS objects are built. |
| 35454 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35455 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35456 | done |
| 35457 | LIBOBJS=$ac_libobjs |
| 35458 | |
| 35459 | LTLIBOBJS=$ac_ltlibobjs |
| 35460 | |
| 35461 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35462 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 35463 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35464 | Usually this means the macro was only invoked conditionally." >&5 |
| 35465 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35466 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35467 | { (exit 1); exit 1; }; } |
| 35468 | fi |
| 35469 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 35470 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35471 | Usually this means the macro was only invoked conditionally." >&5 |
| 35472 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35473 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35474 | { (exit 1); exit 1; }; } |
| 35475 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35476 | |
| 35477 | : ${CONFIG_STATUS=./config.status} |
| 35478 | ac_clean_files_save=$ac_clean_files |
| 35479 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 35480 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 35481 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 35482 | cat >$CONFIG_STATUS <<_ACEOF |
| 35483 | #! $SHELL |
| 35484 | # Generated by $as_me. |
| 35485 | # Run this file to recreate the current configuration. |
| 35486 | # Compiler output produced by configure, useful for debugging |
| 35487 | # configure, is in config.log if it exists. |
| 35488 | |
| 35489 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35490 | ac_cs_recheck=false |
| 35491 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35492 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35493 | _ACEOF |
| 35494 | |
| 35495 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35496 | ## --------------------- ## |
| 35497 | ## M4sh Initialization. ## |
| 35498 | ## --------------------- ## |
| 35499 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35500 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35501 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 35502 | emulate sh |
| 35503 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35504 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 35505 | # is contrary to our usage. Disable this feature. |
| 35506 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35507 | setopt NO_GLOB_SUBST |
| 35508 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35509 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35510 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35511 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 35512 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35513 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35514 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35515 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35516 | # Avoid depending upon Character Ranges. |
| 35517 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35518 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35519 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35520 | as_cr_digits='0123456789' |
| 35521 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35522 | |
| 35523 | # The user is always right. |
| 35524 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35525 | echo "#! /bin/sh" >conf$$.sh |
| 35526 | echo "exit 0" >>conf$$.sh |
| 35527 | chmod +x conf$$.sh |
| 35528 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35529 | PATH_SEPARATOR=';' |
| 35530 | else |
| 35531 | PATH_SEPARATOR=: |
| 35532 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35533 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35534 | fi |
| 35535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35536 | # Support unset when possible. |
| 35537 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 35538 | as_unset=unset |
| 35539 | else |
| 35540 | as_unset=false |
| 35541 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35543 | |
| 35544 | # IFS |
| 35545 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35546 | # there to prevent editors from complaining about space-tab. |
| 35547 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35548 | # splitting by setting IFS to empty value.) |
| 35549 | as_nl=' |
| 35550 | ' |
| 35551 | IFS=" "" $as_nl" |
| 35552 | |
| 35553 | # Find who we are. Look in the path if we contain no directory separator. |
| 35554 | case $0 in |
| 35555 | *[\\/]* ) as_myself=$0 ;; |
| 35556 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35557 | for as_dir in $PATH |
| 35558 | do |
| 35559 | IFS=$as_save_IFS |
| 35560 | test -z "$as_dir" && as_dir=. |
| 35561 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35562 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35563 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35565 | ;; |
| 35566 | esac |
| 35567 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35568 | # in which case we are not to be found in the path. |
| 35569 | if test "x$as_myself" = x; then |
| 35570 | as_myself=$0 |
| 35571 | fi |
| 35572 | if test ! -f "$as_myself"; then |
| 35573 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 35574 | { (exit 1); exit 1; } |
| 35575 | fi |
| 35576 | |
| 35577 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35578 | for as_var in ENV MAIL MAILPATH |
| 35579 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35580 | done |
| 35581 | PS1='$ ' |
| 35582 | PS2='> ' |
| 35583 | PS4='+ ' |
| 35584 | |
| 35585 | # NLS nuisances. |
| 35586 | for as_var in \ |
| 35587 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 35588 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 35589 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35590 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35591 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 35592 | eval $as_var=C; export $as_var |
| 35593 | else |
| 35594 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35595 | fi |
| 35596 | done |
| 35597 | |
| 35598 | # Required to use basename. |
| 35599 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35600 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35601 | as_expr=expr |
| 35602 | else |
| 35603 | as_expr=false |
| 35604 | fi |
| 35605 | |
| 35606 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35607 | as_basename=basename |
| 35608 | else |
| 35609 | as_basename=false |
| 35610 | fi |
| 35611 | |
| 35612 | |
| 35613 | # Name of the executable. |
| 35614 | as_me=`$as_basename -- "$0" || |
| 35615 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35616 | X"$0" : 'X\(//\)$' \| \ |
| 35617 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35618 | echo X/"$0" | |
| 35619 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35620 | s//\1/ |
| 35621 | q |
| 35622 | } |
| 35623 | /^X\/\(\/\/\)$/{ |
| 35624 | s//\1/ |
| 35625 | q |
| 35626 | } |
| 35627 | /^X\/\(\/\).*/{ |
| 35628 | s//\1/ |
| 35629 | q |
| 35630 | } |
| 35631 | s/.*/./; q'` |
| 35632 | |
| 35633 | # CDPATH. |
| 35634 | $as_unset CDPATH |
| 35635 | |
| 35636 | |
| 35637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35638 | as_lineno_1=$LINENO |
| 35639 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35640 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35641 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35642 | |
| 35643 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 35644 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35645 | # line-number line after each line using $LINENO; the second 'sed' |
| 35646 | # does the real work. The second script uses 'N' to pair each |
| 35647 | # line-number line with the line containing $LINENO, and appends |
| 35648 | # trailing '-' during substitution so that $LINENO is not a special |
| 35649 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35650 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35651 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 35652 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 35653 | sed -n ' |
| 35654 | p |
| 35655 | /[$]LINENO/= |
| 35656 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35657 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35658 | s/[$]LINENO.*/&-/ |
| 35659 | t lineno |
| 35660 | b |
| 35661 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35662 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35663 | :loop |
| 35664 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35665 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35666 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35667 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35668 | chmod +x "$as_me.lineno" || |
| 35669 | { 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] | 35670 | { (exit 1); exit 1; }; } |
| 35671 | |
| 35672 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 35673 | # (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] | 35674 | # original and so on. Autoconf is especially sensitive to this). |
| 35675 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35676 | # Exit status is that of the last command. |
| 35677 | exit |
| 35678 | } |
| 35679 | |
| 35680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35681 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35682 | as_dirname=dirname |
| 35683 | else |
| 35684 | as_dirname=false |
| 35685 | fi |
| 35686 | |
| 35687 | ECHO_C= ECHO_N= ECHO_T= |
| 35688 | case `echo -n x` in |
| 35689 | -n*) |
| 35690 | case `echo 'x\c'` in |
| 35691 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 35692 | *) ECHO_C='\c';; |
| 35693 | esac;; |
| 35694 | *) |
| 35695 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35696 | esac |
| 35697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35698 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35699 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35700 | as_expr=expr |
| 35701 | else |
| 35702 | as_expr=false |
| 35703 | fi |
| 35704 | |
| 35705 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35706 | if test -d conf$$.dir; then |
| 35707 | rm -f conf$$.dir/conf$$.file |
| 35708 | else |
| 35709 | rm -f conf$$.dir |
| 35710 | mkdir conf$$.dir |
| 35711 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35712 | echo >conf$$.file |
| 35713 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35714 | as_ln_s='ln -s' |
| 35715 | # ... but there are two gotchas: |
| 35716 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35717 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35718 | # In both cases, we have to default to `cp -p'. |
| 35719 | 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] | 35720 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35721 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35722 | as_ln_s=ln |
| 35723 | else |
| 35724 | as_ln_s='cp -p' |
| 35725 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35726 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35727 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35728 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35729 | if mkdir -p . 2>/dev/null; then |
| 35730 | as_mkdir_p=: |
| 35731 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35732 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35733 | as_mkdir_p=false |
| 35734 | fi |
| 35735 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35736 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 35737 | # systems may use methods other than mode bits to determine executability. |
| 35738 | cat >conf$$.file <<_ASEOF |
| 35739 | #! /bin/sh |
| 35740 | exit 0 |
| 35741 | _ASEOF |
| 35742 | chmod +x conf$$.file |
| 35743 | if test -x conf$$.file >/dev/null 2>&1; then |
| 35744 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35745 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35746 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35747 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35748 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35749 | |
| 35750 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35751 | 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] | 35752 | |
| 35753 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35754 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35755 | |
| 35756 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35757 | exec 6>&1 |
| 35758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35759 | # 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] | 35760 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35761 | # values after options handling. |
| 35762 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35763 | This file was extended by llvm $as_me 2.7svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35764 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35765 | |
| 35766 | CONFIG_FILES = $CONFIG_FILES |
| 35767 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35768 | CONFIG_LINKS = $CONFIG_LINKS |
| 35769 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35770 | $ $0 $@ |
| 35771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35772 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35773 | " |
| 35774 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35775 | _ACEOF |
| 35776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35777 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35778 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35779 | config_files="$ac_config_files" |
| 35780 | config_headers="$ac_config_headers" |
| 35781 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35783 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35784 | |
| 35785 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35786 | ac_cs_usage="\ |
| 35787 | \`$as_me' instantiates files from templates according to the |
| 35788 | current configuration. |
| 35789 | |
| 35790 | Usage: $0 [OPTIONS] [FILE]... |
| 35791 | |
| 35792 | -h, --help print this help, then exit |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35793 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35794 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35795 | -d, --debug don't remove temporary files |
| 35796 | --recheck update $as_me by reconfiguring in the same conditions |
| 35797 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35798 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35799 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35800 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35801 | |
| 35802 | Configuration files: |
| 35803 | $config_files |
| 35804 | |
| 35805 | Configuration headers: |
| 35806 | $config_headers |
| 35807 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35808 | Configuration commands: |
| 35809 | $config_commands |
| 35810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35811 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35813 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35814 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35815 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35816 | llvm config.status 2.7svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35817 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35818 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35819 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35820 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35821 | This config.status script is free software; the Free Software Foundation |
| 35822 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35823 | |
| 35824 | ac_pwd='$ac_pwd' |
| 35825 | srcdir='$srcdir' |
| 35826 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35827 | _ACEOF |
| 35828 | |
| 35829 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35830 | # If no file are specified by the user, then we need to provide default |
| 35831 | # value. By we need to know if files were specified by the user. |
| 35832 | ac_need_defaults=: |
| 35833 | while test $# != 0 |
| 35834 | do |
| 35835 | case $1 in |
| 35836 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35837 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35838 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35839 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35840 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35841 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35842 | ac_option=$1 |
| 35843 | ac_optarg=$2 |
| 35844 | ac_shift=shift |
| 35845 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35846 | esac |
| 35847 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35848 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35849 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35850 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35851 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35852 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35853 | echo "$ac_cs_version"; exit ;; |
| 35854 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35855 | debug=: ;; |
| 35856 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35857 | $ac_shift |
| 35858 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35859 | ac_need_defaults=false;; |
| 35860 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35861 | $ac_shift |
| 35862 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35863 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35864 | --he | --h) |
| 35865 | # Conflict between --help and --header |
| 35866 | { echo "$as_me: error: ambiguous option: $1 |
| 35867 | Try \`$0 --help' for more information." >&2 |
| 35868 | { (exit 1); exit 1; }; };; |
| 35869 | --help | --hel | -h ) |
| 35870 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35871 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35872 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35873 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35874 | |
| 35875 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35876 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 35877 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35878 | { (exit 1); exit 1; }; } ;; |
| 35879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35880 | *) ac_config_targets="$ac_config_targets $1" |
| 35881 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35882 | |
| 35883 | esac |
| 35884 | shift |
| 35885 | done |
| 35886 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35887 | ac_configure_extra_args= |
| 35888 | |
| 35889 | if $ac_cs_silent; then |
| 35890 | exec 6>/dev/null |
| 35891 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35892 | fi |
| 35893 | |
| 35894 | _ACEOF |
| 35895 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35896 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35897 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 35898 | CONFIG_SHELL=$SHELL |
| 35899 | export CONFIG_SHELL |
| 35900 | 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] | 35901 | fi |
| 35902 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35903 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35904 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35905 | exec 5>>config.log |
| 35906 | { |
| 35907 | echo |
| 35908 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35909 | ## Running $as_me. ## |
| 35910 | _ASBOX |
| 35911 | echo "$ac_log" |
| 35912 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35914 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35915 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35916 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35917 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35918 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35919 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35920 | |
| 35921 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35922 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35923 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35924 | |
| 35925 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35926 | for ac_config_target in $ac_config_targets |
| 35927 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35928 | case $ac_config_target in |
| 35929 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35930 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 35931 | "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35932 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35933 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35934 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35935 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35936 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35937 | "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35938 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 35939 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 35940 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 35941 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 35942 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 35943 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35944 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35945 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 35946 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35947 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35948 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 35949 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 35950 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35951 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 35952 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35953 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35954 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 35955 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 35956 | { (exit 1); exit 1; }; };; |
| 35957 | esac |
| 35958 | done |
| 35959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35960 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35961 | # If the user did not use the arguments to specify the items to instantiate, |
| 35962 | # then the envvar interface is used. Set only those that are not. |
| 35963 | # We use the long form for the default assignment because of an extremely |
| 35964 | # bizarre bug on SunOS 4.1.3. |
| 35965 | if $ac_need_defaults; then |
| 35966 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 35967 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35968 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35969 | fi |
| 35970 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35971 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35972 | # 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] | 35973 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35974 | # Hook for its removal unless debugging. |
| 35975 | # Note that there is a small window in which the directory will not be cleaned: |
| 35976 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35977 | $debug || |
| 35978 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35979 | tmp= |
| 35980 | trap 'exit_status=$? |
| 35981 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 35982 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35983 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 35984 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35985 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35986 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35987 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35988 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35989 | test -n "$tmp" && test -d "$tmp" |
| 35990 | } || |
| 35991 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35992 | tmp=./conf$$-$RANDOM |
| 35993 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35994 | } || |
| 35995 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35996 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35997 | { (exit 1); exit 1; } |
| 35998 | } |
| 35999 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36000 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36001 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36002 | # |
| 36003 | |
| 36004 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 36005 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36006 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36007 | |
| 36008 | _ACEOF |
| 36009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36010 | |
| 36011 | |
| 36012 | ac_delim='%!_!# ' |
| 36013 | for ac_last_try in false false false false false :; do |
| 36014 | cat >conf$$subs.sed <<_ACEOF |
| 36015 | SHELL!$SHELL$ac_delim |
| 36016 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 36017 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 36018 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 36019 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 36020 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 36021 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 36022 | exec_prefix!$exec_prefix$ac_delim |
| 36023 | prefix!$prefix$ac_delim |
| 36024 | program_transform_name!$program_transform_name$ac_delim |
| 36025 | bindir!$bindir$ac_delim |
| 36026 | sbindir!$sbindir$ac_delim |
| 36027 | libexecdir!$libexecdir$ac_delim |
| 36028 | datarootdir!$datarootdir$ac_delim |
| 36029 | datadir!$datadir$ac_delim |
| 36030 | sysconfdir!$sysconfdir$ac_delim |
| 36031 | sharedstatedir!$sharedstatedir$ac_delim |
| 36032 | localstatedir!$localstatedir$ac_delim |
| 36033 | includedir!$includedir$ac_delim |
| 36034 | oldincludedir!$oldincludedir$ac_delim |
| 36035 | docdir!$docdir$ac_delim |
| 36036 | infodir!$infodir$ac_delim |
| 36037 | htmldir!$htmldir$ac_delim |
| 36038 | dvidir!$dvidir$ac_delim |
| 36039 | pdfdir!$pdfdir$ac_delim |
| 36040 | psdir!$psdir$ac_delim |
| 36041 | libdir!$libdir$ac_delim |
| 36042 | localedir!$localedir$ac_delim |
| 36043 | mandir!$mandir$ac_delim |
| 36044 | DEFS!$DEFS$ac_delim |
| 36045 | ECHO_C!$ECHO_C$ac_delim |
| 36046 | ECHO_N!$ECHO_N$ac_delim |
| 36047 | ECHO_T!$ECHO_T$ac_delim |
| 36048 | LIBS!$LIBS$ac_delim |
| 36049 | build_alias!$build_alias$ac_delim |
| 36050 | host_alias!$host_alias$ac_delim |
| 36051 | target_alias!$target_alias$ac_delim |
| 36052 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 36053 | subdirs!$subdirs$ac_delim |
| 36054 | build!$build$ac_delim |
| 36055 | build_cpu!$build_cpu$ac_delim |
| 36056 | build_vendor!$build_vendor$ac_delim |
| 36057 | build_os!$build_os$ac_delim |
| 36058 | host!$host$ac_delim |
| 36059 | host_cpu!$host_cpu$ac_delim |
| 36060 | host_vendor!$host_vendor$ac_delim |
| 36061 | host_os!$host_os$ac_delim |
| 36062 | target!$target$ac_delim |
| 36063 | target_cpu!$target_cpu$ac_delim |
| 36064 | target_vendor!$target_vendor$ac_delim |
| 36065 | target_os!$target_os$ac_delim |
| 36066 | OS!$OS$ac_delim |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36067 | HOST_OS!$HOST_OS$ac_delim |
| 36068 | TARGET_OS!$TARGET_OS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36069 | LINKALL!$LINKALL$ac_delim |
| 36070 | NOLINKALL!$NOLINKALL$ac_delim |
| 36071 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 36072 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 36073 | ARCH!$ARCH$ac_delim |
| 36074 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36075 | CC!$CC$ac_delim |
| 36076 | CFLAGS!$CFLAGS$ac_delim |
| 36077 | LDFLAGS!$LDFLAGS$ac_delim |
| 36078 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 36079 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 36080 | EXEEXT!$EXEEXT$ac_delim |
| 36081 | OBJEXT!$OBJEXT$ac_delim |
| 36082 | CPP!$CPP$ac_delim |
| 36083 | GREP!$GREP$ac_delim |
| 36084 | EGREP!$EGREP$ac_delim |
| 36085 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 36086 | BUILD_CC!$BUILD_CC$ac_delim |
| 36087 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 36088 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36089 | CVSBUILD!$CVSBUILD$ac_delim |
| 36090 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36091 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36092 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 36093 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 36094 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36095 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36096 | JIT!$JIT$ac_delim |
| 36097 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 36098 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 36099 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 36100 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36101 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36102 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 36103 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36104 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 36105 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36106 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 36107 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36108 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
| 36109 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36110 | CXX!$CXX$ac_delim |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 36111 | CXXFLAGS!$CXXFLAGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36112 | _ACEOF |
| 36113 | |
| 36114 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 36115 | break |
| 36116 | elif $ac_last_try; then |
| 36117 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36118 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36119 | { (exit 1); exit 1; }; } |
| 36120 | else |
| 36121 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36123 | done |
| 36124 | |
| 36125 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36126 | if test -n "$ac_eof"; then |
| 36127 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36128 | ac_eof=`expr $ac_eof + 1` |
| 36129 | fi |
| 36130 | |
| 36131 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36132 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 36133 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36134 | _ACEOF |
| 36135 | sed ' |
| 36136 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36137 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36138 | :n |
| 36139 | t n |
| 36140 | s/'"$ac_delim"'$/,g/; t |
| 36141 | s/$/\\/; p |
| 36142 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36143 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36144 | rm -f conf$$subs.sed |
| 36145 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36146 | CEOF$ac_eof |
| 36147 | _ACEOF |
| 36148 | |
| 36149 | |
| 36150 | ac_delim='%!_!# ' |
| 36151 | for ac_last_try in false false false false false :; do |
| 36152 | cat >conf$$subs.sed <<_ACEOF |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36153 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 36154 | NM!$NM$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36155 | ifGNUmake!$ifGNUmake$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36156 | LN_S!$LN_S$ac_delim |
| 36157 | CMP!$CMP$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36158 | CP!$CP$ac_delim |
| 36159 | DATE!$DATE$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36160 | FIND!$FIND$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36161 | MKDIR!$MKDIR$ac_delim |
| 36162 | MV!$MV$ac_delim |
| 36163 | RANLIB!$RANLIB$ac_delim |
| 36164 | RM!$RM$ac_delim |
| 36165 | SED!$SED$ac_delim |
| 36166 | TAR!$TAR$ac_delim |
| 36167 | BINPWD!$BINPWD$ac_delim |
| 36168 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 36169 | DOT!$DOT$ac_delim |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 36170 | FDP!$FDP$ac_delim |
| 36171 | NEATO!$NEATO$ac_delim |
| 36172 | TWOPI!$TWOPI$ac_delim |
| 36173 | CIRCO!$CIRCO$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36174 | GV!$GV$ac_delim |
| 36175 | DOTTY!$DOTTY$ac_delim |
| 36176 | PERL!$PERL$ac_delim |
| 36177 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 36178 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 36179 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 36180 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 36181 | BZIP2!$BZIP2$ac_delim |
| 36182 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36183 | GROFF!$GROFF$ac_delim |
| 36184 | GZIP!$GZIP$ac_delim |
| 36185 | POD2HTML!$POD2HTML$ac_delim |
| 36186 | POD2MAN!$POD2MAN$ac_delim |
| 36187 | RUNTEST!$RUNTEST$ac_delim |
| 36188 | TCLSH!$TCLSH$ac_delim |
| 36189 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 36190 | OCAMLC!$OCAMLC$ac_delim |
| 36191 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 36192 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 36193 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 36194 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36195 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 36196 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 36197 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 36198 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 36199 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 36200 | ECHO!$ECHO$ac_delim |
| 36201 | AR!$AR$ac_delim |
| 36202 | STRIP!$STRIP$ac_delim |
| 36203 | CXXCPP!$CXXCPP$ac_delim |
| 36204 | F77!$F77$ac_delim |
| 36205 | FFLAGS!$FFLAGS$ac_delim |
| 36206 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 36207 | LIBTOOL!$LIBTOOL$ac_delim |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36208 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 36209 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 36210 | LLVMGCC!$LLVMGCC$ac_delim |
| 36211 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 36212 | USE_UDIS86!$USE_UDIS86$ac_delim |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 36213 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 36214 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 36215 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36216 | ALLOCA!$ALLOCA$ac_delim |
| 36217 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 36218 | LLVMCC1!$LLVMCC1$ac_delim |
| 36219 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 36220 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 36221 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36222 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 36223 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 36224 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36225 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 36226 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 36227 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 36228 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 36229 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 36230 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 36231 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 36232 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 36233 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 36234 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 36235 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 36236 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 36237 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 36238 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 36239 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 36240 | RPATH!$RPATH$ac_delim |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 36241 | RDYNAMIC!$RDYNAMIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36242 | LIBOBJS!$LIBOBJS$ac_delim |
| 36243 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 36244 | _ACEOF |
| 36245 | |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 36246 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36247 | break |
| 36248 | elif $ac_last_try; then |
| 36249 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36250 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36251 | { (exit 1); exit 1; }; } |
| 36252 | else |
| 36253 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36254 | fi |
| 36255 | done |
| 36256 | |
| 36257 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36258 | if test -n "$ac_eof"; then |
| 36259 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36260 | ac_eof=`expr $ac_eof + 1` |
| 36261 | fi |
| 36262 | |
| 36263 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36264 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 36265 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 36266 | _ACEOF |
| 36267 | sed ' |
| 36268 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36269 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36270 | :n |
| 36271 | t n |
| 36272 | s/'"$ac_delim"'$/,g/; t |
| 36273 | s/$/\\/; p |
| 36274 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36275 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36276 | rm -f conf$$subs.sed |
| 36277 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36278 | :end |
| 36279 | s/|#_!!_#|//g |
| 36280 | CEOF$ac_eof |
| 36281 | _ACEOF |
| 36282 | |
| 36283 | |
| 36284 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 36285 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 36286 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36287 | # (actually we leave an empty line to preserve line numbers). |
| 36288 | if test "x$srcdir" = x.; then |
| 36289 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 36290 | s/:*\$(srcdir):*/:/ |
| 36291 | s/:*\${srcdir}:*/:/ |
| 36292 | s/:*@srcdir@:*/:/ |
| 36293 | s/^\([^=]*=[ ]*\):*/\1/ |
| 36294 | s/:*$// |
| 36295 | s/^[^=]*=[ ]*$// |
| 36296 | }' |
| 36297 | fi |
| 36298 | |
| 36299 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36300 | fi # test -n "$CONFIG_FILES" |
| 36301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36302 | |
| 36303 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 36304 | do |
| 36305 | case $ac_tag in |
| 36306 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36307 | esac |
| 36308 | case $ac_mode$ac_tag in |
| 36309 | :[FHL]*:*);; |
| 36310 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 36311 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 36312 | { (exit 1); exit 1; }; };; |
| 36313 | :[FH]-) ac_tag=-:-;; |
| 36314 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36315 | esac |
| 36316 | ac_save_IFS=$IFS |
| 36317 | IFS=: |
| 36318 | set x $ac_tag |
| 36319 | IFS=$ac_save_IFS |
| 36320 | shift |
| 36321 | ac_file=$1 |
| 36322 | shift |
| 36323 | |
| 36324 | case $ac_mode in |
| 36325 | :L) ac_source=$1;; |
| 36326 | :[FH]) |
| 36327 | ac_file_inputs= |
| 36328 | for ac_f |
| 36329 | do |
| 36330 | case $ac_f in |
| 36331 | -) ac_f="$tmp/stdin";; |
| 36332 | *) # Look for the file first in the build tree, then in the source tree |
| 36333 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36334 | # because $ac_f cannot contain `:'. |
| 36335 | test -f "$ac_f" || |
| 36336 | case $ac_f in |
| 36337 | [\\/$]*) false;; |
| 36338 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36339 | esac || |
| 36340 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 36341 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 36342 | { (exit 1); exit 1; }; };; |
| 36343 | esac |
| 36344 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 36345 | done |
| 36346 | |
| 36347 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36348 | # use $as_me), people would be surprised to read: |
| 36349 | # /* config.h. Generated by config.status. */ |
| 36350 | configure_input="Generated from "`IFS=: |
| 36351 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 36352 | if test x"$ac_file" != x-; then |
| 36353 | configure_input="$ac_file. $configure_input" |
| 36354 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 36355 | echo "$as_me: creating $ac_file" >&6;} |
| 36356 | fi |
| 36357 | |
| 36358 | case $ac_tag in |
| 36359 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 36360 | esac |
| 36361 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36362 | esac |
| 36363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36364 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36365 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36366 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36367 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36368 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36369 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36371 | s//\1/ |
| 36372 | q |
| 36373 | } |
| 36374 | /^X\(\/\/\)[^/].*/{ |
| 36375 | s//\1/ |
| 36376 | q |
| 36377 | } |
| 36378 | /^X\(\/\/\)$/{ |
| 36379 | s//\1/ |
| 36380 | q |
| 36381 | } |
| 36382 | /^X\(\/\).*/{ |
| 36383 | s//\1/ |
| 36384 | q |
| 36385 | } |
| 36386 | s/.*/./; q'` |
| 36387 | { as_dir="$ac_dir" |
| 36388 | case $as_dir in #( |
| 36389 | -*) as_dir=./$as_dir;; |
| 36390 | esac |
| 36391 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36392 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36393 | while :; do |
| 36394 | case $as_dir in #( |
| 36395 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36396 | *) as_qdir=$as_dir;; |
| 36397 | esac |
| 36398 | as_dirs="'$as_qdir' $as_dirs" |
| 36399 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36401 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36402 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36403 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36404 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36406 | s//\1/ |
| 36407 | q |
| 36408 | } |
| 36409 | /^X\(\/\/\)[^/].*/{ |
| 36410 | s//\1/ |
| 36411 | q |
| 36412 | } |
| 36413 | /^X\(\/\/\)$/{ |
| 36414 | s//\1/ |
| 36415 | q |
| 36416 | } |
| 36417 | /^X\(\/\).*/{ |
| 36418 | s//\1/ |
| 36419 | q |
| 36420 | } |
| 36421 | s/.*/./; q'` |
| 36422 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36423 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36424 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36425 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36426 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36427 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36428 | ac_builddir=. |
| 36429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36430 | case "$ac_dir" in |
| 36431 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36432 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36433 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36434 | # A ".." for each directory in $ac_dir_suffix. |
| 36435 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36436 | case $ac_top_builddir_sub in |
| 36437 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36438 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36439 | esac ;; |
| 36440 | esac |
| 36441 | ac_abs_top_builddir=$ac_pwd |
| 36442 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36443 | # for backward compatibility: |
| 36444 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36445 | |
| 36446 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36447 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36448 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36449 | ac_top_srcdir=$ac_top_builddir_sub |
| 36450 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36451 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36452 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36453 | ac_top_srcdir=$srcdir |
| 36454 | ac_abs_top_srcdir=$srcdir ;; |
| 36455 | *) # Relative name. |
| 36456 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36457 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36458 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36459 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36460 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36461 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36462 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36463 | case $ac_mode in |
| 36464 | :F) |
| 36465 | # |
| 36466 | # CONFIG_FILE |
| 36467 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36468 | |
| 36469 | case $INSTALL in |
| 36470 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36471 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36472 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36473 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36474 | |
| 36475 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36476 | # If the template does not know about datarootdir, expand it. |
| 36477 | # FIXME: This hack should be removed a few years after 2.60. |
| 36478 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 36479 | |
| 36480 | case `sed -n '/datarootdir/ { |
| 36481 | p |
| 36482 | q |
| 36483 | } |
| 36484 | /@datadir@/p |
| 36485 | /@docdir@/p |
| 36486 | /@infodir@/p |
| 36487 | /@localedir@/p |
| 36488 | /@mandir@/p |
| 36489 | ' $ac_file_inputs` in |
| 36490 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36491 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 36492 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 36493 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36494 | _ACEOF |
| 36495 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36496 | ac_datarootdir_hack=' |
| 36497 | s&@datadir@&$datadir&g |
| 36498 | s&@docdir@&$docdir&g |
| 36499 | s&@infodir@&$infodir&g |
| 36500 | s&@localedir@&$localedir&g |
| 36501 | s&@mandir@&$mandir&g |
| 36502 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 36503 | esac |
| 36504 | _ACEOF |
| 36505 | |
| 36506 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36507 | # Shell code in configure.ac might set extrasub. |
| 36508 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36509 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36510 | sed "$ac_vpsub |
| 36511 | $extrasub |
| 36512 | _ACEOF |
| 36513 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36514 | :t |
| 36515 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36516 | s&@configure_input@&$configure_input&;t t |
| 36517 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36518 | s&@srcdir@&$ac_srcdir&;t t |
| 36519 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36520 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36521 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36522 | s&@builddir@&$ac_builddir&;t t |
| 36523 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36524 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36525 | s&@INSTALL@&$ac_INSTALL&;t t |
| 36526 | $ac_datarootdir_hack |
| 36527 | " $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] | 36528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36529 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 36530 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 36531 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 36532 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36533 | which seems to be undefined. Please make sure it is defined." >&5 |
| 36534 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36535 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36537 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36538 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36539 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 36540 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36541 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36542 | ;; |
| 36543 | :H) |
| 36544 | # |
| 36545 | # CONFIG_HEADER |
| 36546 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36547 | _ACEOF |
| 36548 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36549 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 36550 | # substitutes the proper values into config.h.in to produce config.h. |
| 36551 | rm -f conftest.defines conftest.tail |
| 36552 | # First, append a space to every undef/define line, to ease matching. |
| 36553 | echo 's/$/ /' >conftest.defines |
| 36554 | # Then, protect against being on the right side of a sed subst, or in |
| 36555 | # an unquoted here document, in config.status. If some macros were |
| 36556 | # called several times there might be several #defines for the same |
| 36557 | # symbol, which is useless. But do not sort them, since the last |
| 36558 | # AC_DEFINE must be honored. |
| 36559 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36560 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 36561 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 36562 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 36563 | # just an empty string. |
| 36564 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 36565 | ac_dB='\\)[ (].*,\\1define\\2' |
| 36566 | ac_dC=' ' |
| 36567 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36569 | uniq confdefs.h | |
| 36570 | sed -n ' |
| 36571 | t rset |
| 36572 | :rset |
| 36573 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 36574 | t ok |
| 36575 | d |
| 36576 | :ok |
| 36577 | s/[\\&,]/\\&/g |
| 36578 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 36579 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 36580 | ' >>conftest.defines |
| 36581 | |
| 36582 | # Remove the space that was appended to ease matching. |
| 36583 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36584 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 36585 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36586 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 36587 | echo 's/ $// |
| 36588 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36590 | # Break up conftest.defines: |
| 36591 | ac_max_sed_lines=50 |
| 36592 | |
| 36593 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 36594 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 36595 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 36596 | # et cetera. |
| 36597 | ac_in='$ac_file_inputs' |
| 36598 | ac_out='"$tmp/out1"' |
| 36599 | ac_nxt='"$tmp/out2"' |
| 36600 | |
| 36601 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36602 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36603 | # Write a here document: |
| 36604 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36605 | # First, check the format of the line: |
| 36606 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 36607 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 36608 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 36609 | b |
| 36610 | :def |
| 36611 | _ACEOF |
| 36612 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36613 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36614 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 36615 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 36616 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 36617 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36618 | rm -f conftest.defines |
| 36619 | mv conftest.tail conftest.defines |
| 36620 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36621 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36623 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36624 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36625 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36626 | echo "/* $configure_input */" >"$tmp/config.h" |
| 36627 | cat "$ac_result" >>"$tmp/config.h" |
| 36628 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36629 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 36630 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 36631 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36632 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36633 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36634 | fi |
| 36635 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36636 | echo "/* $configure_input */" |
| 36637 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36638 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36639 | rm -f "$tmp/out12" |
| 36640 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36642 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 36643 | echo "$as_me: executing $ac_file commands" >&6;} |
| 36644 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36645 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36647 | |
| 36648 | case $ac_file$ac_mode in |
| 36649 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36650 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36651 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36652 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36653 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36654 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36655 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36656 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36657 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36658 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36659 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36660 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36661 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36662 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 36663 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36664 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36665 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36666 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36667 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36668 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36669 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36670 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36671 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36672 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36673 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36674 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36675 | |
| 36676 | esac |
| 36677 | done # for ac_tag |
| 36678 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36679 | |
| 36680 | { (exit 0); exit 0; } |
| 36681 | _ACEOF |
| 36682 | chmod +x $CONFIG_STATUS |
| 36683 | ac_clean_files=$ac_clean_files_save |
| 36684 | |
| 36685 | |
| 36686 | # configure is writing to config.log, and then calls config.status. |
| 36687 | # config.status does its own redirection, appending to config.log. |
| 36688 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 36689 | # by configure, so config.status won't be able to write to it; its |
| 36690 | # output is simply discarded. So we exec the FD to /dev/null, |
| 36691 | # effectively closing config.log, so it can be properly (re)opened and |
| 36692 | # appended to by config.status. When coming back to configure, we |
| 36693 | # need to make the FD available again. |
| 36694 | if test "$no_create" != yes; then |
| 36695 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36696 | ac_config_status_args= |
| 36697 | test "$silent" = yes && |
| 36698 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36699 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36700 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36701 | exec 5>>config.log |
| 36702 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 36703 | # would make configure fail if this is the last instruction. |
| 36704 | $ac_cs_success || { (exit 1); exit 1; } |
| 36705 | fi |
| 36706 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36707 | # |
| 36708 | # CONFIG_SUBDIRS section. |
| 36709 | # |
| 36710 | if test "$no_recursion" != yes; then |
| 36711 | |
| 36712 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 36713 | ac_sub_configure_args= |
| 36714 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36715 | eval "set x $ac_configure_args" |
| 36716 | shift |
| 36717 | for ac_arg |
| 36718 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36719 | if test -n "$ac_prev"; then |
| 36720 | ac_prev= |
| 36721 | continue |
| 36722 | fi |
| 36723 | case $ac_arg in |
| 36724 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 36725 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 36726 | ac_prev=cache_file ;; |
| 36727 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 36728 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 36729 | | --c=*) |
| 36730 | ;; |
| 36731 | --config-cache | -C) |
| 36732 | ;; |
| 36733 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 36734 | ac_prev=srcdir ;; |
| 36735 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 36736 | ;; |
| 36737 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 36738 | ac_prev=prefix ;; |
| 36739 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 36740 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36741 | *) |
| 36742 | case $ac_arg in |
| 36743 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36744 | esac |
| 36745 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36746 | esac |
| 36747 | done |
| 36748 | |
| 36749 | # Always prepend --prefix to ensure using the same prefix |
| 36750 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36751 | ac_arg="--prefix=$prefix" |
| 36752 | case $ac_arg in |
| 36753 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36754 | esac |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 36755 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36756 | |
| 36757 | ac_popdir=`pwd` |
| 36758 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 36759 | |
| 36760 | # Do not complain, so a configure script can configure whichever |
| 36761 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36762 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36764 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 36765 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 36766 | echo "$ac_msg" >&6 |
| 36767 | { as_dir="$ac_dir" |
| 36768 | case $as_dir in #( |
| 36769 | -*) as_dir=./$as_dir;; |
| 36770 | esac |
| 36771 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36772 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36773 | while :; do |
| 36774 | case $as_dir in #( |
| 36775 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36776 | *) as_qdir=$as_dir;; |
| 36777 | esac |
| 36778 | as_dirs="'$as_qdir' $as_dirs" |
| 36779 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36780 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36781 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36782 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36783 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36784 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36785 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36786 | s//\1/ |
| 36787 | q |
| 36788 | } |
| 36789 | /^X\(\/\/\)[^/].*/{ |
| 36790 | s//\1/ |
| 36791 | q |
| 36792 | } |
| 36793 | /^X\(\/\/\)$/{ |
| 36794 | s//\1/ |
| 36795 | q |
| 36796 | } |
| 36797 | /^X\(\/\).*/{ |
| 36798 | s//\1/ |
| 36799 | q |
| 36800 | } |
| 36801 | s/.*/./; q'` |
| 36802 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36803 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36804 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36805 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36806 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36807 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36808 | ac_builddir=. |
| 36809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36810 | case "$ac_dir" in |
| 36811 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36812 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36813 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36814 | # A ".." for each directory in $ac_dir_suffix. |
| 36815 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36816 | case $ac_top_builddir_sub in |
| 36817 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36818 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36819 | esac ;; |
| 36820 | esac |
| 36821 | ac_abs_top_builddir=$ac_pwd |
| 36822 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36823 | # for backward compatibility: |
| 36824 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36825 | |
| 36826 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36827 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36828 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36829 | ac_top_srcdir=$ac_top_builddir_sub |
| 36830 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36831 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36832 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36833 | ac_top_srcdir=$srcdir |
| 36834 | ac_abs_top_srcdir=$srcdir ;; |
| 36835 | *) # Relative name. |
| 36836 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36837 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36838 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36839 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36840 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36841 | |
| 36842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36843 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36844 | |
| 36845 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36846 | if test -f "$ac_srcdir/configure.gnu"; then |
| 36847 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 36848 | elif test -f "$ac_srcdir/configure"; then |
| 36849 | ac_sub_configure=$ac_srcdir/configure |
| 36850 | elif test -f "$ac_srcdir/configure.in"; then |
| 36851 | # This should be Cygnus configure. |
| 36852 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36853 | else |
| 36854 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 36855 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 36856 | ac_sub_configure= |
| 36857 | fi |
| 36858 | |
| 36859 | # The recursion is here. |
| 36860 | if test -n "$ac_sub_configure"; then |
| 36861 | # Make the cache file name correct relative to the subdirectory. |
| 36862 | case $cache_file in |
| 36863 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36864 | *) # Relative name. |
| 36865 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36866 | esac |
| 36867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36868 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 36869 | 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] | 36870 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36871 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 36872 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36873 | { { 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] | 36874 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 36875 | { (exit 1); exit 1; }; } |
| 36876 | fi |
| 36877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36878 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36879 | done |
| 36880 | fi |
| 36881 | |