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) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1562 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1563 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1564 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1565 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1566 | --enable-bindings Build specific language bindings: |
| 1567 | all,auto,none,{binding-name} (default=auto) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1568 | --enable-libffi Check for the presence of libffi (default is YES) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1569 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1570 | Win32) |
| 1571 | --enable-llvmc-dynamic-plugins |
| 1572 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1573 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1574 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1575 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1576 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1577 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1578 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1579 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1580 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1581 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1582 | |
| 1583 | Optional Packages: |
| 1584 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1585 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1586 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1587 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1588 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1589 | searches PATH) |
| 1590 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1591 | searches PATH) |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1592 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1593 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1594 | is stdlib) |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1595 | --with-binutils-include Specify path to binutils/include/ containing |
| 1596 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1597 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1598 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1599 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1600 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1601 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1602 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1603 | --with-oprofile=<prefix> |
| 1604 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | |
| 1606 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1607 | CC C compiler command |
| 1608 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1609 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1610 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1611 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1612 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1613 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1614 | CXX C++ compiler command |
| 1615 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1616 | CXXCPP C++ preprocessor |
| 1617 | F77 Fortran 77 compiler command |
| 1618 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1619 | |
| 1620 | Use these variables to override the choices made by `configure' or to help |
| 1621 | it to find libraries and programs with nonstandard names/locations. |
| 1622 | |
| 1623 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1624 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1625 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1626 | fi |
| 1627 | |
| 1628 | if test "$ac_init_help" = "recursive"; then |
| 1629 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1630 | 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] | 1631 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1632 | ac_builddir=. |
| 1633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1634 | case "$ac_dir" in |
| 1635 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1636 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1637 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1638 | # A ".." for each directory in $ac_dir_suffix. |
| 1639 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1640 | case $ac_top_builddir_sub in |
| 1641 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1642 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1643 | esac ;; |
| 1644 | esac |
| 1645 | ac_abs_top_builddir=$ac_pwd |
| 1646 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1647 | # for backward compatibility: |
| 1648 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | |
| 1650 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1653 | ac_top_srcdir=$ac_top_builddir_sub |
| 1654 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1655 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1656 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1657 | ac_top_srcdir=$srcdir |
| 1658 | ac_abs_top_srcdir=$srcdir ;; |
| 1659 | *) # Relative name. |
| 1660 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1661 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1662 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1663 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1664 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1665 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1666 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1667 | # Check for guested configure. |
| 1668 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1669 | echo && |
| 1670 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1671 | elif test -f "$ac_srcdir/configure"; then |
| 1672 | echo && |
| 1673 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1674 | else |
| 1675 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | fi || ac_status=$? |
| 1677 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1678 | done |
| 1679 | fi |
| 1680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1682 | if $ac_init_version; then |
| 1683 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1684 | llvm configure 2.7svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1685 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1687 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1688 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | This configure script is free software; the Free Software Foundation |
| 1690 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1691 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1692 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1694 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1696 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1697 | This file contains any messages produced by compilers while |
| 1698 | running configure, to aid debugging if configure makes a mistake. |
| 1699 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1700 | It was created by llvm $as_me 2.7svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1701 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1702 | |
| 1703 | $ $0 $@ |
| 1704 | |
| 1705 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1707 | { |
| 1708 | cat <<_ASUNAME |
| 1709 | ## --------- ## |
| 1710 | ## Platform. ## |
| 1711 | ## --------- ## |
| 1712 | |
| 1713 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1714 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1715 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1716 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1717 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1718 | |
| 1719 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1720 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1721 | |
| 1722 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1723 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1724 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1726 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1727 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1728 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1729 | |
| 1730 | _ASUNAME |
| 1731 | |
| 1732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1733 | for as_dir in $PATH |
| 1734 | do |
| 1735 | IFS=$as_save_IFS |
| 1736 | test -z "$as_dir" && as_dir=. |
| 1737 | echo "PATH: $as_dir" |
| 1738 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1739 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1740 | |
| 1741 | } >&5 |
| 1742 | |
| 1743 | cat >&5 <<_ACEOF |
| 1744 | |
| 1745 | |
| 1746 | ## ----------- ## |
| 1747 | ## Core tests. ## |
| 1748 | ## ----------- ## |
| 1749 | |
| 1750 | _ACEOF |
| 1751 | |
| 1752 | |
| 1753 | # Keep a trace of the command line. |
| 1754 | # 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] | 1755 | # 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] | 1756 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1757 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1758 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1759 | ac_configure_args0= |
| 1760 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1761 | ac_must_keep_next=false |
| 1762 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1763 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1764 | for ac_arg |
| 1765 | do |
| 1766 | case $ac_arg in |
| 1767 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1768 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1769 | | -silent | --silent | --silen | --sile | --sil) |
| 1770 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1771 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1772 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1773 | esac |
| 1774 | case $ac_pass in |
| 1775 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1776 | 2) |
| 1777 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1778 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1779 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1780 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1781 | case $ac_arg in |
| 1782 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1783 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1784 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1785 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1786 | case "$ac_configure_args0 " in |
| 1787 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1788 | esac |
| 1789 | ;; |
| 1790 | -* ) ac_must_keep_next=true ;; |
| 1791 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1794 | ;; |
| 1795 | esac |
| 1796 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1797 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1798 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1799 | $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] | 1800 | |
| 1801 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1802 | # config.log. We remove comments because anyway the quotes in there |
| 1803 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1804 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1805 | # 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] | 1806 | trap 'exit_status=$? |
| 1807 | # Save into config.log some information that might help in debugging. |
| 1808 | { |
| 1809 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | cat <<\_ASBOX |
| 1812 | ## ---------------- ## |
| 1813 | ## Cache variables. ## |
| 1814 | ## ---------------- ## |
| 1815 | _ASBOX |
| 1816 | echo |
| 1817 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1818 | ( |
| 1819 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1820 | eval ac_val=\$$ac_var |
| 1821 | case $ac_val in #( |
| 1822 | *${as_nl}*) |
| 1823 | case $ac_var in #( |
| 1824 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1825 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1826 | esac |
| 1827 | case $ac_var in #( |
| 1828 | _ | IFS | as_nl) ;; #( |
| 1829 | *) $as_unset $ac_var ;; |
| 1830 | esac ;; |
| 1831 | esac |
| 1832 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1834 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1835 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1837 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1838 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1839 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1840 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1841 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1842 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1843 | esac | |
| 1844 | sort |
| 1845 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1847 | |
| 1848 | cat <<\_ASBOX |
| 1849 | ## ----------------- ## |
| 1850 | ## Output variables. ## |
| 1851 | ## ----------------- ## |
| 1852 | _ASBOX |
| 1853 | echo |
| 1854 | for ac_var in $ac_subst_vars |
| 1855 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1856 | eval ac_val=\$$ac_var |
| 1857 | case $ac_val in |
| 1858 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1859 | esac |
| 1860 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1861 | done | sort |
| 1862 | echo |
| 1863 | |
| 1864 | if test -n "$ac_subst_files"; then |
| 1865 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1866 | ## ------------------- ## |
| 1867 | ## File substitutions. ## |
| 1868 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1869 | _ASBOX |
| 1870 | echo |
| 1871 | for ac_var in $ac_subst_files |
| 1872 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1873 | eval ac_val=\$$ac_var |
| 1874 | case $ac_val in |
| 1875 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1876 | esac |
| 1877 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1878 | done | sort |
| 1879 | echo |
| 1880 | fi |
| 1881 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1882 | if test -s confdefs.h; then |
| 1883 | cat <<\_ASBOX |
| 1884 | ## ----------- ## |
| 1885 | ## confdefs.h. ## |
| 1886 | ## ----------- ## |
| 1887 | _ASBOX |
| 1888 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1889 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1890 | echo |
| 1891 | fi |
| 1892 | test "$ac_signal" != 0 && |
| 1893 | echo "$as_me: caught signal $ac_signal" |
| 1894 | echo "$as_me: exit $exit_status" |
| 1895 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1896 | rm -f core *.core core.conftest.* && |
| 1897 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1898 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1899 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1900 | for ac_signal in 1 2 13 15; do |
| 1901 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1902 | done |
| 1903 | ac_signal=0 |
| 1904 | |
| 1905 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1906 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1907 | |
| 1908 | # Predefined preprocessor variables. |
| 1909 | |
| 1910 | cat >>confdefs.h <<_ACEOF |
| 1911 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1912 | _ACEOF |
| 1913 | |
| 1914 | |
| 1915 | cat >>confdefs.h <<_ACEOF |
| 1916 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1917 | _ACEOF |
| 1918 | |
| 1919 | |
| 1920 | cat >>confdefs.h <<_ACEOF |
| 1921 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1922 | _ACEOF |
| 1923 | |
| 1924 | |
| 1925 | cat >>confdefs.h <<_ACEOF |
| 1926 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1927 | _ACEOF |
| 1928 | |
| 1929 | |
| 1930 | cat >>confdefs.h <<_ACEOF |
| 1931 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1932 | _ACEOF |
| 1933 | |
| 1934 | |
| 1935 | # Let the site file select an alternate cache file if it wants to. |
| 1936 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1937 | if test -n "$CONFIG_SITE"; then |
| 1938 | set x "$CONFIG_SITE" |
| 1939 | elif test "x$prefix" != xNONE; then |
| 1940 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1941 | else |
| 1942 | set x "$ac_default_prefix/share/config.site" \ |
| 1943 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1945 | shift |
| 1946 | for ac_site_file |
| 1947 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1948 | if test -r "$ac_site_file"; then |
| 1949 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1950 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1951 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1952 | . "$ac_site_file" |
| 1953 | fi |
| 1954 | done |
| 1955 | |
| 1956 | if test -r "$cache_file"; then |
| 1957 | # Some versions of bash will fail to source /dev/null (special |
| 1958 | # files actually), so we avoid doing that. |
| 1959 | if test -f "$cache_file"; then |
| 1960 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1961 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1962 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1963 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1964 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1965 | esac |
| 1966 | fi |
| 1967 | else |
| 1968 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1969 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1970 | >$cache_file |
| 1971 | fi |
| 1972 | |
| 1973 | # Check that the precious variables saved in the cache have kept the same |
| 1974 | # value. |
| 1975 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1976 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1977 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1978 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1979 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1980 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1981 | case $ac_old_set,$ac_new_set in |
| 1982 | set,) |
| 1983 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1984 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1985 | ac_cache_corrupted=: ;; |
| 1986 | ,set) |
| 1987 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1988 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1989 | ac_cache_corrupted=: ;; |
| 1990 | ,);; |
| 1991 | *) |
| 1992 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1993 | { 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] | 1994 | 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] | 1995 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1996 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1997 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1998 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1999 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2000 | fi;; |
| 2001 | esac |
| 2002 | # Pass precious variables to config.status. |
| 2003 | if test "$ac_new_set" = set; then |
| 2004 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2005 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2006 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2007 | esac |
| 2008 | case " $ac_configure_args " in |
| 2009 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2010 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 2011 | esac |
| 2012 | fi |
| 2013 | done |
| 2014 | if $ac_cache_corrupted; then |
| 2015 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 2016 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2017 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2018 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2019 | { (exit 1); exit 1; }; } |
| 2020 | fi |
| 2021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2046 | ac_ext=c |
| 2047 | ac_cpp='$CPP $CPPFLAGS' |
| 2048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2051 | |
| 2052 | |
| 2053 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 2054 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2055 | |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | |
| 2060 | |
| 2061 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2062 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2063 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2064 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | ac_aux_dir=$ac_dir |
| 2066 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2067 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2068 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2069 | ac_aux_dir=$ac_dir |
| 2070 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2071 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2072 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2073 | ac_aux_dir=$ac_dir |
| 2074 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2075 | break |
| 2076 | fi |
| 2077 | done |
| 2078 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2079 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2080 | 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] | 2081 | { (exit 1); exit 1; }; } |
| 2082 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2083 | |
| 2084 | # These three variables are undocumented and unsupported, |
| 2085 | # and are intended to be withdrawn in a future Autoconf release. |
| 2086 | # They can cause serious problems if a builder's source tree is in a directory |
| 2087 | # whose full name contains unusual characters. |
| 2088 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2089 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2090 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2091 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2092 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2093 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2094 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2095 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2096 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2097 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2098 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2099 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2100 | fi |
| 2101 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2102 | for i in `ls ${srcdir}/projects` |
| 2103 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2104 | if test -d ${srcdir}/projects/${i} ; then |
| 2105 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2106 | CVS) ;; |
| 2107 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2108 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2109 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2110 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2111 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2112 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2113 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 2114 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2115 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2116 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2117 | test-suite) subdirs="$subdirs projects/test-suite" |
| 2118 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2119 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2120 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2121 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2122 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2123 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2124 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2125 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2126 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2127 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2128 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2129 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2130 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2131 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2132 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2133 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2134 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2135 | 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] | 2136 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2137 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2138 | fi |
| 2139 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2140 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2141 | |
| 2142 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2143 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2144 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2145 | 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] | 2146 | { (exit 1); exit 1; }; } |
| 2147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2148 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2149 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2150 | if test "${ac_cv_build+set}" = set; then |
| 2151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2152 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2153 | ac_build_alias=$build_alias |
| 2154 | test "x$ac_build_alias" = x && |
| 2155 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2156 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2157 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2158 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2159 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2161 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2162 | 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] | 2163 | { (exit 1); exit 1; }; } |
| 2164 | |
| 2165 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2166 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2167 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2168 | case $ac_cv_build in |
| 2169 | *-*-*) ;; |
| 2170 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2171 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2172 | { (exit 1); exit 1; }; };; |
| 2173 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2174 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2175 | ac_save_IFS=$IFS; IFS='-' |
| 2176 | set x $ac_cv_build |
| 2177 | shift |
| 2178 | build_cpu=$1 |
| 2179 | build_vendor=$2 |
| 2180 | shift; shift |
| 2181 | # Remember, the first character of IFS is used to create $*, |
| 2182 | # except with old shells: |
| 2183 | build_os=$* |
| 2184 | IFS=$ac_save_IFS |
| 2185 | 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] | 2186 | |
| 2187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2188 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2189 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2190 | if test "${ac_cv_host+set}" = set; then |
| 2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2192 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2193 | if test "x$host_alias" = x; then |
| 2194 | ac_cv_host=$ac_cv_build |
| 2195 | else |
| 2196 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2197 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2198 | 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] | 2199 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2200 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2201 | |
| 2202 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2203 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2204 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2205 | case $ac_cv_host in |
| 2206 | *-*-*) ;; |
| 2207 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2208 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2209 | { (exit 1); exit 1; }; };; |
| 2210 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2211 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2212 | ac_save_IFS=$IFS; IFS='-' |
| 2213 | set x $ac_cv_host |
| 2214 | shift |
| 2215 | host_cpu=$1 |
| 2216 | host_vendor=$2 |
| 2217 | shift; shift |
| 2218 | # Remember, the first character of IFS is used to create $*, |
| 2219 | # except with old shells: |
| 2220 | host_os=$* |
| 2221 | IFS=$ac_save_IFS |
| 2222 | 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] | 2223 | |
| 2224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2225 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2226 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2227 | if test "${ac_cv_target+set}" = set; then |
| 2228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2229 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2230 | if test "x$target_alias" = x; then |
| 2231 | ac_cv_target=$ac_cv_host |
| 2232 | else |
| 2233 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2234 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2235 | 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] | 2236 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2237 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2238 | |
| 2239 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2240 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2241 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2242 | case $ac_cv_target in |
| 2243 | *-*-*) ;; |
| 2244 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2245 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2246 | { (exit 1); exit 1; }; };; |
| 2247 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | ac_save_IFS=$IFS; IFS='-' |
| 2250 | set x $ac_cv_target |
| 2251 | shift |
| 2252 | target_cpu=$1 |
| 2253 | target_vendor=$2 |
| 2254 | shift; shift |
| 2255 | # Remember, the first character of IFS is used to create $*, |
| 2256 | # except with old shells: |
| 2257 | target_os=$* |
| 2258 | IFS=$ac_save_IFS |
| 2259 | 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] | 2260 | |
| 2261 | |
| 2262 | # The aliases save the names the user supplied, while $host etc. |
| 2263 | # will get canonicalized. |
| 2264 | test -n "$target_alias" && |
| 2265 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2266 | NONENONEs,x,x, && |
| 2267 | program_prefix=${target_alias}- |
| 2268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2269 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2270 | 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] | 2271 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2273 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2274 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2275 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2276 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2277 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2278 | llvm_cv_os_type="AIX" |
| 2279 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2280 | *-*-irix*) |
| 2281 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2282 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2283 | llvm_cv_os_type="IRIX" |
| 2284 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2285 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2286 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2287 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2288 | llvm_cv_os_type="Cygwin" |
| 2289 | llvm_cv_platform_type="Unix" ;; |
| 2290 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2291 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2292 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2293 | llvm_cv_os_type="Darwin" |
| 2294 | llvm_cv_platform_type="Unix" ;; |
| 2295 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2296 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2297 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2298 | llvm_cv_os_type="FreeBSD" |
| 2299 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2300 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2301 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2302 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2303 | llvm_cv_os_type="OpenBSD" |
| 2304 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2305 | *-*-netbsd*) |
| 2306 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2307 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2308 | llvm_cv_os_type="NetBSD" |
| 2309 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2310 | *-*-dragonfly*) |
| 2311 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2312 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2313 | llvm_cv_os_type="DragonFly" |
| 2314 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2315 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2316 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2317 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2318 | llvm_cv_os_type="HP-UX" |
| 2319 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2320 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2321 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2322 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2323 | llvm_cv_os_type="Interix" |
| 2324 | llvm_cv_platform_type="Unix" ;; |
| 2325 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2326 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2327 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2328 | llvm_cv_os_type="Linux" |
| 2329 | llvm_cv_platform_type="Unix" ;; |
| 2330 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2331 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2332 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2333 | llvm_cv_os_type="SunOS" |
| 2334 | llvm_cv_platform_type="Unix" ;; |
| 2335 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2336 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2337 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2338 | llvm_cv_os_type="Win32" |
| 2339 | llvm_cv_platform_type="Win32" ;; |
| 2340 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2341 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2342 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2343 | llvm_cv_os_type="MingW" |
| 2344 | llvm_cv_platform_type="Win32" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2345 | *-unknown-eabi*) |
| 2346 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2347 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2348 | llvm_cv_os_type="Freestanding" |
| 2349 | llvm_cv_platform_type="Unix" ;; |
| 2350 | *-unknown-elf*) |
| 2351 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2352 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2353 | llvm_cv_os_type="Freestanding" |
| 2354 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2355 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2356 | llvm_cv_link_all_option="" |
| 2357 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2358 | llvm_cv_os_type="Unknown" |
| 2359 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2360 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2361 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2362 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2363 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2364 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2365 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2366 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2367 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2369 | else |
| 2370 | case $target in |
| 2371 | *-*-aix*) |
| 2372 | llvm_cv_target_os_type="AIX" ;; |
| 2373 | *-*-irix*) |
| 2374 | llvm_cv_target_os_type="IRIX" ;; |
| 2375 | *-*-cygwin*) |
| 2376 | llvm_cv_target_os_type="Cygwin" ;; |
| 2377 | *-*-darwin*) |
| 2378 | llvm_cv_target_os_type="Darwin" ;; |
| 2379 | *-*-freebsd*) |
| 2380 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2381 | *-*-openbsd*) |
| 2382 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2383 | *-*-netbsd*) |
| 2384 | llvm_cv_target_os_type="NetBSD" ;; |
| 2385 | *-*-dragonfly*) |
| 2386 | llvm_cv_target_os_type="DragonFly" ;; |
| 2387 | *-*-hpux*) |
| 2388 | llvm_cv_target_os_type="HP-UX" ;; |
| 2389 | *-*-interix*) |
| 2390 | llvm_cv_target_os_type="Interix" ;; |
| 2391 | *-*-linux*) |
| 2392 | llvm_cv_target_os_type="Linux" ;; |
| 2393 | *-*-solaris*) |
| 2394 | llvm_cv_target_os_type="SunOS" ;; |
| 2395 | *-*-win32*) |
| 2396 | llvm_cv_target_os_type="Win32" ;; |
| 2397 | *-*-mingw*) |
| 2398 | llvm_cv_target_os_type="MingW" ;; |
| 2399 | *-unknown-eabi*) |
| 2400 | llvm_cv_target_os_type="Freestanding" ;; |
| 2401 | *) |
| 2402 | llvm_cv_target_os_type="Unknown" ;; |
| 2403 | esac |
| 2404 | fi |
| 2405 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2406 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 2407 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2408 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2409 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2410 | 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] | 2411 | { (exit 1); exit 1; }; } |
| 2412 | fi |
| 2413 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2414 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2416 | HOST_OS=$llvm_cv_os_type |
| 2417 | |
| 2418 | TARGET_OS=$llvm_cv_target_os_type |
| 2419 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2421 | LINKALL=$llvm_cv_link_all_option |
| 2422 | |
| 2423 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2424 | |
| 2425 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2426 | case $llvm_cv_platform_type in |
| 2427 | Unix) |
| 2428 | |
| 2429 | cat >>confdefs.h <<\_ACEOF |
| 2430 | #define LLVM_ON_UNIX 1 |
| 2431 | _ACEOF |
| 2432 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2433 | LLVM_ON_UNIX=1 |
| 2434 | |
| 2435 | LLVM_ON_WIN32=0 |
| 2436 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2437 | ;; |
| 2438 | Win32) |
| 2439 | |
| 2440 | cat >>confdefs.h <<\_ACEOF |
| 2441 | #define LLVM_ON_WIN32 1 |
| 2442 | _ACEOF |
| 2443 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2444 | LLVM_ON_UNIX=0 |
| 2445 | |
| 2446 | LLVM_ON_WIN32=1 |
| 2447 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2448 | ;; |
| 2449 | esac |
| 2450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2451 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2452 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2453 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2455 | else |
| 2456 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2457 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2458 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2459 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2460 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2461 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2462 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2463 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2464 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2465 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2466 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2467 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2468 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2469 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2470 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2472 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2473 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2474 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2475 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2476 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2477 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2478 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2479 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 2480 | # Determine the LLVM native architecture for the target |
| 2481 | case "$llvm_cv_target_arch" in |
| 2482 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2483 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2484 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2485 | esac |
| 2486 | |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 2487 | ARCH=$llvm_cv_target_arch |
| 2488 | |
| 2489 | |
| 2490 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2491 | ac_cpp='$CPP $CPPFLAGS' |
| 2492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2495 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2496 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2497 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2498 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | if test -n "$CC"; then |
| 2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2505 | else |
| 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2507 | for as_dir in $PATH |
| 2508 | do |
| 2509 | IFS=$as_save_IFS |
| 2510 | test -z "$as_dir" && as_dir=. |
| 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2513 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2515 | break 2 |
| 2516 | fi |
| 2517 | done |
| 2518 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2519 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2520 | |
| 2521 | fi |
| 2522 | fi |
| 2523 | CC=$ac_cv_prog_CC |
| 2524 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2525 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2526 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2527 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2529 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2532 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2533 | fi |
| 2534 | if test -z "$ac_cv_prog_CC"; then |
| 2535 | ac_ct_CC=$CC |
| 2536 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2537 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2538 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2540 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2542 | else |
| 2543 | if test -n "$ac_ct_CC"; then |
| 2544 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2545 | else |
| 2546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2547 | for as_dir in $PATH |
| 2548 | do |
| 2549 | IFS=$as_save_IFS |
| 2550 | test -z "$as_dir" && as_dir=. |
| 2551 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2552 | 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] | 2553 | ac_cv_prog_ac_ct_CC="gcc" |
| 2554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2555 | break 2 |
| 2556 | fi |
| 2557 | done |
| 2558 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2559 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2560 | |
| 2561 | fi |
| 2562 | fi |
| 2563 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2564 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2565 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2566 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2567 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2568 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2569 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2570 | fi |
| 2571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2572 | if test "x$ac_ct_CC" = x; then |
| 2573 | CC="" |
| 2574 | else |
| 2575 | case $cross_compiling:$ac_tool_warned in |
| 2576 | yes:) |
| 2577 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2578 | whose name does not start with the host triplet. If you think this |
| 2579 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2580 | echo "$as_me: 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." >&2;} |
| 2583 | ac_tool_warned=yes ;; |
| 2584 | esac |
| 2585 | CC=$ac_ct_CC |
| 2586 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2587 | else |
| 2588 | CC="$ac_cv_prog_CC" |
| 2589 | fi |
| 2590 | |
| 2591 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | if test -n "$ac_tool_prefix"; then |
| 2593 | # 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] | 2594 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2597 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2599 | else |
| 2600 | if test -n "$CC"; then |
| 2601 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2602 | else |
| 2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2604 | for as_dir in $PATH |
| 2605 | do |
| 2606 | IFS=$as_save_IFS |
| 2607 | test -z "$as_dir" && as_dir=. |
| 2608 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2609 | 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] | 2610 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2612 | break 2 |
| 2613 | fi |
| 2614 | done |
| 2615 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2616 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2617 | |
| 2618 | fi |
| 2619 | fi |
| 2620 | CC=$ac_cv_prog_CC |
| 2621 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2622 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2623 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2626 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | fi |
| 2628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | fi |
| 2632 | if test -z "$CC"; then |
| 2633 | # Extract the first word of "cc", so it can be a program name with args. |
| 2634 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2637 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2639 | else |
| 2640 | if test -n "$CC"; then |
| 2641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2642 | else |
| 2643 | ac_prog_rejected=no |
| 2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2645 | for as_dir in $PATH |
| 2646 | do |
| 2647 | IFS=$as_save_IFS |
| 2648 | test -z "$as_dir" && as_dir=. |
| 2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2650 | 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] | 2651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2652 | ac_prog_rejected=yes |
| 2653 | continue |
| 2654 | fi |
| 2655 | ac_cv_prog_CC="cc" |
| 2656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2657 | break 2 |
| 2658 | fi |
| 2659 | done |
| 2660 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2661 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2662 | |
| 2663 | if test $ac_prog_rejected = yes; then |
| 2664 | # We found a bogon in the path, so make sure we never use it. |
| 2665 | set dummy $ac_cv_prog_CC |
| 2666 | shift |
| 2667 | if test $# != 0; then |
| 2668 | # We chose a different compiler from the bogus one. |
| 2669 | # However, it has the same basename, so the bogon will be chosen |
| 2670 | # first if we set CC to just the basename; use the full file name. |
| 2671 | shift |
| 2672 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2673 | fi |
| 2674 | fi |
| 2675 | fi |
| 2676 | fi |
| 2677 | CC=$ac_cv_prog_CC |
| 2678 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2679 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2680 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2681 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2683 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2684 | fi |
| 2685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2686 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2687 | fi |
| 2688 | if test -z "$CC"; then |
| 2689 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2690 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2691 | do |
| 2692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2694 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2696 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2698 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2699 | if test -n "$CC"; then |
| 2700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | else |
| 2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2703 | for as_dir in $PATH |
| 2704 | do |
| 2705 | IFS=$as_save_IFS |
| 2706 | test -z "$as_dir" && as_dir=. |
| 2707 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2708 | 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] | 2709 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2711 | break 2 |
| 2712 | fi |
| 2713 | done |
| 2714 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2715 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | |
| 2717 | fi |
| 2718 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2719 | CC=$ac_cv_prog_CC |
| 2720 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2721 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2722 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2723 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2724 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2725 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2726 | fi |
| 2727 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2728 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2729 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2730 | done |
| 2731 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2732 | if test -z "$CC"; then |
| 2733 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2734 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2735 | do |
| 2736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2737 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2740 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2742 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2743 | if test -n "$ac_ct_CC"; then |
| 2744 | 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] | 2745 | else |
| 2746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2747 | for as_dir in $PATH |
| 2748 | do |
| 2749 | IFS=$as_save_IFS |
| 2750 | test -z "$as_dir" && as_dir=. |
| 2751 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2752 | 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] | 2753 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2755 | break 2 |
| 2756 | fi |
| 2757 | done |
| 2758 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2759 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2760 | |
| 2761 | fi |
| 2762 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2763 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2764 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2765 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2766 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2767 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2768 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2769 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2770 | fi |
| 2771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2772 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2773 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2774 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2776 | if test "x$ac_ct_CC" = x; then |
| 2777 | CC="" |
| 2778 | else |
| 2779 | case $cross_compiling:$ac_tool_warned in |
| 2780 | yes:) |
| 2781 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2782 | whose name does not start with the host triplet. If you think this |
| 2783 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2784 | echo "$as_me: 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." >&2;} |
| 2787 | ac_tool_warned=yes ;; |
| 2788 | esac |
| 2789 | CC=$ac_ct_CC |
| 2790 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2791 | fi |
| 2792 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2793 | fi |
| 2794 | |
| 2795 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2796 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2797 | See \`config.log' for more details." >&5 |
| 2798 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2799 | See \`config.log' for more details." >&2;} |
| 2800 | { (exit 1); exit 1; }; } |
| 2801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2802 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2803 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2804 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2805 | { (ac_try="$ac_compiler --version >&5" |
| 2806 | case "(($ac_try" in |
| 2807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2808 | *) ac_try_echo=$ac_try;; |
| 2809 | esac |
| 2810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2811 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2812 | ac_status=$? |
| 2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2814 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2815 | { (ac_try="$ac_compiler -v >&5" |
| 2816 | case "(($ac_try" in |
| 2817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2818 | *) ac_try_echo=$ac_try;; |
| 2819 | esac |
| 2820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2821 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2825 | { (ac_try="$ac_compiler -V >&5" |
| 2826 | case "(($ac_try" in |
| 2827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2828 | *) ac_try_echo=$ac_try;; |
| 2829 | esac |
| 2830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2831 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2832 | ac_status=$? |
| 2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2834 | (exit $ac_status); } |
| 2835 | |
| 2836 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2837 | /* confdefs.h. */ |
| 2838 | _ACEOF |
| 2839 | cat confdefs.h >>conftest.$ac_ext |
| 2840 | cat >>conftest.$ac_ext <<_ACEOF |
| 2841 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2842 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2843 | int |
| 2844 | main () |
| 2845 | { |
| 2846 | |
| 2847 | ; |
| 2848 | return 0; |
| 2849 | } |
| 2850 | _ACEOF |
| 2851 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2852 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2853 | # Try to create an executable without -o first, disregard a.out. |
| 2854 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2855 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2856 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2857 | 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] | 2858 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2859 | # |
| 2860 | # List of possible output files, starting from the most likely. |
| 2861 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2862 | # only as a last resort. b.out is created by i960 compilers. |
| 2863 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2864 | # |
| 2865 | # The IRIX 6 linker writes into existing files which may not be |
| 2866 | # executable, retaining their permissions. Remove them first so a |
| 2867 | # subsequent execution test works. |
| 2868 | ac_rmfiles= |
| 2869 | for ac_file in $ac_files |
| 2870 | do |
| 2871 | case $ac_file in |
| 2872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2873 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2874 | esac |
| 2875 | done |
| 2876 | rm -f $ac_rmfiles |
| 2877 | |
| 2878 | if { (ac_try="$ac_link_default" |
| 2879 | case "(($ac_try" in |
| 2880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2881 | *) ac_try_echo=$ac_try;; |
| 2882 | esac |
| 2883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2884 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2885 | ac_status=$? |
| 2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2887 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2888 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2889 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2890 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2891 | # so that the user can short-circuit this test for compilers unknown to |
| 2892 | # Autoconf. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2893 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2894 | do |
| 2895 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2896 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2897 | *.$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] | 2898 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2899 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2900 | # We found the default executable, but exeext='' is most |
| 2901 | # certainly right. |
| 2902 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2903 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2904 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2905 | then :; else |
| 2906 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2907 | fi |
| 2908 | # We set ac_cv_exeext here because the later test for it is not |
| 2909 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2910 | # argument, so we may need to know it at that point already. |
| 2911 | # Even if this section looks crufty: it has the advantage of |
| 2912 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2913 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2914 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2915 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2916 | esac |
| 2917 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2918 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2919 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2920 | else |
| 2921 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2923 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2924 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2925 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2926 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2927 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 | { (exit 77); exit 77; }; } |
| 2929 | fi |
| 2930 | |
| 2931 | ac_exeext=$ac_cv_exeext |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2932 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2933 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2935 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2937 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2938 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2940 | # If not cross compiling, check that we can run a simple program. |
| 2941 | if test "$cross_compiling" != yes; then |
| 2942 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2943 | { (case "(($ac_try" in |
| 2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2945 | *) ac_try_echo=$ac_try;; |
| 2946 | esac |
| 2947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2948 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | ac_status=$? |
| 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2951 | (exit $ac_status); }; }; then |
| 2952 | cross_compiling=no |
| 2953 | else |
| 2954 | if test "$cross_compiling" = maybe; then |
| 2955 | cross_compiling=yes |
| 2956 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2957 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2958 | If you meant to cross compile, use \`--host'. |
| 2959 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2960 | echo "$as_me: 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." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2963 | { (exit 1); exit 1; }; } |
| 2964 | fi |
| 2965 | fi |
| 2966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2967 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2968 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2970 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2972 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2973 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2974 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2975 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2976 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2977 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2979 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2980 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2981 | if { (ac_try="$ac_link" |
| 2982 | case "(($ac_try" in |
| 2983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2984 | *) ac_try_echo=$ac_try;; |
| 2985 | esac |
| 2986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2987 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2988 | ac_status=$? |
| 2989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2990 | (exit $ac_status); }; then |
| 2991 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2992 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2993 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2994 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2995 | for ac_file in conftest.exe conftest conftest.*; do |
| 2996 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2997 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2998 | *.$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] | 2999 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3000 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3001 | * ) break;; |
| 3002 | esac |
| 3003 | done |
| 3004 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3005 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3006 | See \`config.log' for more details." >&5 |
| 3007 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3008 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3009 | { (exit 1); exit 1; }; } |
| 3010 | fi |
| 3011 | |
| 3012 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3013 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3014 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3015 | |
| 3016 | rm -f conftest.$ac_ext |
| 3017 | EXEEXT=$ac_cv_exeext |
| 3018 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3019 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3020 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3021 | if test "${ac_cv_objext+set}" = set; then |
| 3022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3023 | else |
| 3024 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3025 | /* confdefs.h. */ |
| 3026 | _ACEOF |
| 3027 | cat confdefs.h >>conftest.$ac_ext |
| 3028 | cat >>conftest.$ac_ext <<_ACEOF |
| 3029 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3031 | int |
| 3032 | main () |
| 3033 | { |
| 3034 | |
| 3035 | ; |
| 3036 | return 0; |
| 3037 | } |
| 3038 | _ACEOF |
| 3039 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3040 | if { (ac_try="$ac_compile" |
| 3041 | case "(($ac_try" in |
| 3042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3043 | *) ac_try_echo=$ac_try;; |
| 3044 | esac |
| 3045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3046 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3047 | ac_status=$? |
| 3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3049 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3050 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3051 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3052 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3053 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3054 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3055 | break;; |
| 3056 | esac |
| 3057 | done |
| 3058 | else |
| 3059 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3061 | |
| 3062 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3063 | See \`config.log' for more details." >&5 |
| 3064 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3065 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3066 | { (exit 1); exit 1; }; } |
| 3067 | fi |
| 3068 | |
| 3069 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3070 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3071 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3072 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3073 | OBJEXT=$ac_cv_objext |
| 3074 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3075 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3076 | 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] | 3077 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3079 | else |
| 3080 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3081 | /* confdefs.h. */ |
| 3082 | _ACEOF |
| 3083 | cat confdefs.h >>conftest.$ac_ext |
| 3084 | cat >>conftest.$ac_ext <<_ACEOF |
| 3085 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3087 | int |
| 3088 | main () |
| 3089 | { |
| 3090 | #ifndef __GNUC__ |
| 3091 | choke me |
| 3092 | #endif |
| 3093 | |
| 3094 | ; |
| 3095 | return 0; |
| 3096 | } |
| 3097 | _ACEOF |
| 3098 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3099 | if { (ac_try="$ac_compile" |
| 3100 | case "(($ac_try" in |
| 3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3102 | *) ac_try_echo=$ac_try;; |
| 3103 | esac |
| 3104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3105 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3106 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3108 | rm -f conftest.er1 |
| 3109 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3111 | (exit $ac_status); } && |
| 3112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3113 | { (case "(($ac_try" in |
| 3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 | *) ac_try_echo=$ac_try;; |
| 3116 | esac |
| 3117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3118 | (eval "$ac_try") 2>&5 |
| 3119 | ac_status=$? |
| 3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3121 | (exit $ac_status); }; } && |
| 3122 | { ac_try='test -s conftest.$ac_objext' |
| 3123 | { (case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
| 3127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3128 | (eval "$ac_try") 2>&5 |
| 3129 | ac_status=$? |
| 3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3131 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3132 | ac_compiler_gnu=yes |
| 3133 | else |
| 3134 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3136 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3137 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3138 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3139 | |
| 3140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3141 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3142 | |
| 3143 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3144 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3145 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3146 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3147 | ac_test_CFLAGS=${CFLAGS+set} |
| 3148 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3149 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3150 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3151 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3153 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3154 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3155 | ac_c_werror_flag=yes |
| 3156 | ac_cv_prog_cc_g=no |
| 3157 | CFLAGS="-g" |
| 3158 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3159 | /* confdefs.h. */ |
| 3160 | _ACEOF |
| 3161 | cat confdefs.h >>conftest.$ac_ext |
| 3162 | cat >>conftest.$ac_ext <<_ACEOF |
| 3163 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3164 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3165 | int |
| 3166 | main () |
| 3167 | { |
| 3168 | |
| 3169 | ; |
| 3170 | return 0; |
| 3171 | } |
| 3172 | _ACEOF |
| 3173 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3174 | if { (ac_try="$ac_compile" |
| 3175 | case "(($ac_try" in |
| 3176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3177 | *) ac_try_echo=$ac_try;; |
| 3178 | esac |
| 3179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3180 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3181 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3183 | rm -f conftest.er1 |
| 3184 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3186 | (exit $ac_status); } && |
| 3187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3188 | { (case "(($ac_try" in |
| 3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3190 | *) ac_try_echo=$ac_try;; |
| 3191 | esac |
| 3192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3193 | (eval "$ac_try") 2>&5 |
| 3194 | ac_status=$? |
| 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3196 | (exit $ac_status); }; } && |
| 3197 | { ac_try='test -s conftest.$ac_objext' |
| 3198 | { (case "(($ac_try" in |
| 3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3200 | *) ac_try_echo=$ac_try;; |
| 3201 | esac |
| 3202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3203 | (eval "$ac_try") 2>&5 |
| 3204 | ac_status=$? |
| 3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3206 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3207 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3208 | else |
| 3209 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3212 | CFLAGS="" |
| 3213 | cat >conftest.$ac_ext <<_ACEOF |
| 3214 | /* confdefs.h. */ |
| 3215 | _ACEOF |
| 3216 | cat confdefs.h >>conftest.$ac_ext |
| 3217 | cat >>conftest.$ac_ext <<_ACEOF |
| 3218 | /* end confdefs.h. */ |
| 3219 | |
| 3220 | int |
| 3221 | main () |
| 3222 | { |
| 3223 | |
| 3224 | ; |
| 3225 | return 0; |
| 3226 | } |
| 3227 | _ACEOF |
| 3228 | rm -f conftest.$ac_objext |
| 3229 | if { (ac_try="$ac_compile" |
| 3230 | case "(($ac_try" in |
| 3231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3232 | *) ac_try_echo=$ac_try;; |
| 3233 | esac |
| 3234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3235 | (eval "$ac_compile") 2>conftest.er1 |
| 3236 | ac_status=$? |
| 3237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3238 | rm -f conftest.er1 |
| 3239 | cat conftest.err >&5 |
| 3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3241 | (exit $ac_status); } && |
| 3242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3243 | { (case "(($ac_try" in |
| 3244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3245 | *) ac_try_echo=$ac_try;; |
| 3246 | esac |
| 3247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3248 | (eval "$ac_try") 2>&5 |
| 3249 | ac_status=$? |
| 3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3251 | (exit $ac_status); }; } && |
| 3252 | { ac_try='test -s conftest.$ac_objext' |
| 3253 | { (case "(($ac_try" in |
| 3254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3255 | *) ac_try_echo=$ac_try;; |
| 3256 | esac |
| 3257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3258 | (eval "$ac_try") 2>&5 |
| 3259 | ac_status=$? |
| 3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3261 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3262 | : |
| 3263 | else |
| 3264 | echo "$as_me: failed program was:" >&5 |
| 3265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3266 | |
| 3267 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3268 | CFLAGS="-g" |
| 3269 | cat >conftest.$ac_ext <<_ACEOF |
| 3270 | /* confdefs.h. */ |
| 3271 | _ACEOF |
| 3272 | cat confdefs.h >>conftest.$ac_ext |
| 3273 | cat >>conftest.$ac_ext <<_ACEOF |
| 3274 | /* end confdefs.h. */ |
| 3275 | |
| 3276 | int |
| 3277 | main () |
| 3278 | { |
| 3279 | |
| 3280 | ; |
| 3281 | return 0; |
| 3282 | } |
| 3283 | _ACEOF |
| 3284 | rm -f conftest.$ac_objext |
| 3285 | if { (ac_try="$ac_compile" |
| 3286 | case "(($ac_try" in |
| 3287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3288 | *) ac_try_echo=$ac_try;; |
| 3289 | esac |
| 3290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3291 | (eval "$ac_compile") 2>conftest.er1 |
| 3292 | ac_status=$? |
| 3293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3294 | rm -f conftest.er1 |
| 3295 | cat conftest.err >&5 |
| 3296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3297 | (exit $ac_status); } && |
| 3298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3299 | { (case "(($ac_try" in |
| 3300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3301 | *) ac_try_echo=$ac_try;; |
| 3302 | esac |
| 3303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3304 | (eval "$ac_try") 2>&5 |
| 3305 | ac_status=$? |
| 3306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3307 | (exit $ac_status); }; } && |
| 3308 | { ac_try='test -s conftest.$ac_objext' |
| 3309 | { (case "(($ac_try" in |
| 3310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3311 | *) ac_try_echo=$ac_try;; |
| 3312 | esac |
| 3313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3314 | (eval "$ac_try") 2>&5 |
| 3315 | ac_status=$? |
| 3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3317 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3318 | ac_cv_prog_cc_g=yes |
| 3319 | else |
| 3320 | echo "$as_me: failed program was:" >&5 |
| 3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3322 | |
| 3323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3324 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3325 | |
| 3326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 |
| 3330 | fi |
| 3331 | |
| 3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3333 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3334 | fi |
| 3335 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3336 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3337 | if test "$ac_test_CFLAGS" = set; then |
| 3338 | CFLAGS=$ac_save_CFLAGS |
| 3339 | elif test $ac_cv_prog_cc_g = yes; then |
| 3340 | if test "$GCC" = yes; then |
| 3341 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3342 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3343 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3344 | fi |
| 3345 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3346 | if test "$GCC" = yes; then |
| 3347 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3348 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3349 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3350 | fi |
| 3351 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3352 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3353 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3354 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3356 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3357 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3358 | ac_save_CC=$CC |
| 3359 | cat >conftest.$ac_ext <<_ACEOF |
| 3360 | /* confdefs.h. */ |
| 3361 | _ACEOF |
| 3362 | cat confdefs.h >>conftest.$ac_ext |
| 3363 | cat >>conftest.$ac_ext <<_ACEOF |
| 3364 | /* end confdefs.h. */ |
| 3365 | #include <stdarg.h> |
| 3366 | #include <stdio.h> |
| 3367 | #include <sys/types.h> |
| 3368 | #include <sys/stat.h> |
| 3369 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3370 | struct buf { int x; }; |
| 3371 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3372 | static char *e (p, i) |
| 3373 | char **p; |
| 3374 | int i; |
| 3375 | { |
| 3376 | return p[i]; |
| 3377 | } |
| 3378 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3379 | { |
| 3380 | char *s; |
| 3381 | va_list v; |
| 3382 | va_start (v,p); |
| 3383 | s = g (p, va_arg (v,int)); |
| 3384 | va_end (v); |
| 3385 | return s; |
| 3386 | } |
| 3387 | |
| 3388 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3389 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3390 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3391 | 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] | 3392 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3393 | 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] | 3394 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3395 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3397 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3398 | inside strings and character constants. */ |
| 3399 | #define FOO(x) 'x' |
| 3400 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3401 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3402 | int test (int i, double x); |
| 3403 | struct s1 {int (*f) (int a);}; |
| 3404 | struct s2 {int (*f) (double a);}; |
| 3405 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3406 | int argc; |
| 3407 | char **argv; |
| 3408 | int |
| 3409 | main () |
| 3410 | { |
| 3411 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3412 | ; |
| 3413 | return 0; |
| 3414 | } |
| 3415 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3416 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3417 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3418 | do |
| 3419 | CC="$ac_save_CC $ac_arg" |
| 3420 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3421 | if { (ac_try="$ac_compile" |
| 3422 | case "(($ac_try" in |
| 3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3424 | *) ac_try_echo=$ac_try;; |
| 3425 | esac |
| 3426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3427 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3428 | ac_status=$? |
| 3429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3430 | rm -f conftest.er1 |
| 3431 | cat conftest.err >&5 |
| 3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3433 | (exit $ac_status); } && |
| 3434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3435 | { (case "(($ac_try" in |
| 3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3437 | *) ac_try_echo=$ac_try;; |
| 3438 | esac |
| 3439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3440 | (eval "$ac_try") 2>&5 |
| 3441 | ac_status=$? |
| 3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3443 | (exit $ac_status); }; } && |
| 3444 | { ac_try='test -s conftest.$ac_objext' |
| 3445 | { (case "(($ac_try" in |
| 3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3447 | *) ac_try_echo=$ac_try;; |
| 3448 | esac |
| 3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3450 | (eval "$ac_try") 2>&5 |
| 3451 | ac_status=$? |
| 3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3453 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3454 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3455 | else |
| 3456 | echo "$as_me: failed program was:" >&5 |
| 3457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3459 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3460 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3461 | |
| 3462 | rm -f core conftest.err conftest.$ac_objext |
| 3463 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3464 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3465 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3466 | CC=$ac_save_CC |
| 3467 | |
| 3468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3469 | # AC_CACHE_VAL |
| 3470 | case "x$ac_cv_prog_cc_c89" in |
| 3471 | x) |
| 3472 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3473 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3474 | xno) |
| 3475 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3476 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3477 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3478 | CC="$CC $ac_cv_prog_cc_c89" |
| 3479 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3480 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3481 | esac |
| 3482 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3483 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3484 | ac_ext=c |
| 3485 | ac_cpp='$CPP $CPPFLAGS' |
| 3486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3489 | |
| 3490 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3491 | ac_ext=c |
| 3492 | ac_cpp='$CPP $CPPFLAGS' |
| 3493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3496 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3497 | 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] | 3498 | # On Suns, sometimes $CPP names a directory. |
| 3499 | if test -n "$CPP" && test -d "$CPP"; then |
| 3500 | CPP= |
| 3501 | fi |
| 3502 | if test -z "$CPP"; then |
| 3503 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3505 | else |
| 3506 | # Double quotes because CPP needs to be expanded |
| 3507 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3508 | do |
| 3509 | ac_preproc_ok=false |
| 3510 | for ac_c_preproc_warn_flag in '' yes |
| 3511 | do |
| 3512 | # Use a header file that comes with gcc, so configuring glibc |
| 3513 | # with a fresh cross-compiler works. |
| 3514 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3515 | # <limits.h> exists even on freestanding compilers. |
| 3516 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3517 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3518 | cat >conftest.$ac_ext <<_ACEOF |
| 3519 | /* confdefs.h. */ |
| 3520 | _ACEOF |
| 3521 | cat confdefs.h >>conftest.$ac_ext |
| 3522 | cat >>conftest.$ac_ext <<_ACEOF |
| 3523 | /* end confdefs.h. */ |
| 3524 | #ifdef __STDC__ |
| 3525 | # include <limits.h> |
| 3526 | #else |
| 3527 | # include <assert.h> |
| 3528 | #endif |
| 3529 | Syntax error |
| 3530 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3531 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3532 | case "(($ac_try" in |
| 3533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3534 | *) ac_try_echo=$ac_try;; |
| 3535 | esac |
| 3536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3537 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3538 | ac_status=$? |
| 3539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3540 | rm -f conftest.er1 |
| 3541 | cat conftest.err >&5 |
| 3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3543 | (exit $ac_status); } >/dev/null; then |
| 3544 | if test -s conftest.err; then |
| 3545 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3546 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3547 | else |
| 3548 | ac_cpp_err= |
| 3549 | fi |
| 3550 | else |
| 3551 | ac_cpp_err=yes |
| 3552 | fi |
| 3553 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3554 | : |
| 3555 | else |
| 3556 | echo "$as_me: failed program was:" >&5 |
| 3557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3558 | |
| 3559 | # Broken: fails on valid input. |
| 3560 | continue |
| 3561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3562 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3563 | rm -f conftest.err conftest.$ac_ext |
| 3564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3565 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3566 | # can be detected and how. |
| 3567 | cat >conftest.$ac_ext <<_ACEOF |
| 3568 | /* confdefs.h. */ |
| 3569 | _ACEOF |
| 3570 | cat confdefs.h >>conftest.$ac_ext |
| 3571 | cat >>conftest.$ac_ext <<_ACEOF |
| 3572 | /* end confdefs.h. */ |
| 3573 | #include <ac_nonexistent.h> |
| 3574 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3575 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3576 | case "(($ac_try" in |
| 3577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3578 | *) ac_try_echo=$ac_try;; |
| 3579 | esac |
| 3580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3581 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3582 | ac_status=$? |
| 3583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3584 | rm -f conftest.er1 |
| 3585 | cat conftest.err >&5 |
| 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3587 | (exit $ac_status); } >/dev/null; then |
| 3588 | if test -s conftest.err; then |
| 3589 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3591 | else |
| 3592 | ac_cpp_err= |
| 3593 | fi |
| 3594 | else |
| 3595 | ac_cpp_err=yes |
| 3596 | fi |
| 3597 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3598 | # Broken: success on invalid input. |
| 3599 | continue |
| 3600 | else |
| 3601 | echo "$as_me: failed program was:" >&5 |
| 3602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3603 | |
| 3604 | # Passes both tests. |
| 3605 | ac_preproc_ok=: |
| 3606 | break |
| 3607 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3608 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3609 | rm -f conftest.err conftest.$ac_ext |
| 3610 | |
| 3611 | done |
| 3612 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3613 | rm -f conftest.err conftest.$ac_ext |
| 3614 | if $ac_preproc_ok; then |
| 3615 | break |
| 3616 | fi |
| 3617 | |
| 3618 | done |
| 3619 | ac_cv_prog_CPP=$CPP |
| 3620 | |
| 3621 | fi |
| 3622 | CPP=$ac_cv_prog_CPP |
| 3623 | else |
| 3624 | ac_cv_prog_CPP=$CPP |
| 3625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3626 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3627 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3628 | ac_preproc_ok=false |
| 3629 | for ac_c_preproc_warn_flag in '' yes |
| 3630 | do |
| 3631 | # Use a header file that comes with gcc, so configuring glibc |
| 3632 | # with a fresh cross-compiler works. |
| 3633 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3634 | # <limits.h> exists even on freestanding compilers. |
| 3635 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3636 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3637 | cat >conftest.$ac_ext <<_ACEOF |
| 3638 | /* confdefs.h. */ |
| 3639 | _ACEOF |
| 3640 | cat confdefs.h >>conftest.$ac_ext |
| 3641 | cat >>conftest.$ac_ext <<_ACEOF |
| 3642 | /* end confdefs.h. */ |
| 3643 | #ifdef __STDC__ |
| 3644 | # include <limits.h> |
| 3645 | #else |
| 3646 | # include <assert.h> |
| 3647 | #endif |
| 3648 | Syntax error |
| 3649 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3650 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3651 | case "(($ac_try" in |
| 3652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3653 | *) ac_try_echo=$ac_try;; |
| 3654 | esac |
| 3655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3657 | ac_status=$? |
| 3658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3659 | rm -f conftest.er1 |
| 3660 | cat conftest.err >&5 |
| 3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3662 | (exit $ac_status); } >/dev/null; then |
| 3663 | if test -s conftest.err; then |
| 3664 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3665 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3666 | else |
| 3667 | ac_cpp_err= |
| 3668 | fi |
| 3669 | else |
| 3670 | ac_cpp_err=yes |
| 3671 | fi |
| 3672 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3673 | : |
| 3674 | else |
| 3675 | echo "$as_me: failed program was:" >&5 |
| 3676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3677 | |
| 3678 | # Broken: fails on valid input. |
| 3679 | continue |
| 3680 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3682 | rm -f conftest.err conftest.$ac_ext |
| 3683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3684 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3685 | # can be detected and how. |
| 3686 | cat >conftest.$ac_ext <<_ACEOF |
| 3687 | /* confdefs.h. */ |
| 3688 | _ACEOF |
| 3689 | cat confdefs.h >>conftest.$ac_ext |
| 3690 | cat >>conftest.$ac_ext <<_ACEOF |
| 3691 | /* end confdefs.h. */ |
| 3692 | #include <ac_nonexistent.h> |
| 3693 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3694 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3695 | case "(($ac_try" in |
| 3696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3697 | *) ac_try_echo=$ac_try;; |
| 3698 | esac |
| 3699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3700 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3701 | ac_status=$? |
| 3702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3703 | rm -f conftest.er1 |
| 3704 | cat conftest.err >&5 |
| 3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3706 | (exit $ac_status); } >/dev/null; then |
| 3707 | if test -s conftest.err; then |
| 3708 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3709 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3710 | else |
| 3711 | ac_cpp_err= |
| 3712 | fi |
| 3713 | else |
| 3714 | ac_cpp_err=yes |
| 3715 | fi |
| 3716 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3717 | # Broken: success on invalid input. |
| 3718 | continue |
| 3719 | else |
| 3720 | echo "$as_me: failed program was:" >&5 |
| 3721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3722 | |
| 3723 | # Passes both tests. |
| 3724 | ac_preproc_ok=: |
| 3725 | break |
| 3726 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3727 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3728 | rm -f conftest.err conftest.$ac_ext |
| 3729 | |
| 3730 | done |
| 3731 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3732 | rm -f conftest.err conftest.$ac_ext |
| 3733 | if $ac_preproc_ok; then |
| 3734 | : |
| 3735 | else |
| 3736 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3737 | See \`config.log' for more details." >&5 |
| 3738 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3739 | See \`config.log' for more details." >&2;} |
| 3740 | { (exit 1); exit 1; }; } |
| 3741 | fi |
| 3742 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3743 | ac_ext=c |
| 3744 | ac_cpp='$CPP $CPPFLAGS' |
| 3745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3750 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3751 | 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] | 3752 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3754 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3755 | # Extract the first word of "grep ggrep" to use in msg output |
| 3756 | if test -z "$GREP"; then |
| 3757 | set dummy grep ggrep; ac_prog_name=$2 |
| 3758 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3760 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3761 | ac_path_GREP_found=false |
| 3762 | # 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] | 3763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3764 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3765 | do |
| 3766 | IFS=$as_save_IFS |
| 3767 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3768 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3769 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3770 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3771 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3772 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3773 | # Check for GNU $ac_path_GREP |
| 3774 | case `"$ac_path_GREP" --version 2>&1` in |
| 3775 | *GNU*) |
| 3776 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3777 | *) |
| 3778 | ac_count=0 |
| 3779 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3780 | while : |
| 3781 | do |
| 3782 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3783 | mv "conftest.tmp" "conftest.in" |
| 3784 | cp "conftest.in" "conftest.nl" |
| 3785 | echo 'GREP' >> "conftest.nl" |
| 3786 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3787 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3788 | ac_count=`expr $ac_count + 1` |
| 3789 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3790 | # Best one so far, save it but keep looking for a better one |
| 3791 | ac_cv_path_GREP="$ac_path_GREP" |
| 3792 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3794 | # 10*(2^10) chars as input seems more than enough |
| 3795 | test $ac_count -gt 10 && break |
| 3796 | done |
| 3797 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3798 | esac |
| 3799 | |
| 3800 | |
| 3801 | $ac_path_GREP_found && break 3 |
| 3802 | done |
| 3803 | done |
| 3804 | |
| 3805 | done |
| 3806 | IFS=$as_save_IFS |
| 3807 | |
| 3808 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3809 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3810 | |
| 3811 | GREP="$ac_cv_path_GREP" |
| 3812 | if test -z "$GREP"; then |
| 3813 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3814 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3815 | { (exit 1); exit 1; }; } |
| 3816 | fi |
| 3817 | |
| 3818 | else |
| 3819 | ac_cv_path_GREP=$GREP |
| 3820 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3821 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3823 | fi |
| 3824 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3825 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3826 | GREP="$ac_cv_path_GREP" |
| 3827 | |
| 3828 | |
| 3829 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3830 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3831 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3833 | else |
| 3834 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3835 | then ac_cv_path_EGREP="$GREP -E" |
| 3836 | else |
| 3837 | # Extract the first word of "egrep" to use in msg output |
| 3838 | if test -z "$EGREP"; then |
| 3839 | set dummy egrep; ac_prog_name=$2 |
| 3840 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3842 | else |
| 3843 | ac_path_EGREP_found=false |
| 3844 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3846 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3847 | do |
| 3848 | IFS=$as_save_IFS |
| 3849 | test -z "$as_dir" && as_dir=. |
| 3850 | for ac_prog in egrep; do |
| 3851 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3852 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3853 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3854 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3855 | # Check for GNU $ac_path_EGREP |
| 3856 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3857 | *GNU*) |
| 3858 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3859 | *) |
| 3860 | ac_count=0 |
| 3861 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3862 | while : |
| 3863 | do |
| 3864 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3865 | mv "conftest.tmp" "conftest.in" |
| 3866 | cp "conftest.in" "conftest.nl" |
| 3867 | echo 'EGREP' >> "conftest.nl" |
| 3868 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3869 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3870 | ac_count=`expr $ac_count + 1` |
| 3871 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3872 | # Best one so far, save it but keep looking for a better one |
| 3873 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3874 | ac_path_EGREP_max=$ac_count |
| 3875 | fi |
| 3876 | # 10*(2^10) chars as input seems more than enough |
| 3877 | test $ac_count -gt 10 && break |
| 3878 | done |
| 3879 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3880 | esac |
| 3881 | |
| 3882 | |
| 3883 | $ac_path_EGREP_found && break 3 |
| 3884 | done |
| 3885 | done |
| 3886 | |
| 3887 | done |
| 3888 | IFS=$as_save_IFS |
| 3889 | |
| 3890 | |
| 3891 | fi |
| 3892 | |
| 3893 | EGREP="$ac_cv_path_EGREP" |
| 3894 | if test -z "$EGREP"; then |
| 3895 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3896 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3897 | { (exit 1); exit 1; }; } |
| 3898 | fi |
| 3899 | |
| 3900 | else |
| 3901 | ac_cv_path_EGREP=$EGREP |
| 3902 | fi |
| 3903 | |
| 3904 | |
| 3905 | fi |
| 3906 | fi |
| 3907 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3908 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3909 | EGREP="$ac_cv_path_EGREP" |
| 3910 | |
| 3911 | |
| 3912 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3913 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3916 | else |
| 3917 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3918 | /* confdefs.h. */ |
| 3919 | _ACEOF |
| 3920 | cat confdefs.h >>conftest.$ac_ext |
| 3921 | cat >>conftest.$ac_ext <<_ACEOF |
| 3922 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3923 | #include <stdlib.h> |
| 3924 | #include <stdarg.h> |
| 3925 | #include <string.h> |
| 3926 | #include <float.h> |
| 3927 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3928 | int |
| 3929 | main () |
| 3930 | { |
| 3931 | |
| 3932 | ; |
| 3933 | return 0; |
| 3934 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3935 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3936 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3937 | if { (ac_try="$ac_compile" |
| 3938 | case "(($ac_try" in |
| 3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3940 | *) ac_try_echo=$ac_try;; |
| 3941 | esac |
| 3942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3943 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3946 | rm -f conftest.er1 |
| 3947 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3949 | (exit $ac_status); } && |
| 3950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3951 | { (case "(($ac_try" in |
| 3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3953 | *) ac_try_echo=$ac_try;; |
| 3954 | esac |
| 3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3956 | (eval "$ac_try") 2>&5 |
| 3957 | ac_status=$? |
| 3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3959 | (exit $ac_status); }; } && |
| 3960 | { ac_try='test -s conftest.$ac_objext' |
| 3961 | { (case "(($ac_try" in |
| 3962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3963 | *) ac_try_echo=$ac_try;; |
| 3964 | esac |
| 3965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3966 | (eval "$ac_try") 2>&5 |
| 3967 | ac_status=$? |
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3969 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3970 | ac_cv_header_stdc=yes |
| 3971 | else |
| 3972 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3975 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3977 | |
| 3978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3979 | |
| 3980 | if test $ac_cv_header_stdc = yes; then |
| 3981 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3982 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3983 | /* confdefs.h. */ |
| 3984 | _ACEOF |
| 3985 | cat confdefs.h >>conftest.$ac_ext |
| 3986 | cat >>conftest.$ac_ext <<_ACEOF |
| 3987 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3988 | #include <string.h> |
| 3989 | |
| 3990 | _ACEOF |
| 3991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3992 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3993 | : |
| 3994 | else |
| 3995 | ac_cv_header_stdc=no |
| 3996 | fi |
| 3997 | rm -f conftest* |
| 3998 | |
| 3999 | fi |
| 4000 | |
| 4001 | if test $ac_cv_header_stdc = yes; then |
| 4002 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4003 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4004 | /* confdefs.h. */ |
| 4005 | _ACEOF |
| 4006 | cat confdefs.h >>conftest.$ac_ext |
| 4007 | cat >>conftest.$ac_ext <<_ACEOF |
| 4008 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4009 | #include <stdlib.h> |
| 4010 | |
| 4011 | _ACEOF |
| 4012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4013 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4014 | : |
| 4015 | else |
| 4016 | ac_cv_header_stdc=no |
| 4017 | fi |
| 4018 | rm -f conftest* |
| 4019 | |
| 4020 | fi |
| 4021 | |
| 4022 | if test $ac_cv_header_stdc = yes; then |
| 4023 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4024 | if test "$cross_compiling" = yes; then |
| 4025 | : |
| 4026 | else |
| 4027 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4028 | /* confdefs.h. */ |
| 4029 | _ACEOF |
| 4030 | cat confdefs.h >>conftest.$ac_ext |
| 4031 | cat >>conftest.$ac_ext <<_ACEOF |
| 4032 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4033 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4034 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4035 | #if ((' ' & 0x0FF) == 0x020) |
| 4036 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4037 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4038 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4039 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4040 | (('a' <= (c) && (c) <= 'i') \ |
| 4041 | || ('j' <= (c) && (c) <= 'r') \ |
| 4042 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4043 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4044 | #endif |
| 4045 | |
| 4046 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4047 | int |
| 4048 | main () |
| 4049 | { |
| 4050 | int i; |
| 4051 | for (i = 0; i < 256; i++) |
| 4052 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4053 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4054 | return 2; |
| 4055 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4056 | } |
| 4057 | _ACEOF |
| 4058 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4059 | if { (ac_try="$ac_link" |
| 4060 | case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4065 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4066 | ac_status=$? |
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4069 | { (case "(($ac_try" in |
| 4070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4071 | *) ac_try_echo=$ac_try;; |
| 4072 | esac |
| 4073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4074 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4075 | ac_status=$? |
| 4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4077 | (exit $ac_status); }; }; then |
| 4078 | : |
| 4079 | else |
| 4080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4081 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4084 | ( exit $ac_status ) |
| 4085 | ac_cv_header_stdc=no |
| 4086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4088 | fi |
| 4089 | |
| 4090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4091 | fi |
| 4092 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4093 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4094 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4095 | if test $ac_cv_header_stdc = yes; then |
| 4096 | |
| 4097 | cat >>confdefs.h <<\_ACEOF |
| 4098 | #define STDC_HEADERS 1 |
| 4099 | _ACEOF |
| 4100 | |
| 4101 | fi |
| 4102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4103 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4104 | |
| 4105 | |
| 4106 | |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4114 | inttypes.h stdint.h unistd.h |
| 4115 | do |
| 4116 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4117 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4119 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4121 | else |
| 4122 | cat >conftest.$ac_ext <<_ACEOF |
| 4123 | /* confdefs.h. */ |
| 4124 | _ACEOF |
| 4125 | cat confdefs.h >>conftest.$ac_ext |
| 4126 | cat >>conftest.$ac_ext <<_ACEOF |
| 4127 | /* end confdefs.h. */ |
| 4128 | $ac_includes_default |
| 4129 | |
| 4130 | #include <$ac_header> |
| 4131 | _ACEOF |
| 4132 | rm -f conftest.$ac_objext |
| 4133 | if { (ac_try="$ac_compile" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4139 | (eval "$ac_compile") 2>conftest.er1 |
| 4140 | ac_status=$? |
| 4141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4142 | rm -f conftest.er1 |
| 4143 | cat conftest.err >&5 |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4145 | (exit $ac_status); } && |
| 4146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4147 | { (case "(($ac_try" in |
| 4148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4149 | *) ac_try_echo=$ac_try;; |
| 4150 | esac |
| 4151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4152 | (eval "$ac_try") 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; } && |
| 4156 | { ac_try='test -s conftest.$ac_objext' |
| 4157 | { (case "(($ac_try" in |
| 4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4159 | *) ac_try_echo=$ac_try;; |
| 4160 | esac |
| 4161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4162 | (eval "$ac_try") 2>&5 |
| 4163 | ac_status=$? |
| 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4165 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4166 | eval "$as_ac_Header=yes" |
| 4167 | else |
| 4168 | echo "$as_me: failed program was:" >&5 |
| 4169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4170 | |
| 4171 | eval "$as_ac_Header=no" |
| 4172 | fi |
| 4173 | |
| 4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4175 | fi |
| 4176 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4178 | echo "${ECHO_T}$ac_res" >&6; } |
| 4179 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4180 | cat >>confdefs.h <<_ACEOF |
| 4181 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4182 | _ACEOF |
| 4183 | |
| 4184 | fi |
| 4185 | |
| 4186 | done |
| 4187 | |
| 4188 | |
| 4189 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4190 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4191 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4193 | else |
| 4194 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4195 | cat >conftest.$ac_ext <<_ACEOF |
| 4196 | /* confdefs.h. */ |
| 4197 | _ACEOF |
| 4198 | cat confdefs.h >>conftest.$ac_ext |
| 4199 | cat >>conftest.$ac_ext <<_ACEOF |
| 4200 | /* end confdefs.h. */ |
| 4201 | #include <sys/types.h> |
| 4202 | #include <sys/param.h> |
| 4203 | |
| 4204 | int |
| 4205 | main () |
| 4206 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4207 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4208 | bogus endian macros |
| 4209 | #endif |
| 4210 | |
| 4211 | ; |
| 4212 | return 0; |
| 4213 | } |
| 4214 | _ACEOF |
| 4215 | rm -f conftest.$ac_objext |
| 4216 | if { (ac_try="$ac_compile" |
| 4217 | case "(($ac_try" in |
| 4218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4219 | *) ac_try_echo=$ac_try;; |
| 4220 | esac |
| 4221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4222 | (eval "$ac_compile") 2>conftest.er1 |
| 4223 | ac_status=$? |
| 4224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4225 | rm -f conftest.er1 |
| 4226 | cat conftest.err >&5 |
| 4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4228 | (exit $ac_status); } && |
| 4229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4230 | { (case "(($ac_try" in |
| 4231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4232 | *) ac_try_echo=$ac_try;; |
| 4233 | esac |
| 4234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4235 | (eval "$ac_try") 2>&5 |
| 4236 | ac_status=$? |
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4238 | (exit $ac_status); }; } && |
| 4239 | { ac_try='test -s conftest.$ac_objext' |
| 4240 | { (case "(($ac_try" in |
| 4241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4242 | *) ac_try_echo=$ac_try;; |
| 4243 | esac |
| 4244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4245 | (eval "$ac_try") 2>&5 |
| 4246 | ac_status=$? |
| 4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4248 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4249 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4250 | cat >conftest.$ac_ext <<_ACEOF |
| 4251 | /* confdefs.h. */ |
| 4252 | _ACEOF |
| 4253 | cat confdefs.h >>conftest.$ac_ext |
| 4254 | cat >>conftest.$ac_ext <<_ACEOF |
| 4255 | /* end confdefs.h. */ |
| 4256 | #include <sys/types.h> |
| 4257 | #include <sys/param.h> |
| 4258 | |
| 4259 | int |
| 4260 | main () |
| 4261 | { |
| 4262 | #if BYTE_ORDER != BIG_ENDIAN |
| 4263 | not big endian |
| 4264 | #endif |
| 4265 | |
| 4266 | ; |
| 4267 | return 0; |
| 4268 | } |
| 4269 | _ACEOF |
| 4270 | rm -f conftest.$ac_objext |
| 4271 | if { (ac_try="$ac_compile" |
| 4272 | case "(($ac_try" in |
| 4273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4274 | *) ac_try_echo=$ac_try;; |
| 4275 | esac |
| 4276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4277 | (eval "$ac_compile") 2>conftest.er1 |
| 4278 | ac_status=$? |
| 4279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4280 | rm -f conftest.er1 |
| 4281 | cat conftest.err >&5 |
| 4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4283 | (exit $ac_status); } && |
| 4284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4285 | { (case "(($ac_try" in |
| 4286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4287 | *) ac_try_echo=$ac_try;; |
| 4288 | esac |
| 4289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4290 | (eval "$ac_try") 2>&5 |
| 4291 | ac_status=$? |
| 4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4293 | (exit $ac_status); }; } && |
| 4294 | { ac_try='test -s conftest.$ac_objext' |
| 4295 | { (case "(($ac_try" in |
| 4296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4297 | *) ac_try_echo=$ac_try;; |
| 4298 | esac |
| 4299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4300 | (eval "$ac_try") 2>&5 |
| 4301 | ac_status=$? |
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4303 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4304 | ac_cv_c_bigendian=yes |
| 4305 | else |
| 4306 | echo "$as_me: failed program was:" >&5 |
| 4307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4308 | |
| 4309 | ac_cv_c_bigendian=no |
| 4310 | fi |
| 4311 | |
| 4312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4313 | else |
| 4314 | echo "$as_me: failed program was:" >&5 |
| 4315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4316 | |
| 4317 | # It does not; compile a test program. |
| 4318 | if test "$cross_compiling" = yes; then |
| 4319 | # try to guess the endianness by grepping values into an object file |
| 4320 | ac_cv_c_bigendian=unknown |
| 4321 | cat >conftest.$ac_ext <<_ACEOF |
| 4322 | /* confdefs.h. */ |
| 4323 | _ACEOF |
| 4324 | cat confdefs.h >>conftest.$ac_ext |
| 4325 | cat >>conftest.$ac_ext <<_ACEOF |
| 4326 | /* end confdefs.h. */ |
| 4327 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4328 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4329 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4330 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4331 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4332 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4333 | int |
| 4334 | main () |
| 4335 | { |
| 4336 | _ascii (); _ebcdic (); |
| 4337 | ; |
| 4338 | return 0; |
| 4339 | } |
| 4340 | _ACEOF |
| 4341 | rm -f conftest.$ac_objext |
| 4342 | if { (ac_try="$ac_compile" |
| 4343 | case "(($ac_try" in |
| 4344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4345 | *) ac_try_echo=$ac_try;; |
| 4346 | esac |
| 4347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4348 | (eval "$ac_compile") 2>conftest.er1 |
| 4349 | ac_status=$? |
| 4350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4351 | rm -f conftest.er1 |
| 4352 | cat conftest.err >&5 |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4354 | (exit $ac_status); } && |
| 4355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4356 | { (case "(($ac_try" in |
| 4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4358 | *) ac_try_echo=$ac_try;; |
| 4359 | esac |
| 4360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4361 | (eval "$ac_try") 2>&5 |
| 4362 | ac_status=$? |
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4364 | (exit $ac_status); }; } && |
| 4365 | { ac_try='test -s conftest.$ac_objext' |
| 4366 | { (case "(($ac_try" in |
| 4367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4368 | *) ac_try_echo=$ac_try;; |
| 4369 | esac |
| 4370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4371 | (eval "$ac_try") 2>&5 |
| 4372 | ac_status=$? |
| 4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4374 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4375 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4376 | ac_cv_c_bigendian=yes |
| 4377 | fi |
| 4378 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4379 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4380 | ac_cv_c_bigendian=no |
| 4381 | else |
| 4382 | # finding both strings is unlikely to happen, but who knows? |
| 4383 | ac_cv_c_bigendian=unknown |
| 4384 | fi |
| 4385 | fi |
| 4386 | else |
| 4387 | echo "$as_me: failed program was:" >&5 |
| 4388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4389 | |
| 4390 | |
| 4391 | fi |
| 4392 | |
| 4393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4394 | else |
| 4395 | cat >conftest.$ac_ext <<_ACEOF |
| 4396 | /* confdefs.h. */ |
| 4397 | _ACEOF |
| 4398 | cat confdefs.h >>conftest.$ac_ext |
| 4399 | cat >>conftest.$ac_ext <<_ACEOF |
| 4400 | /* end confdefs.h. */ |
| 4401 | $ac_includes_default |
| 4402 | int |
| 4403 | main () |
| 4404 | { |
| 4405 | |
| 4406 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4407 | union |
| 4408 | { |
| 4409 | long int l; |
| 4410 | char c[sizeof (long int)]; |
| 4411 | } u; |
| 4412 | u.l = 1; |
| 4413 | return u.c[sizeof (long int) - 1] == 1; |
| 4414 | |
| 4415 | ; |
| 4416 | return 0; |
| 4417 | } |
| 4418 | _ACEOF |
| 4419 | rm -f conftest$ac_exeext |
| 4420 | if { (ac_try="$ac_link" |
| 4421 | case "(($ac_try" in |
| 4422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4423 | *) ac_try_echo=$ac_try;; |
| 4424 | esac |
| 4425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4426 | (eval "$ac_link") 2>&5 |
| 4427 | ac_status=$? |
| 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4430 | { (case "(($ac_try" in |
| 4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4432 | *) ac_try_echo=$ac_try;; |
| 4433 | esac |
| 4434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4435 | (eval "$ac_try") 2>&5 |
| 4436 | ac_status=$? |
| 4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4438 | (exit $ac_status); }; }; then |
| 4439 | ac_cv_c_bigendian=no |
| 4440 | else |
| 4441 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4442 | echo "$as_me: failed program was:" >&5 |
| 4443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4444 | |
| 4445 | ( exit $ac_status ) |
| 4446 | ac_cv_c_bigendian=yes |
| 4447 | fi |
| 4448 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4449 | fi |
| 4450 | |
| 4451 | |
| 4452 | fi |
| 4453 | |
| 4454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4455 | fi |
| 4456 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4457 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4458 | case $ac_cv_c_bigendian in |
| 4459 | yes) |
| 4460 | ENDIAN=big |
| 4461 | ;; |
| 4462 | no) |
| 4463 | ENDIAN=little |
| 4464 | ;; |
| 4465 | *) |
| 4466 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4467 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4468 | echo "$as_me: error: unknown endianness |
| 4469 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4470 | { (exit 1); exit 1; }; } ;; |
| 4471 | esac |
| 4472 | |
| 4473 | |
| 4474 | if test "$cross_compiling" = yes; then |
| 4475 | LLVM_CROSS_COMPILING=1 |
| 4476 | |
| 4477 | |
| 4478 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4479 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4480 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4482 | else |
| 4483 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4484 | ac_cv_build_exeext=.exe |
| 4485 | else |
| 4486 | ac_build_prefix=${build_alias}- |
| 4487 | |
| 4488 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4489 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4490 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4492 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4494 | else |
| 4495 | if test -n "$BUILD_CC"; then |
| 4496 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4497 | else |
| 4498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4499 | for as_dir in $PATH |
| 4500 | do |
| 4501 | IFS=$as_save_IFS |
| 4502 | test -z "$as_dir" && as_dir=. |
| 4503 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4504 | 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] | 4505 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4507 | break 2 |
| 4508 | fi |
| 4509 | done |
| 4510 | done |
| 4511 | IFS=$as_save_IFS |
| 4512 | |
| 4513 | fi |
| 4514 | fi |
| 4515 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4516 | if test -n "$BUILD_CC"; then |
| 4517 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4518 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4519 | else |
| 4520 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4521 | echo "${ECHO_T}no" >&6; } |
| 4522 | fi |
| 4523 | |
| 4524 | |
| 4525 | if test -z "$BUILD_CC"; then |
| 4526 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4527 | set dummy gcc; ac_word=$2 |
| 4528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4530 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4532 | else |
| 4533 | if test -n "$BUILD_CC"; then |
| 4534 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4535 | else |
| 4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4537 | for as_dir in $PATH |
| 4538 | do |
| 4539 | IFS=$as_save_IFS |
| 4540 | test -z "$as_dir" && as_dir=. |
| 4541 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4542 | 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] | 4543 | ac_cv_prog_BUILD_CC="gcc" |
| 4544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4545 | break 2 |
| 4546 | fi |
| 4547 | done |
| 4548 | done |
| 4549 | IFS=$as_save_IFS |
| 4550 | |
| 4551 | fi |
| 4552 | fi |
| 4553 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4554 | if test -n "$BUILD_CC"; then |
| 4555 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4556 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4557 | else |
| 4558 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4559 | echo "${ECHO_T}no" >&6; } |
| 4560 | fi |
| 4561 | |
| 4562 | |
| 4563 | if test -z "$BUILD_CC"; then |
| 4564 | # Extract the first word of "cc", so it can be a program name with args. |
| 4565 | set dummy cc; ac_word=$2 |
| 4566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4568 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4570 | else |
| 4571 | if test -n "$BUILD_CC"; then |
| 4572 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4573 | else |
| 4574 | ac_prog_rejected=no |
| 4575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4576 | for as_dir in $PATH |
| 4577 | do |
| 4578 | IFS=$as_save_IFS |
| 4579 | test -z "$as_dir" && as_dir=. |
| 4580 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4581 | 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] | 4582 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4583 | ac_prog_rejected=yes |
| 4584 | continue |
| 4585 | fi |
| 4586 | ac_cv_prog_BUILD_CC="cc" |
| 4587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4588 | break 2 |
| 4589 | fi |
| 4590 | done |
| 4591 | done |
| 4592 | IFS=$as_save_IFS |
| 4593 | |
| 4594 | if test $ac_prog_rejected = yes; then |
| 4595 | # We found a bogon in the path, so make sure we never use it. |
| 4596 | set dummy $ac_cv_prog_BUILD_CC |
| 4597 | shift |
| 4598 | if test $# != 0; then |
| 4599 | # We chose a different compiler from the bogus one. |
| 4600 | # However, it has the same basename, so the bogon will be chosen |
| 4601 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4602 | shift |
| 4603 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4604 | fi |
| 4605 | fi |
| 4606 | fi |
| 4607 | fi |
| 4608 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4609 | if test -n "$BUILD_CC"; then |
| 4610 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4611 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4612 | else |
| 4613 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4614 | echo "${ECHO_T}no" >&6; } |
| 4615 | fi |
| 4616 | |
| 4617 | |
| 4618 | fi |
| 4619 | fi |
| 4620 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4621 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4622 | { (exit 1); exit 1; }; } |
| 4623 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4624 | rm -f conftest* |
| 4625 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4626 | ac_cv_build_exeext= |
| 4627 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4628 | (eval $ac_build_link) 2>&5 |
| 4629 | ac_status=$? |
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4631 | (exit $ac_status); }; then |
| 4632 | for file in conftest.*; do |
| 4633 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4634 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4635 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4636 | esac |
| 4637 | done |
| 4638 | else |
| 4639 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4640 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4641 | { (exit 1); exit 1; }; } |
| 4642 | fi |
| 4643 | rm -f conftest* |
| 4644 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4645 | fi |
| 4646 | fi |
| 4647 | |
| 4648 | BUILD_EXEEXT="" |
| 4649 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4650 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4651 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4652 | ac_build_exeext=$BUILD_EXEEXT |
| 4653 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4654 | ac_build_prefix=${build_alias}- |
| 4655 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4656 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4657 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4659 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4661 | else |
| 4662 | if test -n "$BUILD_CXX"; then |
| 4663 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4664 | else |
| 4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4666 | for as_dir in $PATH |
| 4667 | do |
| 4668 | IFS=$as_save_IFS |
| 4669 | test -z "$as_dir" && as_dir=. |
| 4670 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4671 | 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] | 4672 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4674 | break 2 |
| 4675 | fi |
| 4676 | done |
| 4677 | done |
| 4678 | IFS=$as_save_IFS |
| 4679 | |
| 4680 | fi |
| 4681 | fi |
| 4682 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4683 | if test -n "$BUILD_CXX"; then |
| 4684 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4685 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4686 | else |
| 4687 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4688 | echo "${ECHO_T}no" >&6; } |
| 4689 | fi |
| 4690 | |
| 4691 | |
| 4692 | if test -z "$BUILD_CXX"; then |
| 4693 | # Extract the first word of "g++", so it can be a program name with args. |
| 4694 | set dummy g++; ac_word=$2 |
| 4695 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4697 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4699 | else |
| 4700 | if test -n "$BUILD_CXX"; then |
| 4701 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4702 | else |
| 4703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4704 | for as_dir in $PATH |
| 4705 | do |
| 4706 | IFS=$as_save_IFS |
| 4707 | test -z "$as_dir" && as_dir=. |
| 4708 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4709 | 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] | 4710 | ac_cv_prog_BUILD_CXX="g++" |
| 4711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4712 | break 2 |
| 4713 | fi |
| 4714 | done |
| 4715 | done |
| 4716 | IFS=$as_save_IFS |
| 4717 | |
| 4718 | fi |
| 4719 | fi |
| 4720 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4721 | if test -n "$BUILD_CXX"; then |
| 4722 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4723 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4724 | else |
| 4725 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4726 | echo "${ECHO_T}no" >&6; } |
| 4727 | fi |
| 4728 | |
| 4729 | |
| 4730 | if test -z "$BUILD_CXX"; then |
| 4731 | # Extract the first word of "c++", so it can be a program name with args. |
| 4732 | set dummy c++; ac_word=$2 |
| 4733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4735 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4737 | else |
| 4738 | if test -n "$BUILD_CXX"; then |
| 4739 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4740 | else |
| 4741 | ac_prog_rejected=no |
| 4742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4743 | for as_dir in $PATH |
| 4744 | do |
| 4745 | IFS=$as_save_IFS |
| 4746 | test -z "$as_dir" && as_dir=. |
| 4747 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4748 | 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] | 4749 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4750 | ac_prog_rejected=yes |
| 4751 | continue |
| 4752 | fi |
| 4753 | ac_cv_prog_BUILD_CXX="c++" |
| 4754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4755 | break 2 |
| 4756 | fi |
| 4757 | done |
| 4758 | done |
| 4759 | IFS=$as_save_IFS |
| 4760 | |
| 4761 | if test $ac_prog_rejected = yes; then |
| 4762 | # We found a bogon in the path, so make sure we never use it. |
| 4763 | set dummy $ac_cv_prog_BUILD_CXX |
| 4764 | shift |
| 4765 | if test $# != 0; then |
| 4766 | # We chose a different compiler from the bogus one. |
| 4767 | # However, it has the same basename, so the bogon will be chosen |
| 4768 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4769 | shift |
| 4770 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4771 | fi |
| 4772 | fi |
| 4773 | fi |
| 4774 | fi |
| 4775 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4776 | if test -n "$BUILD_CXX"; then |
| 4777 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4778 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4779 | else |
| 4780 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4781 | echo "${ECHO_T}no" >&6; } |
| 4782 | fi |
| 4783 | |
| 4784 | |
| 4785 | fi |
| 4786 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4787 | else |
| 4788 | LLVM_CROSS_COMPILING=0 |
| 4789 | |
| 4790 | fi |
| 4791 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4792 | 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] | 4793 | cvsbuild="yes" |
| 4794 | optimize="no" |
| 4795 | CVSBUILD=CVSBUILD=1 |
| 4796 | |
| 4797 | else |
| 4798 | cvsbuild="no" |
| 4799 | optimize="yes" |
| 4800 | fi |
| 4801 | |
| 4802 | |
| 4803 | # Check whether --enable-optimized was given. |
| 4804 | if test "${enable_optimized+set}" = set; then |
| 4805 | enableval=$enable_optimized; |
| 4806 | else |
| 4807 | enableval=$optimize |
| 4808 | fi |
| 4809 | |
| 4810 | if test ${enableval} = "no" ; then |
| 4811 | ENABLE_OPTIMIZED= |
| 4812 | |
| 4813 | else |
| 4814 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4815 | |
| 4816 | fi |
| 4817 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4818 | # Check whether --enable-profiling was given. |
| 4819 | if test "${enable_profiling+set}" = set; then |
| 4820 | enableval=$enable_profiling; |
| 4821 | else |
| 4822 | enableval="no" |
| 4823 | fi |
| 4824 | |
| 4825 | if test ${enableval} = "no" ; then |
| 4826 | ENABLE_PROFILING= |
| 4827 | |
| 4828 | else |
| 4829 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4830 | |
| 4831 | fi |
| 4832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4833 | # Check whether --enable-assertions was given. |
| 4834 | if test "${enable_assertions+set}" = set; then |
| 4835 | enableval=$enable_assertions; |
| 4836 | else |
| 4837 | enableval="yes" |
| 4838 | fi |
| 4839 | |
| 4840 | if test ${enableval} = "yes" ; then |
| 4841 | DISABLE_ASSERTIONS= |
| 4842 | |
| 4843 | else |
| 4844 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4845 | |
| 4846 | fi |
| 4847 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4848 | # Check whether --enable-expensive-checks was given. |
| 4849 | if test "${enable_expensive_checks+set}" = set; then |
| 4850 | enableval=$enable_expensive_checks; |
| 4851 | else |
| 4852 | enableval="no" |
| 4853 | fi |
| 4854 | |
| 4855 | if test ${enableval} = "yes" ; then |
| 4856 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4857 | |
| 4858 | EXPENSIVE_CHECKS=yes |
| 4859 | |
| 4860 | else |
| 4861 | ENABLE_EXPENSIVE_CHECKS= |
| 4862 | |
| 4863 | EXPENSIVE_CHECKS=no |
| 4864 | |
| 4865 | fi |
| 4866 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4867 | # Check whether --enable-debug-runtime was given. |
| 4868 | if test "${enable_debug_runtime+set}" = set; then |
| 4869 | enableval=$enable_debug_runtime; |
| 4870 | else |
| 4871 | enableval=no |
| 4872 | fi |
| 4873 | |
| 4874 | if test ${enableval} = "no" ; then |
| 4875 | DEBUG_RUNTIME= |
| 4876 | |
| 4877 | else |
| 4878 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4879 | |
| 4880 | fi |
| 4881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4882 | # Check whether --enable-jit was given. |
| 4883 | if test "${enable_jit+set}" = set; then |
| 4884 | enableval=$enable_jit; |
| 4885 | else |
| 4886 | enableval=default |
| 4887 | fi |
| 4888 | |
| 4889 | if test ${enableval} = "no" |
| 4890 | then |
| 4891 | JIT= |
| 4892 | |
| 4893 | else |
| 4894 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4895 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4896 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4897 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4898 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4899 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4900 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4901 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4902 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4903 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4904 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4905 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4906 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4907 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4908 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4909 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4910 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4911 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4912 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4913 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4914 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4915 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4916 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4917 | Blackfin) TARGET_HAS_JIT=0 |
| 4918 | ;; |
| 4919 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4920 | ;; |
| 4921 | esac |
| 4922 | fi |
| 4923 | |
| 4924 | # Check whether --enable-doxygen was given. |
| 4925 | if test "${enable_doxygen+set}" = set; then |
| 4926 | enableval=$enable_doxygen; |
| 4927 | else |
| 4928 | enableval=default |
| 4929 | fi |
| 4930 | |
| 4931 | case "$enableval" in |
| 4932 | yes) ENABLE_DOXYGEN=1 |
| 4933 | ;; |
| 4934 | no) ENABLE_DOXYGEN=0 |
| 4935 | ;; |
| 4936 | default) ENABLE_DOXYGEN=0 |
| 4937 | ;; |
| 4938 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4939 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4940 | { (exit 1); exit 1; }; } ;; |
| 4941 | esac |
| 4942 | |
| 4943 | # Check whether --enable-threads was given. |
| 4944 | if test "${enable_threads+set}" = set; then |
| 4945 | enableval=$enable_threads; |
| 4946 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4947 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4948 | fi |
| 4949 | |
| 4950 | case "$enableval" in |
| 4951 | yes) ENABLE_THREADS=1 |
| 4952 | ;; |
| 4953 | no) ENABLE_THREADS=0 |
| 4954 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4955 | default) ENABLE_THREADS=1 |
| 4956 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4957 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4958 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4959 | { (exit 1); exit 1; }; } ;; |
| 4960 | esac |
| 4961 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4962 | cat >>confdefs.h <<_ACEOF |
| 4963 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4964 | _ACEOF |
| 4965 | |
| 4966 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4967 | # Check whether --enable-pic was given. |
| 4968 | if test "${enable_pic+set}" = set; then |
| 4969 | enableval=$enable_pic; |
| 4970 | else |
| 4971 | enableval=default |
| 4972 | fi |
| 4973 | |
| 4974 | case "$enableval" in |
| 4975 | yes) ENABLE_PIC=1 |
| 4976 | ;; |
| 4977 | no) ENABLE_PIC=0 |
| 4978 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4979 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4980 | ;; |
| 4981 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4982 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4983 | { (exit 1); exit 1; }; } ;; |
| 4984 | esac |
| 4985 | |
| 4986 | cat >>confdefs.h <<_ACEOF |
| 4987 | #define ENABLE_PIC $ENABLE_PIC |
| 4988 | _ACEOF |
| 4989 | |
| 4990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4991 | TARGETS_TO_BUILD="" |
| 4992 | # Check whether --enable-targets was given. |
| 4993 | if test "${enable_targets+set}" = set; then |
| 4994 | enableval=$enable_targets; |
| 4995 | else |
| 4996 | enableval=all |
| 4997 | fi |
| 4998 | |
| 4999 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 5000 | 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] | 5001 | host-only) |
| 5002 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5003 | x86) TARGETS_TO_BUILD="X86" ;; |
| 5004 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 5005 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 5006 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 5007 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 5008 | ARM) TARGETS_TO_BUILD="ARM" ;; |
| 5009 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5010 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5011 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
| 5012 | XCore) TARGETS_TO_BUILD="XCore" ;; |
| 5013 | MSP430) TARGETS_TO_BUILD="MSP430" ;; |
| 5014 | SystemZ) TARGETS_TO_BUILD="SystemZ" ;; |
| 5015 | Blackfin) TARGETS_TO_BUILD="Blackfin" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5016 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5017 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5018 | { (exit 1); exit 1; }; } ;; |
| 5019 | esac |
| 5020 | ;; |
| 5021 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5022 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5023 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5024 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5025 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5026 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5027 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5028 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5029 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5030 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5031 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 5032 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5033 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5034 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5035 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5036 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 5037 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 5038 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5039 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5040 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5041 | { (exit 1); exit 1; }; } ;; |
| 5042 | esac |
| 5043 | done |
| 5044 | ;; |
| 5045 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5046 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5047 | |
| 5048 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5049 | # Determine whether we are building LLVM support for the native architecture. |
| 5050 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5051 | for a_target in $TARGETS_TO_BUILD; do |
| 5052 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5053 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5054 | |
| 5055 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5056 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5057 | _ACEOF |
| 5058 | |
| 5059 | fi |
| 5060 | done |
| 5061 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5062 | # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5063 | # Targets.def, AsmPrinters.def, and AsmParsers.def. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5064 | LLVM_ENUM_TARGETS="" |
| 5065 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5066 | LLVM_ENUM_ASM_PARSERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5067 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5068 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5069 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5070 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5071 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5072 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5073 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5074 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5075 | done |
| 5076 | |
| 5077 | |
| 5078 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5079 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5080 | # Check whether --enable-cbe-printf-a was given. |
| 5081 | if test "${enable_cbe_printf_a+set}" = set; then |
| 5082 | enableval=$enable_cbe_printf_a; |
| 5083 | else |
| 5084 | enableval=default |
| 5085 | fi |
| 5086 | |
| 5087 | case "$enableval" in |
| 5088 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5089 | ;; |
| 5090 | no) ENABLE_CBE_PRINTF_A=0 |
| 5091 | ;; |
| 5092 | default) ENABLE_CBE_PRINTF_A=1 |
| 5093 | ;; |
| 5094 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5095 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5096 | { (exit 1); exit 1; }; } ;; |
| 5097 | esac |
| 5098 | |
| 5099 | cat >>confdefs.h <<_ACEOF |
| 5100 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5101 | _ACEOF |
| 5102 | |
| 5103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5104 | |
| 5105 | # Check whether --with-llvmgccdir was given. |
| 5106 | if test "${with_llvmgccdir+set}" = set; then |
| 5107 | withval=$with_llvmgccdir; |
| 5108 | else |
| 5109 | withval=default |
| 5110 | fi |
| 5111 | |
| 5112 | case "$withval" in |
| 5113 | default) WITH_LLVMGCCDIR=default ;; |
| 5114 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 5115 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5116 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5117 | { (exit 1); exit 1; }; } ;; |
| 5118 | esac |
| 5119 | |
| 5120 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5121 | # Check whether --with-llvmgcc was given. |
| 5122 | if test "${with_llvmgcc+set}" = set; then |
| 5123 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5124 | WITH_LLVMGCCDIR="" |
| 5125 | fi |
| 5126 | |
| 5127 | |
| 5128 | |
| 5129 | # Check whether --with-llvmgxx was given. |
| 5130 | if test "${with_llvmgxx+set}" = set; then |
| 5131 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5132 | WITH_LLVMGCCDIR="" |
| 5133 | fi |
| 5134 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5135 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5136 | if test -n "$LLVMGCC"; then |
| 5137 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5138 | fi |
| 5139 | |
| 5140 | if test -n "$LLVMGXX"; then |
| 5141 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5142 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5143 | |
| 5144 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 5145 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5146 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5147 | { (exit 1); exit 1; }; }; |
| 5148 | fi |
| 5149 | |
| 5150 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 5151 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5152 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5153 | { (exit 1); exit 1; }; }; |
| 5154 | fi |
| 5155 | |
| 5156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5157 | # Check whether --with-extra-options was given. |
| 5158 | if test "${with_extra_options+set}" = set; then |
| 5159 | withval=$with_extra_options; |
| 5160 | else |
| 5161 | withval=default |
| 5162 | fi |
| 5163 | |
| 5164 | case "$withval" in |
| 5165 | default) EXTRA_OPTIONS= ;; |
| 5166 | *) EXTRA_OPTIONS=$withval ;; |
| 5167 | esac |
| 5168 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5169 | |
| 5170 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5171 | # Check whether --enable-bindings was given. |
| 5172 | if test "${enable_bindings+set}" = set; then |
| 5173 | enableval=$enable_bindings; |
| 5174 | else |
| 5175 | enableval=default |
| 5176 | fi |
| 5177 | |
| 5178 | BINDINGS_TO_BUILD="" |
| 5179 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5180 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5181 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5182 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5183 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5184 | case "$a_binding" in |
| 5185 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5186 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5187 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5188 | { (exit 1); exit 1; }; } ;; |
| 5189 | esac |
| 5190 | done |
| 5191 | ;; |
| 5192 | esac |
| 5193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5194 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5195 | # Check whether --with-ocaml-libdir was given. |
| 5196 | if test "${with_ocaml_libdir+set}" = set; then |
| 5197 | withval=$with_ocaml_libdir; |
| 5198 | else |
| 5199 | withval=auto |
| 5200 | fi |
| 5201 | |
| 5202 | case "$withval" in |
| 5203 | auto) with_ocaml_libdir="$withval" ;; |
| 5204 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5205 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5206 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5207 | { (exit 1); exit 1; }; } ;; |
| 5208 | esac |
| 5209 | |
| 5210 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5211 | # Check whether --with-binutils-include was given. |
| 5212 | if test "${with_binutils_include+set}" = set; then |
| 5213 | withval=$with_binutils_include; |
| 5214 | else |
| 5215 | withval=default |
| 5216 | fi |
| 5217 | |
| 5218 | case "$withval" in |
| 5219 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5220 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5221 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5222 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5223 | { (exit 1); exit 1; }; } ;; |
| 5224 | esac |
| 5225 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5226 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5227 | |
| 5228 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5229 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5230 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5231 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5232 | { (exit 1); exit 1; }; }; |
| 5233 | fi |
| 5234 | fi |
| 5235 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5236 | # Check whether --enable-libffi was given. |
| 5237 | if test "${enable_libffi+set}" = set; then |
| 5238 | enableval=$enable_libffi; |
| 5239 | else |
| 5240 | enableval=yes |
| 5241 | fi |
| 5242 | |
| 5243 | case "$enableval" in |
| 5244 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5245 | no) llvm_cv_enable_libffi="no" ;; |
| 5246 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
| 5247 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5248 | { (exit 1); exit 1; }; } ;; |
| 5249 | esac |
| 5250 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5251 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5252 | llvmc_dynamic="yes" |
| 5253 | else |
| 5254 | llvmc_dynamic="no" |
| 5255 | fi |
| 5256 | |
| 5257 | # Check whether --enable-llvmc-dynamic was given. |
| 5258 | if test "${enable_llvmc_dynamic+set}" = set; then |
| 5259 | enableval=$enable_llvmc_dynamic; |
| 5260 | else |
| 5261 | enableval=$llvmc_dynamic |
| 5262 | fi |
| 5263 | |
| 5264 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5265 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5266 | |
| 5267 | else |
| 5268 | ENABLE_LLVMC_DYNAMIC= |
| 5269 | |
| 5270 | fi |
| 5271 | |
| 5272 | # Check whether --enable-llvmc-dynamic-plugins was given. |
| 5273 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
| 5274 | enableval=$enable_llvmc_dynamic_plugins; |
| 5275 | else |
| 5276 | enableval=yes |
| 5277 | fi |
| 5278 | |
| 5279 | if test ${enableval} = "yes" ; then |
| 5280 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5281 | |
| 5282 | else |
| 5283 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5284 | |
| 5285 | fi |
| 5286 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5288 | ac_ext=c |
| 5289 | ac_cpp='$CPP $CPPFLAGS' |
| 5290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5293 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5294 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5295 | # On Suns, sometimes $CPP names a directory. |
| 5296 | if test -n "$CPP" && test -d "$CPP"; then |
| 5297 | CPP= |
| 5298 | fi |
| 5299 | if test -z "$CPP"; then |
| 5300 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5302 | else |
| 5303 | # Double quotes because CPP needs to be expanded |
| 5304 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5305 | do |
| 5306 | ac_preproc_ok=false |
| 5307 | for ac_c_preproc_warn_flag in '' yes |
| 5308 | do |
| 5309 | # Use a header file that comes with gcc, so configuring glibc |
| 5310 | # with a fresh cross-compiler works. |
| 5311 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5312 | # <limits.h> exists even on freestanding compilers. |
| 5313 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5314 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5315 | cat >conftest.$ac_ext <<_ACEOF |
| 5316 | /* confdefs.h. */ |
| 5317 | _ACEOF |
| 5318 | cat confdefs.h >>conftest.$ac_ext |
| 5319 | cat >>conftest.$ac_ext <<_ACEOF |
| 5320 | /* end confdefs.h. */ |
| 5321 | #ifdef __STDC__ |
| 5322 | # include <limits.h> |
| 5323 | #else |
| 5324 | # include <assert.h> |
| 5325 | #endif |
| 5326 | Syntax error |
| 5327 | _ACEOF |
| 5328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5329 | case "(($ac_try" in |
| 5330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5331 | *) ac_try_echo=$ac_try;; |
| 5332 | esac |
| 5333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5335 | ac_status=$? |
| 5336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5337 | rm -f conftest.er1 |
| 5338 | cat conftest.err >&5 |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5340 | (exit $ac_status); } >/dev/null; then |
| 5341 | if test -s conftest.err; then |
| 5342 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5344 | else |
| 5345 | ac_cpp_err= |
| 5346 | fi |
| 5347 | else |
| 5348 | ac_cpp_err=yes |
| 5349 | fi |
| 5350 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5351 | : |
| 5352 | else |
| 5353 | echo "$as_me: failed program was:" >&5 |
| 5354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5355 | |
| 5356 | # Broken: fails on valid input. |
| 5357 | continue |
| 5358 | fi |
| 5359 | |
| 5360 | rm -f conftest.err conftest.$ac_ext |
| 5361 | |
| 5362 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5363 | # can be detected and how. |
| 5364 | cat >conftest.$ac_ext <<_ACEOF |
| 5365 | /* confdefs.h. */ |
| 5366 | _ACEOF |
| 5367 | cat confdefs.h >>conftest.$ac_ext |
| 5368 | cat >>conftest.$ac_ext <<_ACEOF |
| 5369 | /* end confdefs.h. */ |
| 5370 | #include <ac_nonexistent.h> |
| 5371 | _ACEOF |
| 5372 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5373 | case "(($ac_try" in |
| 5374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5375 | *) ac_try_echo=$ac_try;; |
| 5376 | esac |
| 5377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5378 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5379 | ac_status=$? |
| 5380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5381 | rm -f conftest.er1 |
| 5382 | cat conftest.err >&5 |
| 5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5384 | (exit $ac_status); } >/dev/null; then |
| 5385 | if test -s conftest.err; then |
| 5386 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5387 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5388 | else |
| 5389 | ac_cpp_err= |
| 5390 | fi |
| 5391 | else |
| 5392 | ac_cpp_err=yes |
| 5393 | fi |
| 5394 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5395 | # Broken: success on invalid input. |
| 5396 | continue |
| 5397 | else |
| 5398 | echo "$as_me: failed program was:" >&5 |
| 5399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5400 | |
| 5401 | # Passes both tests. |
| 5402 | ac_preproc_ok=: |
| 5403 | break |
| 5404 | fi |
| 5405 | |
| 5406 | rm -f conftest.err conftest.$ac_ext |
| 5407 | |
| 5408 | done |
| 5409 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5410 | rm -f conftest.err conftest.$ac_ext |
| 5411 | if $ac_preproc_ok; then |
| 5412 | break |
| 5413 | fi |
| 5414 | |
| 5415 | done |
| 5416 | ac_cv_prog_CPP=$CPP |
| 5417 | |
| 5418 | fi |
| 5419 | CPP=$ac_cv_prog_CPP |
| 5420 | else |
| 5421 | ac_cv_prog_CPP=$CPP |
| 5422 | fi |
| 5423 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5424 | echo "${ECHO_T}$CPP" >&6; } |
| 5425 | ac_preproc_ok=false |
| 5426 | for ac_c_preproc_warn_flag in '' yes |
| 5427 | do |
| 5428 | # Use a header file that comes with gcc, so configuring glibc |
| 5429 | # with a fresh cross-compiler works. |
| 5430 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5431 | # <limits.h> exists even on freestanding compilers. |
| 5432 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5433 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5434 | cat >conftest.$ac_ext <<_ACEOF |
| 5435 | /* confdefs.h. */ |
| 5436 | _ACEOF |
| 5437 | cat confdefs.h >>conftest.$ac_ext |
| 5438 | cat >>conftest.$ac_ext <<_ACEOF |
| 5439 | /* end confdefs.h. */ |
| 5440 | #ifdef __STDC__ |
| 5441 | # include <limits.h> |
| 5442 | #else |
| 5443 | # include <assert.h> |
| 5444 | #endif |
| 5445 | Syntax error |
| 5446 | _ACEOF |
| 5447 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5448 | case "(($ac_try" in |
| 5449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5450 | *) ac_try_echo=$ac_try;; |
| 5451 | esac |
| 5452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5453 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5454 | ac_status=$? |
| 5455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5456 | rm -f conftest.er1 |
| 5457 | cat conftest.err >&5 |
| 5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5459 | (exit $ac_status); } >/dev/null; then |
| 5460 | if test -s conftest.err; then |
| 5461 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5463 | else |
| 5464 | ac_cpp_err= |
| 5465 | fi |
| 5466 | else |
| 5467 | ac_cpp_err=yes |
| 5468 | fi |
| 5469 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5470 | : |
| 5471 | else |
| 5472 | echo "$as_me: failed program was:" >&5 |
| 5473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5474 | |
| 5475 | # Broken: fails on valid input. |
| 5476 | continue |
| 5477 | fi |
| 5478 | |
| 5479 | rm -f conftest.err conftest.$ac_ext |
| 5480 | |
| 5481 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5482 | # can be detected and how. |
| 5483 | cat >conftest.$ac_ext <<_ACEOF |
| 5484 | /* confdefs.h. */ |
| 5485 | _ACEOF |
| 5486 | cat confdefs.h >>conftest.$ac_ext |
| 5487 | cat >>conftest.$ac_ext <<_ACEOF |
| 5488 | /* end confdefs.h. */ |
| 5489 | #include <ac_nonexistent.h> |
| 5490 | _ACEOF |
| 5491 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5492 | case "(($ac_try" in |
| 5493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5494 | *) ac_try_echo=$ac_try;; |
| 5495 | esac |
| 5496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5497 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5498 | ac_status=$? |
| 5499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5500 | rm -f conftest.er1 |
| 5501 | cat conftest.err >&5 |
| 5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5503 | (exit $ac_status); } >/dev/null; then |
| 5504 | if test -s conftest.err; then |
| 5505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5507 | else |
| 5508 | ac_cpp_err= |
| 5509 | fi |
| 5510 | else |
| 5511 | ac_cpp_err=yes |
| 5512 | fi |
| 5513 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5514 | # Broken: success on invalid input. |
| 5515 | continue |
| 5516 | else |
| 5517 | echo "$as_me: failed program was:" >&5 |
| 5518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5519 | |
| 5520 | # Passes both tests. |
| 5521 | ac_preproc_ok=: |
| 5522 | break |
| 5523 | fi |
| 5524 | |
| 5525 | rm -f conftest.err conftest.$ac_ext |
| 5526 | |
| 5527 | done |
| 5528 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5529 | rm -f conftest.err conftest.$ac_ext |
| 5530 | if $ac_preproc_ok; then |
| 5531 | : |
| 5532 | else |
| 5533 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5534 | See \`config.log' for more details." >&5 |
| 5535 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5536 | See \`config.log' for more details." >&2;} |
| 5537 | { (exit 1); exit 1; }; } |
| 5538 | fi |
| 5539 | |
| 5540 | ac_ext=c |
| 5541 | ac_cpp='$CPP $CPPFLAGS' |
| 5542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5545 | |
| 5546 | ac_ext=c |
| 5547 | ac_cpp='$CPP $CPPFLAGS' |
| 5548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5551 | if test -n "$ac_tool_prefix"; then |
| 5552 | for ac_prog in gcc |
| 5553 | do |
| 5554 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5555 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5558 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5560 | else |
| 5561 | if test -n "$CC"; then |
| 5562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5563 | else |
| 5564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5565 | for as_dir in $PATH |
| 5566 | do |
| 5567 | IFS=$as_save_IFS |
| 5568 | test -z "$as_dir" && as_dir=. |
| 5569 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5570 | 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] | 5571 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5573 | break 2 |
| 5574 | fi |
| 5575 | done |
| 5576 | done |
| 5577 | IFS=$as_save_IFS |
| 5578 | |
| 5579 | fi |
| 5580 | fi |
| 5581 | CC=$ac_cv_prog_CC |
| 5582 | if test -n "$CC"; then |
| 5583 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5584 | echo "${ECHO_T}$CC" >&6; } |
| 5585 | else |
| 5586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5587 | echo "${ECHO_T}no" >&6; } |
| 5588 | fi |
| 5589 | |
| 5590 | |
| 5591 | test -n "$CC" && break |
| 5592 | done |
| 5593 | fi |
| 5594 | if test -z "$CC"; then |
| 5595 | ac_ct_CC=$CC |
| 5596 | for ac_prog in gcc |
| 5597 | do |
| 5598 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5599 | set dummy $ac_prog; ac_word=$2 |
| 5600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5602 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5604 | else |
| 5605 | if test -n "$ac_ct_CC"; then |
| 5606 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5607 | else |
| 5608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5609 | for as_dir in $PATH |
| 5610 | do |
| 5611 | IFS=$as_save_IFS |
| 5612 | test -z "$as_dir" && as_dir=. |
| 5613 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5614 | 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] | 5615 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5617 | break 2 |
| 5618 | fi |
| 5619 | done |
| 5620 | done |
| 5621 | IFS=$as_save_IFS |
| 5622 | |
| 5623 | fi |
| 5624 | fi |
| 5625 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5626 | if test -n "$ac_ct_CC"; then |
| 5627 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5628 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5629 | else |
| 5630 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5631 | echo "${ECHO_T}no" >&6; } |
| 5632 | fi |
| 5633 | |
| 5634 | |
| 5635 | test -n "$ac_ct_CC" && break |
| 5636 | done |
| 5637 | |
| 5638 | if test "x$ac_ct_CC" = x; then |
| 5639 | CC="" |
| 5640 | else |
| 5641 | case $cross_compiling:$ac_tool_warned in |
| 5642 | yes:) |
| 5643 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5644 | whose name does not start with the host triplet. If you think this |
| 5645 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5646 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5647 | whose name does not start with the host triplet. If you think this |
| 5648 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5649 | ac_tool_warned=yes ;; |
| 5650 | esac |
| 5651 | CC=$ac_ct_CC |
| 5652 | fi |
| 5653 | fi |
| 5654 | |
| 5655 | |
| 5656 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5657 | See \`config.log' for more details." >&5 |
| 5658 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5659 | See \`config.log' for more details." >&2;} |
| 5660 | { (exit 1); exit 1; }; } |
| 5661 | |
| 5662 | # Provide some information about the compiler. |
| 5663 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5664 | ac_compiler=`set X $ac_compile; echo $2` |
| 5665 | { (ac_try="$ac_compiler --version >&5" |
| 5666 | case "(($ac_try" in |
| 5667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5668 | *) ac_try_echo=$ac_try;; |
| 5669 | esac |
| 5670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5671 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5672 | ac_status=$? |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5674 | (exit $ac_status); } |
| 5675 | { (ac_try="$ac_compiler -v >&5" |
| 5676 | case "(($ac_try" in |
| 5677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5678 | *) ac_try_echo=$ac_try;; |
| 5679 | esac |
| 5680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5681 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5682 | ac_status=$? |
| 5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5684 | (exit $ac_status); } |
| 5685 | { (ac_try="$ac_compiler -V >&5" |
| 5686 | case "(($ac_try" in |
| 5687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5688 | *) ac_try_echo=$ac_try;; |
| 5689 | esac |
| 5690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5691 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5692 | ac_status=$? |
| 5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5694 | (exit $ac_status); } |
| 5695 | |
| 5696 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5697 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5698 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5700 | else |
| 5701 | cat >conftest.$ac_ext <<_ACEOF |
| 5702 | /* confdefs.h. */ |
| 5703 | _ACEOF |
| 5704 | cat confdefs.h >>conftest.$ac_ext |
| 5705 | cat >>conftest.$ac_ext <<_ACEOF |
| 5706 | /* end confdefs.h. */ |
| 5707 | |
| 5708 | int |
| 5709 | main () |
| 5710 | { |
| 5711 | #ifndef __GNUC__ |
| 5712 | choke me |
| 5713 | #endif |
| 5714 | |
| 5715 | ; |
| 5716 | return 0; |
| 5717 | } |
| 5718 | _ACEOF |
| 5719 | rm -f conftest.$ac_objext |
| 5720 | if { (ac_try="$ac_compile" |
| 5721 | case "(($ac_try" in |
| 5722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5723 | *) ac_try_echo=$ac_try;; |
| 5724 | esac |
| 5725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5726 | (eval "$ac_compile") 2>conftest.er1 |
| 5727 | ac_status=$? |
| 5728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5729 | rm -f conftest.er1 |
| 5730 | cat conftest.err >&5 |
| 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5732 | (exit $ac_status); } && |
| 5733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5734 | { (case "(($ac_try" in |
| 5735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5736 | *) ac_try_echo=$ac_try;; |
| 5737 | esac |
| 5738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5739 | (eval "$ac_try") 2>&5 |
| 5740 | ac_status=$? |
| 5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5742 | (exit $ac_status); }; } && |
| 5743 | { ac_try='test -s conftest.$ac_objext' |
| 5744 | { (case "(($ac_try" in |
| 5745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5746 | *) ac_try_echo=$ac_try;; |
| 5747 | esac |
| 5748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5749 | (eval "$ac_try") 2>&5 |
| 5750 | ac_status=$? |
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5752 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5753 | ac_compiler_gnu=yes |
| 5754 | else |
| 5755 | echo "$as_me: failed program was:" >&5 |
| 5756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5757 | |
| 5758 | ac_compiler_gnu=no |
| 5759 | fi |
| 5760 | |
| 5761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5762 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5763 | |
| 5764 | fi |
| 5765 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5766 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5767 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5768 | ac_test_CFLAGS=${CFLAGS+set} |
| 5769 | ac_save_CFLAGS=$CFLAGS |
| 5770 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5771 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5772 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5774 | else |
| 5775 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5776 | ac_c_werror_flag=yes |
| 5777 | ac_cv_prog_cc_g=no |
| 5778 | CFLAGS="-g" |
| 5779 | cat >conftest.$ac_ext <<_ACEOF |
| 5780 | /* confdefs.h. */ |
| 5781 | _ACEOF |
| 5782 | cat confdefs.h >>conftest.$ac_ext |
| 5783 | cat >>conftest.$ac_ext <<_ACEOF |
| 5784 | /* end confdefs.h. */ |
| 5785 | |
| 5786 | int |
| 5787 | main () |
| 5788 | { |
| 5789 | |
| 5790 | ; |
| 5791 | return 0; |
| 5792 | } |
| 5793 | _ACEOF |
| 5794 | rm -f conftest.$ac_objext |
| 5795 | if { (ac_try="$ac_compile" |
| 5796 | case "(($ac_try" in |
| 5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5798 | *) ac_try_echo=$ac_try;; |
| 5799 | esac |
| 5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5801 | (eval "$ac_compile") 2>conftest.er1 |
| 5802 | ac_status=$? |
| 5803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5804 | rm -f conftest.er1 |
| 5805 | cat conftest.err >&5 |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5807 | (exit $ac_status); } && |
| 5808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5809 | { (case "(($ac_try" in |
| 5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5811 | *) ac_try_echo=$ac_try;; |
| 5812 | esac |
| 5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5814 | (eval "$ac_try") 2>&5 |
| 5815 | ac_status=$? |
| 5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5817 | (exit $ac_status); }; } && |
| 5818 | { ac_try='test -s conftest.$ac_objext' |
| 5819 | { (case "(($ac_try" in |
| 5820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5821 | *) ac_try_echo=$ac_try;; |
| 5822 | esac |
| 5823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5824 | (eval "$ac_try") 2>&5 |
| 5825 | ac_status=$? |
| 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5827 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5828 | ac_cv_prog_cc_g=yes |
| 5829 | else |
| 5830 | echo "$as_me: failed program was:" >&5 |
| 5831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5832 | |
| 5833 | CFLAGS="" |
| 5834 | cat >conftest.$ac_ext <<_ACEOF |
| 5835 | /* confdefs.h. */ |
| 5836 | _ACEOF |
| 5837 | cat confdefs.h >>conftest.$ac_ext |
| 5838 | cat >>conftest.$ac_ext <<_ACEOF |
| 5839 | /* end confdefs.h. */ |
| 5840 | |
| 5841 | int |
| 5842 | main () |
| 5843 | { |
| 5844 | |
| 5845 | ; |
| 5846 | return 0; |
| 5847 | } |
| 5848 | _ACEOF |
| 5849 | rm -f conftest.$ac_objext |
| 5850 | if { (ac_try="$ac_compile" |
| 5851 | case "(($ac_try" in |
| 5852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5853 | *) ac_try_echo=$ac_try;; |
| 5854 | esac |
| 5855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5856 | (eval "$ac_compile") 2>conftest.er1 |
| 5857 | ac_status=$? |
| 5858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5859 | rm -f conftest.er1 |
| 5860 | cat conftest.err >&5 |
| 5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5862 | (exit $ac_status); } && |
| 5863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5864 | { (case "(($ac_try" in |
| 5865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5866 | *) ac_try_echo=$ac_try;; |
| 5867 | esac |
| 5868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5869 | (eval "$ac_try") 2>&5 |
| 5870 | ac_status=$? |
| 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5872 | (exit $ac_status); }; } && |
| 5873 | { ac_try='test -s conftest.$ac_objext' |
| 5874 | { (case "(($ac_try" in |
| 5875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5876 | *) ac_try_echo=$ac_try;; |
| 5877 | esac |
| 5878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5879 | (eval "$ac_try") 2>&5 |
| 5880 | ac_status=$? |
| 5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5882 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5883 | : |
| 5884 | else |
| 5885 | echo "$as_me: failed program was:" >&5 |
| 5886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5887 | |
| 5888 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5889 | CFLAGS="-g" |
| 5890 | cat >conftest.$ac_ext <<_ACEOF |
| 5891 | /* confdefs.h. */ |
| 5892 | _ACEOF |
| 5893 | cat confdefs.h >>conftest.$ac_ext |
| 5894 | cat >>conftest.$ac_ext <<_ACEOF |
| 5895 | /* end confdefs.h. */ |
| 5896 | |
| 5897 | int |
| 5898 | main () |
| 5899 | { |
| 5900 | |
| 5901 | ; |
| 5902 | return 0; |
| 5903 | } |
| 5904 | _ACEOF |
| 5905 | rm -f conftest.$ac_objext |
| 5906 | if { (ac_try="$ac_compile" |
| 5907 | case "(($ac_try" in |
| 5908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5909 | *) ac_try_echo=$ac_try;; |
| 5910 | esac |
| 5911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5912 | (eval "$ac_compile") 2>conftest.er1 |
| 5913 | ac_status=$? |
| 5914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5915 | rm -f conftest.er1 |
| 5916 | cat conftest.err >&5 |
| 5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5918 | (exit $ac_status); } && |
| 5919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5920 | { (case "(($ac_try" in |
| 5921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5922 | *) ac_try_echo=$ac_try;; |
| 5923 | esac |
| 5924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5925 | (eval "$ac_try") 2>&5 |
| 5926 | ac_status=$? |
| 5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5928 | (exit $ac_status); }; } && |
| 5929 | { ac_try='test -s conftest.$ac_objext' |
| 5930 | { (case "(($ac_try" in |
| 5931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5932 | *) ac_try_echo=$ac_try;; |
| 5933 | esac |
| 5934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5935 | (eval "$ac_try") 2>&5 |
| 5936 | ac_status=$? |
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5938 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5939 | ac_cv_prog_cc_g=yes |
| 5940 | else |
| 5941 | echo "$as_me: failed program was:" >&5 |
| 5942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5943 | |
| 5944 | |
| 5945 | fi |
| 5946 | |
| 5947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5948 | fi |
| 5949 | |
| 5950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5951 | fi |
| 5952 | |
| 5953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5954 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5955 | fi |
| 5956 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5957 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5958 | if test "$ac_test_CFLAGS" = set; then |
| 5959 | CFLAGS=$ac_save_CFLAGS |
| 5960 | elif test $ac_cv_prog_cc_g = yes; then |
| 5961 | if test "$GCC" = yes; then |
| 5962 | CFLAGS="-g -O2" |
| 5963 | else |
| 5964 | CFLAGS="-g" |
| 5965 | fi |
| 5966 | else |
| 5967 | if test "$GCC" = yes; then |
| 5968 | CFLAGS="-O2" |
| 5969 | else |
| 5970 | CFLAGS= |
| 5971 | fi |
| 5972 | fi |
| 5973 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5974 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5975 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5977 | else |
| 5978 | ac_cv_prog_cc_c89=no |
| 5979 | ac_save_CC=$CC |
| 5980 | cat >conftest.$ac_ext <<_ACEOF |
| 5981 | /* confdefs.h. */ |
| 5982 | _ACEOF |
| 5983 | cat confdefs.h >>conftest.$ac_ext |
| 5984 | cat >>conftest.$ac_ext <<_ACEOF |
| 5985 | /* end confdefs.h. */ |
| 5986 | #include <stdarg.h> |
| 5987 | #include <stdio.h> |
| 5988 | #include <sys/types.h> |
| 5989 | #include <sys/stat.h> |
| 5990 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5991 | struct buf { int x; }; |
| 5992 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5993 | static char *e (p, i) |
| 5994 | char **p; |
| 5995 | int i; |
| 5996 | { |
| 5997 | return p[i]; |
| 5998 | } |
| 5999 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6000 | { |
| 6001 | char *s; |
| 6002 | va_list v; |
| 6003 | va_start (v,p); |
| 6004 | s = g (p, va_arg (v,int)); |
| 6005 | va_end (v); |
| 6006 | return s; |
| 6007 | } |
| 6008 | |
| 6009 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6010 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6011 | These don't provoke an error unfortunately, instead are silently treated |
| 6012 | as 'x'. The following induces an error, until -std is added to get |
| 6013 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6014 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6015 | that's true only with -std. */ |
| 6016 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6017 | |
| 6018 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6019 | inside strings and character constants. */ |
| 6020 | #define FOO(x) 'x' |
| 6021 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6022 | |
| 6023 | int test (int i, double x); |
| 6024 | struct s1 {int (*f) (int a);}; |
| 6025 | struct s2 {int (*f) (double a);}; |
| 6026 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6027 | int argc; |
| 6028 | char **argv; |
| 6029 | int |
| 6030 | main () |
| 6031 | { |
| 6032 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6033 | ; |
| 6034 | return 0; |
| 6035 | } |
| 6036 | _ACEOF |
| 6037 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6038 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6039 | do |
| 6040 | CC="$ac_save_CC $ac_arg" |
| 6041 | rm -f conftest.$ac_objext |
| 6042 | if { (ac_try="$ac_compile" |
| 6043 | case "(($ac_try" in |
| 6044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6045 | *) ac_try_echo=$ac_try;; |
| 6046 | esac |
| 6047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6048 | (eval "$ac_compile") 2>conftest.er1 |
| 6049 | ac_status=$? |
| 6050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6051 | rm -f conftest.er1 |
| 6052 | cat conftest.err >&5 |
| 6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6054 | (exit $ac_status); } && |
| 6055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6056 | { (case "(($ac_try" in |
| 6057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6058 | *) ac_try_echo=$ac_try;; |
| 6059 | esac |
| 6060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6061 | (eval "$ac_try") 2>&5 |
| 6062 | ac_status=$? |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); }; } && |
| 6065 | { ac_try='test -s conftest.$ac_objext' |
| 6066 | { (case "(($ac_try" in |
| 6067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6068 | *) ac_try_echo=$ac_try;; |
| 6069 | esac |
| 6070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6071 | (eval "$ac_try") 2>&5 |
| 6072 | ac_status=$? |
| 6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6074 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6075 | ac_cv_prog_cc_c89=$ac_arg |
| 6076 | else |
| 6077 | echo "$as_me: failed program was:" >&5 |
| 6078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6079 | |
| 6080 | |
| 6081 | fi |
| 6082 | |
| 6083 | rm -f core conftest.err conftest.$ac_objext |
| 6084 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6085 | done |
| 6086 | rm -f conftest.$ac_ext |
| 6087 | CC=$ac_save_CC |
| 6088 | |
| 6089 | fi |
| 6090 | # AC_CACHE_VAL |
| 6091 | case "x$ac_cv_prog_cc_c89" in |
| 6092 | x) |
| 6093 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6094 | echo "${ECHO_T}none needed" >&6; } ;; |
| 6095 | xno) |
| 6096 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6097 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 6098 | *) |
| 6099 | CC="$CC $ac_cv_prog_cc_c89" |
| 6100 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6101 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 6102 | esac |
| 6103 | |
| 6104 | |
| 6105 | ac_ext=c |
| 6106 | ac_cpp='$CPP $CPPFLAGS' |
| 6107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6110 | |
| 6111 | ac_ext=cpp |
| 6112 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6113 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6114 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6115 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6116 | if test -z "$CXX"; then |
| 6117 | if test -n "$CCC"; then |
| 6118 | CXX=$CCC |
| 6119 | else |
| 6120 | if test -n "$ac_tool_prefix"; then |
| 6121 | for ac_prog in g++ |
| 6122 | do |
| 6123 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6124 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6125 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6127 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6129 | else |
| 6130 | if test -n "$CXX"; then |
| 6131 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6132 | else |
| 6133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6134 | for as_dir in $PATH |
| 6135 | do |
| 6136 | IFS=$as_save_IFS |
| 6137 | test -z "$as_dir" && as_dir=. |
| 6138 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6139 | 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] | 6140 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6142 | break 2 |
| 6143 | fi |
| 6144 | done |
| 6145 | done |
| 6146 | IFS=$as_save_IFS |
| 6147 | |
| 6148 | fi |
| 6149 | fi |
| 6150 | CXX=$ac_cv_prog_CXX |
| 6151 | if test -n "$CXX"; then |
| 6152 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6153 | echo "${ECHO_T}$CXX" >&6; } |
| 6154 | else |
| 6155 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6156 | echo "${ECHO_T}no" >&6; } |
| 6157 | fi |
| 6158 | |
| 6159 | |
| 6160 | test -n "$CXX" && break |
| 6161 | done |
| 6162 | fi |
| 6163 | if test -z "$CXX"; then |
| 6164 | ac_ct_CXX=$CXX |
| 6165 | for ac_prog in g++ |
| 6166 | do |
| 6167 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6168 | set dummy $ac_prog; ac_word=$2 |
| 6169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6171 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6173 | else |
| 6174 | if test -n "$ac_ct_CXX"; then |
| 6175 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6176 | else |
| 6177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6178 | for as_dir in $PATH |
| 6179 | do |
| 6180 | IFS=$as_save_IFS |
| 6181 | test -z "$as_dir" && as_dir=. |
| 6182 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6183 | 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] | 6184 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6186 | break 2 |
| 6187 | fi |
| 6188 | done |
| 6189 | done |
| 6190 | IFS=$as_save_IFS |
| 6191 | |
| 6192 | fi |
| 6193 | fi |
| 6194 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6195 | if test -n "$ac_ct_CXX"; then |
| 6196 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6197 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 6198 | else |
| 6199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6200 | echo "${ECHO_T}no" >&6; } |
| 6201 | fi |
| 6202 | |
| 6203 | |
| 6204 | test -n "$ac_ct_CXX" && break |
| 6205 | done |
| 6206 | |
| 6207 | if test "x$ac_ct_CXX" = x; then |
| 6208 | CXX="g++" |
| 6209 | else |
| 6210 | case $cross_compiling:$ac_tool_warned in |
| 6211 | yes:) |
| 6212 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6213 | whose name does not start with the host triplet. If you think this |
| 6214 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6215 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6216 | whose name does not start with the host triplet. If you think this |
| 6217 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6218 | ac_tool_warned=yes ;; |
| 6219 | esac |
| 6220 | CXX=$ac_ct_CXX |
| 6221 | fi |
| 6222 | fi |
| 6223 | |
| 6224 | fi |
| 6225 | fi |
| 6226 | # Provide some information about the compiler. |
| 6227 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6228 | ac_compiler=`set X $ac_compile; echo $2` |
| 6229 | { (ac_try="$ac_compiler --version >&5" |
| 6230 | case "(($ac_try" in |
| 6231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6232 | *) ac_try_echo=$ac_try;; |
| 6233 | esac |
| 6234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6235 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6236 | ac_status=$? |
| 6237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6238 | (exit $ac_status); } |
| 6239 | { (ac_try="$ac_compiler -v >&5" |
| 6240 | case "(($ac_try" in |
| 6241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6242 | *) ac_try_echo=$ac_try;; |
| 6243 | esac |
| 6244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6245 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6246 | ac_status=$? |
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6248 | (exit $ac_status); } |
| 6249 | { (ac_try="$ac_compiler -V >&5" |
| 6250 | case "(($ac_try" in |
| 6251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6252 | *) ac_try_echo=$ac_try;; |
| 6253 | esac |
| 6254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6255 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6256 | ac_status=$? |
| 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6258 | (exit $ac_status); } |
| 6259 | |
| 6260 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6261 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6262 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6264 | else |
| 6265 | cat >conftest.$ac_ext <<_ACEOF |
| 6266 | /* confdefs.h. */ |
| 6267 | _ACEOF |
| 6268 | cat confdefs.h >>conftest.$ac_ext |
| 6269 | cat >>conftest.$ac_ext <<_ACEOF |
| 6270 | /* end confdefs.h. */ |
| 6271 | |
| 6272 | int |
| 6273 | main () |
| 6274 | { |
| 6275 | #ifndef __GNUC__ |
| 6276 | choke me |
| 6277 | #endif |
| 6278 | |
| 6279 | ; |
| 6280 | return 0; |
| 6281 | } |
| 6282 | _ACEOF |
| 6283 | rm -f conftest.$ac_objext |
| 6284 | if { (ac_try="$ac_compile" |
| 6285 | case "(($ac_try" in |
| 6286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6287 | *) ac_try_echo=$ac_try;; |
| 6288 | esac |
| 6289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6290 | (eval "$ac_compile") 2>conftest.er1 |
| 6291 | ac_status=$? |
| 6292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6293 | rm -f conftest.er1 |
| 6294 | cat conftest.err >&5 |
| 6295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6296 | (exit $ac_status); } && |
| 6297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6298 | { (case "(($ac_try" in |
| 6299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6300 | *) ac_try_echo=$ac_try;; |
| 6301 | esac |
| 6302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6303 | (eval "$ac_try") 2>&5 |
| 6304 | ac_status=$? |
| 6305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6306 | (exit $ac_status); }; } && |
| 6307 | { ac_try='test -s conftest.$ac_objext' |
| 6308 | { (case "(($ac_try" in |
| 6309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6310 | *) ac_try_echo=$ac_try;; |
| 6311 | esac |
| 6312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6313 | (eval "$ac_try") 2>&5 |
| 6314 | ac_status=$? |
| 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6316 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6317 | ac_compiler_gnu=yes |
| 6318 | else |
| 6319 | echo "$as_me: failed program was:" >&5 |
| 6320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6321 | |
| 6322 | ac_compiler_gnu=no |
| 6323 | fi |
| 6324 | |
| 6325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6326 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6327 | |
| 6328 | fi |
| 6329 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6330 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6331 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6332 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6333 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6334 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6335 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6336 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6338 | else |
| 6339 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6340 | ac_cxx_werror_flag=yes |
| 6341 | ac_cv_prog_cxx_g=no |
| 6342 | CXXFLAGS="-g" |
| 6343 | cat >conftest.$ac_ext <<_ACEOF |
| 6344 | /* confdefs.h. */ |
| 6345 | _ACEOF |
| 6346 | cat confdefs.h >>conftest.$ac_ext |
| 6347 | cat >>conftest.$ac_ext <<_ACEOF |
| 6348 | /* end confdefs.h. */ |
| 6349 | |
| 6350 | int |
| 6351 | main () |
| 6352 | { |
| 6353 | |
| 6354 | ; |
| 6355 | return 0; |
| 6356 | } |
| 6357 | _ACEOF |
| 6358 | rm -f conftest.$ac_objext |
| 6359 | if { (ac_try="$ac_compile" |
| 6360 | case "(($ac_try" in |
| 6361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6362 | *) ac_try_echo=$ac_try;; |
| 6363 | esac |
| 6364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6365 | (eval "$ac_compile") 2>conftest.er1 |
| 6366 | ac_status=$? |
| 6367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6368 | rm -f conftest.er1 |
| 6369 | cat conftest.err >&5 |
| 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6371 | (exit $ac_status); } && |
| 6372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6373 | { (case "(($ac_try" in |
| 6374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6375 | *) ac_try_echo=$ac_try;; |
| 6376 | esac |
| 6377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6378 | (eval "$ac_try") 2>&5 |
| 6379 | ac_status=$? |
| 6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6381 | (exit $ac_status); }; } && |
| 6382 | { ac_try='test -s conftest.$ac_objext' |
| 6383 | { (case "(($ac_try" in |
| 6384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6385 | *) ac_try_echo=$ac_try;; |
| 6386 | esac |
| 6387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6388 | (eval "$ac_try") 2>&5 |
| 6389 | ac_status=$? |
| 6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6391 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6392 | ac_cv_prog_cxx_g=yes |
| 6393 | else |
| 6394 | echo "$as_me: failed program was:" >&5 |
| 6395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6396 | |
| 6397 | CXXFLAGS="" |
| 6398 | cat >conftest.$ac_ext <<_ACEOF |
| 6399 | /* confdefs.h. */ |
| 6400 | _ACEOF |
| 6401 | cat confdefs.h >>conftest.$ac_ext |
| 6402 | cat >>conftest.$ac_ext <<_ACEOF |
| 6403 | /* end confdefs.h. */ |
| 6404 | |
| 6405 | int |
| 6406 | main () |
| 6407 | { |
| 6408 | |
| 6409 | ; |
| 6410 | return 0; |
| 6411 | } |
| 6412 | _ACEOF |
| 6413 | rm -f conftest.$ac_objext |
| 6414 | if { (ac_try="$ac_compile" |
| 6415 | case "(($ac_try" in |
| 6416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6417 | *) ac_try_echo=$ac_try;; |
| 6418 | esac |
| 6419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6420 | (eval "$ac_compile") 2>conftest.er1 |
| 6421 | ac_status=$? |
| 6422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6423 | rm -f conftest.er1 |
| 6424 | cat conftest.err >&5 |
| 6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6426 | (exit $ac_status); } && |
| 6427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6428 | { (case "(($ac_try" in |
| 6429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6430 | *) ac_try_echo=$ac_try;; |
| 6431 | esac |
| 6432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6433 | (eval "$ac_try") 2>&5 |
| 6434 | ac_status=$? |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); }; } && |
| 6437 | { ac_try='test -s conftest.$ac_objext' |
| 6438 | { (case "(($ac_try" in |
| 6439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6440 | *) ac_try_echo=$ac_try;; |
| 6441 | esac |
| 6442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6443 | (eval "$ac_try") 2>&5 |
| 6444 | ac_status=$? |
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6447 | : |
| 6448 | else |
| 6449 | echo "$as_me: failed program was:" >&5 |
| 6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6451 | |
| 6452 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6453 | CXXFLAGS="-g" |
| 6454 | cat >conftest.$ac_ext <<_ACEOF |
| 6455 | /* confdefs.h. */ |
| 6456 | _ACEOF |
| 6457 | cat confdefs.h >>conftest.$ac_ext |
| 6458 | cat >>conftest.$ac_ext <<_ACEOF |
| 6459 | /* end confdefs.h. */ |
| 6460 | |
| 6461 | int |
| 6462 | main () |
| 6463 | { |
| 6464 | |
| 6465 | ; |
| 6466 | return 0; |
| 6467 | } |
| 6468 | _ACEOF |
| 6469 | rm -f conftest.$ac_objext |
| 6470 | if { (ac_try="$ac_compile" |
| 6471 | case "(($ac_try" in |
| 6472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6473 | *) ac_try_echo=$ac_try;; |
| 6474 | esac |
| 6475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6476 | (eval "$ac_compile") 2>conftest.er1 |
| 6477 | ac_status=$? |
| 6478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6479 | rm -f conftest.er1 |
| 6480 | cat conftest.err >&5 |
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6482 | (exit $ac_status); } && |
| 6483 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6484 | { (case "(($ac_try" in |
| 6485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6486 | *) ac_try_echo=$ac_try;; |
| 6487 | esac |
| 6488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6489 | (eval "$ac_try") 2>&5 |
| 6490 | ac_status=$? |
| 6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6492 | (exit $ac_status); }; } && |
| 6493 | { ac_try='test -s conftest.$ac_objext' |
| 6494 | { (case "(($ac_try" in |
| 6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6496 | *) ac_try_echo=$ac_try;; |
| 6497 | esac |
| 6498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6499 | (eval "$ac_try") 2>&5 |
| 6500 | ac_status=$? |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6502 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6503 | ac_cv_prog_cxx_g=yes |
| 6504 | else |
| 6505 | echo "$as_me: failed program was:" >&5 |
| 6506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6507 | |
| 6508 | |
| 6509 | fi |
| 6510 | |
| 6511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6512 | fi |
| 6513 | |
| 6514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6515 | fi |
| 6516 | |
| 6517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6518 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6519 | fi |
| 6520 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6521 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6522 | if test "$ac_test_CXXFLAGS" = set; then |
| 6523 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6524 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6525 | if test "$GXX" = yes; then |
| 6526 | CXXFLAGS="-g -O2" |
| 6527 | else |
| 6528 | CXXFLAGS="-g" |
| 6529 | fi |
| 6530 | else |
| 6531 | if test "$GXX" = yes; then |
| 6532 | CXXFLAGS="-O2" |
| 6533 | else |
| 6534 | CXXFLAGS= |
| 6535 | fi |
| 6536 | fi |
| 6537 | ac_ext=c |
| 6538 | ac_cpp='$CPP $CPPFLAGS' |
| 6539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6543 | |
| 6544 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6545 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6546 | if test "${lt_cv_path_NM+set}" = set; then |
| 6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6548 | else |
| 6549 | if test -n "$NM"; then |
| 6550 | # Let the user override the test. |
| 6551 | lt_cv_path_NM="$NM" |
| 6552 | else |
| 6553 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6554 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6555 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6556 | fi |
| 6557 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6558 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6559 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6560 | IFS="$lt_save_ifs" |
| 6561 | test -z "$ac_dir" && ac_dir=. |
| 6562 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6563 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6564 | # Check to see if the nm accepts a BSD-compat flag. |
| 6565 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6566 | # nm: unknown option "B" ignored |
| 6567 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6568 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6569 | */dev/null* | *'Invalid file or object type'*) |
| 6570 | lt_cv_path_NM="$tmp_nm -B" |
| 6571 | break |
| 6572 | ;; |
| 6573 | *) |
| 6574 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6575 | */dev/null*) |
| 6576 | lt_cv_path_NM="$tmp_nm -p" |
| 6577 | break |
| 6578 | ;; |
| 6579 | *) |
| 6580 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6581 | continue # so that we can try to find one that supports BSD flags |
| 6582 | ;; |
| 6583 | esac |
| 6584 | ;; |
| 6585 | esac |
| 6586 | fi |
| 6587 | done |
| 6588 | IFS="$lt_save_ifs" |
| 6589 | done |
| 6590 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6591 | fi |
| 6592 | fi |
| 6593 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6594 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6595 | NM="$lt_cv_path_NM" |
| 6596 | |
| 6597 | |
| 6598 | |
| 6599 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6600 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6601 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6603 | else |
| 6604 | llvm_cv_gnu_make_command='' |
| 6605 | for a in "$MAKE" make gmake gnumake ; do |
| 6606 | if test -z "$a" ; then continue ; fi ; |
| 6607 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6608 | then |
| 6609 | llvm_cv_gnu_make_command=$a ; |
| 6610 | break; |
| 6611 | fi |
| 6612 | done |
| 6613 | fi |
| 6614 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6615 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6616 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6617 | ifGNUmake='' ; |
| 6618 | else |
| 6619 | ifGNUmake='#' ; |
| 6620 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6621 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6622 | fi |
| 6623 | |
| 6624 | |
| 6625 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6626 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6627 | LN_S=$as_ln_s |
| 6628 | if test "$LN_S" = "ln -s"; then |
| 6629 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6630 | echo "${ECHO_T}yes" >&6; } |
| 6631 | else |
| 6632 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6633 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6634 | fi |
| 6635 | |
| 6636 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6637 | set dummy cmp; ac_word=$2 |
| 6638 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6640 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6642 | else |
| 6643 | case $CMP in |
| 6644 | [\\/]* | ?:[\\/]*) |
| 6645 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6646 | ;; |
| 6647 | *) |
| 6648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6649 | for as_dir in $PATH |
| 6650 | do |
| 6651 | IFS=$as_save_IFS |
| 6652 | test -z "$as_dir" && as_dir=. |
| 6653 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6654 | 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] | 6655 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6657 | break 2 |
| 6658 | fi |
| 6659 | done |
| 6660 | done |
| 6661 | IFS=$as_save_IFS |
| 6662 | |
| 6663 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6664 | ;; |
| 6665 | esac |
| 6666 | fi |
| 6667 | CMP=$ac_cv_path_CMP |
| 6668 | if test -n "$CMP"; then |
| 6669 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6670 | echo "${ECHO_T}$CMP" >&6; } |
| 6671 | else |
| 6672 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6673 | echo "${ECHO_T}no" >&6; } |
| 6674 | fi |
| 6675 | |
| 6676 | |
| 6677 | # Extract the first word of "cp", so it can be a program name with args. |
| 6678 | set dummy cp; ac_word=$2 |
| 6679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6681 | if test "${ac_cv_path_CP+set}" = set; then |
| 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6683 | else |
| 6684 | case $CP in |
| 6685 | [\\/]* | ?:[\\/]*) |
| 6686 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6687 | ;; |
| 6688 | *) |
| 6689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6690 | for as_dir in $PATH |
| 6691 | do |
| 6692 | IFS=$as_save_IFS |
| 6693 | test -z "$as_dir" && as_dir=. |
| 6694 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6695 | 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] | 6696 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6698 | break 2 |
| 6699 | fi |
| 6700 | done |
| 6701 | done |
| 6702 | IFS=$as_save_IFS |
| 6703 | |
| 6704 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6705 | ;; |
| 6706 | esac |
| 6707 | fi |
| 6708 | CP=$ac_cv_path_CP |
| 6709 | if test -n "$CP"; then |
| 6710 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6711 | echo "${ECHO_T}$CP" >&6; } |
| 6712 | else |
| 6713 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6714 | echo "${ECHO_T}no" >&6; } |
| 6715 | fi |
| 6716 | |
| 6717 | |
| 6718 | # Extract the first word of "date", so it can be a program name with args. |
| 6719 | set dummy date; ac_word=$2 |
| 6720 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6722 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6724 | else |
| 6725 | case $DATE in |
| 6726 | [\\/]* | ?:[\\/]*) |
| 6727 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6728 | ;; |
| 6729 | *) |
| 6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6731 | for as_dir in $PATH |
| 6732 | do |
| 6733 | IFS=$as_save_IFS |
| 6734 | test -z "$as_dir" && as_dir=. |
| 6735 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6736 | 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] | 6737 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6739 | break 2 |
| 6740 | fi |
| 6741 | done |
| 6742 | done |
| 6743 | IFS=$as_save_IFS |
| 6744 | |
| 6745 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6746 | ;; |
| 6747 | esac |
| 6748 | fi |
| 6749 | DATE=$ac_cv_path_DATE |
| 6750 | if test -n "$DATE"; then |
| 6751 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6752 | echo "${ECHO_T}$DATE" >&6; } |
| 6753 | else |
| 6754 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6755 | echo "${ECHO_T}no" >&6; } |
| 6756 | fi |
| 6757 | |
| 6758 | |
| 6759 | # Extract the first word of "find", so it can be a program name with args. |
| 6760 | set dummy find; ac_word=$2 |
| 6761 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6763 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6765 | else |
| 6766 | case $FIND in |
| 6767 | [\\/]* | ?:[\\/]*) |
| 6768 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6769 | ;; |
| 6770 | *) |
| 6771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6772 | for as_dir in $PATH |
| 6773 | do |
| 6774 | IFS=$as_save_IFS |
| 6775 | test -z "$as_dir" && as_dir=. |
| 6776 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6777 | 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] | 6778 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6780 | break 2 |
| 6781 | fi |
| 6782 | done |
| 6783 | done |
| 6784 | IFS=$as_save_IFS |
| 6785 | |
| 6786 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6787 | ;; |
| 6788 | esac |
| 6789 | fi |
| 6790 | FIND=$ac_cv_path_FIND |
| 6791 | if test -n "$FIND"; then |
| 6792 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6793 | echo "${ECHO_T}$FIND" >&6; } |
| 6794 | else |
| 6795 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6796 | echo "${ECHO_T}no" >&6; } |
| 6797 | fi |
| 6798 | |
| 6799 | |
| 6800 | # Extract the first word of "grep", so it can be a program name with args. |
| 6801 | set dummy grep; ac_word=$2 |
| 6802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6804 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6806 | else |
| 6807 | case $GREP in |
| 6808 | [\\/]* | ?:[\\/]*) |
| 6809 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6810 | ;; |
| 6811 | *) |
| 6812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6813 | for as_dir in $PATH |
| 6814 | do |
| 6815 | IFS=$as_save_IFS |
| 6816 | test -z "$as_dir" && as_dir=. |
| 6817 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6818 | 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] | 6819 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6821 | break 2 |
| 6822 | fi |
| 6823 | done |
| 6824 | done |
| 6825 | IFS=$as_save_IFS |
| 6826 | |
| 6827 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6828 | ;; |
| 6829 | esac |
| 6830 | fi |
| 6831 | GREP=$ac_cv_path_GREP |
| 6832 | if test -n "$GREP"; then |
| 6833 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6834 | echo "${ECHO_T}$GREP" >&6; } |
| 6835 | else |
| 6836 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6837 | echo "${ECHO_T}no" >&6; } |
| 6838 | fi |
| 6839 | |
| 6840 | |
| 6841 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6842 | set dummy mkdir; ac_word=$2 |
| 6843 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6845 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6847 | else |
| 6848 | case $MKDIR in |
| 6849 | [\\/]* | ?:[\\/]*) |
| 6850 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6851 | ;; |
| 6852 | *) |
| 6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6854 | for as_dir in $PATH |
| 6855 | do |
| 6856 | IFS=$as_save_IFS |
| 6857 | test -z "$as_dir" && as_dir=. |
| 6858 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6859 | 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] | 6860 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6862 | break 2 |
| 6863 | fi |
| 6864 | done |
| 6865 | done |
| 6866 | IFS=$as_save_IFS |
| 6867 | |
| 6868 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6869 | ;; |
| 6870 | esac |
| 6871 | fi |
| 6872 | MKDIR=$ac_cv_path_MKDIR |
| 6873 | if test -n "$MKDIR"; then |
| 6874 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6875 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6876 | else |
| 6877 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6878 | echo "${ECHO_T}no" >&6; } |
| 6879 | fi |
| 6880 | |
| 6881 | |
| 6882 | # Extract the first word of "mv", so it can be a program name with args. |
| 6883 | set dummy mv; ac_word=$2 |
| 6884 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6886 | if test "${ac_cv_path_MV+set}" = set; then |
| 6887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6888 | else |
| 6889 | case $MV in |
| 6890 | [\\/]* | ?:[\\/]*) |
| 6891 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6892 | ;; |
| 6893 | *) |
| 6894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6895 | for as_dir in $PATH |
| 6896 | do |
| 6897 | IFS=$as_save_IFS |
| 6898 | test -z "$as_dir" && as_dir=. |
| 6899 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6900 | 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] | 6901 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6903 | break 2 |
| 6904 | fi |
| 6905 | done |
| 6906 | done |
| 6907 | IFS=$as_save_IFS |
| 6908 | |
| 6909 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6910 | ;; |
| 6911 | esac |
| 6912 | fi |
| 6913 | MV=$ac_cv_path_MV |
| 6914 | if test -n "$MV"; then |
| 6915 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6916 | echo "${ECHO_T}$MV" >&6; } |
| 6917 | else |
| 6918 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6919 | echo "${ECHO_T}no" >&6; } |
| 6920 | fi |
| 6921 | |
| 6922 | |
| 6923 | if test -n "$ac_tool_prefix"; then |
| 6924 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6925 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6928 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6930 | else |
| 6931 | if test -n "$RANLIB"; then |
| 6932 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6933 | else |
| 6934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6935 | for as_dir in $PATH |
| 6936 | do |
| 6937 | IFS=$as_save_IFS |
| 6938 | test -z "$as_dir" && as_dir=. |
| 6939 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6940 | 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] | 6941 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6943 | break 2 |
| 6944 | fi |
| 6945 | done |
| 6946 | done |
| 6947 | IFS=$as_save_IFS |
| 6948 | |
| 6949 | fi |
| 6950 | fi |
| 6951 | RANLIB=$ac_cv_prog_RANLIB |
| 6952 | if test -n "$RANLIB"; then |
| 6953 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6954 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6955 | else |
| 6956 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6957 | echo "${ECHO_T}no" >&6; } |
| 6958 | fi |
| 6959 | |
| 6960 | |
| 6961 | fi |
| 6962 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6963 | ac_ct_RANLIB=$RANLIB |
| 6964 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6965 | set dummy ranlib; ac_word=$2 |
| 6966 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6968 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6970 | else |
| 6971 | if test -n "$ac_ct_RANLIB"; then |
| 6972 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6973 | else |
| 6974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6975 | for as_dir in $PATH |
| 6976 | do |
| 6977 | IFS=$as_save_IFS |
| 6978 | test -z "$as_dir" && as_dir=. |
| 6979 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6980 | 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] | 6981 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6983 | break 2 |
| 6984 | fi |
| 6985 | done |
| 6986 | done |
| 6987 | IFS=$as_save_IFS |
| 6988 | |
| 6989 | fi |
| 6990 | fi |
| 6991 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6992 | if test -n "$ac_ct_RANLIB"; then |
| 6993 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6994 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6995 | else |
| 6996 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6997 | echo "${ECHO_T}no" >&6; } |
| 6998 | fi |
| 6999 | |
| 7000 | if test "x$ac_ct_RANLIB" = x; then |
| 7001 | RANLIB=":" |
| 7002 | else |
| 7003 | case $cross_compiling:$ac_tool_warned in |
| 7004 | yes:) |
| 7005 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7006 | whose name does not start with the host triplet. If you think this |
| 7007 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7008 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7009 | whose name does not start with the host triplet. If you think this |
| 7010 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7011 | ac_tool_warned=yes ;; |
| 7012 | esac |
| 7013 | RANLIB=$ac_ct_RANLIB |
| 7014 | fi |
| 7015 | else |
| 7016 | RANLIB="$ac_cv_prog_RANLIB" |
| 7017 | fi |
| 7018 | |
| 7019 | # Extract the first word of "rm", so it can be a program name with args. |
| 7020 | set dummy rm; ac_word=$2 |
| 7021 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7023 | if test "${ac_cv_path_RM+set}" = set; then |
| 7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7025 | else |
| 7026 | case $RM in |
| 7027 | [\\/]* | ?:[\\/]*) |
| 7028 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7029 | ;; |
| 7030 | *) |
| 7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7032 | for as_dir in $PATH |
| 7033 | do |
| 7034 | IFS=$as_save_IFS |
| 7035 | test -z "$as_dir" && as_dir=. |
| 7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7037 | 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] | 7038 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 7039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7040 | break 2 |
| 7041 | fi |
| 7042 | done |
| 7043 | done |
| 7044 | IFS=$as_save_IFS |
| 7045 | |
| 7046 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7047 | ;; |
| 7048 | esac |
| 7049 | fi |
| 7050 | RM=$ac_cv_path_RM |
| 7051 | if test -n "$RM"; then |
| 7052 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7053 | echo "${ECHO_T}$RM" >&6; } |
| 7054 | else |
| 7055 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7056 | echo "${ECHO_T}no" >&6; } |
| 7057 | fi |
| 7058 | |
| 7059 | |
| 7060 | # Extract the first word of "sed", so it can be a program name with args. |
| 7061 | set dummy sed; ac_word=$2 |
| 7062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7064 | if test "${ac_cv_path_SED+set}" = set; then |
| 7065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7066 | else |
| 7067 | case $SED in |
| 7068 | [\\/]* | ?:[\\/]*) |
| 7069 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7070 | ;; |
| 7071 | *) |
| 7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7073 | for as_dir in $PATH |
| 7074 | do |
| 7075 | IFS=$as_save_IFS |
| 7076 | test -z "$as_dir" && as_dir=. |
| 7077 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7078 | 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] | 7079 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7081 | break 2 |
| 7082 | fi |
| 7083 | done |
| 7084 | done |
| 7085 | IFS=$as_save_IFS |
| 7086 | |
| 7087 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7088 | ;; |
| 7089 | esac |
| 7090 | fi |
| 7091 | SED=$ac_cv_path_SED |
| 7092 | if test -n "$SED"; then |
| 7093 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7094 | echo "${ECHO_T}$SED" >&6; } |
| 7095 | else |
| 7096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7097 | echo "${ECHO_T}no" >&6; } |
| 7098 | fi |
| 7099 | |
| 7100 | |
| 7101 | # Extract the first word of "tar", so it can be a program name with args. |
| 7102 | set dummy tar; ac_word=$2 |
| 7103 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7105 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7107 | else |
| 7108 | case $TAR in |
| 7109 | [\\/]* | ?:[\\/]*) |
| 7110 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7111 | ;; |
| 7112 | *) |
| 7113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7114 | for as_dir in $PATH |
| 7115 | do |
| 7116 | IFS=$as_save_IFS |
| 7117 | test -z "$as_dir" && as_dir=. |
| 7118 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7119 | 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] | 7120 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7122 | break 2 |
| 7123 | fi |
| 7124 | done |
| 7125 | done |
| 7126 | IFS=$as_save_IFS |
| 7127 | |
| 7128 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7129 | ;; |
| 7130 | esac |
| 7131 | fi |
| 7132 | TAR=$ac_cv_path_TAR |
| 7133 | if test -n "$TAR"; then |
| 7134 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7135 | echo "${ECHO_T}$TAR" >&6; } |
| 7136 | else |
| 7137 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7138 | echo "${ECHO_T}no" >&6; } |
| 7139 | fi |
| 7140 | |
| 7141 | |
| 7142 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7143 | set dummy pwd; ac_word=$2 |
| 7144 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7146 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7148 | else |
| 7149 | case $BINPWD in |
| 7150 | [\\/]* | ?:[\\/]*) |
| 7151 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7152 | ;; |
| 7153 | *) |
| 7154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7155 | for as_dir in $PATH |
| 7156 | do |
| 7157 | IFS=$as_save_IFS |
| 7158 | test -z "$as_dir" && as_dir=. |
| 7159 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7160 | 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] | 7161 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7162 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7163 | break 2 |
| 7164 | fi |
| 7165 | done |
| 7166 | done |
| 7167 | IFS=$as_save_IFS |
| 7168 | |
| 7169 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7170 | ;; |
| 7171 | esac |
| 7172 | fi |
| 7173 | BINPWD=$ac_cv_path_BINPWD |
| 7174 | if test -n "$BINPWD"; then |
| 7175 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7176 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7177 | else |
| 7178 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7179 | echo "${ECHO_T}no" >&6; } |
| 7180 | fi |
| 7181 | |
| 7182 | |
| 7183 | |
| 7184 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7185 | set dummy Graphviz; ac_word=$2 |
| 7186 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7188 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7190 | else |
| 7191 | case $GRAPHVIZ in |
| 7192 | [\\/]* | ?:[\\/]*) |
| 7193 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7194 | ;; |
| 7195 | *) |
| 7196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7197 | for as_dir in $PATH |
| 7198 | do |
| 7199 | IFS=$as_save_IFS |
| 7200 | test -z "$as_dir" && as_dir=. |
| 7201 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7202 | 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] | 7203 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7205 | break 2 |
| 7206 | fi |
| 7207 | done |
| 7208 | done |
| 7209 | IFS=$as_save_IFS |
| 7210 | |
| 7211 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7212 | ;; |
| 7213 | esac |
| 7214 | fi |
| 7215 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7216 | if test -n "$GRAPHVIZ"; then |
| 7217 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7218 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7219 | else |
| 7220 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7221 | echo "${ECHO_T}no" >&6; } |
| 7222 | fi |
| 7223 | |
| 7224 | |
| 7225 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7226 | |
| 7227 | cat >>confdefs.h <<\_ACEOF |
| 7228 | #define HAVE_GRAPHVIZ 1 |
| 7229 | _ACEOF |
| 7230 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7231 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7232 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7233 | fi |
| 7234 | |
| 7235 | cat >>confdefs.h <<_ACEOF |
| 7236 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7237 | _ACEOF |
| 7238 | |
| 7239 | fi |
| 7240 | # Extract the first word of "dot", so it can be a program name with args. |
| 7241 | set dummy dot; ac_word=$2 |
| 7242 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7244 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7246 | else |
| 7247 | case $DOT in |
| 7248 | [\\/]* | ?:[\\/]*) |
| 7249 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7250 | ;; |
| 7251 | *) |
| 7252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7253 | for as_dir in $PATH |
| 7254 | do |
| 7255 | IFS=$as_save_IFS |
| 7256 | test -z "$as_dir" && as_dir=. |
| 7257 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7258 | 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] | 7259 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7261 | break 2 |
| 7262 | fi |
| 7263 | done |
| 7264 | done |
| 7265 | IFS=$as_save_IFS |
| 7266 | |
| 7267 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7268 | ;; |
| 7269 | esac |
| 7270 | fi |
| 7271 | DOT=$ac_cv_path_DOT |
| 7272 | if test -n "$DOT"; then |
| 7273 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7274 | echo "${ECHO_T}$DOT" >&6; } |
| 7275 | else |
| 7276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7277 | echo "${ECHO_T}no" >&6; } |
| 7278 | fi |
| 7279 | |
| 7280 | |
| 7281 | if test "$DOT" != "echo dot" ; then |
| 7282 | |
| 7283 | cat >>confdefs.h <<\_ACEOF |
| 7284 | #define HAVE_DOT 1 |
| 7285 | _ACEOF |
| 7286 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7287 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7288 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7289 | fi |
| 7290 | |
| 7291 | cat >>confdefs.h <<_ACEOF |
| 7292 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7293 | _ACEOF |
| 7294 | |
| 7295 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7296 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7297 | set dummy fdp; ac_word=$2 |
| 7298 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7300 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7302 | else |
| 7303 | case $FDP in |
| 7304 | [\\/]* | ?:[\\/]*) |
| 7305 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7306 | ;; |
| 7307 | *) |
| 7308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7309 | for as_dir in $PATH |
| 7310 | do |
| 7311 | IFS=$as_save_IFS |
| 7312 | test -z "$as_dir" && as_dir=. |
| 7313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7315 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
| 7316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7317 | break 2 |
| 7318 | fi |
| 7319 | done |
| 7320 | done |
| 7321 | IFS=$as_save_IFS |
| 7322 | |
| 7323 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7324 | ;; |
| 7325 | esac |
| 7326 | fi |
| 7327 | FDP=$ac_cv_path_FDP |
| 7328 | if test -n "$FDP"; then |
| 7329 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7330 | echo "${ECHO_T}$FDP" >&6; } |
| 7331 | else |
| 7332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7333 | echo "${ECHO_T}no" >&6; } |
| 7334 | fi |
| 7335 | |
| 7336 | |
| 7337 | if test "$FDP" != "echo fdp" ; then |
| 7338 | |
| 7339 | cat >>confdefs.h <<\_ACEOF |
| 7340 | #define HAVE_FDP 1 |
| 7341 | _ACEOF |
| 7342 | |
| 7343 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7344 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7345 | fi |
| 7346 | |
| 7347 | cat >>confdefs.h <<_ACEOF |
| 7348 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7349 | _ACEOF |
| 7350 | |
| 7351 | fi |
| 7352 | # Extract the first word of "neato", so it can be a program name with args. |
| 7353 | set dummy neato; ac_word=$2 |
| 7354 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7356 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7358 | else |
| 7359 | case $NEATO in |
| 7360 | [\\/]* | ?:[\\/]*) |
| 7361 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7362 | ;; |
| 7363 | *) |
| 7364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7365 | for as_dir in $PATH |
| 7366 | do |
| 7367 | IFS=$as_save_IFS |
| 7368 | test -z "$as_dir" && as_dir=. |
| 7369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7371 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
| 7372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7373 | break 2 |
| 7374 | fi |
| 7375 | done |
| 7376 | done |
| 7377 | IFS=$as_save_IFS |
| 7378 | |
| 7379 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7380 | ;; |
| 7381 | esac |
| 7382 | fi |
| 7383 | NEATO=$ac_cv_path_NEATO |
| 7384 | if test -n "$NEATO"; then |
| 7385 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7386 | echo "${ECHO_T}$NEATO" >&6; } |
| 7387 | else |
| 7388 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7389 | echo "${ECHO_T}no" >&6; } |
| 7390 | fi |
| 7391 | |
| 7392 | |
| 7393 | if test "$NEATO" != "echo neato" ; then |
| 7394 | |
| 7395 | cat >>confdefs.h <<\_ACEOF |
| 7396 | #define HAVE_NEATO 1 |
| 7397 | _ACEOF |
| 7398 | |
| 7399 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7400 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7401 | fi |
| 7402 | |
| 7403 | cat >>confdefs.h <<_ACEOF |
| 7404 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7405 | _ACEOF |
| 7406 | |
| 7407 | fi |
| 7408 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7409 | set dummy twopi; ac_word=$2 |
| 7410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7412 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7414 | else |
| 7415 | case $TWOPI in |
| 7416 | [\\/]* | ?:[\\/]*) |
| 7417 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7418 | ;; |
| 7419 | *) |
| 7420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7421 | for as_dir in $PATH |
| 7422 | do |
| 7423 | IFS=$as_save_IFS |
| 7424 | test -z "$as_dir" && as_dir=. |
| 7425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7427 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
| 7428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7429 | break 2 |
| 7430 | fi |
| 7431 | done |
| 7432 | done |
| 7433 | IFS=$as_save_IFS |
| 7434 | |
| 7435 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7436 | ;; |
| 7437 | esac |
| 7438 | fi |
| 7439 | TWOPI=$ac_cv_path_TWOPI |
| 7440 | if test -n "$TWOPI"; then |
| 7441 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7442 | echo "${ECHO_T}$TWOPI" >&6; } |
| 7443 | else |
| 7444 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7445 | echo "${ECHO_T}no" >&6; } |
| 7446 | fi |
| 7447 | |
| 7448 | |
| 7449 | if test "$TWOPI" != "echo twopi" ; then |
| 7450 | |
| 7451 | cat >>confdefs.h <<\_ACEOF |
| 7452 | #define HAVE_TWOPI 1 |
| 7453 | _ACEOF |
| 7454 | |
| 7455 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7456 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7457 | fi |
| 7458 | |
| 7459 | cat >>confdefs.h <<_ACEOF |
| 7460 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7461 | _ACEOF |
| 7462 | |
| 7463 | fi |
| 7464 | # Extract the first word of "circo", so it can be a program name with args. |
| 7465 | set dummy circo; ac_word=$2 |
| 7466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7468 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7470 | else |
| 7471 | case $CIRCO in |
| 7472 | [\\/]* | ?:[\\/]*) |
| 7473 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7474 | ;; |
| 7475 | *) |
| 7476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7477 | for as_dir in $PATH |
| 7478 | do |
| 7479 | IFS=$as_save_IFS |
| 7480 | test -z "$as_dir" && as_dir=. |
| 7481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7483 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
| 7484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7485 | break 2 |
| 7486 | fi |
| 7487 | done |
| 7488 | done |
| 7489 | IFS=$as_save_IFS |
| 7490 | |
| 7491 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7492 | ;; |
| 7493 | esac |
| 7494 | fi |
| 7495 | CIRCO=$ac_cv_path_CIRCO |
| 7496 | if test -n "$CIRCO"; then |
| 7497 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7498 | echo "${ECHO_T}$CIRCO" >&6; } |
| 7499 | else |
| 7500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7501 | echo "${ECHO_T}no" >&6; } |
| 7502 | fi |
| 7503 | |
| 7504 | |
| 7505 | if test "$CIRCO" != "echo circo" ; then |
| 7506 | |
| 7507 | cat >>confdefs.h <<\_ACEOF |
| 7508 | #define HAVE_CIRCO 1 |
| 7509 | _ACEOF |
| 7510 | |
| 7511 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7512 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7513 | fi |
| 7514 | |
| 7515 | cat >>confdefs.h <<_ACEOF |
| 7516 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7517 | _ACEOF |
| 7518 | |
| 7519 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7520 | for ac_prog in gv gsview32 |
| 7521 | do |
| 7522 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7523 | set dummy $ac_prog; ac_word=$2 |
| 7524 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7526 | if test "${ac_cv_path_GV+set}" = set; then |
| 7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7528 | else |
| 7529 | case $GV in |
| 7530 | [\\/]* | ?:[\\/]*) |
| 7531 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7532 | ;; |
| 7533 | *) |
| 7534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7535 | for as_dir in $PATH |
| 7536 | do |
| 7537 | IFS=$as_save_IFS |
| 7538 | test -z "$as_dir" && as_dir=. |
| 7539 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7540 | 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] | 7541 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7543 | break 2 |
| 7544 | fi |
| 7545 | done |
| 7546 | done |
| 7547 | IFS=$as_save_IFS |
| 7548 | |
| 7549 | ;; |
| 7550 | esac |
| 7551 | fi |
| 7552 | GV=$ac_cv_path_GV |
| 7553 | if test -n "$GV"; then |
| 7554 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7555 | echo "${ECHO_T}$GV" >&6; } |
| 7556 | else |
| 7557 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7558 | echo "${ECHO_T}no" >&6; } |
| 7559 | fi |
| 7560 | |
| 7561 | |
| 7562 | test -n "$GV" && break |
| 7563 | done |
| 7564 | test -n "$GV" || GV="echo gv" |
| 7565 | |
| 7566 | if test "$GV" != "echo gv" ; then |
| 7567 | |
| 7568 | cat >>confdefs.h <<\_ACEOF |
| 7569 | #define HAVE_GV 1 |
| 7570 | _ACEOF |
| 7571 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7572 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7573 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7574 | fi |
| 7575 | |
| 7576 | cat >>confdefs.h <<_ACEOF |
| 7577 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7578 | _ACEOF |
| 7579 | |
| 7580 | fi |
| 7581 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7582 | set dummy dotty; ac_word=$2 |
| 7583 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7585 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7587 | else |
| 7588 | case $DOTTY in |
| 7589 | [\\/]* | ?:[\\/]*) |
| 7590 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7591 | ;; |
| 7592 | *) |
| 7593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7594 | for as_dir in $PATH |
| 7595 | do |
| 7596 | IFS=$as_save_IFS |
| 7597 | test -z "$as_dir" && as_dir=. |
| 7598 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7599 | 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] | 7600 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7602 | break 2 |
| 7603 | fi |
| 7604 | done |
| 7605 | done |
| 7606 | IFS=$as_save_IFS |
| 7607 | |
| 7608 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7609 | ;; |
| 7610 | esac |
| 7611 | fi |
| 7612 | DOTTY=$ac_cv_path_DOTTY |
| 7613 | if test -n "$DOTTY"; then |
| 7614 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7615 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7616 | else |
| 7617 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7618 | echo "${ECHO_T}no" >&6; } |
| 7619 | fi |
| 7620 | |
| 7621 | |
| 7622 | if test "$DOTTY" != "echo dotty" ; then |
| 7623 | |
| 7624 | cat >>confdefs.h <<\_ACEOF |
| 7625 | #define HAVE_DOTTY 1 |
| 7626 | _ACEOF |
| 7627 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7628 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7629 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7630 | fi |
| 7631 | |
| 7632 | cat >>confdefs.h <<_ACEOF |
| 7633 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7634 | _ACEOF |
| 7635 | |
| 7636 | fi |
| 7637 | |
| 7638 | |
| 7639 | # Extract the first word of "perl", so it can be a program name with args. |
| 7640 | set dummy perl; ac_word=$2 |
| 7641 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7643 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7645 | else |
| 7646 | case $PERL in |
| 7647 | [\\/]* | ?:[\\/]*) |
| 7648 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7649 | ;; |
| 7650 | *) |
| 7651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7652 | for as_dir in $PATH |
| 7653 | do |
| 7654 | IFS=$as_save_IFS |
| 7655 | test -z "$as_dir" && as_dir=. |
| 7656 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7657 | 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] | 7658 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7660 | break 2 |
| 7661 | fi |
| 7662 | done |
| 7663 | done |
| 7664 | IFS=$as_save_IFS |
| 7665 | |
| 7666 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7667 | ;; |
| 7668 | esac |
| 7669 | fi |
| 7670 | PERL=$ac_cv_path_PERL |
| 7671 | if test -n "$PERL"; then |
| 7672 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7673 | echo "${ECHO_T}$PERL" >&6; } |
| 7674 | else |
| 7675 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7676 | echo "${ECHO_T}no" >&6; } |
| 7677 | fi |
| 7678 | |
| 7679 | |
| 7680 | if test "$PERL" != "none"; then |
| 7681 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7682 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7683 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7684 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7685 | echo "${ECHO_T}yes" >&6; } |
| 7686 | else |
| 7687 | PERL=none |
| 7688 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7689 | echo "${ECHO_T}not found" >&6; } |
| 7690 | fi |
| 7691 | fi |
| 7692 | |
| 7693 | |
| 7694 | if test x"$PERL" = xnone; then |
| 7695 | HAVE_PERL=0 |
| 7696 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7697 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7698 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7699 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7700 | else |
| 7701 | HAVE_PERL=1 |
| 7702 | |
| 7703 | fi |
| 7704 | |
| 7705 | # Find a good install program. We prefer a C program (faster), |
| 7706 | # so one script is as good as another. But avoid the broken or |
| 7707 | # incompatible versions: |
| 7708 | # SysV /etc/install, /usr/sbin/install |
| 7709 | # SunOS /usr/etc/install |
| 7710 | # IRIX /sbin/install |
| 7711 | # AIX /bin/install |
| 7712 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7713 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7714 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7715 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7716 | # OS/2's system install, which has a completely different semantic |
| 7717 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7718 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7719 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7720 | if test -z "$INSTALL"; then |
| 7721 | if test "${ac_cv_path_install+set}" = set; then |
| 7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7723 | else |
| 7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7725 | for as_dir in $PATH |
| 7726 | do |
| 7727 | IFS=$as_save_IFS |
| 7728 | test -z "$as_dir" && as_dir=. |
| 7729 | # Account for people who put trailing slashes in PATH elements. |
| 7730 | case $as_dir/ in |
| 7731 | ./ | .// | /cC/* | \ |
| 7732 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7733 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7734 | /usr/ucb/* ) ;; |
| 7735 | *) |
| 7736 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7737 | # Don't use installbsd from OSF since it installs stuff as root |
| 7738 | # by default. |
| 7739 | for ac_prog in ginstall scoinst install; do |
| 7740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7741 | 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] | 7742 | if test $ac_prog = install && |
| 7743 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7744 | # AIX install. It has an incompatible calling convention. |
| 7745 | : |
| 7746 | elif test $ac_prog = install && |
| 7747 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7748 | # program-specific install script used by HP pwplus--don't use. |
| 7749 | : |
| 7750 | else |
| 7751 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7752 | break 3 |
| 7753 | fi |
| 7754 | fi |
| 7755 | done |
| 7756 | done |
| 7757 | ;; |
| 7758 | esac |
| 7759 | done |
| 7760 | IFS=$as_save_IFS |
| 7761 | |
| 7762 | |
| 7763 | fi |
| 7764 | if test "${ac_cv_path_install+set}" = set; then |
| 7765 | INSTALL=$ac_cv_path_install |
| 7766 | else |
| 7767 | # As a last resort, use the slow shell script. Don't cache a |
| 7768 | # value for INSTALL within a source directory, because that will |
| 7769 | # break other packages using the cache if that directory is |
| 7770 | # removed, or if the value is a relative name. |
| 7771 | INSTALL=$ac_install_sh |
| 7772 | fi |
| 7773 | fi |
| 7774 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7775 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7776 | |
| 7777 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7778 | # It thinks the first close brace ends the variable substitution. |
| 7779 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7780 | |
| 7781 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7782 | |
| 7783 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7784 | |
| 7785 | |
| 7786 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7787 | set dummy bzip2; ac_word=$2 |
| 7788 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7790 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7792 | else |
| 7793 | case $BZIP2 in |
| 7794 | [\\/]* | ?:[\\/]*) |
| 7795 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7796 | ;; |
| 7797 | *) |
| 7798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7799 | for as_dir in $PATH |
| 7800 | do |
| 7801 | IFS=$as_save_IFS |
| 7802 | test -z "$as_dir" && as_dir=. |
| 7803 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7804 | 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] | 7805 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7807 | break 2 |
| 7808 | fi |
| 7809 | done |
| 7810 | done |
| 7811 | IFS=$as_save_IFS |
| 7812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7813 | ;; |
| 7814 | esac |
| 7815 | fi |
| 7816 | BZIP2=$ac_cv_path_BZIP2 |
| 7817 | if test -n "$BZIP2"; then |
| 7818 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7819 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7820 | else |
| 7821 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7822 | echo "${ECHO_T}no" >&6; } |
| 7823 | fi |
| 7824 | |
| 7825 | |
| 7826 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7827 | set dummy doxygen; ac_word=$2 |
| 7828 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7830 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7832 | else |
| 7833 | case $DOXYGEN in |
| 7834 | [\\/]* | ?:[\\/]*) |
| 7835 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7836 | ;; |
| 7837 | *) |
| 7838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7839 | for as_dir in $PATH |
| 7840 | do |
| 7841 | IFS=$as_save_IFS |
| 7842 | test -z "$as_dir" && as_dir=. |
| 7843 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7844 | 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] | 7845 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7847 | break 2 |
| 7848 | fi |
| 7849 | done |
| 7850 | done |
| 7851 | IFS=$as_save_IFS |
| 7852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7853 | ;; |
| 7854 | esac |
| 7855 | fi |
| 7856 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7857 | if test -n "$DOXYGEN"; then |
| 7858 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7859 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7860 | else |
| 7861 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7862 | echo "${ECHO_T}no" >&6; } |
| 7863 | fi |
| 7864 | |
| 7865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7866 | # Extract the first word of "groff", so it can be a program name with args. |
| 7867 | set dummy groff; ac_word=$2 |
| 7868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7870 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7872 | else |
| 7873 | case $GROFF in |
| 7874 | [\\/]* | ?:[\\/]*) |
| 7875 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7876 | ;; |
| 7877 | *) |
| 7878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7879 | for as_dir in $PATH |
| 7880 | do |
| 7881 | IFS=$as_save_IFS |
| 7882 | test -z "$as_dir" && as_dir=. |
| 7883 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7884 | 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] | 7885 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7887 | break 2 |
| 7888 | fi |
| 7889 | done |
| 7890 | done |
| 7891 | IFS=$as_save_IFS |
| 7892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7893 | ;; |
| 7894 | esac |
| 7895 | fi |
| 7896 | GROFF=$ac_cv_path_GROFF |
| 7897 | if test -n "$GROFF"; then |
| 7898 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7899 | echo "${ECHO_T}$GROFF" >&6; } |
| 7900 | else |
| 7901 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7902 | echo "${ECHO_T}no" >&6; } |
| 7903 | fi |
| 7904 | |
| 7905 | |
| 7906 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7907 | set dummy gzip; ac_word=$2 |
| 7908 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7910 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7912 | else |
| 7913 | case $GZIP in |
| 7914 | [\\/]* | ?:[\\/]*) |
| 7915 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7916 | ;; |
| 7917 | *) |
| 7918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7919 | for as_dir in $PATH |
| 7920 | do |
| 7921 | IFS=$as_save_IFS |
| 7922 | test -z "$as_dir" && as_dir=. |
| 7923 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7924 | 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] | 7925 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7927 | break 2 |
| 7928 | fi |
| 7929 | done |
| 7930 | done |
| 7931 | IFS=$as_save_IFS |
| 7932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7933 | ;; |
| 7934 | esac |
| 7935 | fi |
| 7936 | GZIP=$ac_cv_path_GZIP |
| 7937 | if test -n "$GZIP"; then |
| 7938 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7939 | echo "${ECHO_T}$GZIP" >&6; } |
| 7940 | else |
| 7941 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7942 | echo "${ECHO_T}no" >&6; } |
| 7943 | fi |
| 7944 | |
| 7945 | |
| 7946 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7947 | set dummy pod2html; ac_word=$2 |
| 7948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7950 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7952 | else |
| 7953 | case $POD2HTML in |
| 7954 | [\\/]* | ?:[\\/]*) |
| 7955 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7956 | ;; |
| 7957 | *) |
| 7958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7959 | for as_dir in $PATH |
| 7960 | do |
| 7961 | IFS=$as_save_IFS |
| 7962 | test -z "$as_dir" && as_dir=. |
| 7963 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7964 | 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] | 7965 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7967 | break 2 |
| 7968 | fi |
| 7969 | done |
| 7970 | done |
| 7971 | IFS=$as_save_IFS |
| 7972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7973 | ;; |
| 7974 | esac |
| 7975 | fi |
| 7976 | POD2HTML=$ac_cv_path_POD2HTML |
| 7977 | if test -n "$POD2HTML"; then |
| 7978 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7979 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7980 | else |
| 7981 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7982 | echo "${ECHO_T}no" >&6; } |
| 7983 | fi |
| 7984 | |
| 7985 | |
| 7986 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7987 | set dummy pod2man; ac_word=$2 |
| 7988 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7990 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7992 | else |
| 7993 | case $POD2MAN in |
| 7994 | [\\/]* | ?:[\\/]*) |
| 7995 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7996 | ;; |
| 7997 | *) |
| 7998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7999 | for as_dir in $PATH |
| 8000 | do |
| 8001 | IFS=$as_save_IFS |
| 8002 | test -z "$as_dir" && as_dir=. |
| 8003 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8004 | 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] | 8005 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 8006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8007 | break 2 |
| 8008 | fi |
| 8009 | done |
| 8010 | done |
| 8011 | IFS=$as_save_IFS |
| 8012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8013 | ;; |
| 8014 | esac |
| 8015 | fi |
| 8016 | POD2MAN=$ac_cv_path_POD2MAN |
| 8017 | if test -n "$POD2MAN"; then |
| 8018 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8019 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 8020 | else |
| 8021 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8022 | echo "${ECHO_T}no" >&6; } |
| 8023 | fi |
| 8024 | |
| 8025 | |
| 8026 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8027 | set dummy runtest; ac_word=$2 |
| 8028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8030 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8032 | else |
| 8033 | case $RUNTEST in |
| 8034 | [\\/]* | ?:[\\/]*) |
| 8035 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8036 | ;; |
| 8037 | *) |
| 8038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8039 | for as_dir in $PATH |
| 8040 | do |
| 8041 | IFS=$as_save_IFS |
| 8042 | test -z "$as_dir" && as_dir=. |
| 8043 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8044 | 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] | 8045 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 8046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8047 | break 2 |
| 8048 | fi |
| 8049 | done |
| 8050 | done |
| 8051 | IFS=$as_save_IFS |
| 8052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8053 | ;; |
| 8054 | esac |
| 8055 | fi |
| 8056 | RUNTEST=$ac_cv_path_RUNTEST |
| 8057 | if test -n "$RUNTEST"; then |
| 8058 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8059 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 8060 | else |
| 8061 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8062 | echo "${ECHO_T}no" >&6; } |
| 8063 | fi |
| 8064 | |
| 8065 | |
| 8066 | |
| 8067 | no_itcl=true |
| 8068 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8069 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 8070 | |
| 8071 | # Check whether --with-tclinclude was given. |
| 8072 | if test "${with_tclinclude+set}" = set; then |
| 8073 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8074 | else |
| 8075 | with_tclinclude='' |
| 8076 | fi |
| 8077 | |
| 8078 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8080 | else |
| 8081 | |
| 8082 | if test x"${with_tclinclude}" != x ; then |
| 8083 | if test -f ${with_tclinclude}/tclsh ; then |
| 8084 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8085 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8086 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8087 | else |
| 8088 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8089 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8090 | { (exit 1); exit 1; }; } |
| 8091 | fi |
| 8092 | fi |
| 8093 | |
| 8094 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 8095 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8096 | echo "${ECHO_T}none" >&6; } |
| 8097 | 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 |
| 8098 | do |
| 8099 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8100 | set dummy $ac_prog; ac_word=$2 |
| 8101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8103 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8105 | else |
| 8106 | case $TCLSH in |
| 8107 | [\\/]* | ?:[\\/]*) |
| 8108 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8109 | ;; |
| 8110 | *) |
| 8111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8112 | for as_dir in $PATH |
| 8113 | do |
| 8114 | IFS=$as_save_IFS |
| 8115 | test -z "$as_dir" && as_dir=. |
| 8116 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8117 | 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] | 8118 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 8119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8120 | break 2 |
| 8121 | fi |
| 8122 | done |
| 8123 | done |
| 8124 | IFS=$as_save_IFS |
| 8125 | |
| 8126 | ;; |
| 8127 | esac |
| 8128 | fi |
| 8129 | TCLSH=$ac_cv_path_TCLSH |
| 8130 | if test -n "$TCLSH"; then |
| 8131 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8132 | echo "${ECHO_T}$TCLSH" >&6; } |
| 8133 | else |
| 8134 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8135 | echo "${ECHO_T}no" >&6; } |
| 8136 | fi |
| 8137 | |
| 8138 | |
| 8139 | test -n "$TCLSH" && break |
| 8140 | done |
| 8141 | |
| 8142 | if test x"${TCLSH}" = x ; then |
| 8143 | ac_cv_path_tclsh=''; |
| 8144 | else |
| 8145 | ac_cv_path_tclsh="${TCLSH}"; |
| 8146 | fi |
| 8147 | else |
| 8148 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8149 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 8150 | TCLSH="${ac_cv_path_tclsh}" |
| 8151 | |
| 8152 | fi |
| 8153 | |
| 8154 | fi |
| 8155 | |
| 8156 | # Extract the first word of "zip", so it can be a program name with args. |
| 8157 | set dummy zip; ac_word=$2 |
| 8158 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8160 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8162 | else |
| 8163 | case $ZIP in |
| 8164 | [\\/]* | ?:[\\/]*) |
| 8165 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8166 | ;; |
| 8167 | *) |
| 8168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8169 | for as_dir in $PATH |
| 8170 | do |
| 8171 | IFS=$as_save_IFS |
| 8172 | test -z "$as_dir" && as_dir=. |
| 8173 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8174 | 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] | 8175 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8177 | break 2 |
| 8178 | fi |
| 8179 | done |
| 8180 | done |
| 8181 | IFS=$as_save_IFS |
| 8182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8183 | ;; |
| 8184 | esac |
| 8185 | fi |
| 8186 | ZIP=$ac_cv_path_ZIP |
| 8187 | if test -n "$ZIP"; then |
| 8188 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8189 | echo "${ECHO_T}$ZIP" >&6; } |
| 8190 | else |
| 8191 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8192 | echo "${ECHO_T}no" >&6; } |
| 8193 | fi |
| 8194 | |
| 8195 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8196 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8197 | do |
| 8198 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8199 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8202 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8204 | else |
| 8205 | case $OCAMLC in |
| 8206 | [\\/]* | ?:[\\/]*) |
| 8207 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8208 | ;; |
| 8209 | *) |
| 8210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8211 | for as_dir in $PATH |
| 8212 | do |
| 8213 | IFS=$as_save_IFS |
| 8214 | test -z "$as_dir" && as_dir=. |
| 8215 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8216 | 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] | 8217 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8219 | break 2 |
| 8220 | fi |
| 8221 | done |
| 8222 | done |
| 8223 | IFS=$as_save_IFS |
| 8224 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8225 | ;; |
| 8226 | esac |
| 8227 | fi |
| 8228 | OCAMLC=$ac_cv_path_OCAMLC |
| 8229 | if test -n "$OCAMLC"; then |
| 8230 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8231 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8232 | else |
| 8233 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8234 | echo "${ECHO_T}no" >&6; } |
| 8235 | fi |
| 8236 | |
| 8237 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8238 | test -n "$OCAMLC" && break |
| 8239 | done |
| 8240 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8241 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8242 | do |
| 8243 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8244 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8247 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8249 | else |
| 8250 | case $OCAMLOPT in |
| 8251 | [\\/]* | ?:[\\/]*) |
| 8252 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8253 | ;; |
| 8254 | *) |
| 8255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8256 | for as_dir in $PATH |
| 8257 | do |
| 8258 | IFS=$as_save_IFS |
| 8259 | test -z "$as_dir" && as_dir=. |
| 8260 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8261 | 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] | 8262 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8264 | break 2 |
| 8265 | fi |
| 8266 | done |
| 8267 | done |
| 8268 | IFS=$as_save_IFS |
| 8269 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8270 | ;; |
| 8271 | esac |
| 8272 | fi |
| 8273 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8274 | if test -n "$OCAMLOPT"; then |
| 8275 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8276 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8277 | else |
| 8278 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8279 | echo "${ECHO_T}no" >&6; } |
| 8280 | fi |
| 8281 | |
| 8282 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8283 | test -n "$OCAMLOPT" && break |
| 8284 | done |
| 8285 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8286 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8287 | do |
| 8288 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8289 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8290 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8292 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8294 | else |
| 8295 | case $OCAMLDEP in |
| 8296 | [\\/]* | ?:[\\/]*) |
| 8297 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8298 | ;; |
| 8299 | *) |
| 8300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8301 | for as_dir in $PATH |
| 8302 | do |
| 8303 | IFS=$as_save_IFS |
| 8304 | test -z "$as_dir" && as_dir=. |
| 8305 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8306 | 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] | 8307 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8309 | break 2 |
| 8310 | fi |
| 8311 | done |
| 8312 | done |
| 8313 | IFS=$as_save_IFS |
| 8314 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8315 | ;; |
| 8316 | esac |
| 8317 | fi |
| 8318 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8319 | if test -n "$OCAMLDEP"; then |
| 8320 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8321 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8322 | else |
| 8323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8324 | echo "${ECHO_T}no" >&6; } |
| 8325 | fi |
| 8326 | |
| 8327 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8328 | test -n "$OCAMLDEP" && break |
| 8329 | done |
| 8330 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8331 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8332 | do |
| 8333 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8334 | set dummy $ac_prog; ac_word=$2 |
| 8335 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8337 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8339 | else |
| 8340 | case $OCAMLDOC in |
| 8341 | [\\/]* | ?:[\\/]*) |
| 8342 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8343 | ;; |
| 8344 | *) |
| 8345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8346 | for as_dir in $PATH |
| 8347 | do |
| 8348 | IFS=$as_save_IFS |
| 8349 | test -z "$as_dir" && as_dir=. |
| 8350 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8351 | 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] | 8352 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8354 | break 2 |
| 8355 | fi |
| 8356 | done |
| 8357 | done |
| 8358 | IFS=$as_save_IFS |
| 8359 | |
| 8360 | ;; |
| 8361 | esac |
| 8362 | fi |
| 8363 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8364 | if test -n "$OCAMLDOC"; then |
| 8365 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8366 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8367 | else |
| 8368 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8369 | echo "${ECHO_T}no" >&6; } |
| 8370 | fi |
| 8371 | |
| 8372 | |
| 8373 | test -n "$OCAMLDOC" && break |
| 8374 | done |
| 8375 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8376 | for ac_prog in gas as |
| 8377 | do |
| 8378 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8379 | set dummy $ac_prog; ac_word=$2 |
| 8380 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8382 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8384 | else |
| 8385 | case $GAS in |
| 8386 | [\\/]* | ?:[\\/]*) |
| 8387 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8388 | ;; |
| 8389 | *) |
| 8390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8391 | for as_dir in $PATH |
| 8392 | do |
| 8393 | IFS=$as_save_IFS |
| 8394 | test -z "$as_dir" && as_dir=. |
| 8395 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8396 | 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] | 8397 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 8398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8399 | break 2 |
| 8400 | fi |
| 8401 | done |
| 8402 | done |
| 8403 | IFS=$as_save_IFS |
| 8404 | |
| 8405 | ;; |
| 8406 | esac |
| 8407 | fi |
| 8408 | GAS=$ac_cv_path_GAS |
| 8409 | if test -n "$GAS"; then |
| 8410 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8411 | echo "${ECHO_T}$GAS" >&6; } |
| 8412 | else |
| 8413 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8414 | echo "${ECHO_T}no" >&6; } |
| 8415 | fi |
| 8416 | |
| 8417 | |
| 8418 | test -n "$GAS" && break |
| 8419 | done |
| 8420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8421 | |
| 8422 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8423 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8424 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8426 | else |
| 8427 | ac_ext=c |
| 8428 | ac_cpp='$CPP $CPPFLAGS' |
| 8429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8432 | |
| 8433 | oldcflags="$CFLAGS" |
| 8434 | CFLAGS="$CFLAGS -Wl,-R." |
| 8435 | cat >conftest.$ac_ext <<_ACEOF |
| 8436 | /* confdefs.h. */ |
| 8437 | _ACEOF |
| 8438 | cat confdefs.h >>conftest.$ac_ext |
| 8439 | cat >>conftest.$ac_ext <<_ACEOF |
| 8440 | /* end confdefs.h. */ |
| 8441 | |
| 8442 | int |
| 8443 | main () |
| 8444 | { |
| 8445 | int main() { return 0; } |
| 8446 | ; |
| 8447 | return 0; |
| 8448 | } |
| 8449 | _ACEOF |
| 8450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8451 | if { (ac_try="$ac_link" |
| 8452 | case "(($ac_try" in |
| 8453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8454 | *) ac_try_echo=$ac_try;; |
| 8455 | esac |
| 8456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8457 | (eval "$ac_link") 2>conftest.er1 |
| 8458 | ac_status=$? |
| 8459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8460 | rm -f conftest.er1 |
| 8461 | cat conftest.err >&5 |
| 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8463 | (exit $ac_status); } && |
| 8464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8465 | { (case "(($ac_try" in |
| 8466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8467 | *) ac_try_echo=$ac_try;; |
| 8468 | esac |
| 8469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8470 | (eval "$ac_try") 2>&5 |
| 8471 | ac_status=$? |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); }; } && |
| 8474 | { ac_try='test -s conftest$ac_exeext' |
| 8475 | { (case "(($ac_try" in |
| 8476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8477 | *) ac_try_echo=$ac_try;; |
| 8478 | esac |
| 8479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8480 | (eval "$ac_try") 2>&5 |
| 8481 | ac_status=$? |
| 8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8483 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8484 | llvm_cv_link_use_r=yes |
| 8485 | else |
| 8486 | echo "$as_me: failed program was:" >&5 |
| 8487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8488 | |
| 8489 | llvm_cv_link_use_r=no |
| 8490 | fi |
| 8491 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8492 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8493 | conftest$ac_exeext conftest.$ac_ext |
| 8494 | CFLAGS="$oldcflags" |
| 8495 | ac_ext=c |
| 8496 | ac_cpp='$CPP $CPPFLAGS' |
| 8497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8500 | |
| 8501 | |
| 8502 | fi |
| 8503 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8504 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8505 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8506 | |
| 8507 | cat >>confdefs.h <<\_ACEOF |
| 8508 | #define HAVE_LINK_R 1 |
| 8509 | _ACEOF |
| 8510 | |
| 8511 | fi |
| 8512 | |
| 8513 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8514 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8515 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8516 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8518 | else |
| 8519 | ac_ext=c |
| 8520 | ac_cpp='$CPP $CPPFLAGS' |
| 8521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8524 | |
| 8525 | oldcflags="$CFLAGS" |
| 8526 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 8527 | cat >conftest.$ac_ext <<_ACEOF |
| 8528 | /* confdefs.h. */ |
| 8529 | _ACEOF |
| 8530 | cat confdefs.h >>conftest.$ac_ext |
| 8531 | cat >>conftest.$ac_ext <<_ACEOF |
| 8532 | /* end confdefs.h. */ |
| 8533 | |
| 8534 | int |
| 8535 | main () |
| 8536 | { |
| 8537 | int main() { return 0; } |
| 8538 | ; |
| 8539 | return 0; |
| 8540 | } |
| 8541 | _ACEOF |
| 8542 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8543 | if { (ac_try="$ac_link" |
| 8544 | case "(($ac_try" in |
| 8545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8546 | *) ac_try_echo=$ac_try;; |
| 8547 | esac |
| 8548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8549 | (eval "$ac_link") 2>conftest.er1 |
| 8550 | ac_status=$? |
| 8551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8552 | rm -f conftest.er1 |
| 8553 | cat conftest.err >&5 |
| 8554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8555 | (exit $ac_status); } && |
| 8556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8557 | { (case "(($ac_try" in |
| 8558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8559 | *) ac_try_echo=$ac_try;; |
| 8560 | esac |
| 8561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8562 | (eval "$ac_try") 2>&5 |
| 8563 | ac_status=$? |
| 8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8565 | (exit $ac_status); }; } && |
| 8566 | { ac_try='test -s conftest$ac_exeext' |
| 8567 | { (case "(($ac_try" in |
| 8568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8569 | *) ac_try_echo=$ac_try;; |
| 8570 | esac |
| 8571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8572 | (eval "$ac_try") 2>&5 |
| 8573 | ac_status=$? |
| 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8575 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8576 | llvm_cv_link_use_export_dynamic=yes |
| 8577 | else |
| 8578 | echo "$as_me: failed program was:" >&5 |
| 8579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8580 | |
| 8581 | llvm_cv_link_use_export_dynamic=no |
| 8582 | fi |
| 8583 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8584 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8585 | conftest$ac_exeext conftest.$ac_ext |
| 8586 | CFLAGS="$oldcflags" |
| 8587 | ac_ext=c |
| 8588 | ac_cpp='$CPP $CPPFLAGS' |
| 8589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8592 | |
| 8593 | |
| 8594 | fi |
| 8595 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8596 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 8597 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8598 | |
| 8599 | cat >>confdefs.h <<\_ACEOF |
| 8600 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8601 | _ACEOF |
| 8602 | |
| 8603 | fi |
| 8604 | |
| 8605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8606 | |
| 8607 | |
| 8608 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8609 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8610 | if test "${ac_cv_c_const+set}" = set; then |
| 8611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8612 | else |
| 8613 | cat >conftest.$ac_ext <<_ACEOF |
| 8614 | /* confdefs.h. */ |
| 8615 | _ACEOF |
| 8616 | cat confdefs.h >>conftest.$ac_ext |
| 8617 | cat >>conftest.$ac_ext <<_ACEOF |
| 8618 | /* end confdefs.h. */ |
| 8619 | |
| 8620 | int |
| 8621 | main () |
| 8622 | { |
| 8623 | /* FIXME: Include the comments suggested by Paul. */ |
| 8624 | #ifndef __cplusplus |
| 8625 | /* Ultrix mips cc rejects this. */ |
| 8626 | typedef int charset[2]; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8627 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8628 | /* SunOS 4.1.1 cc rejects this. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8629 | char const *const *ccp; |
| 8630 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8631 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8632 | struct point {int x, y;}; |
| 8633 | static struct point const zero = {0,0}; |
| 8634 | /* AIX XL C 1.02.0.0 rejects this. |
| 8635 | It does not let you subtract one const X* pointer from another in |
| 8636 | an arm of an if-expression whose if-part is not a constant |
| 8637 | expression */ |
| 8638 | const char *g = "string"; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8639 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8640 | /* HPUX 7.0 cc rejects these. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8641 | ++ccp; |
| 8642 | p = (char**) ccp; |
| 8643 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8644 | { /* SCO 3.2v4 cc rejects this. */ |
| 8645 | char *t; |
| 8646 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8647 | |
| 8648 | *t++ = 0; |
| 8649 | if (s) return 0; |
| 8650 | } |
| 8651 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8652 | int x[] = {25, 17}; |
| 8653 | const int *foo = &x[0]; |
| 8654 | ++foo; |
| 8655 | } |
| 8656 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8657 | typedef const int *iptr; |
| 8658 | iptr p = 0; |
| 8659 | ++p; |
| 8660 | } |
| 8661 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8662 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8663 | struct s { int j; const int *ap[3]; }; |
| 8664 | struct s *b; b->j = 5; |
| 8665 | } |
| 8666 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8667 | const int foo = 10; |
| 8668 | if (!foo) return 0; |
| 8669 | } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8670 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8671 | #endif |
| 8672 | |
| 8673 | ; |
| 8674 | return 0; |
| 8675 | } |
| 8676 | _ACEOF |
| 8677 | rm -f conftest.$ac_objext |
| 8678 | if { (ac_try="$ac_compile" |
| 8679 | case "(($ac_try" in |
| 8680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8681 | *) ac_try_echo=$ac_try;; |
| 8682 | esac |
| 8683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8684 | (eval "$ac_compile") 2>conftest.er1 |
| 8685 | ac_status=$? |
| 8686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8687 | rm -f conftest.er1 |
| 8688 | cat conftest.err >&5 |
| 8689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8690 | (exit $ac_status); } && |
| 8691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8692 | { (case "(($ac_try" in |
| 8693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8694 | *) ac_try_echo=$ac_try;; |
| 8695 | esac |
| 8696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8697 | (eval "$ac_try") 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); }; } && |
| 8701 | { ac_try='test -s conftest.$ac_objext' |
| 8702 | { (case "(($ac_try" in |
| 8703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8704 | *) ac_try_echo=$ac_try;; |
| 8705 | esac |
| 8706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8707 | (eval "$ac_try") 2>&5 |
| 8708 | ac_status=$? |
| 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8710 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8711 | ac_cv_c_const=yes |
| 8712 | else |
| 8713 | echo "$as_me: failed program was:" >&5 |
| 8714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8715 | |
| 8716 | ac_cv_c_const=no |
| 8717 | fi |
| 8718 | |
| 8719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8720 | fi |
| 8721 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8722 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8723 | if test $ac_cv_c_const = no; then |
| 8724 | |
| 8725 | cat >>confdefs.h <<\_ACEOF |
| 8726 | #define const |
| 8727 | _ACEOF |
| 8728 | |
| 8729 | fi |
| 8730 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8731 | |
| 8732 | |
| 8733 | |
| 8734 | |
| 8735 | |
| 8736 | ac_header_dirent=no |
| 8737 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8738 | 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] | 8739 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8740 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8741 | 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] | 8742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8743 | else |
| 8744 | cat >conftest.$ac_ext <<_ACEOF |
| 8745 | /* confdefs.h. */ |
| 8746 | _ACEOF |
| 8747 | cat confdefs.h >>conftest.$ac_ext |
| 8748 | cat >>conftest.$ac_ext <<_ACEOF |
| 8749 | /* end confdefs.h. */ |
| 8750 | #include <sys/types.h> |
| 8751 | #include <$ac_hdr> |
| 8752 | |
| 8753 | int |
| 8754 | main () |
| 8755 | { |
| 8756 | if ((DIR *) 0) |
| 8757 | return 0; |
| 8758 | ; |
| 8759 | return 0; |
| 8760 | } |
| 8761 | _ACEOF |
| 8762 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8763 | if { (ac_try="$ac_compile" |
| 8764 | case "(($ac_try" in |
| 8765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8766 | *) ac_try_echo=$ac_try;; |
| 8767 | esac |
| 8768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8769 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8770 | ac_status=$? |
| 8771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8772 | rm -f conftest.er1 |
| 8773 | cat conftest.err >&5 |
| 8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8775 | (exit $ac_status); } && |
| 8776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8777 | { (case "(($ac_try" in |
| 8778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8779 | *) ac_try_echo=$ac_try;; |
| 8780 | esac |
| 8781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8782 | (eval "$ac_try") 2>&5 |
| 8783 | ac_status=$? |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); }; } && |
| 8786 | { ac_try='test -s conftest.$ac_objext' |
| 8787 | { (case "(($ac_try" in |
| 8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8789 | *) ac_try_echo=$ac_try;; |
| 8790 | esac |
| 8791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8792 | (eval "$ac_try") 2>&5 |
| 8793 | ac_status=$? |
| 8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8795 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8796 | eval "$as_ac_Header=yes" |
| 8797 | else |
| 8798 | echo "$as_me: failed program was:" >&5 |
| 8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8801 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8802 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8803 | |
| 8804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8806 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8807 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8808 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8810 | cat >>confdefs.h <<_ACEOF |
| 8811 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8812 | _ACEOF |
| 8813 | |
| 8814 | ac_header_dirent=$ac_hdr; break |
| 8815 | fi |
| 8816 | |
| 8817 | done |
| 8818 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8819 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8820 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8821 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8822 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8824 | else |
| 8825 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8826 | cat >conftest.$ac_ext <<_ACEOF |
| 8827 | /* confdefs.h. */ |
| 8828 | _ACEOF |
| 8829 | cat confdefs.h >>conftest.$ac_ext |
| 8830 | cat >>conftest.$ac_ext <<_ACEOF |
| 8831 | /* end confdefs.h. */ |
| 8832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8833 | /* Override any GCC internal prototype to avoid an error. |
| 8834 | Use char because int might match the return type of a GCC |
| 8835 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8836 | #ifdef __cplusplus |
| 8837 | extern "C" |
| 8838 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8839 | char opendir (); |
| 8840 | int |
| 8841 | main () |
| 8842 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8843 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8844 | ; |
| 8845 | return 0; |
| 8846 | } |
| 8847 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8848 | for ac_lib in '' dir; do |
| 8849 | if test -z "$ac_lib"; then |
| 8850 | ac_res="none required" |
| 8851 | else |
| 8852 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8853 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8854 | fi |
| 8855 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8856 | if { (ac_try="$ac_link" |
| 8857 | case "(($ac_try" in |
| 8858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8859 | *) ac_try_echo=$ac_try;; |
| 8860 | esac |
| 8861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8862 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8863 | ac_status=$? |
| 8864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8865 | rm -f conftest.er1 |
| 8866 | cat conftest.err >&5 |
| 8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8868 | (exit $ac_status); } && |
| 8869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8870 | { (case "(($ac_try" in |
| 8871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8872 | *) ac_try_echo=$ac_try;; |
| 8873 | esac |
| 8874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8875 | (eval "$ac_try") 2>&5 |
| 8876 | ac_status=$? |
| 8877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8878 | (exit $ac_status); }; } && |
| 8879 | { ac_try='test -s conftest$ac_exeext' |
| 8880 | { (case "(($ac_try" in |
| 8881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8882 | *) ac_try_echo=$ac_try;; |
| 8883 | esac |
| 8884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8885 | (eval "$ac_try") 2>&5 |
| 8886 | ac_status=$? |
| 8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8888 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8889 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8890 | else |
| 8891 | echo "$as_me: failed program was:" >&5 |
| 8892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8893 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8894 | |
| 8895 | fi |
| 8896 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8897 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8898 | conftest$ac_exeext |
| 8899 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8900 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8901 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8902 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8903 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8904 | : |
| 8905 | else |
| 8906 | ac_cv_search_opendir=no |
| 8907 | fi |
| 8908 | rm conftest.$ac_ext |
| 8909 | LIBS=$ac_func_search_save_LIBS |
| 8910 | fi |
| 8911 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8912 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8913 | ac_res=$ac_cv_search_opendir |
| 8914 | if test "$ac_res" != no; then |
| 8915 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8917 | fi |
| 8918 | |
| 8919 | else |
| 8920 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8921 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8922 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8924 | else |
| 8925 | ac_func_search_save_LIBS=$LIBS |
| 8926 | cat >conftest.$ac_ext <<_ACEOF |
| 8927 | /* confdefs.h. */ |
| 8928 | _ACEOF |
| 8929 | cat confdefs.h >>conftest.$ac_ext |
| 8930 | cat >>conftest.$ac_ext <<_ACEOF |
| 8931 | /* end confdefs.h. */ |
| 8932 | |
| 8933 | /* Override any GCC internal prototype to avoid an error. |
| 8934 | Use char because int might match the return type of a GCC |
| 8935 | builtin and then its argument prototype would still apply. */ |
| 8936 | #ifdef __cplusplus |
| 8937 | extern "C" |
| 8938 | #endif |
| 8939 | char opendir (); |
| 8940 | int |
| 8941 | main () |
| 8942 | { |
| 8943 | return opendir (); |
| 8944 | ; |
| 8945 | return 0; |
| 8946 | } |
| 8947 | _ACEOF |
| 8948 | for ac_lib in '' x; do |
| 8949 | if test -z "$ac_lib"; then |
| 8950 | ac_res="none required" |
| 8951 | else |
| 8952 | ac_res=-l$ac_lib |
| 8953 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8954 | fi |
| 8955 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8956 | if { (ac_try="$ac_link" |
| 8957 | case "(($ac_try" in |
| 8958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8959 | *) ac_try_echo=$ac_try;; |
| 8960 | esac |
| 8961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8962 | (eval "$ac_link") 2>conftest.er1 |
| 8963 | ac_status=$? |
| 8964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8965 | rm -f conftest.er1 |
| 8966 | cat conftest.err >&5 |
| 8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8968 | (exit $ac_status); } && |
| 8969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8970 | { (case "(($ac_try" in |
| 8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8972 | *) ac_try_echo=$ac_try;; |
| 8973 | esac |
| 8974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8975 | (eval "$ac_try") 2>&5 |
| 8976 | ac_status=$? |
| 8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8978 | (exit $ac_status); }; } && |
| 8979 | { ac_try='test -s conftest$ac_exeext' |
| 8980 | { (case "(($ac_try" in |
| 8981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8982 | *) ac_try_echo=$ac_try;; |
| 8983 | esac |
| 8984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8985 | (eval "$ac_try") 2>&5 |
| 8986 | ac_status=$? |
| 8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8988 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8989 | ac_cv_search_opendir=$ac_res |
| 8990 | else |
| 8991 | echo "$as_me: failed program was:" >&5 |
| 8992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8993 | |
| 8994 | |
| 8995 | fi |
| 8996 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8997 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8998 | conftest$ac_exeext |
| 8999 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9000 | break |
| 9001 | fi |
| 9002 | done |
| 9003 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9004 | : |
| 9005 | else |
| 9006 | ac_cv_search_opendir=no |
| 9007 | fi |
| 9008 | rm conftest.$ac_ext |
| 9009 | LIBS=$ac_func_search_save_LIBS |
| 9010 | fi |
| 9011 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9012 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 9013 | ac_res=$ac_cv_search_opendir |
| 9014 | if test "$ac_res" != no; then |
| 9015 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9016 | |
| 9017 | fi |
| 9018 | |
| 9019 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9020 | |
| 9021 | |
| 9022 | for ac_header in dlfcn.h |
| 9023 | do |
| 9024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9025 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9026 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9028 | 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] | 9029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9033 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9034 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9035 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9037 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9038 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9039 | /* confdefs.h. */ |
| 9040 | _ACEOF |
| 9041 | cat confdefs.h >>conftest.$ac_ext |
| 9042 | cat >>conftest.$ac_ext <<_ACEOF |
| 9043 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9044 | $ac_includes_default |
| 9045 | #include <$ac_header> |
| 9046 | _ACEOF |
| 9047 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9048 | if { (ac_try="$ac_compile" |
| 9049 | case "(($ac_try" in |
| 9050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9051 | *) ac_try_echo=$ac_try;; |
| 9052 | esac |
| 9053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9054 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9055 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9057 | rm -f conftest.er1 |
| 9058 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9060 | (exit $ac_status); } && |
| 9061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9062 | { (case "(($ac_try" in |
| 9063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9064 | *) ac_try_echo=$ac_try;; |
| 9065 | esac |
| 9066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9067 | (eval "$ac_try") 2>&5 |
| 9068 | ac_status=$? |
| 9069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9070 | (exit $ac_status); }; } && |
| 9071 | { ac_try='test -s conftest.$ac_objext' |
| 9072 | { (case "(($ac_try" in |
| 9073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9074 | *) ac_try_echo=$ac_try;; |
| 9075 | esac |
| 9076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9077 | (eval "$ac_try") 2>&5 |
| 9078 | ac_status=$? |
| 9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9080 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9081 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9082 | else |
| 9083 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9086 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9087 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9088 | |
| 9089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9090 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9091 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9092 | |
| 9093 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9094 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9095 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9096 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9097 | /* confdefs.h. */ |
| 9098 | _ACEOF |
| 9099 | cat confdefs.h >>conftest.$ac_ext |
| 9100 | cat >>conftest.$ac_ext <<_ACEOF |
| 9101 | /* end confdefs.h. */ |
| 9102 | #include <$ac_header> |
| 9103 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9104 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9105 | case "(($ac_try" in |
| 9106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9107 | *) ac_try_echo=$ac_try;; |
| 9108 | esac |
| 9109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9111 | ac_status=$? |
| 9112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9113 | rm -f conftest.er1 |
| 9114 | cat conftest.err >&5 |
| 9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9116 | (exit $ac_status); } >/dev/null; then |
| 9117 | if test -s conftest.err; then |
| 9118 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9119 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9120 | else |
| 9121 | ac_cpp_err= |
| 9122 | fi |
| 9123 | else |
| 9124 | ac_cpp_err=yes |
| 9125 | fi |
| 9126 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9127 | ac_header_preproc=yes |
| 9128 | else |
| 9129 | echo "$as_me: failed program was:" >&5 |
| 9130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9131 | |
| 9132 | ac_header_preproc=no |
| 9133 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9134 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9135 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9136 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9137 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9138 | |
| 9139 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9141 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9143 | 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] | 9144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9146 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9147 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9148 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9156 | 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] | 9157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9158 | 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] | 9159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9160 | 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] | 9161 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9162 | ## ----------------------------------- ## |
| 9163 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9164 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9165 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9166 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9167 | ;; |
| 9168 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9169 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9171 | 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] | 9172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9173 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9174 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9175 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9176 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9178 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9179 | |
| 9180 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9181 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9182 | cat >>confdefs.h <<_ACEOF |
| 9183 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9184 | _ACEOF |
| 9185 | |
| 9186 | fi |
| 9187 | |
| 9188 | done |
| 9189 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9190 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9191 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9192 | enableval=$enable_ltdl_install; |
| 9193 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9194 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9195 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9196 | |
| 9197 | |
| 9198 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9199 | INSTALL_LTDL_TRUE= |
| 9200 | INSTALL_LTDL_FALSE='#' |
| 9201 | else |
| 9202 | INSTALL_LTDL_TRUE='#' |
| 9203 | INSTALL_LTDL_FALSE= |
| 9204 | fi |
| 9205 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9206 | |
| 9207 | |
| 9208 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9209 | CONVENIENCE_LTDL_TRUE= |
| 9210 | CONVENIENCE_LTDL_FALSE='#' |
| 9211 | else |
| 9212 | CONVENIENCE_LTDL_TRUE='#' |
| 9213 | CONVENIENCE_LTDL_FALSE= |
| 9214 | fi |
| 9215 | |
| 9216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9217 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9218 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9219 | library_names_spec= |
| 9220 | libname_spec='lib$name' |
| 9221 | soname_spec= |
| 9222 | shrext_cmds=".so" |
| 9223 | postinstall_cmds= |
| 9224 | postuninstall_cmds= |
| 9225 | finish_cmds= |
| 9226 | finish_eval= |
| 9227 | shlibpath_var= |
| 9228 | shlibpath_overrides_runpath=unknown |
| 9229 | version_type=none |
| 9230 | dynamic_linker="$host_os ld.so" |
| 9231 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9232 | if test "$GCC" = yes; then |
| 9233 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9234 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9235 | # if the path contains ";" then we assume it to be the separator |
| 9236 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9237 | # assumed that no part of a normal pathname contains ";" but that should |
| 9238 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9239 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9240 | else |
| 9241 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9242 | fi |
| 9243 | else |
| 9244 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9245 | fi |
| 9246 | need_lib_prefix=unknown |
| 9247 | hardcode_into_libs=no |
| 9248 | |
| 9249 | # when you set need_version to no, make sure it does not cause -set_version |
| 9250 | # flags to be left without arguments |
| 9251 | need_version=unknown |
| 9252 | |
| 9253 | case $host_os in |
| 9254 | aix3*) |
| 9255 | version_type=linux |
| 9256 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9257 | shlibpath_var=LIBPATH |
| 9258 | |
| 9259 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9261 | ;; |
| 9262 | |
| 9263 | aix4* | aix5*) |
| 9264 | version_type=linux |
| 9265 | need_lib_prefix=no |
| 9266 | need_version=no |
| 9267 | hardcode_into_libs=yes |
| 9268 | if test "$host_cpu" = ia64; then |
| 9269 | # AIX 5 supports IA64 |
| 9270 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9271 | shlibpath_var=LD_LIBRARY_PATH |
| 9272 | else |
| 9273 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9274 | # for dependence libraries. The import file would start with |
| 9275 | # the line `#! .'. This would cause the generated library to |
| 9276 | # depend on `.', always an invalid library. This was fixed in |
| 9277 | # development snapshots of GCC prior to 3.0. |
| 9278 | case $host_os in |
| 9279 | aix4 | aix4.[01] | aix4.[01].*) |
| 9280 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9281 | echo ' yes ' |
| 9282 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9283 | : |
| 9284 | else |
| 9285 | can_build_shared=no |
| 9286 | fi |
| 9287 | ;; |
| 9288 | esac |
| 9289 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9290 | # soname into executable. Probably we can add versioning support to |
| 9291 | # collect2, so additional links can be useful in future. |
| 9292 | if test "$aix_use_runtimelinking" = yes; then |
| 9293 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9294 | # instead of lib<name>.a to let people know that these are not |
| 9295 | # typical AIX shared libraries. |
| 9296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9297 | else |
| 9298 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9299 | # and later when we are not doing run time linking. |
| 9300 | library_names_spec='${libname}${release}.a $libname.a' |
| 9301 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9302 | fi |
| 9303 | shlibpath_var=LIBPATH |
| 9304 | fi |
| 9305 | ;; |
| 9306 | |
| 9307 | amigaos*) |
| 9308 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9309 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9310 | 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' |
| 9311 | ;; |
| 9312 | |
| 9313 | beos*) |
| 9314 | library_names_spec='${libname}${shared_ext}' |
| 9315 | dynamic_linker="$host_os ld.so" |
| 9316 | shlibpath_var=LIBRARY_PATH |
| 9317 | ;; |
| 9318 | |
| 9319 | bsdi[45]*) |
| 9320 | version_type=linux |
| 9321 | need_version=no |
| 9322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9323 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9324 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9325 | shlibpath_var=LD_LIBRARY_PATH |
| 9326 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9327 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9328 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9329 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9330 | # libtool to hard-code these into programs |
| 9331 | ;; |
| 9332 | |
| 9333 | cygwin* | mingw* | pw32*) |
| 9334 | version_type=windows |
| 9335 | shrext_cmds=".dll" |
| 9336 | need_version=no |
| 9337 | need_lib_prefix=no |
| 9338 | |
| 9339 | case $GCC,$host_os in |
| 9340 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9341 | library_names_spec='$libname.dll.a' |
| 9342 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9343 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9344 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9345 | dldir=$destdir/`dirname \$dlpath`~ |
| 9346 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9347 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9348 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9349 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9350 | dlpath=$dir/\$dldll~ |
| 9351 | $rm \$dlpath' |
| 9352 | shlibpath_overrides_runpath=yes |
| 9353 | |
| 9354 | case $host_os in |
| 9355 | cygwin*) |
| 9356 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9357 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9358 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9359 | ;; |
| 9360 | mingw*) |
| 9361 | # MinGW DLLs use traditional 'lib' prefix |
| 9362 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9363 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9364 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9365 | # It is most probably a Windows format PATH printed by |
| 9366 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9367 | # path with ; separators, and with drive letters. We can handle the |
| 9368 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9369 | # especially as we might pass files found there to a mingw objdump, |
| 9370 | # which wouldn't understand a cygwinified path. Ahh. |
| 9371 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9372 | else |
| 9373 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9374 | fi |
| 9375 | ;; |
| 9376 | pw32*) |
| 9377 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9378 | 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] | 9379 | ;; |
| 9380 | esac |
| 9381 | ;; |
| 9382 | |
| 9383 | *) |
| 9384 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9385 | ;; |
| 9386 | esac |
| 9387 | dynamic_linker='Win32 ld.exe' |
| 9388 | # FIXME: first we should search . and the directory the executable is in |
| 9389 | shlibpath_var=PATH |
| 9390 | ;; |
| 9391 | |
| 9392 | darwin* | rhapsody*) |
| 9393 | dynamic_linker="$host_os dyld" |
| 9394 | version_type=darwin |
| 9395 | need_lib_prefix=no |
| 9396 | need_version=no |
| 9397 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9398 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9399 | shlibpath_overrides_runpath=yes |
| 9400 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9401 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9402 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9403 | if test "$GCC" = yes; then |
| 9404 | 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"` |
| 9405 | else |
| 9406 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9407 | fi |
| 9408 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9409 | ;; |
| 9410 | |
| 9411 | dgux*) |
| 9412 | version_type=linux |
| 9413 | need_lib_prefix=no |
| 9414 | need_version=no |
| 9415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9416 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9417 | shlibpath_var=LD_LIBRARY_PATH |
| 9418 | ;; |
| 9419 | |
| 9420 | freebsd1*) |
| 9421 | dynamic_linker=no |
| 9422 | ;; |
| 9423 | |
| 9424 | kfreebsd*-gnu) |
| 9425 | version_type=linux |
| 9426 | need_lib_prefix=no |
| 9427 | need_version=no |
| 9428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9429 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9430 | shlibpath_var=LD_LIBRARY_PATH |
| 9431 | shlibpath_overrides_runpath=no |
| 9432 | hardcode_into_libs=yes |
| 9433 | dynamic_linker='GNU ld.so' |
| 9434 | ;; |
| 9435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9436 | freebsd* | dragonfly*) |
| 9437 | # DragonFly does not have aout. When/if they implement a new |
| 9438 | # versioning mechanism, adjust this. |
| 9439 | if test -x /usr/bin/objformat; then |
| 9440 | objformat=`/usr/bin/objformat` |
| 9441 | else |
| 9442 | case $host_os in |
| 9443 | freebsd[123]*) objformat=aout ;; |
| 9444 | *) objformat=elf ;; |
| 9445 | esac |
| 9446 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9447 | version_type=freebsd-$objformat |
| 9448 | case $version_type in |
| 9449 | freebsd-elf*) |
| 9450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9451 | need_version=no |
| 9452 | need_lib_prefix=no |
| 9453 | ;; |
| 9454 | freebsd-*) |
| 9455 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9456 | need_version=yes |
| 9457 | ;; |
| 9458 | esac |
| 9459 | shlibpath_var=LD_LIBRARY_PATH |
| 9460 | case $host_os in |
| 9461 | freebsd2*) |
| 9462 | shlibpath_overrides_runpath=yes |
| 9463 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9464 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9465 | shlibpath_overrides_runpath=yes |
| 9466 | hardcode_into_libs=yes |
| 9467 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9468 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9469 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9470 | shlibpath_overrides_runpath=no |
| 9471 | hardcode_into_libs=yes |
| 9472 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9473 | freebsd*) # from 4.6 on |
| 9474 | shlibpath_overrides_runpath=yes |
| 9475 | hardcode_into_libs=yes |
| 9476 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9477 | esac |
| 9478 | ;; |
| 9479 | |
| 9480 | gnu*) |
| 9481 | version_type=linux |
| 9482 | need_lib_prefix=no |
| 9483 | need_version=no |
| 9484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9486 | shlibpath_var=LD_LIBRARY_PATH |
| 9487 | hardcode_into_libs=yes |
| 9488 | ;; |
| 9489 | |
| 9490 | hpux9* | hpux10* | hpux11*) |
| 9491 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9492 | # link against other versions. |
| 9493 | version_type=sunos |
| 9494 | need_lib_prefix=no |
| 9495 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9496 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9497 | ia64*) |
| 9498 | shrext_cmds='.so' |
| 9499 | hardcode_into_libs=yes |
| 9500 | dynamic_linker="$host_os dld.so" |
| 9501 | shlibpath_var=LD_LIBRARY_PATH |
| 9502 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9504 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9505 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9506 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9507 | else |
| 9508 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9509 | fi |
| 9510 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9511 | ;; |
| 9512 | hppa*64*) |
| 9513 | shrext_cmds='.sl' |
| 9514 | hardcode_into_libs=yes |
| 9515 | dynamic_linker="$host_os dld.sl" |
| 9516 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9517 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9519 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9520 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9521 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9522 | ;; |
| 9523 | *) |
| 9524 | shrext_cmds='.sl' |
| 9525 | dynamic_linker="$host_os dld.sl" |
| 9526 | shlibpath_var=SHLIB_PATH |
| 9527 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9529 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9530 | ;; |
| 9531 | esac |
| 9532 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9533 | postinstall_cmds='chmod 555 $lib' |
| 9534 | ;; |
| 9535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9536 | interix3*) |
| 9537 | version_type=linux |
| 9538 | need_lib_prefix=no |
| 9539 | need_version=no |
| 9540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9541 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9542 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9543 | shlibpath_var=LD_LIBRARY_PATH |
| 9544 | shlibpath_overrides_runpath=no |
| 9545 | hardcode_into_libs=yes |
| 9546 | ;; |
| 9547 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9548 | irix5* | irix6* | nonstopux*) |
| 9549 | case $host_os in |
| 9550 | nonstopux*) version_type=nonstopux ;; |
| 9551 | *) |
| 9552 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9553 | version_type=linux |
| 9554 | else |
| 9555 | version_type=irix |
| 9556 | fi ;; |
| 9557 | esac |
| 9558 | need_lib_prefix=no |
| 9559 | need_version=no |
| 9560 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9562 | case $host_os in |
| 9563 | irix5* | nonstopux*) |
| 9564 | libsuff= shlibsuff= |
| 9565 | ;; |
| 9566 | *) |
| 9567 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9568 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9569 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9570 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9571 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9572 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9573 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9574 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9575 | esac |
| 9576 | ;; |
| 9577 | esac |
| 9578 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9579 | shlibpath_overrides_runpath=no |
| 9580 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9581 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9582 | hardcode_into_libs=yes |
| 9583 | ;; |
| 9584 | |
| 9585 | # No shared lib support for Linux oldld, aout, or coff. |
| 9586 | linux*oldld* | linux*aout* | linux*coff*) |
| 9587 | dynamic_linker=no |
| 9588 | ;; |
| 9589 | |
| 9590 | # This must be Linux ELF. |
| 9591 | linux*) |
| 9592 | version_type=linux |
| 9593 | need_lib_prefix=no |
| 9594 | need_version=no |
| 9595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9596 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9597 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9598 | shlibpath_var=LD_LIBRARY_PATH |
| 9599 | shlibpath_overrides_runpath=no |
| 9600 | # This implies no fast_install, which is unacceptable. |
| 9601 | # Some rework will be needed to allow for fast_install |
| 9602 | # before this can be enabled. |
| 9603 | hardcode_into_libs=yes |
| 9604 | |
| 9605 | # Append ld.so.conf contents to the search path |
| 9606 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9607 | 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] | 9608 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9609 | fi |
| 9610 | |
| 9611 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9612 | # powerpc, because MkLinux only supported shared libraries with the |
| 9613 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9614 | # most powerpc-linux boxes support dynamic linking these days and |
| 9615 | # people can always --disable-shared, the test was removed, and we |
| 9616 | # assume the GNU/Linux dynamic linker is in use. |
| 9617 | dynamic_linker='GNU/Linux ld.so' |
| 9618 | ;; |
| 9619 | |
| 9620 | knetbsd*-gnu) |
| 9621 | version_type=linux |
| 9622 | need_lib_prefix=no |
| 9623 | need_version=no |
| 9624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9625 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9626 | shlibpath_var=LD_LIBRARY_PATH |
| 9627 | shlibpath_overrides_runpath=no |
| 9628 | hardcode_into_libs=yes |
| 9629 | dynamic_linker='GNU ld.so' |
| 9630 | ;; |
| 9631 | |
| 9632 | netbsd*) |
| 9633 | version_type=sunos |
| 9634 | need_lib_prefix=no |
| 9635 | need_version=no |
| 9636 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9638 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9639 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9640 | else |
| 9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9643 | dynamic_linker='NetBSD ld.elf_so' |
| 9644 | fi |
| 9645 | shlibpath_var=LD_LIBRARY_PATH |
| 9646 | shlibpath_overrides_runpath=yes |
| 9647 | hardcode_into_libs=yes |
| 9648 | ;; |
| 9649 | |
| 9650 | newsos6) |
| 9651 | version_type=linux |
| 9652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9653 | shlibpath_var=LD_LIBRARY_PATH |
| 9654 | shlibpath_overrides_runpath=yes |
| 9655 | ;; |
| 9656 | |
| 9657 | nto-qnx*) |
| 9658 | version_type=linux |
| 9659 | need_lib_prefix=no |
| 9660 | need_version=no |
| 9661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9663 | shlibpath_var=LD_LIBRARY_PATH |
| 9664 | shlibpath_overrides_runpath=yes |
| 9665 | ;; |
| 9666 | |
| 9667 | openbsd*) |
| 9668 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9669 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9670 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9671 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9672 | case $host_os in |
| 9673 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9674 | *) need_version=no ;; |
| 9675 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9677 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9678 | shlibpath_var=LD_LIBRARY_PATH |
| 9679 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9680 | case $host_os in |
| 9681 | openbsd2.[89] | openbsd2.[89].*) |
| 9682 | shlibpath_overrides_runpath=no |
| 9683 | ;; |
| 9684 | *) |
| 9685 | shlibpath_overrides_runpath=yes |
| 9686 | ;; |
| 9687 | esac |
| 9688 | else |
| 9689 | shlibpath_overrides_runpath=yes |
| 9690 | fi |
| 9691 | ;; |
| 9692 | |
| 9693 | os2*) |
| 9694 | libname_spec='$name' |
| 9695 | shrext_cmds=".dll" |
| 9696 | need_lib_prefix=no |
| 9697 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9698 | dynamic_linker='OS/2 ld.exe' |
| 9699 | shlibpath_var=LIBPATH |
| 9700 | ;; |
| 9701 | |
| 9702 | osf3* | osf4* | osf5*) |
| 9703 | version_type=osf |
| 9704 | need_lib_prefix=no |
| 9705 | need_version=no |
| 9706 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9708 | shlibpath_var=LD_LIBRARY_PATH |
| 9709 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9710 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9711 | ;; |
| 9712 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9713 | solaris*) |
| 9714 | version_type=linux |
| 9715 | need_lib_prefix=no |
| 9716 | need_version=no |
| 9717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9718 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9719 | shlibpath_var=LD_LIBRARY_PATH |
| 9720 | shlibpath_overrides_runpath=yes |
| 9721 | hardcode_into_libs=yes |
| 9722 | # ldd complains unless libraries are executable |
| 9723 | postinstall_cmds='chmod +x $lib' |
| 9724 | ;; |
| 9725 | |
| 9726 | sunos4*) |
| 9727 | version_type=sunos |
| 9728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9729 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9730 | shlibpath_var=LD_LIBRARY_PATH |
| 9731 | shlibpath_overrides_runpath=yes |
| 9732 | if test "$with_gnu_ld" = yes; then |
| 9733 | need_lib_prefix=no |
| 9734 | fi |
| 9735 | need_version=yes |
| 9736 | ;; |
| 9737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9738 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9739 | version_type=linux |
| 9740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9741 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9742 | shlibpath_var=LD_LIBRARY_PATH |
| 9743 | case $host_vendor in |
| 9744 | sni) |
| 9745 | shlibpath_overrides_runpath=no |
| 9746 | need_lib_prefix=no |
| 9747 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9748 | runpath_var=LD_RUN_PATH |
| 9749 | ;; |
| 9750 | siemens) |
| 9751 | need_lib_prefix=no |
| 9752 | ;; |
| 9753 | motorola) |
| 9754 | need_lib_prefix=no |
| 9755 | need_version=no |
| 9756 | shlibpath_overrides_runpath=no |
| 9757 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9758 | ;; |
| 9759 | esac |
| 9760 | ;; |
| 9761 | |
| 9762 | sysv4*MP*) |
| 9763 | if test -d /usr/nec ;then |
| 9764 | version_type=linux |
| 9765 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9766 | soname_spec='$libname${shared_ext}.$major' |
| 9767 | shlibpath_var=LD_LIBRARY_PATH |
| 9768 | fi |
| 9769 | ;; |
| 9770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9771 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9772 | version_type=freebsd-elf |
| 9773 | need_lib_prefix=no |
| 9774 | need_version=no |
| 9775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9776 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9777 | shlibpath_var=LD_LIBRARY_PATH |
| 9778 | hardcode_into_libs=yes |
| 9779 | if test "$with_gnu_ld" = yes; then |
| 9780 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9781 | shlibpath_overrides_runpath=no |
| 9782 | else |
| 9783 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9784 | shlibpath_overrides_runpath=yes |
| 9785 | case $host_os in |
| 9786 | sco3.2v5*) |
| 9787 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9788 | ;; |
| 9789 | esac |
| 9790 | fi |
| 9791 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9792 | ;; |
| 9793 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9794 | uts4*) |
| 9795 | version_type=linux |
| 9796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9797 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9798 | shlibpath_var=LD_LIBRARY_PATH |
| 9799 | ;; |
| 9800 | |
| 9801 | *) |
| 9802 | dynamic_linker=no |
| 9803 | ;; |
| 9804 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9805 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9806 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9807 | test "$dynamic_linker" = no && can_build_shared=no |
| 9808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9809 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9810 | if test "$GCC" = yes; then |
| 9811 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9812 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9814 | |
| 9815 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9816 | 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] | 9817 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9819 | else |
| 9820 | |
| 9821 | module=yes |
| 9822 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9823 | |
| 9824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9825 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9826 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9827 | if test -n "$libltdl_cv_shlibext"; then |
| 9828 | |
| 9829 | cat >>confdefs.h <<_ACEOF |
| 9830 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9831 | _ACEOF |
| 9832 | |
| 9833 | fi |
| 9834 | |
| 9835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9836 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9837 | 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] | 9838 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9840 | else |
| 9841 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9843 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9844 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9845 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9846 | |
| 9847 | cat >>confdefs.h <<_ACEOF |
| 9848 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9849 | _ACEOF |
| 9850 | |
| 9851 | fi |
| 9852 | |
| 9853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9854 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9855 | 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] | 9856 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9858 | else |
| 9859 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9860 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9861 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9862 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9863 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9864 | sys_search_path= |
| 9865 | for dir in $libltdl_cv_sys_search_path; do |
| 9866 | if test -z "$sys_search_path"; then |
| 9867 | sys_search_path="$dir" |
| 9868 | else |
| 9869 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9870 | fi |
| 9871 | done |
| 9872 | |
| 9873 | cat >>confdefs.h <<_ACEOF |
| 9874 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9875 | _ACEOF |
| 9876 | |
| 9877 | fi |
| 9878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9879 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9880 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9881 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9883 | else |
| 9884 | libltdl_cv_objdir="$objdir" |
| 9885 | if test -n "$objdir"; then |
| 9886 | : |
| 9887 | else |
| 9888 | rm -f .libs 2>/dev/null |
| 9889 | mkdir .libs 2>/dev/null |
| 9890 | if test -d .libs; then |
| 9891 | libltdl_cv_objdir=.libs |
| 9892 | else |
| 9893 | # MS-DOS does not allow filenames that begin with a dot. |
| 9894 | libltdl_cv_objdir=_libs |
| 9895 | fi |
| 9896 | rmdir .libs 2>/dev/null |
| 9897 | fi |
| 9898 | |
| 9899 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9900 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9901 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9902 | |
| 9903 | cat >>confdefs.h <<_ACEOF |
| 9904 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9905 | _ACEOF |
| 9906 | |
| 9907 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9908 | |
| 9909 | |
| 9910 | |
| 9911 | |
| 9912 | # 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] | 9913 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9914 | 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] | 9915 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9917 | else |
| 9918 | |
| 9919 | # These are sane defaults that work on at least a few old systems. |
| 9920 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9921 | |
| 9922 | # Character class describing NM global symbol codes. |
| 9923 | symcode='[BCDEGRST]' |
| 9924 | |
| 9925 | # Regexp to match symbols that can be accessed directly from C. |
| 9926 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9927 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9928 | # Transform an extracted symbol line into a proper C declaration |
| 9929 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9930 | |
| 9931 | # Transform an extracted symbol line into symbol name and symbol address |
| 9932 | 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'" |
| 9933 | |
| 9934 | # Define system-specific variables. |
| 9935 | case $host_os in |
| 9936 | aix*) |
| 9937 | symcode='[BCDT]' |
| 9938 | ;; |
| 9939 | cygwin* | mingw* | pw32*) |
| 9940 | symcode='[ABCDGISTW]' |
| 9941 | ;; |
| 9942 | hpux*) # Its linker distinguishes data from code symbols |
| 9943 | if test "$host_cpu" = ia64; then |
| 9944 | symcode='[ABCDEGRST]' |
| 9945 | fi |
| 9946 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9947 | 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'" |
| 9948 | ;; |
| 9949 | linux*) |
| 9950 | if test "$host_cpu" = ia64; then |
| 9951 | symcode='[ABCDGIRSTW]' |
| 9952 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9953 | 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'" |
| 9954 | fi |
| 9955 | ;; |
| 9956 | irix* | nonstopux*) |
| 9957 | symcode='[BCDEGRST]' |
| 9958 | ;; |
| 9959 | osf*) |
| 9960 | symcode='[BCDEGQRST]' |
| 9961 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9962 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9963 | symcode='[BDRT]' |
| 9964 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9965 | sco3.2v5*) |
| 9966 | symcode='[DT]' |
| 9967 | ;; |
| 9968 | sysv4.2uw2*) |
| 9969 | symcode='[DT]' |
| 9970 | ;; |
| 9971 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9972 | symcode='[ABDT]' |
| 9973 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9974 | sysv4) |
| 9975 | symcode='[DFNSTU]' |
| 9976 | ;; |
| 9977 | esac |
| 9978 | |
| 9979 | # Handle CRLF in mingw tool chain |
| 9980 | opt_cr= |
| 9981 | case $build_os in |
| 9982 | mingw*) |
| 9983 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9984 | ;; |
| 9985 | esac |
| 9986 | |
| 9987 | # If we're using GNU nm, then use its standard symbol codes. |
| 9988 | case `$NM -V 2>&1` in |
| 9989 | *GNU* | *'with BFD'*) |
| 9990 | symcode='[ABCDGIRSTW]' ;; |
| 9991 | esac |
| 9992 | |
| 9993 | # Try without a prefix undercore, then with it. |
| 9994 | for ac_symprfx in "" "_"; do |
| 9995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9996 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9997 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9998 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9999 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10000 | 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] | 10001 | |
| 10002 | # Check to see that the pipe works correctly. |
| 10003 | pipe_works=no |
| 10004 | |
| 10005 | rm -f conftest* |
| 10006 | cat > conftest.$ac_ext <<EOF |
| 10007 | #ifdef __cplusplus |
| 10008 | extern "C" { |
| 10009 | #endif |
| 10010 | char nm_test_var; |
| 10011 | void nm_test_func(){} |
| 10012 | #ifdef __cplusplus |
| 10013 | } |
| 10014 | #endif |
| 10015 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10016 | EOF |
| 10017 | |
| 10018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10019 | (eval $ac_compile) 2>&5 |
| 10020 | ac_status=$? |
| 10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10022 | (exit $ac_status); }; then |
| 10023 | # Now try to grab the symbols. |
| 10024 | nlist=conftest.nm |
| 10025 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 10026 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10027 | ac_status=$? |
| 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); } && test -s "$nlist"; then |
| 10030 | # Try sorting and uniquifying the output. |
| 10031 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10032 | mv -f "$nlist"T "$nlist" |
| 10033 | else |
| 10034 | rm -f "$nlist"T |
| 10035 | fi |
| 10036 | |
| 10037 | # Make sure that we snagged all the symbols we need. |
| 10038 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10039 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10040 | cat <<EOF > conftest.$ac_ext |
| 10041 | #ifdef __cplusplus |
| 10042 | extern "C" { |
| 10043 | #endif |
| 10044 | |
| 10045 | EOF |
| 10046 | # Now generate the symbol file. |
| 10047 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10048 | |
| 10049 | cat <<EOF >> conftest.$ac_ext |
| 10050 | #if defined (__STDC__) && __STDC__ |
| 10051 | # define lt_ptr_t void * |
| 10052 | #else |
| 10053 | # define lt_ptr_t char * |
| 10054 | # define const |
| 10055 | #endif |
| 10056 | |
| 10057 | /* The mapping between symbol names and symbols. */ |
| 10058 | const struct { |
| 10059 | const char *name; |
| 10060 | lt_ptr_t address; |
| 10061 | } |
| 10062 | lt_preloaded_symbols[] = |
| 10063 | { |
| 10064 | EOF |
| 10065 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10066 | cat <<\EOF >> conftest.$ac_ext |
| 10067 | {0, (lt_ptr_t) 0} |
| 10068 | }; |
| 10069 | |
| 10070 | #ifdef __cplusplus |
| 10071 | } |
| 10072 | #endif |
| 10073 | EOF |
| 10074 | # Now try linking the two files. |
| 10075 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10076 | lt_save_LIBS="$LIBS" |
| 10077 | lt_save_CFLAGS="$CFLAGS" |
| 10078 | LIBS="conftstm.$ac_objext" |
| 10079 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 10080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10081 | (eval $ac_link) 2>&5 |
| 10082 | ac_status=$? |
| 10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10084 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 10085 | pipe_works=yes |
| 10086 | fi |
| 10087 | LIBS="$lt_save_LIBS" |
| 10088 | CFLAGS="$lt_save_CFLAGS" |
| 10089 | else |
| 10090 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10091 | fi |
| 10092 | else |
| 10093 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10094 | fi |
| 10095 | else |
| 10096 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10097 | fi |
| 10098 | else |
| 10099 | echo "$progname: failed program was:" >&5 |
| 10100 | cat conftest.$ac_ext >&5 |
| 10101 | fi |
| 10102 | rm -f conftest* conftst* |
| 10103 | |
| 10104 | # Do not use the global_symbol_pipe unless it works. |
| 10105 | if test "$pipe_works" = yes; then |
| 10106 | break |
| 10107 | else |
| 10108 | lt_cv_sys_global_symbol_pipe= |
| 10109 | fi |
| 10110 | done |
| 10111 | |
| 10112 | fi |
| 10113 | |
| 10114 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10115 | lt_cv_sys_global_symbol_to_cdecl= |
| 10116 | fi |
| 10117 | 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] | 10118 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10119 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10120 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10121 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10122 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10123 | fi |
| 10124 | |
| 10125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10126 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10127 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10128 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10130 | else |
| 10131 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10132 | libltdl_cv_preloaded_symbols=yes |
| 10133 | else |
| 10134 | libltdl_cv_preloaded_symbols=no |
| 10135 | fi |
| 10136 | |
| 10137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10138 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10139 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10140 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10141 | |
| 10142 | cat >>confdefs.h <<\_ACEOF |
| 10143 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10144 | _ACEOF |
| 10145 | |
| 10146 | fi |
| 10147 | |
| 10148 | LIBADD_DL= |
| 10149 | |
| 10150 | ac_ext=c |
| 10151 | ac_cpp='$CPP $CPPFLAGS' |
| 10152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10155 | |
| 10156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10157 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10158 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10159 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10161 | else |
| 10162 | cat >conftest.$ac_ext <<_ACEOF |
| 10163 | /* confdefs.h. */ |
| 10164 | _ACEOF |
| 10165 | cat confdefs.h >>conftest.$ac_ext |
| 10166 | cat >>conftest.$ac_ext <<_ACEOF |
| 10167 | /* end confdefs.h. */ |
| 10168 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10169 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10170 | #define shl_load innocuous_shl_load |
| 10171 | |
| 10172 | /* System header to define __stub macros and hopefully few prototypes, |
| 10173 | which can conflict with char shl_load (); below. |
| 10174 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10175 | <limits.h> exists even on freestanding compilers. */ |
| 10176 | |
| 10177 | #ifdef __STDC__ |
| 10178 | # include <limits.h> |
| 10179 | #else |
| 10180 | # include <assert.h> |
| 10181 | #endif |
| 10182 | |
| 10183 | #undef shl_load |
| 10184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10185 | /* Override any GCC internal prototype to avoid an error. |
| 10186 | Use char because int might match the return type of a GCC |
| 10187 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10188 | #ifdef __cplusplus |
| 10189 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10190 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10191 | char shl_load (); |
| 10192 | /* The GNU C library defines this for functions which it implements |
| 10193 | to always fail with ENOSYS. Some functions are actually named |
| 10194 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10195 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10196 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10197 | #endif |
| 10198 | |
| 10199 | int |
| 10200 | main () |
| 10201 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10202 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10203 | ; |
| 10204 | return 0; |
| 10205 | } |
| 10206 | _ACEOF |
| 10207 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10208 | if { (ac_try="$ac_link" |
| 10209 | case "(($ac_try" in |
| 10210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10211 | *) ac_try_echo=$ac_try;; |
| 10212 | esac |
| 10213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10214 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10215 | ac_status=$? |
| 10216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10217 | rm -f conftest.er1 |
| 10218 | cat conftest.err >&5 |
| 10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10220 | (exit $ac_status); } && |
| 10221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10222 | { (case "(($ac_try" in |
| 10223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10224 | *) ac_try_echo=$ac_try;; |
| 10225 | esac |
| 10226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10227 | (eval "$ac_try") 2>&5 |
| 10228 | ac_status=$? |
| 10229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10230 | (exit $ac_status); }; } && |
| 10231 | { ac_try='test -s conftest$ac_exeext' |
| 10232 | { (case "(($ac_try" in |
| 10233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10234 | *) ac_try_echo=$ac_try;; |
| 10235 | esac |
| 10236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10237 | (eval "$ac_try") 2>&5 |
| 10238 | ac_status=$? |
| 10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10240 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10241 | ac_cv_func_shl_load=yes |
| 10242 | else |
| 10243 | echo "$as_me: failed program was:" >&5 |
| 10244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10246 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10248 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10249 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10250 | conftest$ac_exeext conftest.$ac_ext |
| 10251 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10252 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10253 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10254 | if test $ac_cv_func_shl_load = yes; then |
| 10255 | |
| 10256 | cat >>confdefs.h <<\_ACEOF |
| 10257 | #define HAVE_SHL_LOAD 1 |
| 10258 | _ACEOF |
| 10259 | |
| 10260 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10261 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10262 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10263 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10265 | else |
| 10266 | ac_check_lib_save_LIBS=$LIBS |
| 10267 | LIBS="-ldld $LIBS" |
| 10268 | cat >conftest.$ac_ext <<_ACEOF |
| 10269 | /* confdefs.h. */ |
| 10270 | _ACEOF |
| 10271 | cat confdefs.h >>conftest.$ac_ext |
| 10272 | cat >>conftest.$ac_ext <<_ACEOF |
| 10273 | /* end confdefs.h. */ |
| 10274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10275 | /* Override any GCC internal prototype to avoid an error. |
| 10276 | Use char because int might match the return type of a GCC |
| 10277 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10278 | #ifdef __cplusplus |
| 10279 | extern "C" |
| 10280 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10281 | char shl_load (); |
| 10282 | int |
| 10283 | main () |
| 10284 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10285 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10286 | ; |
| 10287 | return 0; |
| 10288 | } |
| 10289 | _ACEOF |
| 10290 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10291 | if { (ac_try="$ac_link" |
| 10292 | case "(($ac_try" in |
| 10293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10294 | *) ac_try_echo=$ac_try;; |
| 10295 | esac |
| 10296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10297 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10298 | ac_status=$? |
| 10299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10300 | rm -f conftest.er1 |
| 10301 | cat conftest.err >&5 |
| 10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10303 | (exit $ac_status); } && |
| 10304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10305 | { (case "(($ac_try" in |
| 10306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10307 | *) ac_try_echo=$ac_try;; |
| 10308 | esac |
| 10309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10310 | (eval "$ac_try") 2>&5 |
| 10311 | ac_status=$? |
| 10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10313 | (exit $ac_status); }; } && |
| 10314 | { ac_try='test -s conftest$ac_exeext' |
| 10315 | { (case "(($ac_try" in |
| 10316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10317 | *) ac_try_echo=$ac_try;; |
| 10318 | esac |
| 10319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10320 | (eval "$ac_try") 2>&5 |
| 10321 | ac_status=$? |
| 10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10323 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10324 | ac_cv_lib_dld_shl_load=yes |
| 10325 | else |
| 10326 | echo "$as_me: failed program was:" >&5 |
| 10327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10329 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10331 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10332 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10333 | conftest$ac_exeext conftest.$ac_ext |
| 10334 | LIBS=$ac_check_lib_save_LIBS |
| 10335 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10336 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10337 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10338 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10339 | |
| 10340 | cat >>confdefs.h <<\_ACEOF |
| 10341 | #define HAVE_SHL_LOAD 1 |
| 10342 | _ACEOF |
| 10343 | |
| 10344 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10345 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10346 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10347 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10348 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10350 | else |
| 10351 | ac_check_lib_save_LIBS=$LIBS |
| 10352 | LIBS="-ldl $LIBS" |
| 10353 | cat >conftest.$ac_ext <<_ACEOF |
| 10354 | /* confdefs.h. */ |
| 10355 | _ACEOF |
| 10356 | cat confdefs.h >>conftest.$ac_ext |
| 10357 | cat >>conftest.$ac_ext <<_ACEOF |
| 10358 | /* end confdefs.h. */ |
| 10359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10360 | /* Override any GCC internal prototype to avoid an error. |
| 10361 | Use char because int might match the return type of a GCC |
| 10362 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10363 | #ifdef __cplusplus |
| 10364 | extern "C" |
| 10365 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10366 | char dlopen (); |
| 10367 | int |
| 10368 | main () |
| 10369 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10370 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10371 | ; |
| 10372 | return 0; |
| 10373 | } |
| 10374 | _ACEOF |
| 10375 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10376 | if { (ac_try="$ac_link" |
| 10377 | case "(($ac_try" in |
| 10378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10379 | *) ac_try_echo=$ac_try;; |
| 10380 | esac |
| 10381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10382 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10383 | ac_status=$? |
| 10384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10385 | rm -f conftest.er1 |
| 10386 | cat conftest.err >&5 |
| 10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10388 | (exit $ac_status); } && |
| 10389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10390 | { (case "(($ac_try" in |
| 10391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10392 | *) ac_try_echo=$ac_try;; |
| 10393 | esac |
| 10394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10395 | (eval "$ac_try") 2>&5 |
| 10396 | ac_status=$? |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); }; } && |
| 10399 | { ac_try='test -s conftest$ac_exeext' |
| 10400 | { (case "(($ac_try" in |
| 10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10402 | *) ac_try_echo=$ac_try;; |
| 10403 | esac |
| 10404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10405 | (eval "$ac_try") 2>&5 |
| 10406 | ac_status=$? |
| 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10408 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10409 | ac_cv_lib_dl_dlopen=yes |
| 10410 | else |
| 10411 | echo "$as_me: failed program was:" >&5 |
| 10412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10414 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10415 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10416 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10417 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10418 | conftest$ac_exeext conftest.$ac_ext |
| 10419 | LIBS=$ac_check_lib_save_LIBS |
| 10420 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10421 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10422 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10423 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10424 | |
| 10425 | cat >>confdefs.h <<\_ACEOF |
| 10426 | #define HAVE_LIBDL 1 |
| 10427 | _ACEOF |
| 10428 | |
| 10429 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10430 | else |
| 10431 | cat >conftest.$ac_ext <<_ACEOF |
| 10432 | /* confdefs.h. */ |
| 10433 | _ACEOF |
| 10434 | cat confdefs.h >>conftest.$ac_ext |
| 10435 | cat >>conftest.$ac_ext <<_ACEOF |
| 10436 | /* end confdefs.h. */ |
| 10437 | #if HAVE_DLFCN_H |
| 10438 | # include <dlfcn.h> |
| 10439 | #endif |
| 10440 | |
| 10441 | int |
| 10442 | main () |
| 10443 | { |
| 10444 | dlopen(0, 0); |
| 10445 | ; |
| 10446 | return 0; |
| 10447 | } |
| 10448 | _ACEOF |
| 10449 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10450 | if { (ac_try="$ac_link" |
| 10451 | case "(($ac_try" in |
| 10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10453 | *) ac_try_echo=$ac_try;; |
| 10454 | esac |
| 10455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10456 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | ac_status=$? |
| 10458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10459 | rm -f conftest.er1 |
| 10460 | cat conftest.err >&5 |
| 10461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10462 | (exit $ac_status); } && |
| 10463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10464 | { (case "(($ac_try" in |
| 10465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10466 | *) ac_try_echo=$ac_try;; |
| 10467 | esac |
| 10468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10469 | (eval "$ac_try") 2>&5 |
| 10470 | ac_status=$? |
| 10471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10472 | (exit $ac_status); }; } && |
| 10473 | { ac_try='test -s conftest$ac_exeext' |
| 10474 | { (case "(($ac_try" in |
| 10475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10476 | *) ac_try_echo=$ac_try;; |
| 10477 | esac |
| 10478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10479 | (eval "$ac_try") 2>&5 |
| 10480 | ac_status=$? |
| 10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10482 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10483 | |
| 10484 | cat >>confdefs.h <<\_ACEOF |
| 10485 | #define HAVE_LIBDL 1 |
| 10486 | _ACEOF |
| 10487 | libltdl_cv_func_dlopen="yes" |
| 10488 | else |
| 10489 | echo "$as_me: failed program was:" >&5 |
| 10490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10492 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10493 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10494 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10496 | else |
| 10497 | ac_check_lib_save_LIBS=$LIBS |
| 10498 | LIBS="-lsvld $LIBS" |
| 10499 | cat >conftest.$ac_ext <<_ACEOF |
| 10500 | /* confdefs.h. */ |
| 10501 | _ACEOF |
| 10502 | cat confdefs.h >>conftest.$ac_ext |
| 10503 | cat >>conftest.$ac_ext <<_ACEOF |
| 10504 | /* end confdefs.h. */ |
| 10505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10506 | /* Override any GCC internal prototype to avoid an error. |
| 10507 | Use char because int might match the return type of a GCC |
| 10508 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | #ifdef __cplusplus |
| 10510 | extern "C" |
| 10511 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10512 | char dlopen (); |
| 10513 | int |
| 10514 | main () |
| 10515 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10516 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10517 | ; |
| 10518 | return 0; |
| 10519 | } |
| 10520 | _ACEOF |
| 10521 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10522 | if { (ac_try="$ac_link" |
| 10523 | case "(($ac_try" in |
| 10524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10525 | *) ac_try_echo=$ac_try;; |
| 10526 | esac |
| 10527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10528 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10529 | ac_status=$? |
| 10530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10531 | rm -f conftest.er1 |
| 10532 | cat conftest.err >&5 |
| 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10534 | (exit $ac_status); } && |
| 10535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10536 | { (case "(($ac_try" in |
| 10537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10538 | *) ac_try_echo=$ac_try;; |
| 10539 | esac |
| 10540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10541 | (eval "$ac_try") 2>&5 |
| 10542 | ac_status=$? |
| 10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10544 | (exit $ac_status); }; } && |
| 10545 | { ac_try='test -s conftest$ac_exeext' |
| 10546 | { (case "(($ac_try" in |
| 10547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10548 | *) ac_try_echo=$ac_try;; |
| 10549 | esac |
| 10550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10551 | (eval "$ac_try") 2>&5 |
| 10552 | ac_status=$? |
| 10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10554 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10555 | ac_cv_lib_svld_dlopen=yes |
| 10556 | else |
| 10557 | echo "$as_me: failed program was:" >&5 |
| 10558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10560 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10562 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10563 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10564 | conftest$ac_exeext conftest.$ac_ext |
| 10565 | LIBS=$ac_check_lib_save_LIBS |
| 10566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10567 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10568 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10570 | |
| 10571 | cat >>confdefs.h <<\_ACEOF |
| 10572 | #define HAVE_LIBDL 1 |
| 10573 | _ACEOF |
| 10574 | |
| 10575 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10576 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10577 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10578 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10581 | else |
| 10582 | ac_check_lib_save_LIBS=$LIBS |
| 10583 | LIBS="-ldld $LIBS" |
| 10584 | cat >conftest.$ac_ext <<_ACEOF |
| 10585 | /* confdefs.h. */ |
| 10586 | _ACEOF |
| 10587 | cat confdefs.h >>conftest.$ac_ext |
| 10588 | cat >>conftest.$ac_ext <<_ACEOF |
| 10589 | /* end confdefs.h. */ |
| 10590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10591 | /* Override any GCC internal prototype to avoid an error. |
| 10592 | Use char because int might match the return type of a GCC |
| 10593 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10594 | #ifdef __cplusplus |
| 10595 | extern "C" |
| 10596 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10597 | char dld_link (); |
| 10598 | int |
| 10599 | main () |
| 10600 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10601 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10602 | ; |
| 10603 | return 0; |
| 10604 | } |
| 10605 | _ACEOF |
| 10606 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10607 | if { (ac_try="$ac_link" |
| 10608 | case "(($ac_try" in |
| 10609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10610 | *) ac_try_echo=$ac_try;; |
| 10611 | esac |
| 10612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10613 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10614 | ac_status=$? |
| 10615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10616 | rm -f conftest.er1 |
| 10617 | cat conftest.err >&5 |
| 10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10619 | (exit $ac_status); } && |
| 10620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10621 | { (case "(($ac_try" in |
| 10622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10623 | *) ac_try_echo=$ac_try;; |
| 10624 | esac |
| 10625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10626 | (eval "$ac_try") 2>&5 |
| 10627 | ac_status=$? |
| 10628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10629 | (exit $ac_status); }; } && |
| 10630 | { ac_try='test -s conftest$ac_exeext' |
| 10631 | { (case "(($ac_try" in |
| 10632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10633 | *) ac_try_echo=$ac_try;; |
| 10634 | esac |
| 10635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10636 | (eval "$ac_try") 2>&5 |
| 10637 | ac_status=$? |
| 10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10639 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10640 | ac_cv_lib_dld_dld_link=yes |
| 10641 | else |
| 10642 | echo "$as_me: failed program was:" >&5 |
| 10643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10645 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10646 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10647 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10648 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10649 | conftest$ac_exeext conftest.$ac_ext |
| 10650 | LIBS=$ac_check_lib_save_LIBS |
| 10651 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10652 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10653 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10654 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10655 | |
| 10656 | cat >>confdefs.h <<\_ACEOF |
| 10657 | #define HAVE_DLD 1 |
| 10658 | _ACEOF |
| 10659 | |
| 10660 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10661 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10662 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10663 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10664 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10666 | else |
| 10667 | cat >conftest.$ac_ext <<_ACEOF |
| 10668 | /* confdefs.h. */ |
| 10669 | _ACEOF |
| 10670 | cat confdefs.h >>conftest.$ac_ext |
| 10671 | cat >>conftest.$ac_ext <<_ACEOF |
| 10672 | /* end confdefs.h. */ |
| 10673 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10675 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10676 | |
| 10677 | /* System header to define __stub macros and hopefully few prototypes, |
| 10678 | which can conflict with char _dyld_func_lookup (); below. |
| 10679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10680 | <limits.h> exists even on freestanding compilers. */ |
| 10681 | |
| 10682 | #ifdef __STDC__ |
| 10683 | # include <limits.h> |
| 10684 | #else |
| 10685 | # include <assert.h> |
| 10686 | #endif |
| 10687 | |
| 10688 | #undef _dyld_func_lookup |
| 10689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10690 | /* Override any GCC internal prototype to avoid an error. |
| 10691 | Use char because int might match the return type of a GCC |
| 10692 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10693 | #ifdef __cplusplus |
| 10694 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10695 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10696 | char _dyld_func_lookup (); |
| 10697 | /* The GNU C library defines this for functions which it implements |
| 10698 | to always fail with ENOSYS. Some functions are actually named |
| 10699 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10700 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10701 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10702 | #endif |
| 10703 | |
| 10704 | int |
| 10705 | main () |
| 10706 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10707 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | ; |
| 10709 | return 0; |
| 10710 | } |
| 10711 | _ACEOF |
| 10712 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10713 | if { (ac_try="$ac_link" |
| 10714 | case "(($ac_try" in |
| 10715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10716 | *) ac_try_echo=$ac_try;; |
| 10717 | esac |
| 10718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10719 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10720 | ac_status=$? |
| 10721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10722 | rm -f conftest.er1 |
| 10723 | cat conftest.err >&5 |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10725 | (exit $ac_status); } && |
| 10726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10727 | { (case "(($ac_try" in |
| 10728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10729 | *) ac_try_echo=$ac_try;; |
| 10730 | esac |
| 10731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10732 | (eval "$ac_try") 2>&5 |
| 10733 | ac_status=$? |
| 10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10735 | (exit $ac_status); }; } && |
| 10736 | { ac_try='test -s conftest$ac_exeext' |
| 10737 | { (case "(($ac_try" in |
| 10738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10739 | *) ac_try_echo=$ac_try;; |
| 10740 | esac |
| 10741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10742 | (eval "$ac_try") 2>&5 |
| 10743 | ac_status=$? |
| 10744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10745 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10746 | ac_cv_func__dyld_func_lookup=yes |
| 10747 | else |
| 10748 | echo "$as_me: failed program was:" >&5 |
| 10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10751 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10752 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10753 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10754 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10755 | conftest$ac_exeext conftest.$ac_ext |
| 10756 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10757 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10758 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10759 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10760 | |
| 10761 | cat >>confdefs.h <<\_ACEOF |
| 10762 | #define HAVE_DYLD 1 |
| 10763 | _ACEOF |
| 10764 | |
| 10765 | fi |
| 10766 | |
| 10767 | |
| 10768 | fi |
| 10769 | |
| 10770 | |
| 10771 | fi |
| 10772 | |
| 10773 | |
| 10774 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10775 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10776 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10777 | conftest$ac_exeext conftest.$ac_ext |
| 10778 | |
| 10779 | fi |
| 10780 | |
| 10781 | |
| 10782 | fi |
| 10783 | |
| 10784 | |
| 10785 | fi |
| 10786 | |
| 10787 | |
| 10788 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10789 | then |
| 10790 | lt_save_LIBS="$LIBS" |
| 10791 | LIBS="$LIBS $LIBADD_DL" |
| 10792 | |
| 10793 | for ac_func in dlerror |
| 10794 | do |
| 10795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10796 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10798 | 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] | 10799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10800 | else |
| 10801 | cat >conftest.$ac_ext <<_ACEOF |
| 10802 | /* confdefs.h. */ |
| 10803 | _ACEOF |
| 10804 | cat confdefs.h >>conftest.$ac_ext |
| 10805 | cat >>conftest.$ac_ext <<_ACEOF |
| 10806 | /* end confdefs.h. */ |
| 10807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10809 | #define $ac_func innocuous_$ac_func |
| 10810 | |
| 10811 | /* System header to define __stub macros and hopefully few prototypes, |
| 10812 | which can conflict with char $ac_func (); below. |
| 10813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10814 | <limits.h> exists even on freestanding compilers. */ |
| 10815 | |
| 10816 | #ifdef __STDC__ |
| 10817 | # include <limits.h> |
| 10818 | #else |
| 10819 | # include <assert.h> |
| 10820 | #endif |
| 10821 | |
| 10822 | #undef $ac_func |
| 10823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10824 | /* Override any GCC internal prototype to avoid an error. |
| 10825 | Use char because int might match the return type of a GCC |
| 10826 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10827 | #ifdef __cplusplus |
| 10828 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10829 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10830 | char $ac_func (); |
| 10831 | /* The GNU C library defines this for functions which it implements |
| 10832 | to always fail with ENOSYS. Some functions are actually named |
| 10833 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10834 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10835 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10836 | #endif |
| 10837 | |
| 10838 | int |
| 10839 | main () |
| 10840 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10841 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10842 | ; |
| 10843 | return 0; |
| 10844 | } |
| 10845 | _ACEOF |
| 10846 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10847 | if { (ac_try="$ac_link" |
| 10848 | case "(($ac_try" in |
| 10849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10850 | *) ac_try_echo=$ac_try;; |
| 10851 | esac |
| 10852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10853 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10854 | ac_status=$? |
| 10855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10856 | rm -f conftest.er1 |
| 10857 | cat conftest.err >&5 |
| 10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10859 | (exit $ac_status); } && |
| 10860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10861 | { (case "(($ac_try" in |
| 10862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10863 | *) ac_try_echo=$ac_try;; |
| 10864 | esac |
| 10865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10866 | (eval "$ac_try") 2>&5 |
| 10867 | ac_status=$? |
| 10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10869 | (exit $ac_status); }; } && |
| 10870 | { ac_try='test -s conftest$ac_exeext' |
| 10871 | { (case "(($ac_try" in |
| 10872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10873 | *) ac_try_echo=$ac_try;; |
| 10874 | esac |
| 10875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10876 | (eval "$ac_try") 2>&5 |
| 10877 | ac_status=$? |
| 10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10879 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10880 | eval "$as_ac_var=yes" |
| 10881 | else |
| 10882 | echo "$as_me: failed program was:" >&5 |
| 10883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10885 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10886 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10887 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10888 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10889 | conftest$ac_exeext conftest.$ac_ext |
| 10890 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10891 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10893 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10894 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10895 | cat >>confdefs.h <<_ACEOF |
| 10896 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10897 | _ACEOF |
| 10898 | |
| 10899 | fi |
| 10900 | done |
| 10901 | |
| 10902 | LIBS="$lt_save_LIBS" |
| 10903 | fi |
| 10904 | ac_ext=c |
| 10905 | ac_cpp='$CPP $CPPFLAGS' |
| 10906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10909 | |
| 10910 | |
| 10911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10912 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10913 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10914 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10916 | else |
| 10917 | ac_cv_sys_symbol_underscore=no |
| 10918 | cat > conftest.$ac_ext <<EOF |
| 10919 | void nm_test_func(){} |
| 10920 | int main(){nm_test_func;return 0;} |
| 10921 | EOF |
| 10922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10923 | (eval $ac_compile) 2>&5 |
| 10924 | ac_status=$? |
| 10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10926 | (exit $ac_status); }; then |
| 10927 | # Now try to grab the symbols. |
| 10928 | ac_nlist=conftest.nm |
| 10929 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10930 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10931 | ac_status=$? |
| 10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10933 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10934 | # See whether the symbols have a leading underscore. |
| 10935 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10936 | ac_cv_sys_symbol_underscore=yes |
| 10937 | else |
| 10938 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10939 | : |
| 10940 | else |
| 10941 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10942 | fi |
| 10943 | fi |
| 10944 | else |
| 10945 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10946 | fi |
| 10947 | else |
| 10948 | echo "configure: failed program was:" >&5 |
| 10949 | cat conftest.c >&5 |
| 10950 | fi |
| 10951 | rm -rf conftest* |
| 10952 | |
| 10953 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10954 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10955 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10956 | |
| 10957 | |
| 10958 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10959 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10960 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10961 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10962 | 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] | 10963 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10965 | else |
| 10966 | libltdl_cv_need_uscore=unknown |
| 10967 | save_LIBS="$LIBS" |
| 10968 | LIBS="$LIBS $LIBADD_DL" |
| 10969 | if test "$cross_compiling" = yes; then : |
| 10970 | libltdl_cv_need_uscore=cross |
| 10971 | else |
| 10972 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10973 | lt_status=$lt_dlunknown |
| 10974 | cat > conftest.$ac_ext <<EOF |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 10975 | #line 10975 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10976 | #include "confdefs.h" |
| 10977 | |
| 10978 | #if HAVE_DLFCN_H |
| 10979 | #include <dlfcn.h> |
| 10980 | #endif |
| 10981 | |
| 10982 | #include <stdio.h> |
| 10983 | |
| 10984 | #ifdef RTLD_GLOBAL |
| 10985 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10986 | #else |
| 10987 | # ifdef DL_GLOBAL |
| 10988 | # define LT_DLGLOBAL DL_GLOBAL |
| 10989 | # else |
| 10990 | # define LT_DLGLOBAL 0 |
| 10991 | # endif |
| 10992 | #endif |
| 10993 | |
| 10994 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10995 | find out it does not work in some platform. */ |
| 10996 | #ifndef LT_DLLAZY_OR_NOW |
| 10997 | # ifdef RTLD_LAZY |
| 10998 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10999 | # else |
| 11000 | # ifdef DL_LAZY |
| 11001 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11002 | # else |
| 11003 | # ifdef RTLD_NOW |
| 11004 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11005 | # else |
| 11006 | # ifdef DL_NOW |
| 11007 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11008 | # else |
| 11009 | # define LT_DLLAZY_OR_NOW 0 |
| 11010 | # endif |
| 11011 | # endif |
| 11012 | # endif |
| 11013 | # endif |
| 11014 | #endif |
| 11015 | |
| 11016 | #ifdef __cplusplus |
| 11017 | extern "C" void exit (int); |
| 11018 | #endif |
| 11019 | |
| 11020 | void fnord() { int i=42;} |
| 11021 | int main () |
| 11022 | { |
| 11023 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11024 | int status = $lt_dlunknown; |
| 11025 | |
| 11026 | if (self) |
| 11027 | { |
| 11028 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11029 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11030 | /* dlclose (self); */ |
| 11031 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11032 | else |
| 11033 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11034 | |
| 11035 | exit (status); |
| 11036 | } |
| 11037 | EOF |
| 11038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11039 | (eval $ac_link) 2>&5 |
| 11040 | ac_status=$? |
| 11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11042 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11043 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | lt_status=$? |
| 11045 | case x$lt_status in |
| 11046 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11047 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11048 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11049 | esac |
| 11050 | else : |
| 11051 | # compilation failed |
| 11052 | |
| 11053 | fi |
| 11054 | fi |
| 11055 | rm -fr conftest* |
| 11056 | |
| 11057 | LIBS="$save_LIBS" |
| 11058 | |
| 11059 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11060 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11061 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11062 | fi |
| 11063 | fi |
| 11064 | |
| 11065 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11066 | |
| 11067 | cat >>confdefs.h <<\_ACEOF |
| 11068 | #define NEED_USCORE 1 |
| 11069 | _ACEOF |
| 11070 | |
| 11071 | fi |
| 11072 | |
| 11073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11074 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11075 | 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] | 11076 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11078 | else |
| 11079 | # PORTME does your system automatically load deplibs for dlopen? |
| 11080 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11081 | # For now, we just catch OSes we know something about -- in the |
| 11082 | # future, we'll try test this programmatically. |
| 11083 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11084 | case "$host_os" in |
| 11085 | aix3*|aix4.1.*|aix4.2.*) |
| 11086 | # Unknown whether this is true for these versions of AIX, but |
| 11087 | # we want this `case' here to explicitly catch those versions. |
| 11088 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11089 | ;; |
| 11090 | aix[45]*) |
| 11091 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11092 | ;; |
| 11093 | darwin*) |
| 11094 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11095 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11096 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11097 | ;; |
| 11098 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11099 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11100 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11101 | ;; |
| 11102 | hpux10*|hpux11*) |
| 11103 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11104 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11105 | interix*) |
| 11106 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11107 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11108 | irix[12345]*|irix6.[01]*) |
| 11109 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11110 | # know how it worked for any of those versions. |
| 11111 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11112 | ;; |
| 11113 | irix*) |
| 11114 | # The case above catches anything before 6.2, and it's known that |
| 11115 | # at 6.2 and later dlopen does load deplibs. |
| 11116 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11117 | ;; |
| 11118 | netbsd*) |
| 11119 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11120 | ;; |
| 11121 | openbsd*) |
| 11122 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11123 | ;; |
| 11124 | osf[1234]*) |
| 11125 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11126 | # it did *not* use an RPATH in a shared library to find objects the |
| 11127 | # library depends on, so we explictly say `no'. |
| 11128 | libltdl_cv_sys_dlopen_deplibs=no |
| 11129 | ;; |
| 11130 | osf5.0|osf5.0a|osf5.1) |
| 11131 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11132 | # it even uses RPATH in a shared library to search for shared objects |
| 11133 | # that the library depends on, but there's no easy way to know if that |
| 11134 | # patch is installed. Since this is the case, all we can really |
| 11135 | # say is unknown -- it depends on the patch being installed. If |
| 11136 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11137 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11138 | ;; |
| 11139 | osf*) |
| 11140 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11141 | # the comments above for what we know about them. |
| 11142 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11143 | # is used to find them so we can finally say `yes'. |
| 11144 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11145 | ;; |
| 11146 | solaris*) |
| 11147 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11148 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11149 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11150 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11151 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11152 | esac |
| 11153 | |
| 11154 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11155 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11156 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11157 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11158 | |
| 11159 | cat >>confdefs.h <<\_ACEOF |
| 11160 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11161 | _ACEOF |
| 11162 | |
| 11163 | fi |
| 11164 | |
| 11165 | |
| 11166 | for ac_header in argz.h |
| 11167 | do |
| 11168 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11169 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11170 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11172 | 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] | 11173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11174 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11175 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11176 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11177 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11178 | else |
| 11179 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11180 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11181 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11182 | cat >conftest.$ac_ext <<_ACEOF |
| 11183 | /* confdefs.h. */ |
| 11184 | _ACEOF |
| 11185 | cat confdefs.h >>conftest.$ac_ext |
| 11186 | cat >>conftest.$ac_ext <<_ACEOF |
| 11187 | /* end confdefs.h. */ |
| 11188 | $ac_includes_default |
| 11189 | #include <$ac_header> |
| 11190 | _ACEOF |
| 11191 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11192 | if { (ac_try="$ac_compile" |
| 11193 | case "(($ac_try" in |
| 11194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11195 | *) ac_try_echo=$ac_try;; |
| 11196 | esac |
| 11197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11198 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11199 | ac_status=$? |
| 11200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11201 | rm -f conftest.er1 |
| 11202 | cat conftest.err >&5 |
| 11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11204 | (exit $ac_status); } && |
| 11205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11206 | { (case "(($ac_try" in |
| 11207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11208 | *) ac_try_echo=$ac_try;; |
| 11209 | esac |
| 11210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11211 | (eval "$ac_try") 2>&5 |
| 11212 | ac_status=$? |
| 11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11214 | (exit $ac_status); }; } && |
| 11215 | { ac_try='test -s conftest.$ac_objext' |
| 11216 | { (case "(($ac_try" in |
| 11217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11218 | *) ac_try_echo=$ac_try;; |
| 11219 | esac |
| 11220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11221 | (eval "$ac_try") 2>&5 |
| 11222 | ac_status=$? |
| 11223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11224 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11225 | ac_header_compiler=yes |
| 11226 | else |
| 11227 | echo "$as_me: failed program was:" >&5 |
| 11228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11230 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11231 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11232 | |
| 11233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11234 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11235 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11236 | |
| 11237 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11238 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11239 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11240 | cat >conftest.$ac_ext <<_ACEOF |
| 11241 | /* confdefs.h. */ |
| 11242 | _ACEOF |
| 11243 | cat confdefs.h >>conftest.$ac_ext |
| 11244 | cat >>conftest.$ac_ext <<_ACEOF |
| 11245 | /* end confdefs.h. */ |
| 11246 | #include <$ac_header> |
| 11247 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11248 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11249 | case "(($ac_try" in |
| 11250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11251 | *) ac_try_echo=$ac_try;; |
| 11252 | esac |
| 11253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11254 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11255 | ac_status=$? |
| 11256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11257 | rm -f conftest.er1 |
| 11258 | cat conftest.err >&5 |
| 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11260 | (exit $ac_status); } >/dev/null; then |
| 11261 | if test -s conftest.err; then |
| 11262 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11263 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11264 | else |
| 11265 | ac_cpp_err= |
| 11266 | fi |
| 11267 | else |
| 11268 | ac_cpp_err=yes |
| 11269 | fi |
| 11270 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11271 | ac_header_preproc=yes |
| 11272 | else |
| 11273 | echo "$as_me: failed program was:" >&5 |
| 11274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11275 | |
| 11276 | ac_header_preproc=no |
| 11277 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11278 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11279 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11280 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11281 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11282 | |
| 11283 | # So? What about this header? |
| 11284 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11285 | yes:no: ) |
| 11286 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11287 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11289 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11290 | ac_header_preproc=yes |
| 11291 | ;; |
| 11292 | no:yes:* ) |
| 11293 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11294 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11295 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11296 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11297 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11298 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11299 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11300 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11301 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11302 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11303 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11304 | 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] | 11305 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11306 | ## ----------------------------------- ## |
| 11307 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11308 | ## ----------------------------------- ## |
| 11309 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11310 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11311 | ;; |
| 11312 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11313 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11315 | 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] | 11316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11317 | else |
| 11318 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11319 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11320 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11322 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11323 | |
| 11324 | fi |
| 11325 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11326 | cat >>confdefs.h <<_ACEOF |
| 11327 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11328 | _ACEOF |
| 11329 | |
| 11330 | fi |
| 11331 | |
| 11332 | done |
| 11333 | |
| 11334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11335 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11336 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11337 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11339 | else |
| 11340 | cat >conftest.$ac_ext <<_ACEOF |
| 11341 | /* confdefs.h. */ |
| 11342 | _ACEOF |
| 11343 | cat confdefs.h >>conftest.$ac_ext |
| 11344 | cat >>conftest.$ac_ext <<_ACEOF |
| 11345 | /* end confdefs.h. */ |
| 11346 | #if HAVE_ARGZ_H |
| 11347 | # include <argz.h> |
| 11348 | #endif |
| 11349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11350 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11351 | int |
| 11352 | main () |
| 11353 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11354 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11355 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11356 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11357 | return 0; |
| 11358 | ; |
| 11359 | return 0; |
| 11360 | } |
| 11361 | _ACEOF |
| 11362 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11363 | if { (ac_try="$ac_compile" |
| 11364 | case "(($ac_try" in |
| 11365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11366 | *) ac_try_echo=$ac_try;; |
| 11367 | esac |
| 11368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11369 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11370 | ac_status=$? |
| 11371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11372 | rm -f conftest.er1 |
| 11373 | cat conftest.err >&5 |
| 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11375 | (exit $ac_status); } && |
| 11376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11377 | { (case "(($ac_try" in |
| 11378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11379 | *) ac_try_echo=$ac_try;; |
| 11380 | esac |
| 11381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11382 | (eval "$ac_try") 2>&5 |
| 11383 | ac_status=$? |
| 11384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11385 | (exit $ac_status); }; } && |
| 11386 | { ac_try='test -s conftest.$ac_objext' |
| 11387 | { (case "(($ac_try" in |
| 11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11389 | *) ac_try_echo=$ac_try;; |
| 11390 | esac |
| 11391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11392 | (eval "$ac_try") 2>&5 |
| 11393 | ac_status=$? |
| 11394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11395 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11396 | ac_cv_type_error_t=yes |
| 11397 | else |
| 11398 | echo "$as_me: failed program was:" >&5 |
| 11399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11401 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11402 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11403 | |
| 11404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11405 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11406 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11407 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11408 | if test $ac_cv_type_error_t = yes; then |
| 11409 | |
| 11410 | cat >>confdefs.h <<_ACEOF |
| 11411 | #define HAVE_ERROR_T 1 |
| 11412 | _ACEOF |
| 11413 | |
| 11414 | |
| 11415 | else |
| 11416 | |
| 11417 | cat >>confdefs.h <<\_ACEOF |
| 11418 | #define error_t int |
| 11419 | _ACEOF |
| 11420 | |
| 11421 | fi |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11430 | do |
| 11431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11432 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11434 | 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] | 11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11436 | else |
| 11437 | cat >conftest.$ac_ext <<_ACEOF |
| 11438 | /* confdefs.h. */ |
| 11439 | _ACEOF |
| 11440 | cat confdefs.h >>conftest.$ac_ext |
| 11441 | cat >>conftest.$ac_ext <<_ACEOF |
| 11442 | /* end confdefs.h. */ |
| 11443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11445 | #define $ac_func innocuous_$ac_func |
| 11446 | |
| 11447 | /* System header to define __stub macros and hopefully few prototypes, |
| 11448 | which can conflict with char $ac_func (); below. |
| 11449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11450 | <limits.h> exists even on freestanding compilers. */ |
| 11451 | |
| 11452 | #ifdef __STDC__ |
| 11453 | # include <limits.h> |
| 11454 | #else |
| 11455 | # include <assert.h> |
| 11456 | #endif |
| 11457 | |
| 11458 | #undef $ac_func |
| 11459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11460 | /* Override any GCC internal prototype to avoid an error. |
| 11461 | Use char because int might match the return type of a GCC |
| 11462 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11463 | #ifdef __cplusplus |
| 11464 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11465 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11466 | char $ac_func (); |
| 11467 | /* The GNU C library defines this for functions which it implements |
| 11468 | to always fail with ENOSYS. Some functions are actually named |
| 11469 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11470 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11471 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11472 | #endif |
| 11473 | |
| 11474 | int |
| 11475 | main () |
| 11476 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11477 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11478 | ; |
| 11479 | return 0; |
| 11480 | } |
| 11481 | _ACEOF |
| 11482 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11483 | if { (ac_try="$ac_link" |
| 11484 | case "(($ac_try" in |
| 11485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11486 | *) ac_try_echo=$ac_try;; |
| 11487 | esac |
| 11488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11489 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11490 | ac_status=$? |
| 11491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11492 | rm -f conftest.er1 |
| 11493 | cat conftest.err >&5 |
| 11494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11495 | (exit $ac_status); } && |
| 11496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11497 | { (case "(($ac_try" in |
| 11498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11499 | *) ac_try_echo=$ac_try;; |
| 11500 | esac |
| 11501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11502 | (eval "$ac_try") 2>&5 |
| 11503 | ac_status=$? |
| 11504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11505 | (exit $ac_status); }; } && |
| 11506 | { ac_try='test -s conftest$ac_exeext' |
| 11507 | { (case "(($ac_try" in |
| 11508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11509 | *) ac_try_echo=$ac_try;; |
| 11510 | esac |
| 11511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11512 | (eval "$ac_try") 2>&5 |
| 11513 | ac_status=$? |
| 11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11515 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11516 | eval "$as_ac_var=yes" |
| 11517 | else |
| 11518 | echo "$as_me: failed program was:" >&5 |
| 11519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11521 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11522 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11523 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11524 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11525 | conftest$ac_exeext conftest.$ac_ext |
| 11526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11527 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11528 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11529 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11530 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11531 | cat >>confdefs.h <<_ACEOF |
| 11532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11533 | _ACEOF |
| 11534 | |
| 11535 | fi |
| 11536 | done |
| 11537 | |
| 11538 | |
| 11539 | |
| 11540 | |
| 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 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11566 | stdio.h unistd.h |
| 11567 | do |
| 11568 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11570 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11572 | 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] | 11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11574 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11575 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11576 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11577 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11578 | else |
| 11579 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11580 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11581 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11582 | cat >conftest.$ac_ext <<_ACEOF |
| 11583 | /* confdefs.h. */ |
| 11584 | _ACEOF |
| 11585 | cat confdefs.h >>conftest.$ac_ext |
| 11586 | cat >>conftest.$ac_ext <<_ACEOF |
| 11587 | /* end confdefs.h. */ |
| 11588 | $ac_includes_default |
| 11589 | #include <$ac_header> |
| 11590 | _ACEOF |
| 11591 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11592 | if { (ac_try="$ac_compile" |
| 11593 | case "(($ac_try" in |
| 11594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11595 | *) ac_try_echo=$ac_try;; |
| 11596 | esac |
| 11597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11598 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11599 | ac_status=$? |
| 11600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11601 | rm -f conftest.er1 |
| 11602 | cat conftest.err >&5 |
| 11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11604 | (exit $ac_status); } && |
| 11605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11606 | { (case "(($ac_try" in |
| 11607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11608 | *) ac_try_echo=$ac_try;; |
| 11609 | esac |
| 11610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11611 | (eval "$ac_try") 2>&5 |
| 11612 | ac_status=$? |
| 11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11614 | (exit $ac_status); }; } && |
| 11615 | { ac_try='test -s conftest.$ac_objext' |
| 11616 | { (case "(($ac_try" in |
| 11617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11618 | *) ac_try_echo=$ac_try;; |
| 11619 | esac |
| 11620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11621 | (eval "$ac_try") 2>&5 |
| 11622 | ac_status=$? |
| 11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11624 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11625 | ac_header_compiler=yes |
| 11626 | else |
| 11627 | echo "$as_me: failed program was:" >&5 |
| 11628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11630 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11632 | |
| 11633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11634 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11635 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11636 | |
| 11637 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11638 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11639 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11640 | cat >conftest.$ac_ext <<_ACEOF |
| 11641 | /* confdefs.h. */ |
| 11642 | _ACEOF |
| 11643 | cat confdefs.h >>conftest.$ac_ext |
| 11644 | cat >>conftest.$ac_ext <<_ACEOF |
| 11645 | /* end confdefs.h. */ |
| 11646 | #include <$ac_header> |
| 11647 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11648 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11649 | case "(($ac_try" in |
| 11650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11651 | *) ac_try_echo=$ac_try;; |
| 11652 | esac |
| 11653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11654 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11655 | ac_status=$? |
| 11656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11657 | rm -f conftest.er1 |
| 11658 | cat conftest.err >&5 |
| 11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11660 | (exit $ac_status); } >/dev/null; then |
| 11661 | if test -s conftest.err; then |
| 11662 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11663 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11664 | else |
| 11665 | ac_cpp_err= |
| 11666 | fi |
| 11667 | else |
| 11668 | ac_cpp_err=yes |
| 11669 | fi |
| 11670 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | ac_header_preproc=yes |
| 11672 | else |
| 11673 | echo "$as_me: failed program was:" >&5 |
| 11674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11675 | |
| 11676 | ac_header_preproc=no |
| 11677 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11678 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11679 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11680 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11681 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11682 | |
| 11683 | # So? What about this header? |
| 11684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11685 | yes:no: ) |
| 11686 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11687 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11689 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11690 | ac_header_preproc=yes |
| 11691 | ;; |
| 11692 | no:yes:* ) |
| 11693 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11694 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11695 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11696 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11697 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11698 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11699 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11700 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11702 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11703 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11704 | 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] | 11705 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11706 | ## ----------------------------------- ## |
| 11707 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11708 | ## ----------------------------------- ## |
| 11709 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11710 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11711 | ;; |
| 11712 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11713 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11715 | 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] | 11716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11717 | else |
| 11718 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11719 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11720 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11721 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11722 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11723 | |
| 11724 | fi |
| 11725 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11726 | cat >>confdefs.h <<_ACEOF |
| 11727 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11728 | _ACEOF |
| 11729 | |
| 11730 | fi |
| 11731 | |
| 11732 | done |
| 11733 | |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11739 | do |
| 11740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11741 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11742 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11744 | 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] | 11745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11747 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11748 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11749 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11750 | else |
| 11751 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11752 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11753 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11754 | cat >conftest.$ac_ext <<_ACEOF |
| 11755 | /* confdefs.h. */ |
| 11756 | _ACEOF |
| 11757 | cat confdefs.h >>conftest.$ac_ext |
| 11758 | cat >>conftest.$ac_ext <<_ACEOF |
| 11759 | /* end confdefs.h. */ |
| 11760 | $ac_includes_default |
| 11761 | #include <$ac_header> |
| 11762 | _ACEOF |
| 11763 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11764 | if { (ac_try="$ac_compile" |
| 11765 | case "(($ac_try" in |
| 11766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11767 | *) ac_try_echo=$ac_try;; |
| 11768 | esac |
| 11769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11770 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11771 | ac_status=$? |
| 11772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11773 | rm -f conftest.er1 |
| 11774 | cat conftest.err >&5 |
| 11775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11776 | (exit $ac_status); } && |
| 11777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11778 | { (case "(($ac_try" in |
| 11779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11780 | *) ac_try_echo=$ac_try;; |
| 11781 | esac |
| 11782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11783 | (eval "$ac_try") 2>&5 |
| 11784 | ac_status=$? |
| 11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11786 | (exit $ac_status); }; } && |
| 11787 | { ac_try='test -s conftest.$ac_objext' |
| 11788 | { (case "(($ac_try" in |
| 11789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11790 | *) ac_try_echo=$ac_try;; |
| 11791 | esac |
| 11792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11793 | (eval "$ac_try") 2>&5 |
| 11794 | ac_status=$? |
| 11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11796 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11797 | ac_header_compiler=yes |
| 11798 | else |
| 11799 | echo "$as_me: failed program was:" >&5 |
| 11800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11802 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11803 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11804 | |
| 11805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11806 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11807 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11808 | |
| 11809 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11810 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11811 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11812 | cat >conftest.$ac_ext <<_ACEOF |
| 11813 | /* confdefs.h. */ |
| 11814 | _ACEOF |
| 11815 | cat confdefs.h >>conftest.$ac_ext |
| 11816 | cat >>conftest.$ac_ext <<_ACEOF |
| 11817 | /* end confdefs.h. */ |
| 11818 | #include <$ac_header> |
| 11819 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11820 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11821 | case "(($ac_try" in |
| 11822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11823 | *) ac_try_echo=$ac_try;; |
| 11824 | esac |
| 11825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11827 | ac_status=$? |
| 11828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11829 | rm -f conftest.er1 |
| 11830 | cat conftest.err >&5 |
| 11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11832 | (exit $ac_status); } >/dev/null; then |
| 11833 | if test -s conftest.err; then |
| 11834 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11835 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11836 | else |
| 11837 | ac_cpp_err= |
| 11838 | fi |
| 11839 | else |
| 11840 | ac_cpp_err=yes |
| 11841 | fi |
| 11842 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11843 | ac_header_preproc=yes |
| 11844 | else |
| 11845 | echo "$as_me: failed program was:" >&5 |
| 11846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11847 | |
| 11848 | ac_header_preproc=no |
| 11849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11850 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11851 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11852 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11853 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11854 | |
| 11855 | # So? What about this header? |
| 11856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11857 | yes:no: ) |
| 11858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11861 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11862 | ac_header_preproc=yes |
| 11863 | ;; |
| 11864 | no:yes:* ) |
| 11865 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11866 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11867 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11868 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11869 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11870 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11871 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11872 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11875 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11876 | 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] | 11877 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11878 | ## ----------------------------------- ## |
| 11879 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11880 | ## ----------------------------------- ## |
| 11881 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11882 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11883 | ;; |
| 11884 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11885 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11887 | 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] | 11888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11889 | else |
| 11890 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11891 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11892 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11893 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11894 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11895 | |
| 11896 | fi |
| 11897 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11898 | cat >>confdefs.h <<_ACEOF |
| 11899 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11900 | _ACEOF |
| 11901 | |
| 11902 | fi |
| 11903 | |
| 11904 | done |
| 11905 | |
| 11906 | |
| 11907 | |
| 11908 | for ac_header in string.h strings.h |
| 11909 | do |
| 11910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11911 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11912 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11914 | 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] | 11915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11916 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11917 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11918 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11919 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11920 | else |
| 11921 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11922 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11923 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11924 | cat >conftest.$ac_ext <<_ACEOF |
| 11925 | /* confdefs.h. */ |
| 11926 | _ACEOF |
| 11927 | cat confdefs.h >>conftest.$ac_ext |
| 11928 | cat >>conftest.$ac_ext <<_ACEOF |
| 11929 | /* end confdefs.h. */ |
| 11930 | $ac_includes_default |
| 11931 | #include <$ac_header> |
| 11932 | _ACEOF |
| 11933 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11934 | if { (ac_try="$ac_compile" |
| 11935 | case "(($ac_try" in |
| 11936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11937 | *) ac_try_echo=$ac_try;; |
| 11938 | esac |
| 11939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11940 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11941 | ac_status=$? |
| 11942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11943 | rm -f conftest.er1 |
| 11944 | cat conftest.err >&5 |
| 11945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11946 | (exit $ac_status); } && |
| 11947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11948 | { (case "(($ac_try" in |
| 11949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11950 | *) ac_try_echo=$ac_try;; |
| 11951 | esac |
| 11952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11953 | (eval "$ac_try") 2>&5 |
| 11954 | ac_status=$? |
| 11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11956 | (exit $ac_status); }; } && |
| 11957 | { ac_try='test -s conftest.$ac_objext' |
| 11958 | { (case "(($ac_try" in |
| 11959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11960 | *) ac_try_echo=$ac_try;; |
| 11961 | esac |
| 11962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11963 | (eval "$ac_try") 2>&5 |
| 11964 | ac_status=$? |
| 11965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11966 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11967 | ac_header_compiler=yes |
| 11968 | else |
| 11969 | echo "$as_me: failed program was:" >&5 |
| 11970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11972 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11973 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11974 | |
| 11975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11976 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11977 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11978 | |
| 11979 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11980 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11981 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11982 | cat >conftest.$ac_ext <<_ACEOF |
| 11983 | /* confdefs.h. */ |
| 11984 | _ACEOF |
| 11985 | cat confdefs.h >>conftest.$ac_ext |
| 11986 | cat >>conftest.$ac_ext <<_ACEOF |
| 11987 | /* end confdefs.h. */ |
| 11988 | #include <$ac_header> |
| 11989 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11990 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11991 | case "(($ac_try" in |
| 11992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11993 | *) ac_try_echo=$ac_try;; |
| 11994 | esac |
| 11995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11997 | ac_status=$? |
| 11998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11999 | rm -f conftest.er1 |
| 12000 | cat conftest.err >&5 |
| 12001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12002 | (exit $ac_status); } >/dev/null; then |
| 12003 | if test -s conftest.err; then |
| 12004 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12006 | else |
| 12007 | ac_cpp_err= |
| 12008 | fi |
| 12009 | else |
| 12010 | ac_cpp_err=yes |
| 12011 | fi |
| 12012 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12013 | ac_header_preproc=yes |
| 12014 | else |
| 12015 | echo "$as_me: failed program was:" >&5 |
| 12016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12017 | |
| 12018 | ac_header_preproc=no |
| 12019 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12020 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12021 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12022 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12023 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12024 | |
| 12025 | # So? What about this header? |
| 12026 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12027 | yes:no: ) |
| 12028 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12029 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12030 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12031 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12032 | ac_header_preproc=yes |
| 12033 | ;; |
| 12034 | no:yes:* ) |
| 12035 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12036 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12037 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12038 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12039 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12040 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12041 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12042 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12044 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12045 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12046 | 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] | 12047 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12048 | ## ----------------------------------- ## |
| 12049 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12050 | ## ----------------------------------- ## |
| 12051 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12052 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12053 | ;; |
| 12054 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12055 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12057 | 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] | 12058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12059 | else |
| 12060 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12061 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12062 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12063 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12064 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12065 | |
| 12066 | fi |
| 12067 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12068 | cat >>confdefs.h <<_ACEOF |
| 12069 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12070 | _ACEOF |
| 12071 | break |
| 12072 | fi |
| 12073 | |
| 12074 | done |
| 12075 | |
| 12076 | |
| 12077 | |
| 12078 | |
| 12079 | for ac_func in strchr index |
| 12080 | do |
| 12081 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12082 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12083 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12084 | 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] | 12085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12086 | else |
| 12087 | cat >conftest.$ac_ext <<_ACEOF |
| 12088 | /* confdefs.h. */ |
| 12089 | _ACEOF |
| 12090 | cat confdefs.h >>conftest.$ac_ext |
| 12091 | cat >>conftest.$ac_ext <<_ACEOF |
| 12092 | /* end confdefs.h. */ |
| 12093 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12094 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12095 | #define $ac_func innocuous_$ac_func |
| 12096 | |
| 12097 | /* System header to define __stub macros and hopefully few prototypes, |
| 12098 | which can conflict with char $ac_func (); below. |
| 12099 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12100 | <limits.h> exists even on freestanding compilers. */ |
| 12101 | |
| 12102 | #ifdef __STDC__ |
| 12103 | # include <limits.h> |
| 12104 | #else |
| 12105 | # include <assert.h> |
| 12106 | #endif |
| 12107 | |
| 12108 | #undef $ac_func |
| 12109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12110 | /* Override any GCC internal prototype to avoid an error. |
| 12111 | Use char because int might match the return type of a GCC |
| 12112 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12113 | #ifdef __cplusplus |
| 12114 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12115 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12116 | char $ac_func (); |
| 12117 | /* The GNU C library defines this for functions which it implements |
| 12118 | to always fail with ENOSYS. Some functions are actually named |
| 12119 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12120 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12121 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12122 | #endif |
| 12123 | |
| 12124 | int |
| 12125 | main () |
| 12126 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12127 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12128 | ; |
| 12129 | return 0; |
| 12130 | } |
| 12131 | _ACEOF |
| 12132 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12133 | if { (ac_try="$ac_link" |
| 12134 | case "(($ac_try" in |
| 12135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12136 | *) ac_try_echo=$ac_try;; |
| 12137 | esac |
| 12138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12139 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12140 | ac_status=$? |
| 12141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12142 | rm -f conftest.er1 |
| 12143 | cat conftest.err >&5 |
| 12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12145 | (exit $ac_status); } && |
| 12146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12147 | { (case "(($ac_try" in |
| 12148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12149 | *) ac_try_echo=$ac_try;; |
| 12150 | esac |
| 12151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12152 | (eval "$ac_try") 2>&5 |
| 12153 | ac_status=$? |
| 12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12155 | (exit $ac_status); }; } && |
| 12156 | { ac_try='test -s conftest$ac_exeext' |
| 12157 | { (case "(($ac_try" in |
| 12158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12159 | *) ac_try_echo=$ac_try;; |
| 12160 | esac |
| 12161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12162 | (eval "$ac_try") 2>&5 |
| 12163 | ac_status=$? |
| 12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12165 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12166 | eval "$as_ac_var=yes" |
| 12167 | else |
| 12168 | echo "$as_me: failed program was:" >&5 |
| 12169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12171 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12173 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12174 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12175 | conftest$ac_exeext conftest.$ac_ext |
| 12176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12177 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12179 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12180 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12181 | cat >>confdefs.h <<_ACEOF |
| 12182 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12183 | _ACEOF |
| 12184 | break |
| 12185 | fi |
| 12186 | done |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | for ac_func in strrchr rindex |
| 12191 | do |
| 12192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12193 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12195 | 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] | 12196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12197 | else |
| 12198 | cat >conftest.$ac_ext <<_ACEOF |
| 12199 | /* confdefs.h. */ |
| 12200 | _ACEOF |
| 12201 | cat confdefs.h >>conftest.$ac_ext |
| 12202 | cat >>conftest.$ac_ext <<_ACEOF |
| 12203 | /* end confdefs.h. */ |
| 12204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12206 | #define $ac_func innocuous_$ac_func |
| 12207 | |
| 12208 | /* System header to define __stub macros and hopefully few prototypes, |
| 12209 | which can conflict with char $ac_func (); below. |
| 12210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12211 | <limits.h> exists even on freestanding compilers. */ |
| 12212 | |
| 12213 | #ifdef __STDC__ |
| 12214 | # include <limits.h> |
| 12215 | #else |
| 12216 | # include <assert.h> |
| 12217 | #endif |
| 12218 | |
| 12219 | #undef $ac_func |
| 12220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12221 | /* Override any GCC internal prototype to avoid an error. |
| 12222 | Use char because int might match the return type of a GCC |
| 12223 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12224 | #ifdef __cplusplus |
| 12225 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12226 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12227 | char $ac_func (); |
| 12228 | /* The GNU C library defines this for functions which it implements |
| 12229 | to always fail with ENOSYS. Some functions are actually named |
| 12230 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12231 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12232 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12233 | #endif |
| 12234 | |
| 12235 | int |
| 12236 | main () |
| 12237 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12238 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12239 | ; |
| 12240 | return 0; |
| 12241 | } |
| 12242 | _ACEOF |
| 12243 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12244 | if { (ac_try="$ac_link" |
| 12245 | case "(($ac_try" in |
| 12246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12247 | *) ac_try_echo=$ac_try;; |
| 12248 | esac |
| 12249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12250 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12251 | ac_status=$? |
| 12252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12253 | rm -f conftest.er1 |
| 12254 | cat conftest.err >&5 |
| 12255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12256 | (exit $ac_status); } && |
| 12257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12258 | { (case "(($ac_try" in |
| 12259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12260 | *) ac_try_echo=$ac_try;; |
| 12261 | esac |
| 12262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12263 | (eval "$ac_try") 2>&5 |
| 12264 | ac_status=$? |
| 12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12266 | (exit $ac_status); }; } && |
| 12267 | { ac_try='test -s conftest$ac_exeext' |
| 12268 | { (case "(($ac_try" in |
| 12269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12270 | *) ac_try_echo=$ac_try;; |
| 12271 | esac |
| 12272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12273 | (eval "$ac_try") 2>&5 |
| 12274 | ac_status=$? |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12277 | eval "$as_ac_var=yes" |
| 12278 | else |
| 12279 | echo "$as_me: failed program was:" >&5 |
| 12280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12282 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12283 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12284 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12285 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12286 | conftest$ac_exeext conftest.$ac_ext |
| 12287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12288 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12289 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12290 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12291 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12292 | cat >>confdefs.h <<_ACEOF |
| 12293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12294 | _ACEOF |
| 12295 | break |
| 12296 | fi |
| 12297 | done |
| 12298 | |
| 12299 | |
| 12300 | |
| 12301 | for ac_func in memcpy bcopy |
| 12302 | do |
| 12303 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12304 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12305 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12306 | 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] | 12307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12308 | else |
| 12309 | cat >conftest.$ac_ext <<_ACEOF |
| 12310 | /* confdefs.h. */ |
| 12311 | _ACEOF |
| 12312 | cat confdefs.h >>conftest.$ac_ext |
| 12313 | cat >>conftest.$ac_ext <<_ACEOF |
| 12314 | /* end confdefs.h. */ |
| 12315 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12316 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12317 | #define $ac_func innocuous_$ac_func |
| 12318 | |
| 12319 | /* System header to define __stub macros and hopefully few prototypes, |
| 12320 | which can conflict with char $ac_func (); below. |
| 12321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12322 | <limits.h> exists even on freestanding compilers. */ |
| 12323 | |
| 12324 | #ifdef __STDC__ |
| 12325 | # include <limits.h> |
| 12326 | #else |
| 12327 | # include <assert.h> |
| 12328 | #endif |
| 12329 | |
| 12330 | #undef $ac_func |
| 12331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12332 | /* Override any GCC internal prototype to avoid an error. |
| 12333 | Use char because int might match the return type of a GCC |
| 12334 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12335 | #ifdef __cplusplus |
| 12336 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12337 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12338 | char $ac_func (); |
| 12339 | /* The GNU C library defines this for functions which it implements |
| 12340 | to always fail with ENOSYS. Some functions are actually named |
| 12341 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12342 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12343 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12344 | #endif |
| 12345 | |
| 12346 | int |
| 12347 | main () |
| 12348 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12349 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12350 | ; |
| 12351 | return 0; |
| 12352 | } |
| 12353 | _ACEOF |
| 12354 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12355 | if { (ac_try="$ac_link" |
| 12356 | case "(($ac_try" in |
| 12357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12358 | *) ac_try_echo=$ac_try;; |
| 12359 | esac |
| 12360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12361 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12362 | ac_status=$? |
| 12363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12364 | rm -f conftest.er1 |
| 12365 | cat conftest.err >&5 |
| 12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12367 | (exit $ac_status); } && |
| 12368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12369 | { (case "(($ac_try" in |
| 12370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12371 | *) ac_try_echo=$ac_try;; |
| 12372 | esac |
| 12373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12374 | (eval "$ac_try") 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); }; } && |
| 12378 | { ac_try='test -s conftest$ac_exeext' |
| 12379 | { (case "(($ac_try" in |
| 12380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12381 | *) ac_try_echo=$ac_try;; |
| 12382 | esac |
| 12383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12384 | (eval "$ac_try") 2>&5 |
| 12385 | ac_status=$? |
| 12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12387 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12388 | eval "$as_ac_var=yes" |
| 12389 | else |
| 12390 | echo "$as_me: failed program was:" >&5 |
| 12391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12393 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12394 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12395 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12396 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12397 | conftest$ac_exeext conftest.$ac_ext |
| 12398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12399 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12400 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12401 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12402 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12403 | cat >>confdefs.h <<_ACEOF |
| 12404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12405 | _ACEOF |
| 12406 | break |
| 12407 | fi |
| 12408 | done |
| 12409 | |
| 12410 | |
| 12411 | |
| 12412 | for ac_func in memmove strcmp |
| 12413 | do |
| 12414 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12415 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12416 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12417 | 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] | 12418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12419 | else |
| 12420 | cat >conftest.$ac_ext <<_ACEOF |
| 12421 | /* confdefs.h. */ |
| 12422 | _ACEOF |
| 12423 | cat confdefs.h >>conftest.$ac_ext |
| 12424 | cat >>conftest.$ac_ext <<_ACEOF |
| 12425 | /* end confdefs.h. */ |
| 12426 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12427 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12428 | #define $ac_func innocuous_$ac_func |
| 12429 | |
| 12430 | /* System header to define __stub macros and hopefully few prototypes, |
| 12431 | which can conflict with char $ac_func (); below. |
| 12432 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12433 | <limits.h> exists even on freestanding compilers. */ |
| 12434 | |
| 12435 | #ifdef __STDC__ |
| 12436 | # include <limits.h> |
| 12437 | #else |
| 12438 | # include <assert.h> |
| 12439 | #endif |
| 12440 | |
| 12441 | #undef $ac_func |
| 12442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12443 | /* Override any GCC internal prototype to avoid an error. |
| 12444 | Use char because int might match the return type of a GCC |
| 12445 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12446 | #ifdef __cplusplus |
| 12447 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12448 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12449 | char $ac_func (); |
| 12450 | /* The GNU C library defines this for functions which it implements |
| 12451 | to always fail with ENOSYS. Some functions are actually named |
| 12452 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12453 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12454 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12455 | #endif |
| 12456 | |
| 12457 | int |
| 12458 | main () |
| 12459 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12460 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12461 | ; |
| 12462 | return 0; |
| 12463 | } |
| 12464 | _ACEOF |
| 12465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12466 | if { (ac_try="$ac_link" |
| 12467 | case "(($ac_try" in |
| 12468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12469 | *) ac_try_echo=$ac_try;; |
| 12470 | esac |
| 12471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12472 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12473 | ac_status=$? |
| 12474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12475 | rm -f conftest.er1 |
| 12476 | cat conftest.err >&5 |
| 12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12478 | (exit $ac_status); } && |
| 12479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12480 | { (case "(($ac_try" in |
| 12481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12482 | *) ac_try_echo=$ac_try;; |
| 12483 | esac |
| 12484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12485 | (eval "$ac_try") 2>&5 |
| 12486 | ac_status=$? |
| 12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12488 | (exit $ac_status); }; } && |
| 12489 | { ac_try='test -s conftest$ac_exeext' |
| 12490 | { (case "(($ac_try" in |
| 12491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12492 | *) ac_try_echo=$ac_try;; |
| 12493 | esac |
| 12494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12495 | (eval "$ac_try") 2>&5 |
| 12496 | ac_status=$? |
| 12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12498 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12499 | eval "$as_ac_var=yes" |
| 12500 | else |
| 12501 | echo "$as_me: failed program was:" >&5 |
| 12502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12504 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12506 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12507 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12508 | conftest$ac_exeext conftest.$ac_ext |
| 12509 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12510 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12511 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12512 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12513 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12514 | cat >>confdefs.h <<_ACEOF |
| 12515 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12516 | _ACEOF |
| 12517 | |
| 12518 | fi |
| 12519 | done |
| 12520 | |
| 12521 | |
| 12522 | |
| 12523 | |
| 12524 | for ac_func in closedir opendir readdir |
| 12525 | do |
| 12526 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12527 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12528 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12529 | 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] | 12530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12531 | else |
| 12532 | cat >conftest.$ac_ext <<_ACEOF |
| 12533 | /* confdefs.h. */ |
| 12534 | _ACEOF |
| 12535 | cat confdefs.h >>conftest.$ac_ext |
| 12536 | cat >>conftest.$ac_ext <<_ACEOF |
| 12537 | /* end confdefs.h. */ |
| 12538 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12539 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12540 | #define $ac_func innocuous_$ac_func |
| 12541 | |
| 12542 | /* System header to define __stub macros and hopefully few prototypes, |
| 12543 | which can conflict with char $ac_func (); below. |
| 12544 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12545 | <limits.h> exists even on freestanding compilers. */ |
| 12546 | |
| 12547 | #ifdef __STDC__ |
| 12548 | # include <limits.h> |
| 12549 | #else |
| 12550 | # include <assert.h> |
| 12551 | #endif |
| 12552 | |
| 12553 | #undef $ac_func |
| 12554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12555 | /* Override any GCC internal prototype to avoid an error. |
| 12556 | Use char because int might match the return type of a GCC |
| 12557 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12558 | #ifdef __cplusplus |
| 12559 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12560 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12561 | char $ac_func (); |
| 12562 | /* The GNU C library defines this for functions which it implements |
| 12563 | to always fail with ENOSYS. Some functions are actually named |
| 12564 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12565 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12566 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12567 | #endif |
| 12568 | |
| 12569 | int |
| 12570 | main () |
| 12571 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12572 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12573 | ; |
| 12574 | return 0; |
| 12575 | } |
| 12576 | _ACEOF |
| 12577 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12578 | if { (ac_try="$ac_link" |
| 12579 | case "(($ac_try" in |
| 12580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12581 | *) ac_try_echo=$ac_try;; |
| 12582 | esac |
| 12583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12584 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12585 | ac_status=$? |
| 12586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12587 | rm -f conftest.er1 |
| 12588 | cat conftest.err >&5 |
| 12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12590 | (exit $ac_status); } && |
| 12591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12592 | { (case "(($ac_try" in |
| 12593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12594 | *) ac_try_echo=$ac_try;; |
| 12595 | esac |
| 12596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12597 | (eval "$ac_try") 2>&5 |
| 12598 | ac_status=$? |
| 12599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12600 | (exit $ac_status); }; } && |
| 12601 | { ac_try='test -s conftest$ac_exeext' |
| 12602 | { (case "(($ac_try" in |
| 12603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12604 | *) ac_try_echo=$ac_try;; |
| 12605 | esac |
| 12606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12607 | (eval "$ac_try") 2>&5 |
| 12608 | ac_status=$? |
| 12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12611 | eval "$as_ac_var=yes" |
| 12612 | else |
| 12613 | echo "$as_me: failed program was:" >&5 |
| 12614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12616 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12617 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12618 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12619 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12620 | conftest$ac_exeext conftest.$ac_ext |
| 12621 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12622 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12624 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12625 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12626 | cat >>confdefs.h <<_ACEOF |
| 12627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12628 | _ACEOF |
| 12629 | |
| 12630 | fi |
| 12631 | done |
| 12632 | |
| 12633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12634 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12635 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12636 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12637 | case $enableval in |
| 12638 | yes) enable_shared=yes ;; |
| 12639 | no) enable_shared=no ;; |
| 12640 | *) |
| 12641 | enable_shared=no |
| 12642 | # Look at the argument we got. We use all the common list separators. |
| 12643 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12644 | for pkg in $enableval; do |
| 12645 | IFS="$lt_save_ifs" |
| 12646 | if test "X$pkg" = "X$p"; then |
| 12647 | enable_shared=yes |
| 12648 | fi |
| 12649 | done |
| 12650 | IFS="$lt_save_ifs" |
| 12651 | ;; |
| 12652 | esac |
| 12653 | else |
| 12654 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12655 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12656 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12657 | |
| 12658 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12659 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12660 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12661 | case $enableval in |
| 12662 | yes) enable_static=yes ;; |
| 12663 | no) enable_static=no ;; |
| 12664 | *) |
| 12665 | enable_static=no |
| 12666 | # Look at the argument we got. We use all the common list separators. |
| 12667 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12668 | for pkg in $enableval; do |
| 12669 | IFS="$lt_save_ifs" |
| 12670 | if test "X$pkg" = "X$p"; then |
| 12671 | enable_static=yes |
| 12672 | fi |
| 12673 | done |
| 12674 | IFS="$lt_save_ifs" |
| 12675 | ;; |
| 12676 | esac |
| 12677 | else |
| 12678 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12679 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12681 | |
| 12682 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12683 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12684 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12685 | case $enableval in |
| 12686 | yes) enable_fast_install=yes ;; |
| 12687 | no) enable_fast_install=no ;; |
| 12688 | *) |
| 12689 | enable_fast_install=no |
| 12690 | # Look at the argument we got. We use all the common list separators. |
| 12691 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12692 | for pkg in $enableval; do |
| 12693 | IFS="$lt_save_ifs" |
| 12694 | if test "X$pkg" = "X$p"; then |
| 12695 | enable_fast_install=yes |
| 12696 | fi |
| 12697 | done |
| 12698 | IFS="$lt_save_ifs" |
| 12699 | ;; |
| 12700 | esac |
| 12701 | else |
| 12702 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12703 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12705 | |
| 12706 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12707 | 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] | 12708 | if test "${lt_cv_path_SED+set}" = set; then |
| 12709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12710 | else |
| 12711 | # Loop through the user's path and test for sed and gsed. |
| 12712 | # Then use that list of sed's as ones to test for truncation. |
| 12713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12714 | for as_dir in $PATH |
| 12715 | do |
| 12716 | IFS=$as_save_IFS |
| 12717 | test -z "$as_dir" && as_dir=. |
| 12718 | for lt_ac_prog in sed gsed; do |
| 12719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12720 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12721 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12722 | fi |
| 12723 | done |
| 12724 | done |
| 12725 | done |
| 12726 | lt_ac_max=0 |
| 12727 | lt_ac_count=0 |
| 12728 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12729 | # along with /bin/sed that truncates output. |
| 12730 | 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] | 12731 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12732 | cat /dev/null > conftest.in |
| 12733 | lt_ac_count=0 |
| 12734 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12735 | # Check for GNU sed and select it if it is found. |
| 12736 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12737 | lt_cv_path_SED=$lt_ac_sed |
| 12738 | break |
| 12739 | fi |
| 12740 | while true; do |
| 12741 | cat conftest.in conftest.in >conftest.tmp |
| 12742 | mv conftest.tmp conftest.in |
| 12743 | cp conftest.in conftest.nl |
| 12744 | echo >>conftest.nl |
| 12745 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12746 | cmp -s conftest.out conftest.nl || break |
| 12747 | # 10000 chars as input seems more than enough |
| 12748 | test $lt_ac_count -gt 10 && break |
| 12749 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12750 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12751 | lt_ac_max=$lt_ac_count |
| 12752 | lt_cv_path_SED=$lt_ac_sed |
| 12753 | fi |
| 12754 | done |
| 12755 | done |
| 12756 | |
| 12757 | fi |
| 12758 | |
| 12759 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12760 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12761 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12762 | |
| 12763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12764 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12765 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12766 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12767 | else |
| 12768 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12769 | fi |
| 12770 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12771 | ac_prog=ld |
| 12772 | if test "$GCC" = yes; then |
| 12773 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12774 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12775 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12776 | case $host in |
| 12777 | *-*-mingw*) |
| 12778 | # gcc leaves a trailing carriage return which upsets mingw |
| 12779 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12780 | *) |
| 12781 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12782 | esac |
| 12783 | case $ac_prog in |
| 12784 | # Accept absolute paths. |
| 12785 | [\\/]* | ?:[\\/]*) |
| 12786 | re_direlt='/[^/][^/]*/\.\./' |
| 12787 | # Canonicalize the pathname of ld |
| 12788 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12789 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12790 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12791 | done |
| 12792 | test -z "$LD" && LD="$ac_prog" |
| 12793 | ;; |
| 12794 | "") |
| 12795 | # If it fails, then pretend we aren't using GCC. |
| 12796 | ac_prog=ld |
| 12797 | ;; |
| 12798 | *) |
| 12799 | # If it is relative, then search for the first ld in PATH. |
| 12800 | with_gnu_ld=unknown |
| 12801 | ;; |
| 12802 | esac |
| 12803 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12804 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12805 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12806 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12807 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12808 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12809 | fi |
| 12810 | if test "${lt_cv_path_LD+set}" = set; then |
| 12811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12812 | else |
| 12813 | if test -z "$LD"; then |
| 12814 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12815 | for ac_dir in $PATH; do |
| 12816 | IFS="$lt_save_ifs" |
| 12817 | test -z "$ac_dir" && ac_dir=. |
| 12818 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12819 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12820 | # 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] | 12821 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12822 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12823 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12824 | *GNU* | *'with BFD'*) |
| 12825 | test "$with_gnu_ld" != no && break |
| 12826 | ;; |
| 12827 | *) |
| 12828 | test "$with_gnu_ld" != yes && break |
| 12829 | ;; |
| 12830 | esac |
| 12831 | fi |
| 12832 | done |
| 12833 | IFS="$lt_save_ifs" |
| 12834 | else |
| 12835 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12836 | fi |
| 12837 | fi |
| 12838 | |
| 12839 | LD="$lt_cv_path_LD" |
| 12840 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12841 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12842 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12843 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12844 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12845 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12846 | fi |
| 12847 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12848 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12849 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12850 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12851 | 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] | 12852 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12854 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12855 | # 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] | 12856 | case `$LD -v 2>&1 </dev/null` in |
| 12857 | *GNU* | *'with BFD'*) |
| 12858 | lt_cv_prog_gnu_ld=yes |
| 12859 | ;; |
| 12860 | *) |
| 12861 | lt_cv_prog_gnu_ld=no |
| 12862 | ;; |
| 12863 | esac |
| 12864 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12865 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12866 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12867 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12868 | |
| 12869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12870 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12871 | 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] | 12872 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12874 | else |
| 12875 | lt_cv_ld_reload_flag='-r' |
| 12876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12877 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12878 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12879 | reload_flag=$lt_cv_ld_reload_flag |
| 12880 | case $reload_flag in |
| 12881 | "" | " "*) ;; |
| 12882 | *) reload_flag=" $reload_flag" ;; |
| 12883 | esac |
| 12884 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12885 | case $host_os in |
| 12886 | darwin*) |
| 12887 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12888 | 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] | 12889 | else |
| 12890 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12891 | fi |
| 12892 | ;; |
| 12893 | esac |
| 12894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12895 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12896 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12897 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12899 | else |
| 12900 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12901 | lt_cv_file_magic_test_file= |
| 12902 | lt_cv_deplibs_check_method='unknown' |
| 12903 | # Need to set the preceding variable on all platforms that support |
| 12904 | # interlibrary dependencies. |
| 12905 | # 'none' -- dependencies not supported. |
| 12906 | # `unknown' -- same as none, but documents that we really don't know. |
| 12907 | # 'pass_all' -- all dependencies passed with no checks. |
| 12908 | # 'test_compile' -- check by making test program. |
| 12909 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12910 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12911 | # If you have `file' or equivalent on your system and you're not sure |
| 12912 | # whether `pass_all' will *always* work, you probably want this one. |
| 12913 | |
| 12914 | case $host_os in |
| 12915 | aix4* | aix5*) |
| 12916 | lt_cv_deplibs_check_method=pass_all |
| 12917 | ;; |
| 12918 | |
| 12919 | beos*) |
| 12920 | lt_cv_deplibs_check_method=pass_all |
| 12921 | ;; |
| 12922 | |
| 12923 | bsdi[45]*) |
| 12924 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12925 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12926 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12927 | ;; |
| 12928 | |
| 12929 | cygwin*) |
| 12930 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12931 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12932 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12933 | ;; |
| 12934 | |
| 12935 | mingw* | pw32*) |
| 12936 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12937 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12938 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12939 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12940 | ;; |
| 12941 | |
| 12942 | darwin* | rhapsody*) |
| 12943 | lt_cv_deplibs_check_method=pass_all |
| 12944 | ;; |
| 12945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12946 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12947 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12948 | case $host_cpu in |
| 12949 | i*86 ) |
| 12950 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12951 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 | 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] | 12953 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12954 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12955 | ;; |
| 12956 | esac |
| 12957 | else |
| 12958 | lt_cv_deplibs_check_method=pass_all |
| 12959 | fi |
| 12960 | ;; |
| 12961 | |
| 12962 | gnu*) |
| 12963 | lt_cv_deplibs_check_method=pass_all |
| 12964 | ;; |
| 12965 | |
| 12966 | hpux10.20* | hpux11*) |
| 12967 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12968 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12969 | ia64*) |
| 12970 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12971 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12972 | ;; |
| 12973 | hppa*64*) |
| 12974 | 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]' |
| 12975 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12976 | ;; |
| 12977 | *) |
| 12978 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12979 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12980 | ;; |
| 12981 | esac |
| 12982 | ;; |
| 12983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12984 | interix3*) |
| 12985 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12986 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12987 | ;; |
| 12988 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12989 | irix5* | irix6* | nonstopux*) |
| 12990 | case $LD in |
| 12991 | *-32|*"-32 ") libmagic=32-bit;; |
| 12992 | *-n32|*"-n32 ") libmagic=N32;; |
| 12993 | *-64|*"-64 ") libmagic=64-bit;; |
| 12994 | *) libmagic=never-match;; |
| 12995 | esac |
| 12996 | lt_cv_deplibs_check_method=pass_all |
| 12997 | ;; |
| 12998 | |
| 12999 | # This must be Linux ELF. |
| 13000 | linux*) |
| 13001 | lt_cv_deplibs_check_method=pass_all |
| 13002 | ;; |
| 13003 | |
| 13004 | netbsd*) |
| 13005 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 13006 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 13007 | else |
| 13008 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 13009 | fi |
| 13010 | ;; |
| 13011 | |
| 13012 | newos6*) |
| 13013 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 13014 | lt_cv_file_magic_cmd=/usr/bin/file |
| 13015 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 13016 | ;; |
| 13017 | |
| 13018 | nto-qnx*) |
| 13019 | lt_cv_deplibs_check_method=unknown |
| 13020 | ;; |
| 13021 | |
| 13022 | openbsd*) |
| 13023 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13024 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 13025 | else |
| 13026 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 13027 | fi |
| 13028 | ;; |
| 13029 | |
| 13030 | osf3* | osf4* | osf5*) |
| 13031 | lt_cv_deplibs_check_method=pass_all |
| 13032 | ;; |
| 13033 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13034 | solaris*) |
| 13035 | lt_cv_deplibs_check_method=pass_all |
| 13036 | ;; |
| 13037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13038 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13039 | case $host_vendor in |
| 13040 | motorola) |
| 13041 | 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]' |
| 13042 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 13043 | ;; |
| 13044 | ncr) |
| 13045 | lt_cv_deplibs_check_method=pass_all |
| 13046 | ;; |
| 13047 | sequent) |
| 13048 | lt_cv_file_magic_cmd='/bin/file' |
| 13049 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 13050 | ;; |
| 13051 | sni) |
| 13052 | lt_cv_file_magic_cmd='/bin/file' |
| 13053 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 13054 | lt_cv_file_magic_test_file=/lib/libc.so |
| 13055 | ;; |
| 13056 | siemens) |
| 13057 | lt_cv_deplibs_check_method=pass_all |
| 13058 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13059 | pc) |
| 13060 | lt_cv_deplibs_check_method=pass_all |
| 13061 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13062 | esac |
| 13063 | ;; |
| 13064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13065 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13066 | lt_cv_deplibs_check_method=pass_all |
| 13067 | ;; |
| 13068 | esac |
| 13069 | |
| 13070 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13071 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 13072 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13073 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 13074 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 13075 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 13076 | |
| 13077 | |
| 13078 | |
| 13079 | # If no C compiler was specified, use CC. |
| 13080 | LTCC=${LTCC-"$CC"} |
| 13081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13082 | # If no C compiler flags were specified, use CFLAGS. |
| 13083 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13084 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13085 | # Allow CC to be a program name with arguments. |
| 13086 | compiler=$CC |
| 13087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13088 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13089 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13090 | enableval=$enable_libtool_lock; |
| 13091 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13092 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13093 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13094 | |
| 13095 | # Some flags need to be propagated to the compiler or linker for good |
| 13096 | # libtool support. |
| 13097 | case $host in |
| 13098 | ia64-*-hpux*) |
| 13099 | # Find out which ABI we are using. |
| 13100 | echo 'int i;' > conftest.$ac_ext |
| 13101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13102 | (eval $ac_compile) 2>&5 |
| 13103 | ac_status=$? |
| 13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13105 | (exit $ac_status); }; then |
| 13106 | case `/usr/bin/file conftest.$ac_objext` in |
| 13107 | *ELF-32*) |
| 13108 | HPUX_IA64_MODE="32" |
| 13109 | ;; |
| 13110 | *ELF-64*) |
| 13111 | HPUX_IA64_MODE="64" |
| 13112 | ;; |
| 13113 | esac |
| 13114 | fi |
| 13115 | rm -rf conftest* |
| 13116 | ;; |
| 13117 | *-*-irix6*) |
| 13118 | # Find out which ABI we are using. |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 13119 | echo '#line 13119 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13121 | (eval $ac_compile) 2>&5 |
| 13122 | ac_status=$? |
| 13123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13124 | (exit $ac_status); }; then |
| 13125 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13126 | case `/usr/bin/file conftest.$ac_objext` in |
| 13127 | *32-bit*) |
| 13128 | LD="${LD-ld} -melf32bsmip" |
| 13129 | ;; |
| 13130 | *N32*) |
| 13131 | LD="${LD-ld} -melf32bmipn32" |
| 13132 | ;; |
| 13133 | *64-bit*) |
| 13134 | LD="${LD-ld} -melf64bmip" |
| 13135 | ;; |
| 13136 | esac |
| 13137 | else |
| 13138 | case `/usr/bin/file conftest.$ac_objext` in |
| 13139 | *32-bit*) |
| 13140 | LD="${LD-ld} -32" |
| 13141 | ;; |
| 13142 | *N32*) |
| 13143 | LD="${LD-ld} -n32" |
| 13144 | ;; |
| 13145 | *64-bit*) |
| 13146 | LD="${LD-ld} -64" |
| 13147 | ;; |
| 13148 | esac |
| 13149 | fi |
| 13150 | fi |
| 13151 | rm -rf conftest* |
| 13152 | ;; |
| 13153 | |
| 13154 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13155 | # Find out which ABI we are using. |
| 13156 | echo 'int i;' > conftest.$ac_ext |
| 13157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13158 | (eval $ac_compile) 2>&5 |
| 13159 | ac_status=$? |
| 13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13161 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13162 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13163 | *32-bit*) |
| 13164 | case $host in |
| 13165 | x86_64-*linux*) |
| 13166 | LD="${LD-ld} -m elf_i386" |
| 13167 | ;; |
| 13168 | ppc64-*linux*|powerpc64-*linux*) |
| 13169 | LD="${LD-ld} -m elf32ppclinux" |
| 13170 | ;; |
| 13171 | s390x-*linux*) |
| 13172 | LD="${LD-ld} -m elf_s390" |
| 13173 | ;; |
| 13174 | sparc64-*linux*) |
| 13175 | LD="${LD-ld} -m elf32_sparc" |
| 13176 | ;; |
| 13177 | esac |
| 13178 | ;; |
| 13179 | *64-bit*) |
| 13180 | case $host in |
| 13181 | x86_64-*linux*) |
| 13182 | LD="${LD-ld} -m elf_x86_64" |
| 13183 | ;; |
| 13184 | ppc*-*linux*|powerpc*-*linux*) |
| 13185 | LD="${LD-ld} -m elf64ppc" |
| 13186 | ;; |
| 13187 | s390*-*linux*) |
| 13188 | LD="${LD-ld} -m elf64_s390" |
| 13189 | ;; |
| 13190 | sparc*-*linux*) |
| 13191 | LD="${LD-ld} -m elf64_sparc" |
| 13192 | ;; |
| 13193 | esac |
| 13194 | ;; |
| 13195 | esac |
| 13196 | fi |
| 13197 | rm -rf conftest* |
| 13198 | ;; |
| 13199 | |
| 13200 | *-*-sco3.2v5*) |
| 13201 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 13202 | SAVE_CFLAGS="$CFLAGS" |
| 13203 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13204 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 13205 | 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] | 13206 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 13207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13208 | else |
| 13209 | ac_ext=c |
| 13210 | ac_cpp='$CPP $CPPFLAGS' |
| 13211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13214 | |
| 13215 | cat >conftest.$ac_ext <<_ACEOF |
| 13216 | /* confdefs.h. */ |
| 13217 | _ACEOF |
| 13218 | cat confdefs.h >>conftest.$ac_ext |
| 13219 | cat >>conftest.$ac_ext <<_ACEOF |
| 13220 | /* end confdefs.h. */ |
| 13221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13222 | int |
| 13223 | main () |
| 13224 | { |
| 13225 | |
| 13226 | ; |
| 13227 | return 0; |
| 13228 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13229 | _ACEOF |
| 13230 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13231 | if { (ac_try="$ac_link" |
| 13232 | case "(($ac_try" in |
| 13233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13234 | *) ac_try_echo=$ac_try;; |
| 13235 | esac |
| 13236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13237 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13238 | ac_status=$? |
| 13239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13240 | rm -f conftest.er1 |
| 13241 | cat conftest.err >&5 |
| 13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13243 | (exit $ac_status); } && |
| 13244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13245 | { (case "(($ac_try" in |
| 13246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13247 | *) ac_try_echo=$ac_try;; |
| 13248 | esac |
| 13249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13250 | (eval "$ac_try") 2>&5 |
| 13251 | ac_status=$? |
| 13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13253 | (exit $ac_status); }; } && |
| 13254 | { ac_try='test -s conftest$ac_exeext' |
| 13255 | { (case "(($ac_try" in |
| 13256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13257 | *) ac_try_echo=$ac_try;; |
| 13258 | esac |
| 13259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13260 | (eval "$ac_try") 2>&5 |
| 13261 | ac_status=$? |
| 13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13263 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13264 | lt_cv_cc_needs_belf=yes |
| 13265 | else |
| 13266 | echo "$as_me: failed program was:" >&5 |
| 13267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13269 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13271 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13272 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13273 | conftest$ac_exeext conftest.$ac_ext |
| 13274 | ac_ext=c |
| 13275 | ac_cpp='$CPP $CPPFLAGS' |
| 13276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13279 | |
| 13280 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13281 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 13282 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13283 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 13284 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 13285 | CFLAGS="$SAVE_CFLAGS" |
| 13286 | fi |
| 13287 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13288 | sparc*-*solaris*) |
| 13289 | # Find out which ABI we are using. |
| 13290 | echo 'int i;' > conftest.$ac_ext |
| 13291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13292 | (eval $ac_compile) 2>&5 |
| 13293 | ac_status=$? |
| 13294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13295 | (exit $ac_status); }; then |
| 13296 | case `/usr/bin/file conftest.o` in |
| 13297 | *64-bit*) |
| 13298 | case $lt_cv_prog_gnu_ld in |
| 13299 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 13300 | *) LD="${LD-ld} -64" ;; |
| 13301 | esac |
| 13302 | ;; |
| 13303 | esac |
| 13304 | fi |
| 13305 | rm -rf conftest* |
| 13306 | ;; |
| 13307 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13308 | |
| 13309 | esac |
| 13310 | |
| 13311 | need_locks="$enable_libtool_lock" |
| 13312 | |
| 13313 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13314 | |
| 13315 | |
| 13316 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13317 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13318 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13319 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13320 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13324 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 13325 | 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] | 13326 | if test -z "$CXXCPP"; then |
| 13327 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13329 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13330 | # Double quotes because CXXCPP needs to be expanded |
| 13331 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13332 | do |
| 13333 | ac_preproc_ok=false |
| 13334 | for ac_cxx_preproc_warn_flag in '' yes |
| 13335 | do |
| 13336 | # Use a header file that comes with gcc, so configuring glibc |
| 13337 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13338 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13339 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13340 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13341 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13342 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13343 | /* confdefs.h. */ |
| 13344 | _ACEOF |
| 13345 | cat confdefs.h >>conftest.$ac_ext |
| 13346 | cat >>conftest.$ac_ext <<_ACEOF |
| 13347 | /* end confdefs.h. */ |
| 13348 | #ifdef __STDC__ |
| 13349 | # include <limits.h> |
| 13350 | #else |
| 13351 | # include <assert.h> |
| 13352 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13353 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13354 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13355 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13356 | case "(($ac_try" in |
| 13357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13358 | *) ac_try_echo=$ac_try;; |
| 13359 | esac |
| 13360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13361 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13362 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13363 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13364 | rm -f conftest.er1 |
| 13365 | cat conftest.err >&5 |
| 13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13367 | (exit $ac_status); } >/dev/null; then |
| 13368 | if test -s conftest.err; then |
| 13369 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13370 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13371 | else |
| 13372 | ac_cpp_err= |
| 13373 | fi |
| 13374 | else |
| 13375 | ac_cpp_err=yes |
| 13376 | fi |
| 13377 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13378 | : |
| 13379 | else |
| 13380 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13382 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13383 | # Broken: fails on valid input. |
| 13384 | continue |
| 13385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13386 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13387 | rm -f conftest.err conftest.$ac_ext |
| 13388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13389 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13390 | # can be detected and how. |
| 13391 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13392 | /* confdefs.h. */ |
| 13393 | _ACEOF |
| 13394 | cat confdefs.h >>conftest.$ac_ext |
| 13395 | cat >>conftest.$ac_ext <<_ACEOF |
| 13396 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13397 | #include <ac_nonexistent.h> |
| 13398 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13399 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13400 | case "(($ac_try" in |
| 13401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13402 | *) ac_try_echo=$ac_try;; |
| 13403 | esac |
| 13404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13405 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13406 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13407 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13408 | rm -f conftest.er1 |
| 13409 | cat conftest.err >&5 |
| 13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13411 | (exit $ac_status); } >/dev/null; then |
| 13412 | if test -s conftest.err; then |
| 13413 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13414 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13415 | else |
| 13416 | ac_cpp_err= |
| 13417 | fi |
| 13418 | else |
| 13419 | ac_cpp_err=yes |
| 13420 | fi |
| 13421 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13422 | # Broken: success on invalid input. |
| 13423 | continue |
| 13424 | else |
| 13425 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13427 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13428 | # Passes both tests. |
| 13429 | ac_preproc_ok=: |
| 13430 | break |
| 13431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13432 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13433 | rm -f conftest.err conftest.$ac_ext |
| 13434 | |
| 13435 | done |
| 13436 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13437 | rm -f conftest.err conftest.$ac_ext |
| 13438 | if $ac_preproc_ok; then |
| 13439 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13440 | fi |
| 13441 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13442 | done |
| 13443 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13444 | |
| 13445 | fi |
| 13446 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13447 | else |
| 13448 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13449 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13450 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13451 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13452 | ac_preproc_ok=false |
| 13453 | for ac_cxx_preproc_warn_flag in '' yes |
| 13454 | do |
| 13455 | # Use a header file that comes with gcc, so configuring glibc |
| 13456 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13457 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13458 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13459 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13460 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13461 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13462 | /* confdefs.h. */ |
| 13463 | _ACEOF |
| 13464 | cat confdefs.h >>conftest.$ac_ext |
| 13465 | cat >>conftest.$ac_ext <<_ACEOF |
| 13466 | /* end confdefs.h. */ |
| 13467 | #ifdef __STDC__ |
| 13468 | # include <limits.h> |
| 13469 | #else |
| 13470 | # include <assert.h> |
| 13471 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13472 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13473 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13475 | case "(($ac_try" in |
| 13476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13477 | *) ac_try_echo=$ac_try;; |
| 13478 | esac |
| 13479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13481 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13482 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13483 | rm -f conftest.er1 |
| 13484 | cat conftest.err >&5 |
| 13485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13486 | (exit $ac_status); } >/dev/null; then |
| 13487 | if test -s conftest.err; then |
| 13488 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13489 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13490 | else |
| 13491 | ac_cpp_err= |
| 13492 | fi |
| 13493 | else |
| 13494 | ac_cpp_err=yes |
| 13495 | fi |
| 13496 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13497 | : |
| 13498 | else |
| 13499 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13501 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13502 | # Broken: fails on valid input. |
| 13503 | continue |
| 13504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13505 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13506 | rm -f conftest.err conftest.$ac_ext |
| 13507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13508 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13509 | # can be detected and how. |
| 13510 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13511 | /* confdefs.h. */ |
| 13512 | _ACEOF |
| 13513 | cat confdefs.h >>conftest.$ac_ext |
| 13514 | cat >>conftest.$ac_ext <<_ACEOF |
| 13515 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13516 | #include <ac_nonexistent.h> |
| 13517 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13518 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13519 | case "(($ac_try" in |
| 13520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13521 | *) ac_try_echo=$ac_try;; |
| 13522 | esac |
| 13523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13524 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13525 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13526 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13527 | rm -f conftest.er1 |
| 13528 | cat conftest.err >&5 |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13530 | (exit $ac_status); } >/dev/null; then |
| 13531 | if test -s conftest.err; then |
| 13532 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13533 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13534 | else |
| 13535 | ac_cpp_err= |
| 13536 | fi |
| 13537 | else |
| 13538 | ac_cpp_err=yes |
| 13539 | fi |
| 13540 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13541 | # Broken: success on invalid input. |
| 13542 | continue |
| 13543 | else |
| 13544 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13547 | # Passes both tests. |
| 13548 | ac_preproc_ok=: |
| 13549 | break |
| 13550 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13551 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13552 | rm -f conftest.err conftest.$ac_ext |
| 13553 | |
| 13554 | done |
| 13555 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13556 | rm -f conftest.err conftest.$ac_ext |
| 13557 | if $ac_preproc_ok; then |
| 13558 | : |
| 13559 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13560 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13561 | See \`config.log' for more details." >&5 |
| 13562 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13563 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13564 | { (exit 1); exit 1; }; } |
| 13565 | fi |
| 13566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13567 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13568 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13572 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13573 | fi |
| 13574 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13575 | |
| 13576 | ac_ext=f |
| 13577 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13578 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13579 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13580 | if test -n "$ac_tool_prefix"; then |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13581 | 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] | 13582 | do |
| 13583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13585 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13587 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13589 | else |
| 13590 | if test -n "$F77"; then |
| 13591 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13592 | else |
| 13593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13594 | for as_dir in $PATH |
| 13595 | do |
| 13596 | IFS=$as_save_IFS |
| 13597 | test -z "$as_dir" && as_dir=. |
| 13598 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13599 | 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] | 13600 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13602 | break 2 |
| 13603 | fi |
| 13604 | done |
| 13605 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13606 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13607 | |
| 13608 | fi |
| 13609 | fi |
| 13610 | F77=$ac_cv_prog_F77 |
| 13611 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13612 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13613 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13614 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13615 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13616 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13617 | fi |
| 13618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13620 | test -n "$F77" && break |
| 13621 | done |
| 13622 | fi |
| 13623 | if test -z "$F77"; then |
| 13624 | ac_ct_F77=$F77 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13625 | 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] | 13626 | do |
| 13627 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13628 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13629 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13631 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13633 | else |
| 13634 | if test -n "$ac_ct_F77"; then |
| 13635 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13636 | else |
| 13637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13638 | for as_dir in $PATH |
| 13639 | do |
| 13640 | IFS=$as_save_IFS |
| 13641 | test -z "$as_dir" && as_dir=. |
| 13642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13643 | 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] | 13644 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13646 | break 2 |
| 13647 | fi |
| 13648 | done |
| 13649 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13650 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13651 | |
| 13652 | fi |
| 13653 | fi |
| 13654 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13655 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13656 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13657 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13658 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13659 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13660 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13661 | fi |
| 13662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13664 | test -n "$ac_ct_F77" && break |
| 13665 | done |
| 13666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13667 | if test "x$ac_ct_F77" = x; then |
| 13668 | F77="" |
| 13669 | else |
| 13670 | case $cross_compiling:$ac_tool_warned in |
| 13671 | yes:) |
| 13672 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13673 | whose name does not start with the host triplet. If you think this |
| 13674 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13675 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13676 | whose name does not start with the host triplet. If you think this |
| 13677 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13678 | ac_tool_warned=yes ;; |
| 13679 | esac |
| 13680 | F77=$ac_ct_F77 |
| 13681 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13682 | fi |
| 13683 | |
| 13684 | |
| 13685 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13686 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13687 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13688 | { (ac_try="$ac_compiler --version >&5" |
| 13689 | case "(($ac_try" in |
| 13690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13691 | *) ac_try_echo=$ac_try;; |
| 13692 | esac |
| 13693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13694 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13695 | ac_status=$? |
| 13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13697 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13698 | { (ac_try="$ac_compiler -v >&5" |
| 13699 | case "(($ac_try" in |
| 13700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13701 | *) ac_try_echo=$ac_try;; |
| 13702 | esac |
| 13703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13704 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13705 | ac_status=$? |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13708 | { (ac_try="$ac_compiler -V >&5" |
| 13709 | case "(($ac_try" in |
| 13710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13711 | *) ac_try_echo=$ac_try;; |
| 13712 | esac |
| 13713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13714 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13715 | ac_status=$? |
| 13716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13717 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13718 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13719 | |
| 13720 | # 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] | 13721 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13722 | ac_save_ext=$ac_ext |
| 13723 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13724 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13725 | 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] | 13726 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13728 | else |
| 13729 | cat >conftest.$ac_ext <<_ACEOF |
| 13730 | program main |
| 13731 | #ifndef __GNUC__ |
| 13732 | choke me |
| 13733 | #endif |
| 13734 | |
| 13735 | end |
| 13736 | _ACEOF |
| 13737 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13738 | if { (ac_try="$ac_compile" |
| 13739 | case "(($ac_try" in |
| 13740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13741 | *) ac_try_echo=$ac_try;; |
| 13742 | esac |
| 13743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13744 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13745 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13747 | rm -f conftest.er1 |
| 13748 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13750 | (exit $ac_status); } && |
| 13751 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13752 | { (case "(($ac_try" in |
| 13753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13754 | *) ac_try_echo=$ac_try;; |
| 13755 | esac |
| 13756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13757 | (eval "$ac_try") 2>&5 |
| 13758 | ac_status=$? |
| 13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13760 | (exit $ac_status); }; } && |
| 13761 | { ac_try='test -s conftest.$ac_objext' |
| 13762 | { (case "(($ac_try" in |
| 13763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13764 | *) ac_try_echo=$ac_try;; |
| 13765 | esac |
| 13766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13767 | (eval "$ac_try") 2>&5 |
| 13768 | ac_status=$? |
| 13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13770 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13771 | ac_compiler_gnu=yes |
| 13772 | else |
| 13773 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13776 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13777 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13778 | |
| 13779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13780 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13781 | |
| 13782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13783 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13784 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13785 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13786 | ac_test_FFLAGS=${FFLAGS+set} |
| 13787 | ac_save_FFLAGS=$FFLAGS |
| 13788 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13789 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13790 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13791 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13793 | else |
| 13794 | FFLAGS=-g |
| 13795 | cat >conftest.$ac_ext <<_ACEOF |
| 13796 | program main |
| 13797 | |
| 13798 | end |
| 13799 | _ACEOF |
| 13800 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13801 | if { (ac_try="$ac_compile" |
| 13802 | case "(($ac_try" in |
| 13803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13804 | *) ac_try_echo=$ac_try;; |
| 13805 | esac |
| 13806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13807 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13808 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13810 | rm -f conftest.er1 |
| 13811 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13813 | (exit $ac_status); } && |
| 13814 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13815 | { (case "(($ac_try" in |
| 13816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13817 | *) ac_try_echo=$ac_try;; |
| 13818 | esac |
| 13819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13820 | (eval "$ac_try") 2>&5 |
| 13821 | ac_status=$? |
| 13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13823 | (exit $ac_status); }; } && |
| 13824 | { ac_try='test -s conftest.$ac_objext' |
| 13825 | { (case "(($ac_try" in |
| 13826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13827 | *) ac_try_echo=$ac_try;; |
| 13828 | esac |
| 13829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13830 | (eval "$ac_try") 2>&5 |
| 13831 | ac_status=$? |
| 13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13833 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13834 | ac_cv_prog_f77_g=yes |
| 13835 | else |
| 13836 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13839 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13841 | |
| 13842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13843 | |
| 13844 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13845 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13846 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13847 | if test "$ac_test_FFLAGS" = set; then |
| 13848 | FFLAGS=$ac_save_FFLAGS |
| 13849 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13850 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13851 | FFLAGS="-g -O2" |
| 13852 | else |
| 13853 | FFLAGS="-g" |
| 13854 | fi |
| 13855 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13856 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13857 | FFLAGS="-O2" |
| 13858 | else |
| 13859 | FFLAGS= |
| 13860 | fi |
| 13861 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13862 | |
| 13863 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13864 | ac_ext=c |
| 13865 | ac_cpp='$CPP $CPPFLAGS' |
| 13866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13869 | |
| 13870 | |
| 13871 | |
| 13872 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13873 | |
| 13874 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13875 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13876 | 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] | 13877 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13879 | else |
| 13880 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13881 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13882 | |
| 13883 | case $build_os in |
| 13884 | msdosdjgpp*) |
| 13885 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13886 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13887 | # during glob expansion). Even if it were fixed, the result of this |
| 13888 | # check would be larger than it should be. |
| 13889 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13890 | ;; |
| 13891 | |
| 13892 | gnu*) |
| 13893 | # Under GNU Hurd, this test is not required because there is |
| 13894 | # no limit to the length of command line arguments. |
| 13895 | # Libtool will interpret -1 as no limit whatsoever |
| 13896 | lt_cv_sys_max_cmd_len=-1; |
| 13897 | ;; |
| 13898 | |
| 13899 | cygwin* | mingw*) |
| 13900 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13901 | # about 5 minutes as the teststring grows exponentially. |
| 13902 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13903 | # you end up with a "frozen" computer, even though with patience |
| 13904 | # the test eventually succeeds (with a max line length of 256k). |
| 13905 | # Instead, let's just punt: use the minimum linelength reported by |
| 13906 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13907 | lt_cv_sys_max_cmd_len=8192; |
| 13908 | ;; |
| 13909 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13910 | amigaos*) |
| 13911 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13912 | # So we just punt and use a minimum line length of 8192. |
| 13913 | lt_cv_sys_max_cmd_len=8192; |
| 13914 | ;; |
| 13915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13917 | # This has been around since 386BSD, at least. Likely further. |
| 13918 | if test -x /sbin/sysctl; then |
| 13919 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13920 | elif test -x /usr/sbin/sysctl; then |
| 13921 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13922 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13923 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13924 | fi |
| 13925 | # And add a safety zone |
| 13926 | 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] | 13927 | 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] | 13928 | ;; |
| 13929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13930 | interix*) |
| 13931 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13932 | lt_cv_sys_max_cmd_len=196608 |
| 13933 | ;; |
| 13934 | |
| 13935 | osf*) |
| 13936 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13937 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13938 | # nice to cause kernel panics so lets avoid the loop below. |
| 13939 | # First set a reasonable default. |
| 13940 | lt_cv_sys_max_cmd_len=16384 |
| 13941 | # |
| 13942 | if test -x /sbin/sysconfig; then |
| 13943 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13944 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13945 | esac |
| 13946 | fi |
| 13947 | ;; |
| 13948 | sco3.2v5*) |
| 13949 | lt_cv_sys_max_cmd_len=102400 |
| 13950 | ;; |
| 13951 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13952 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13953 | if test -n "$kargmax"; then |
| 13954 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13955 | else |
| 13956 | lt_cv_sys_max_cmd_len=32768 |
| 13957 | fi |
| 13958 | ;; |
| 13959 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13960 | # If test is not a shell built-in, we'll probably end up computing a |
| 13961 | # maximum length that is only half of the actual maximum length, but |
| 13962 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13963 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13964 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13965 | = "XX$teststring") >/dev/null 2>&1 && |
| 13966 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13967 | lt_cv_sys_max_cmd_len=$new_result && |
| 13968 | test $i != 17 # 1/2 MB should be enough |
| 13969 | do |
| 13970 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13971 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13972 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13973 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13974 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13975 | # amounts of additional arguments before passing them to the linker. |
| 13976 | # It appears as though 1/2 is a usable value. |
| 13977 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13978 | ;; |
| 13979 | esac |
| 13980 | |
| 13981 | fi |
| 13982 | |
| 13983 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13984 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13985 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13986 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13987 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13988 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13989 | fi |
| 13990 | |
| 13991 | |
| 13992 | |
| 13993 | |
| 13994 | # 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] | 13995 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13996 | 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] | 13997 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13999 | else |
| 14000 | |
| 14001 | # These are sane defaults that work on at least a few old systems. |
| 14002 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 14003 | |
| 14004 | # Character class describing NM global symbol codes. |
| 14005 | symcode='[BCDEGRST]' |
| 14006 | |
| 14007 | # Regexp to match symbols that can be accessed directly from C. |
| 14008 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 14009 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14010 | # Transform an extracted symbol line into a proper C declaration |
| 14011 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 14012 | |
| 14013 | # Transform an extracted symbol line into symbol name and symbol address |
| 14014 | 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'" |
| 14015 | |
| 14016 | # Define system-specific variables. |
| 14017 | case $host_os in |
| 14018 | aix*) |
| 14019 | symcode='[BCDT]' |
| 14020 | ;; |
| 14021 | cygwin* | mingw* | pw32*) |
| 14022 | symcode='[ABCDGISTW]' |
| 14023 | ;; |
| 14024 | hpux*) # Its linker distinguishes data from code symbols |
| 14025 | if test "$host_cpu" = ia64; then |
| 14026 | symcode='[ABCDEGRST]' |
| 14027 | fi |
| 14028 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 14029 | 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'" |
| 14030 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14031 | linux*) |
| 14032 | if test "$host_cpu" = ia64; then |
| 14033 | symcode='[ABCDGIRSTW]' |
| 14034 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 14035 | 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'" |
| 14036 | fi |
| 14037 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14038 | irix* | nonstopux*) |
| 14039 | symcode='[BCDEGRST]' |
| 14040 | ;; |
| 14041 | osf*) |
| 14042 | symcode='[BCDEGQRST]' |
| 14043 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14044 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14045 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14046 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14047 | sco3.2v5*) |
| 14048 | symcode='[DT]' |
| 14049 | ;; |
| 14050 | sysv4.2uw2*) |
| 14051 | symcode='[DT]' |
| 14052 | ;; |
| 14053 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 14054 | symcode='[ABDT]' |
| 14055 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14056 | sysv4) |
| 14057 | symcode='[DFNSTU]' |
| 14058 | ;; |
| 14059 | esac |
| 14060 | |
| 14061 | # Handle CRLF in mingw tool chain |
| 14062 | opt_cr= |
| 14063 | case $build_os in |
| 14064 | mingw*) |
| 14065 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 14066 | ;; |
| 14067 | esac |
| 14068 | |
| 14069 | # If we're using GNU nm, then use its standard symbol codes. |
| 14070 | case `$NM -V 2>&1` in |
| 14071 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14072 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14073 | esac |
| 14074 | |
| 14075 | # Try without a prefix undercore, then with it. |
| 14076 | for ac_symprfx in "" "_"; do |
| 14077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14078 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 14079 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 14080 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14081 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14082 | 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] | 14083 | |
| 14084 | # Check to see that the pipe works correctly. |
| 14085 | pipe_works=no |
| 14086 | |
| 14087 | rm -f conftest* |
| 14088 | cat > conftest.$ac_ext <<EOF |
| 14089 | #ifdef __cplusplus |
| 14090 | extern "C" { |
| 14091 | #endif |
| 14092 | char nm_test_var; |
| 14093 | void nm_test_func(){} |
| 14094 | #ifdef __cplusplus |
| 14095 | } |
| 14096 | #endif |
| 14097 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 14098 | EOF |
| 14099 | |
| 14100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14101 | (eval $ac_compile) 2>&5 |
| 14102 | ac_status=$? |
| 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); }; then |
| 14105 | # Now try to grab the symbols. |
| 14106 | nlist=conftest.nm |
| 14107 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 14108 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 14109 | ac_status=$? |
| 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); } && test -s "$nlist"; then |
| 14112 | # Try sorting and uniquifying the output. |
| 14113 | if sort "$nlist" | uniq > "$nlist"T; then |
| 14114 | mv -f "$nlist"T "$nlist" |
| 14115 | else |
| 14116 | rm -f "$nlist"T |
| 14117 | fi |
| 14118 | |
| 14119 | # Make sure that we snagged all the symbols we need. |
| 14120 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 14121 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 14122 | cat <<EOF > conftest.$ac_ext |
| 14123 | #ifdef __cplusplus |
| 14124 | extern "C" { |
| 14125 | #endif |
| 14126 | |
| 14127 | EOF |
| 14128 | # Now generate the symbol file. |
| 14129 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 14130 | |
| 14131 | cat <<EOF >> conftest.$ac_ext |
| 14132 | #if defined (__STDC__) && __STDC__ |
| 14133 | # define lt_ptr_t void * |
| 14134 | #else |
| 14135 | # define lt_ptr_t char * |
| 14136 | # define const |
| 14137 | #endif |
| 14138 | |
| 14139 | /* The mapping between symbol names and symbols. */ |
| 14140 | const struct { |
| 14141 | const char *name; |
| 14142 | lt_ptr_t address; |
| 14143 | } |
| 14144 | lt_preloaded_symbols[] = |
| 14145 | { |
| 14146 | EOF |
| 14147 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 14148 | cat <<\EOF >> conftest.$ac_ext |
| 14149 | {0, (lt_ptr_t) 0} |
| 14150 | }; |
| 14151 | |
| 14152 | #ifdef __cplusplus |
| 14153 | } |
| 14154 | #endif |
| 14155 | EOF |
| 14156 | # Now try linking the two files. |
| 14157 | mv conftest.$ac_objext conftstm.$ac_objext |
| 14158 | lt_save_LIBS="$LIBS" |
| 14159 | lt_save_CFLAGS="$CFLAGS" |
| 14160 | LIBS="conftstm.$ac_objext" |
| 14161 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 14162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14163 | (eval $ac_link) 2>&5 |
| 14164 | ac_status=$? |
| 14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14166 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 14167 | pipe_works=yes |
| 14168 | fi |
| 14169 | LIBS="$lt_save_LIBS" |
| 14170 | CFLAGS="$lt_save_CFLAGS" |
| 14171 | else |
| 14172 | echo "cannot find nm_test_func in $nlist" >&5 |
| 14173 | fi |
| 14174 | else |
| 14175 | echo "cannot find nm_test_var in $nlist" >&5 |
| 14176 | fi |
| 14177 | else |
| 14178 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 14179 | fi |
| 14180 | else |
| 14181 | echo "$progname: failed program was:" >&5 |
| 14182 | cat conftest.$ac_ext >&5 |
| 14183 | fi |
| 14184 | rm -f conftest* conftst* |
| 14185 | |
| 14186 | # Do not use the global_symbol_pipe unless it works. |
| 14187 | if test "$pipe_works" = yes; then |
| 14188 | break |
| 14189 | else |
| 14190 | lt_cv_sys_global_symbol_pipe= |
| 14191 | fi |
| 14192 | done |
| 14193 | |
| 14194 | fi |
| 14195 | |
| 14196 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 14197 | lt_cv_sys_global_symbol_to_cdecl= |
| 14198 | fi |
| 14199 | 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] | 14200 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 14201 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14202 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14203 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 14204 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14205 | fi |
| 14206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14207 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 14208 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14209 | if test "${lt_cv_objdir+set}" = set; then |
| 14210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14211 | else |
| 14212 | rm -f .libs 2>/dev/null |
| 14213 | mkdir .libs 2>/dev/null |
| 14214 | if test -d .libs; then |
| 14215 | lt_cv_objdir=.libs |
| 14216 | else |
| 14217 | # MS-DOS does not allow filenames that begin with a dot. |
| 14218 | lt_cv_objdir=_libs |
| 14219 | fi |
| 14220 | rmdir .libs 2>/dev/null |
| 14221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14222 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 14223 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14224 | objdir=$lt_cv_objdir |
| 14225 | |
| 14226 | |
| 14227 | |
| 14228 | |
| 14229 | |
| 14230 | case $host_os in |
| 14231 | aix3*) |
| 14232 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14233 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14234 | # vanish in a puff of smoke. |
| 14235 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14236 | COLLECT_NAMES= |
| 14237 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14238 | fi |
| 14239 | ;; |
| 14240 | esac |
| 14241 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14242 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 14243 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14244 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14245 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 14246 | |
| 14247 | # Same as above, but do not quote variable references. |
| 14248 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 14249 | |
| 14250 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 14251 | # double_quote_subst'ed string. |
| 14252 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 14253 | |
| 14254 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 14255 | no_glob_subst='s/\*/\\\*/g' |
| 14256 | |
| 14257 | # Constants: |
| 14258 | rm="rm -f" |
| 14259 | |
| 14260 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14261 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14262 | can_build_shared=yes |
| 14263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14264 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14265 | # which needs '.lib'). |
| 14266 | libext=a |
| 14267 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14268 | ofile="$default_ofile" |
| 14269 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 14270 | |
| 14271 | if test -n "$ac_tool_prefix"; then |
| 14272 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 14273 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14276 | if test "${ac_cv_prog_AR+set}" = set; then |
| 14277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14278 | else |
| 14279 | if test -n "$AR"; then |
| 14280 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 14281 | else |
| 14282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14283 | for as_dir in $PATH |
| 14284 | do |
| 14285 | IFS=$as_save_IFS |
| 14286 | test -z "$as_dir" && as_dir=. |
| 14287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14288 | 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] | 14289 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 14290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14291 | break 2 |
| 14292 | fi |
| 14293 | done |
| 14294 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14295 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14296 | |
| 14297 | fi |
| 14298 | fi |
| 14299 | AR=$ac_cv_prog_AR |
| 14300 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14301 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 14302 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14303 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14305 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14306 | fi |
| 14307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14309 | fi |
| 14310 | if test -z "$ac_cv_prog_AR"; then |
| 14311 | ac_ct_AR=$AR |
| 14312 | # Extract the first word of "ar", so it can be a program name with args. |
| 14313 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14314 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14316 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14318 | else |
| 14319 | if test -n "$ac_ct_AR"; then |
| 14320 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 14321 | else |
| 14322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14323 | for as_dir in $PATH |
| 14324 | do |
| 14325 | IFS=$as_save_IFS |
| 14326 | test -z "$as_dir" && as_dir=. |
| 14327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14328 | 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] | 14329 | ac_cv_prog_ac_ct_AR="ar" |
| 14330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14331 | break 2 |
| 14332 | fi |
| 14333 | done |
| 14334 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14335 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14336 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14337 | fi |
| 14338 | fi |
| 14339 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14340 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14341 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14342 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14343 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14344 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14345 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14346 | fi |
| 14347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14348 | if test "x$ac_ct_AR" = x; then |
| 14349 | AR="false" |
| 14350 | else |
| 14351 | case $cross_compiling:$ac_tool_warned in |
| 14352 | yes:) |
| 14353 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14354 | whose name does not start with the host triplet. If you think this |
| 14355 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14356 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14357 | whose name does not start with the host triplet. If you think this |
| 14358 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14359 | ac_tool_warned=yes ;; |
| 14360 | esac |
| 14361 | AR=$ac_ct_AR |
| 14362 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14363 | else |
| 14364 | AR="$ac_cv_prog_AR" |
| 14365 | fi |
| 14366 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14367 | if test -n "$ac_tool_prefix"; then |
| 14368 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14369 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14370 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14372 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14374 | else |
| 14375 | if test -n "$RANLIB"; then |
| 14376 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14377 | else |
| 14378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14379 | for as_dir in $PATH |
| 14380 | do |
| 14381 | IFS=$as_save_IFS |
| 14382 | test -z "$as_dir" && as_dir=. |
| 14383 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14384 | 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] | 14385 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14387 | break 2 |
| 14388 | fi |
| 14389 | done |
| 14390 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14391 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14392 | |
| 14393 | fi |
| 14394 | fi |
| 14395 | RANLIB=$ac_cv_prog_RANLIB |
| 14396 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14397 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14398 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14399 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14400 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14401 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14402 | fi |
| 14403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14405 | fi |
| 14406 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14407 | ac_ct_RANLIB=$RANLIB |
| 14408 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14409 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14412 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14414 | else |
| 14415 | if test -n "$ac_ct_RANLIB"; then |
| 14416 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14417 | else |
| 14418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14419 | for as_dir in $PATH |
| 14420 | do |
| 14421 | IFS=$as_save_IFS |
| 14422 | test -z "$as_dir" && as_dir=. |
| 14423 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14424 | 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] | 14425 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14427 | break 2 |
| 14428 | fi |
| 14429 | done |
| 14430 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14431 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14432 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14433 | fi |
| 14434 | fi |
| 14435 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14436 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14437 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14438 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14439 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14440 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14441 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14442 | fi |
| 14443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14444 | if test "x$ac_ct_RANLIB" = x; then |
| 14445 | RANLIB=":" |
| 14446 | else |
| 14447 | case $cross_compiling:$ac_tool_warned in |
| 14448 | yes:) |
| 14449 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14450 | whose name does not start with the host triplet. If you think this |
| 14451 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14452 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14453 | whose name does not start with the host triplet. If you think this |
| 14454 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14455 | ac_tool_warned=yes ;; |
| 14456 | esac |
| 14457 | RANLIB=$ac_ct_RANLIB |
| 14458 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14459 | else |
| 14460 | RANLIB="$ac_cv_prog_RANLIB" |
| 14461 | fi |
| 14462 | |
| 14463 | if test -n "$ac_tool_prefix"; then |
| 14464 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14465 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14468 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14470 | else |
| 14471 | if test -n "$STRIP"; then |
| 14472 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14473 | else |
| 14474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14475 | for as_dir in $PATH |
| 14476 | do |
| 14477 | IFS=$as_save_IFS |
| 14478 | test -z "$as_dir" && as_dir=. |
| 14479 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14480 | 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] | 14481 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14483 | break 2 |
| 14484 | fi |
| 14485 | done |
| 14486 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14487 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14488 | |
| 14489 | fi |
| 14490 | fi |
| 14491 | STRIP=$ac_cv_prog_STRIP |
| 14492 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14493 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14494 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14495 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14496 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14497 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14498 | fi |
| 14499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14500 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14501 | fi |
| 14502 | if test -z "$ac_cv_prog_STRIP"; then |
| 14503 | ac_ct_STRIP=$STRIP |
| 14504 | # Extract the first word of "strip", so it can be a program name with args. |
| 14505 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14506 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14508 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14510 | else |
| 14511 | if test -n "$ac_ct_STRIP"; then |
| 14512 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14513 | else |
| 14514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14515 | for as_dir in $PATH |
| 14516 | do |
| 14517 | IFS=$as_save_IFS |
| 14518 | test -z "$as_dir" && as_dir=. |
| 14519 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14520 | 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] | 14521 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14523 | break 2 |
| 14524 | fi |
| 14525 | done |
| 14526 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14527 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14528 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14529 | fi |
| 14530 | fi |
| 14531 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14532 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14533 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14534 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14535 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14536 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14537 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14538 | fi |
| 14539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14540 | if test "x$ac_ct_STRIP" = x; then |
| 14541 | STRIP=":" |
| 14542 | else |
| 14543 | case $cross_compiling:$ac_tool_warned in |
| 14544 | yes:) |
| 14545 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14546 | whose name does not start with the host triplet. If you think this |
| 14547 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14548 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14549 | whose name does not start with the host triplet. If you think this |
| 14550 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14551 | ac_tool_warned=yes ;; |
| 14552 | esac |
| 14553 | STRIP=$ac_ct_STRIP |
| 14554 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14555 | else |
| 14556 | STRIP="$ac_cv_prog_STRIP" |
| 14557 | fi |
| 14558 | |
| 14559 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14560 | old_CC="$CC" |
| 14561 | old_CFLAGS="$CFLAGS" |
| 14562 | |
| 14563 | # Set sane defaults for various variables |
| 14564 | test -z "$AR" && AR=ar |
| 14565 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14566 | test -z "$AS" && AS=as |
| 14567 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14568 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14569 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14570 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14571 | test -z "$LD" && LD=ld |
| 14572 | test -z "$LN_S" && LN_S="ln -s" |
| 14573 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14574 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14575 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14576 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14577 | test -z "$RANLIB" && RANLIB=: |
| 14578 | test -z "$STRIP" && STRIP=: |
| 14579 | test -z "$ac_objext" && ac_objext=o |
| 14580 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14581 | # Determine commands to create old-style static archives. |
| 14582 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14583 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14584 | old_postuninstall_cmds= |
| 14585 | |
| 14586 | if test -n "$RANLIB"; then |
| 14587 | case $host_os in |
| 14588 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14589 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14590 | ;; |
| 14591 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14592 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14593 | ;; |
| 14594 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14595 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14596 | fi |
| 14597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14598 | for cc_temp in $compiler""; do |
| 14599 | case $cc_temp in |
| 14600 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14601 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14602 | \-*) ;; |
| 14603 | *) break;; |
| 14604 | esac |
| 14605 | done |
| 14606 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14607 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14608 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14609 | # Only perform the check for file, if the check method requires it |
| 14610 | case $deplibs_check_method in |
| 14611 | file_magic*) |
| 14612 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14613 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14614 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14615 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14617 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14618 | case $MAGIC_CMD in |
| 14619 | [\\/*] | ?:[\\/]*) |
| 14620 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14621 | ;; |
| 14622 | *) |
| 14623 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14624 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14625 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14626 | for ac_dir in $ac_dummy; do |
| 14627 | IFS="$lt_save_ifs" |
| 14628 | test -z "$ac_dir" && ac_dir=. |
| 14629 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14630 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14631 | if test -n "$file_magic_test_file"; then |
| 14632 | case $deplibs_check_method in |
| 14633 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14634 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14635 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14636 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14637 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14638 | : |
| 14639 | else |
| 14640 | cat <<EOF 1>&2 |
| 14641 | |
| 14642 | *** Warning: the command libtool uses to detect shared libraries, |
| 14643 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14644 | *** The result is that libtool may fail to recognize shared libraries |
| 14645 | *** as such. This will affect the creation of libtool libraries that |
| 14646 | *** depend on shared libraries, but programs linked with such libtool |
| 14647 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14648 | *** may want to report the problem to your system manager and/or to |
| 14649 | *** bug-libtool@gnu.org |
| 14650 | |
| 14651 | EOF |
| 14652 | fi ;; |
| 14653 | esac |
| 14654 | fi |
| 14655 | break |
| 14656 | fi |
| 14657 | done |
| 14658 | IFS="$lt_save_ifs" |
| 14659 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14660 | ;; |
| 14661 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14662 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14664 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14665 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14666 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14667 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14668 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14670 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14671 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14672 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14673 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14674 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14675 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14676 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14677 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14679 | else |
| 14680 | case $MAGIC_CMD in |
| 14681 | [\\/*] | ?:[\\/]*) |
| 14682 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14683 | ;; |
| 14684 | *) |
| 14685 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14686 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14687 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14688 | for ac_dir in $ac_dummy; do |
| 14689 | IFS="$lt_save_ifs" |
| 14690 | test -z "$ac_dir" && ac_dir=. |
| 14691 | if test -f $ac_dir/file; then |
| 14692 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14693 | if test -n "$file_magic_test_file"; then |
| 14694 | case $deplibs_check_method in |
| 14695 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14696 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14697 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14698 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14699 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14700 | : |
| 14701 | else |
| 14702 | cat <<EOF 1>&2 |
| 14703 | |
| 14704 | *** Warning: the command libtool uses to detect shared libraries, |
| 14705 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14706 | *** The result is that libtool may fail to recognize shared libraries |
| 14707 | *** as such. This will affect the creation of libtool libraries that |
| 14708 | *** depend on shared libraries, but programs linked with such libtool |
| 14709 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14710 | *** may want to report the problem to your system manager and/or to |
| 14711 | *** bug-libtool@gnu.org |
| 14712 | |
| 14713 | EOF |
| 14714 | fi ;; |
| 14715 | esac |
| 14716 | fi |
| 14717 | break |
| 14718 | fi |
| 14719 | done |
| 14720 | IFS="$lt_save_ifs" |
| 14721 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14722 | ;; |
| 14723 | esac |
| 14724 | fi |
| 14725 | |
| 14726 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14727 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14728 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14729 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14730 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14732 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14733 | fi |
| 14734 | |
| 14735 | else |
| 14736 | MAGIC_CMD=: |
| 14737 | fi |
| 14738 | fi |
| 14739 | |
| 14740 | fi |
| 14741 | ;; |
| 14742 | esac |
| 14743 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14744 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14745 | enable_win32_dll=no |
| 14746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14747 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14748 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14749 | enableval=$enable_libtool_lock; |
| 14750 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14751 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14752 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14755 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14756 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14757 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14758 | else |
| 14759 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14760 | fi |
| 14761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14762 | test -z "$pic_mode" && pic_mode=default |
| 14763 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14764 | # Use C for the default configuration in the libtool script |
| 14765 | tagname= |
| 14766 | lt_save_CC="$CC" |
| 14767 | ac_ext=c |
| 14768 | ac_cpp='$CPP $CPPFLAGS' |
| 14769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14772 | |
| 14773 | |
| 14774 | # Source file extension for C test sources. |
| 14775 | ac_ext=c |
| 14776 | |
| 14777 | # Object file extension for compiled C test sources. |
| 14778 | objext=o |
| 14779 | objext=$objext |
| 14780 | |
| 14781 | # Code to be used in simple compile tests |
| 14782 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14783 | |
| 14784 | # Code to be used in simple link tests |
| 14785 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14786 | |
| 14787 | |
| 14788 | # If no C compiler was specified, use CC. |
| 14789 | LTCC=${LTCC-"$CC"} |
| 14790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14791 | # If no C compiler flags were specified, use CFLAGS. |
| 14792 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14793 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14794 | # Allow CC to be a program name with arguments. |
| 14795 | compiler=$CC |
| 14796 | |
| 14797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14798 | # save warnings/boilerplate of simple test code |
| 14799 | ac_outfile=conftest.$ac_objext |
| 14800 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14801 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14802 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14803 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14805 | ac_outfile=conftest.$ac_objext |
| 14806 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14807 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14808 | _lt_linker_boilerplate=`cat conftest.err` |
| 14809 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14810 | |
| 14811 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14812 | |
| 14813 | lt_prog_compiler_no_builtin_flag= |
| 14814 | |
| 14815 | if test "$GCC" = yes; then |
| 14816 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14817 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14819 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14820 | 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] | 14821 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14823 | else |
| 14824 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14825 | ac_outfile=conftest.$ac_objext |
| 14826 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14827 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14828 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14829 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14830 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14831 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14832 | # The option is referenced via a variable to avoid confusing sed. |
| 14833 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14834 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14835 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14836 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 14837 | (eval echo "\"\$as_me:14837: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14838 | (eval "$lt_compile" 2>conftest.err) |
| 14839 | ac_status=$? |
| 14840 | cat conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 14841 | echo "$as_me:14841: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14842 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14843 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14844 | # So say no if there are warnings other than the usual output. |
| 14845 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14846 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14847 | 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] | 14848 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14849 | fi |
| 14850 | fi |
| 14851 | $rm conftest* |
| 14852 | |
| 14853 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14854 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14855 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14856 | |
| 14857 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14858 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14859 | else |
| 14860 | : |
| 14861 | fi |
| 14862 | |
| 14863 | fi |
| 14864 | |
| 14865 | lt_prog_compiler_wl= |
| 14866 | lt_prog_compiler_pic= |
| 14867 | lt_prog_compiler_static= |
| 14868 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14869 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14870 | 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] | 14871 | |
| 14872 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14873 | lt_prog_compiler_wl='-Wl,' |
| 14874 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14875 | |
| 14876 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14877 | aix*) |
| 14878 | # All AIX code is PIC. |
| 14879 | if test "$host_cpu" = ia64; then |
| 14880 | # AIX 5 now supports IA64 processor |
| 14881 | lt_prog_compiler_static='-Bstatic' |
| 14882 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14883 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14884 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14885 | amigaos*) |
| 14886 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14887 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14888 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14889 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14890 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14891 | |
| 14892 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14893 | # PIC is the default for these OSes. |
| 14894 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14895 | |
| 14896 | mingw* | pw32* | os2*) |
| 14897 | # This hack is so that the source file can tell whether it is being |
| 14898 | # built for inclusion in a dll (and should export symbols for example). |
| 14899 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14900 | ;; |
| 14901 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14902 | darwin* | rhapsody*) |
| 14903 | # PIC is the default on this platform |
| 14904 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14905 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14906 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14908 | interix3*) |
| 14909 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14910 | # Instead, we relocate shared libraries at runtime. |
| 14911 | ;; |
| 14912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14913 | msdosdjgpp*) |
| 14914 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14915 | # on systems that don't support them. |
| 14916 | lt_prog_compiler_can_build_shared=no |
| 14917 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14918 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14919 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14920 | sysv4*MP*) |
| 14921 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14922 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14923 | fi |
| 14924 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14925 | |
| 14926 | hpux*) |
| 14927 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14928 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14929 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14930 | hppa*64*|ia64*) |
| 14931 | # +Z the default |
| 14932 | ;; |
| 14933 | *) |
| 14934 | lt_prog_compiler_pic='-fPIC' |
| 14935 | ;; |
| 14936 | esac |
| 14937 | ;; |
| 14938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14939 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14940 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14941 | ;; |
| 14942 | esac |
| 14943 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14944 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14945 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14946 | aix*) |
| 14947 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14948 | if test "$host_cpu" = ia64; then |
| 14949 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14950 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14951 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14953 | fi |
| 14954 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14955 | darwin*) |
| 14956 | # PIC is the default on this platform |
| 14957 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14958 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14959 | xlc*) |
| 14960 | lt_prog_compiler_pic='-qnocommon' |
| 14961 | lt_prog_compiler_wl='-Wl,' |
| 14962 | ;; |
| 14963 | esac |
| 14964 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14965 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14966 | mingw* | pw32* | os2*) |
| 14967 | # This hack is so that the source file can tell whether it is being |
| 14968 | # built for inclusion in a dll (and should export symbols for example). |
| 14969 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14970 | ;; |
| 14971 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14972 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14973 | lt_prog_compiler_wl='-Wl,' |
| 14974 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14975 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14976 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14977 | hppa*64*|ia64*) |
| 14978 | # +Z the default |
| 14979 | ;; |
| 14980 | *) |
| 14981 | lt_prog_compiler_pic='+Z' |
| 14982 | ;; |
| 14983 | esac |
| 14984 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14985 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14986 | ;; |
| 14987 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14988 | irix5* | irix6* | nonstopux*) |
| 14989 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14990 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14991 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14992 | ;; |
| 14993 | |
| 14994 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14995 | lt_prog_compiler_pic='-KPIC' |
| 14996 | lt_prog_compiler_static='-Bstatic' |
| 14997 | ;; |
| 14998 | |
| 14999 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15000 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15001 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15002 | lt_prog_compiler_wl='-Wl,' |
| 15003 | lt_prog_compiler_pic='-KPIC' |
| 15004 | lt_prog_compiler_static='-static' |
| 15005 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15006 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 15007 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 15008 | # which looks to be a dead project) |
| 15009 | lt_prog_compiler_wl='-Wl,' |
| 15010 | lt_prog_compiler_pic='-fpic' |
| 15011 | lt_prog_compiler_static='-Bstatic' |
| 15012 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15013 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15014 | lt_prog_compiler_wl='-Wl,' |
| 15015 | # All Alpha code is PIC. |
| 15016 | lt_prog_compiler_static='-non_shared' |
| 15017 | ;; |
| 15018 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15019 | ;; |
| 15020 | |
| 15021 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15022 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15023 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15024 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15025 | ;; |
| 15026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15027 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15028 | lt_prog_compiler_pic='-KPIC' |
| 15029 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15030 | case $cc_basename in |
| 15031 | f77* | f90* | f95*) |
| 15032 | lt_prog_compiler_wl='-Qoption ld ';; |
| 15033 | *) |
| 15034 | lt_prog_compiler_wl='-Wl,';; |
| 15035 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15036 | ;; |
| 15037 | |
| 15038 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15039 | lt_prog_compiler_wl='-Qoption ld ' |
| 15040 | lt_prog_compiler_pic='-PIC' |
| 15041 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15042 | ;; |
| 15043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15044 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15045 | lt_prog_compiler_wl='-Wl,' |
| 15046 | lt_prog_compiler_pic='-KPIC' |
| 15047 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15048 | ;; |
| 15049 | |
| 15050 | sysv4*MP*) |
| 15051 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15052 | lt_prog_compiler_pic='-Kconform_pic' |
| 15053 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15054 | fi |
| 15055 | ;; |
| 15056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15057 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 15058 | lt_prog_compiler_wl='-Wl,' |
| 15059 | lt_prog_compiler_pic='-KPIC' |
| 15060 | lt_prog_compiler_static='-Bstatic' |
| 15061 | ;; |
| 15062 | |
| 15063 | unicos*) |
| 15064 | lt_prog_compiler_wl='-Wl,' |
| 15065 | lt_prog_compiler_can_build_shared=no |
| 15066 | ;; |
| 15067 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15068 | uts4*) |
| 15069 | lt_prog_compiler_pic='-pic' |
| 15070 | lt_prog_compiler_static='-Bstatic' |
| 15071 | ;; |
| 15072 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15073 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15074 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15075 | ;; |
| 15076 | esac |
| 15077 | fi |
| 15078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15079 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 15080 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15082 | # |
| 15083 | # Check to make sure the PIC flag actually works. |
| 15084 | # |
| 15085 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15087 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 15088 | 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] | 15089 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15091 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15092 | lt_prog_compiler_pic_works=no |
| 15093 | ac_outfile=conftest.$ac_objext |
| 15094 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15095 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 15096 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15097 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15098 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15099 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15100 | # The option is referenced via a variable to avoid confusing sed. |
| 15101 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15102 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15103 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15104 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 15105 | (eval echo "\"\$as_me:15105: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15106 | (eval "$lt_compile" 2>conftest.err) |
| 15107 | ac_status=$? |
| 15108 | cat conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 15109 | echo "$as_me:15109: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15110 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15111 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15112 | # So say no if there are warnings other than the usual output. |
| 15113 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15114 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15115 | 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] | 15116 | lt_prog_compiler_pic_works=yes |
| 15117 | fi |
| 15118 | fi |
| 15119 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15120 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15121 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15122 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 15123 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
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 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 15126 | case $lt_prog_compiler_pic in |
| 15127 | "" | " "*) ;; |
| 15128 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 15129 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15130 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15131 | lt_prog_compiler_pic= |
| 15132 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15133 | fi |
| 15134 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15135 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15136 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15137 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15138 | *djgpp*) |
| 15139 | lt_prog_compiler_pic= |
| 15140 | ;; |
| 15141 | *) |
| 15142 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 15143 | ;; |
| 15144 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15146 | # |
| 15147 | # Check to make sure the static flag actually works. |
| 15148 | # |
| 15149 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15150 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15151 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 15152 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 15153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15154 | else |
| 15155 | lt_prog_compiler_static_works=no |
| 15156 | save_LDFLAGS="$LDFLAGS" |
| 15157 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15158 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15159 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15160 | # The linker can only warn and ignore the option if not recognized |
| 15161 | # So say no if there are warnings |
| 15162 | if test -s conftest.err; then |
| 15163 | # Append any errors to the config.log. |
| 15164 | cat conftest.err 1>&5 |
| 15165 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15166 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15167 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15168 | lt_prog_compiler_static_works=yes |
| 15169 | fi |
| 15170 | else |
| 15171 | lt_prog_compiler_static_works=yes |
| 15172 | fi |
| 15173 | fi |
| 15174 | $rm conftest* |
| 15175 | LDFLAGS="$save_LDFLAGS" |
| 15176 | |
| 15177 | fi |
| 15178 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 15179 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 15180 | |
| 15181 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 15182 | : |
| 15183 | else |
| 15184 | lt_prog_compiler_static= |
| 15185 | fi |
| 15186 | |
| 15187 | |
| 15188 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15189 | 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] | 15190 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15192 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15193 | lt_cv_prog_compiler_c_o=no |
| 15194 | $rm -r conftest 2>/dev/null |
| 15195 | mkdir conftest |
| 15196 | cd conftest |
| 15197 | mkdir out |
| 15198 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15200 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15201 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15202 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15203 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15204 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15205 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15206 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15207 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15208 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 15209 | (eval echo "\"\$as_me:15209: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15210 | (eval "$lt_compile" 2>out/conftest.err) |
| 15211 | ac_status=$? |
| 15212 | cat out/conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 15213 | echo "$as_me:15213: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15214 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15215 | then |
| 15216 | # The compiler can only warn and ignore the option if not recognized |
| 15217 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15218 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15219 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15220 | 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] | 15221 | lt_cv_prog_compiler_c_o=yes |
| 15222 | fi |
| 15223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15224 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15225 | $rm conftest* |
| 15226 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15227 | # template instantiation |
| 15228 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15229 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15230 | cd .. |
| 15231 | rmdir conftest |
| 15232 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15233 | |
| 15234 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15235 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15236 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15237 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15238 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15239 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15240 | 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] | 15241 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15242 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15243 | 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] | 15244 | hard_links=yes |
| 15245 | $rm conftest* |
| 15246 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15247 | touch conftest.a |
| 15248 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15249 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15250 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15251 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15252 | if test "$hard_links" = no; then |
| 15253 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15254 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15255 | need_locks=warn |
| 15256 | fi |
| 15257 | else |
| 15258 | need_locks=no |
| 15259 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15261 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15262 | 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] | 15263 | |
| 15264 | runpath_var= |
| 15265 | allow_undefined_flag= |
| 15266 | enable_shared_with_static_runtimes=no |
| 15267 | archive_cmds= |
| 15268 | archive_expsym_cmds= |
| 15269 | old_archive_From_new_cmds= |
| 15270 | old_archive_from_expsyms_cmds= |
| 15271 | export_dynamic_flag_spec= |
| 15272 | whole_archive_flag_spec= |
| 15273 | thread_safe_flag_spec= |
| 15274 | hardcode_libdir_flag_spec= |
| 15275 | hardcode_libdir_flag_spec_ld= |
| 15276 | hardcode_libdir_separator= |
| 15277 | hardcode_direct=no |
| 15278 | hardcode_minus_L=no |
| 15279 | hardcode_shlibpath_var=unsupported |
| 15280 | link_all_deplibs=unknown |
| 15281 | hardcode_automatic=no |
| 15282 | module_cmds= |
| 15283 | module_expsym_cmds= |
| 15284 | always_export_symbols=no |
| 15285 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15286 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15287 | # included in the symbol list |
| 15288 | include_expsyms= |
| 15289 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15290 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15291 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15292 | # as well as any symbol that contains `d'. |
| 15293 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 15294 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15295 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15296 | # the symbol is explicitly referenced. Since portable code cannot |
| 15297 | # rely on this symbol name, it's probably fine to never include it in |
| 15298 | # preloaded symbol tables. |
| 15299 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15300 | # Just being paranoid about ensuring that cc_basename is set. |
| 15301 | for cc_temp in $compiler""; do |
| 15302 | case $cc_temp in |
| 15303 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15304 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15305 | \-*) ;; |
| 15306 | *) break;; |
| 15307 | esac |
| 15308 | done |
| 15309 | 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] | 15310 | |
| 15311 | case $host_os in |
| 15312 | cygwin* | mingw* | pw32*) |
| 15313 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15314 | # When not using gcc, we currently assume that we are using |
| 15315 | # Microsoft Visual C++. |
| 15316 | if test "$GCC" != yes; then |
| 15317 | with_gnu_ld=no |
| 15318 | fi |
| 15319 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15320 | interix*) |
| 15321 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15322 | with_gnu_ld=yes |
| 15323 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15324 | openbsd*) |
| 15325 | with_gnu_ld=no |
| 15326 | ;; |
| 15327 | esac |
| 15328 | |
| 15329 | ld_shlibs=yes |
| 15330 | if test "$with_gnu_ld" = yes; then |
| 15331 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15332 | wlarc='${wl}' |
| 15333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15334 | # Set some defaults for GNU ld with shared library support. These |
| 15335 | # are reset later if shared libraries are not supported. Putting them |
| 15336 | # here allows them to be overridden if necessary. |
| 15337 | runpath_var=LD_RUN_PATH |
| 15338 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15339 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15340 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15341 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15342 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15343 | else |
| 15344 | whole_archive_flag_spec= |
| 15345 | fi |
| 15346 | supports_anon_versioning=no |
| 15347 | case `$LD -v 2>/dev/null` in |
| 15348 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15349 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15350 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15351 | *\ 2.11.*) ;; # other 2.11 versions |
| 15352 | *) supports_anon_versioning=yes ;; |
| 15353 | esac |
| 15354 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15355 | # See if GNU ld supports shared libraries. |
| 15356 | case $host_os in |
| 15357 | aix3* | aix4* | aix5*) |
| 15358 | # On AIX/PPC, the GNU linker is very broken |
| 15359 | if test "$host_cpu" != ia64; then |
| 15360 | ld_shlibs=no |
| 15361 | cat <<EOF 1>&2 |
| 15362 | |
| 15363 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15364 | *** to be unable to reliably create shared libraries on AIX. |
| 15365 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15366 | *** really care for shared libraries, you may want to modify your PATH |
| 15367 | *** so that a non-GNU linker is found, and then restart. |
| 15368 | |
| 15369 | EOF |
| 15370 | fi |
| 15371 | ;; |
| 15372 | |
| 15373 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15374 | 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] | 15375 | hardcode_libdir_flag_spec='-L$libdir' |
| 15376 | hardcode_minus_L=yes |
| 15377 | |
| 15378 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15379 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15380 | # to version 4, is to share data among multiple programs linked |
| 15381 | # with the same dynamic library. Since this doesn't match the |
| 15382 | # behavior of shared libraries on other platforms, we can't use |
| 15383 | # them. |
| 15384 | ld_shlibs=no |
| 15385 | ;; |
| 15386 | |
| 15387 | beos*) |
| 15388 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15389 | allow_undefined_flag=unsupported |
| 15390 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15391 | # support --undefined. This deserves some investigation. FIXME |
| 15392 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15393 | else |
| 15394 | ld_shlibs=no |
| 15395 | fi |
| 15396 | ;; |
| 15397 | |
| 15398 | cygwin* | mingw* | pw32*) |
| 15399 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15400 | # as there is no search path for DLLs. |
| 15401 | hardcode_libdir_flag_spec='-L$libdir' |
| 15402 | allow_undefined_flag=unsupported |
| 15403 | always_export_symbols=no |
| 15404 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15405 | 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] | 15406 | |
| 15407 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15408 | 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] | 15409 | # If the export-symbols file already is a .def file (1st line |
| 15410 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15411 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15412 | cp $export_symbols $output_objdir/$soname.def; |
| 15413 | else |
| 15414 | echo EXPORTS > $output_objdir/$soname.def; |
| 15415 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15416 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15417 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15418 | else |
| 15419 | ld_shlibs=no |
| 15420 | fi |
| 15421 | ;; |
| 15422 | |
| 15423 | interix3*) |
| 15424 | hardcode_direct=no |
| 15425 | hardcode_shlibpath_var=no |
| 15426 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15427 | export_dynamic_flag_spec='${wl}-E' |
| 15428 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15429 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15430 | # default) and relocated if they conflict, which is a slow very memory |
| 15431 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15432 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15433 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15434 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15435 | 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' |
| 15436 | ;; |
| 15437 | |
| 15438 | linux*) |
| 15439 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15440 | tmp_addflag= |
| 15441 | case $cc_basename,$host_cpu in |
| 15442 | pgcc*) # Portland Group C compiler |
| 15443 | 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' |
| 15444 | tmp_addflag=' $pic_flag' |
| 15445 | ;; |
| 15446 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 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 -Mnomain' ;; |
| 15449 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15450 | tmp_addflag=' -i_dynamic' ;; |
| 15451 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15452 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15453 | ifc* | ifort*) # Intel Fortran compiler |
| 15454 | tmp_addflag=' -nofor_main' ;; |
| 15455 | esac |
| 15456 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15457 | |
| 15458 | if test $supports_anon_versioning = yes; then |
| 15459 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15460 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15461 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15462 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15463 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15464 | else |
| 15465 | ld_shlibs=no |
| 15466 | fi |
| 15467 | ;; |
| 15468 | |
| 15469 | netbsd*) |
| 15470 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15471 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15472 | wlarc= |
| 15473 | else |
| 15474 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15475 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15476 | fi |
| 15477 | ;; |
| 15478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15479 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15480 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15481 | ld_shlibs=no |
| 15482 | cat <<EOF 1>&2 |
| 15483 | |
| 15484 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15485 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15486 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15487 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15488 | *** your PATH or compiler configuration so that the native linker is |
| 15489 | *** used, and then restart. |
| 15490 | |
| 15491 | EOF |
| 15492 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15493 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15494 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15495 | else |
| 15496 | ld_shlibs=no |
| 15497 | fi |
| 15498 | ;; |
| 15499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15500 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15501 | case `$LD -v 2>&1` in |
| 15502 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15503 | ld_shlibs=no |
| 15504 | cat <<_LT_EOF 1>&2 |
| 15505 | |
| 15506 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15507 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15508 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15509 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15510 | *** your PATH or compiler configuration so that the native linker is |
| 15511 | *** used, and then restart. |
| 15512 | |
| 15513 | _LT_EOF |
| 15514 | ;; |
| 15515 | *) |
| 15516 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15517 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15518 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15519 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15520 | else |
| 15521 | ld_shlibs=no |
| 15522 | fi |
| 15523 | ;; |
| 15524 | esac |
| 15525 | ;; |
| 15526 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15527 | sunos4*) |
| 15528 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15529 | wlarc= |
| 15530 | hardcode_direct=yes |
| 15531 | hardcode_shlibpath_var=no |
| 15532 | ;; |
| 15533 | |
| 15534 | *) |
| 15535 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15536 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15537 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15538 | else |
| 15539 | ld_shlibs=no |
| 15540 | fi |
| 15541 | ;; |
| 15542 | esac |
| 15543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15544 | if test "$ld_shlibs" = no; then |
| 15545 | runpath_var= |
| 15546 | hardcode_libdir_flag_spec= |
| 15547 | export_dynamic_flag_spec= |
| 15548 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15549 | fi |
| 15550 | else |
| 15551 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15552 | case $host_os in |
| 15553 | aix3*) |
| 15554 | allow_undefined_flag=unsupported |
| 15555 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15556 | 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] | 15557 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15558 | # are no directories specified by -L. |
| 15559 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15560 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15561 | # Neither direct hardcoding nor static linking is supported with a |
| 15562 | # broken collect2. |
| 15563 | hardcode_direct=unsupported |
| 15564 | fi |
| 15565 | ;; |
| 15566 | |
| 15567 | aix4* | aix5*) |
| 15568 | if test "$host_cpu" = ia64; then |
| 15569 | # On IA64, the linker does run time linking by default, so we don't |
| 15570 | # have to do anything special. |
| 15571 | aix_use_runtimelinking=no |
| 15572 | exp_sym_flag='-Bexport' |
| 15573 | no_entry_flag="" |
| 15574 | else |
| 15575 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15576 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15577 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15578 | 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' |
| 15579 | else |
| 15580 | 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' |
| 15581 | fi |
| 15582 | aix_use_runtimelinking=no |
| 15583 | |
| 15584 | # Test if we are trying to use run time linking or normal |
| 15585 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15586 | # need to do runtime linking. |
| 15587 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15588 | for ld_flag in $LDFLAGS; do |
| 15589 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15590 | aix_use_runtimelinking=yes |
| 15591 | break |
| 15592 | fi |
| 15593 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15594 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15595 | esac |
| 15596 | |
| 15597 | exp_sym_flag='-bexport' |
| 15598 | no_entry_flag='-bnoentry' |
| 15599 | fi |
| 15600 | |
| 15601 | # When large executables or shared objects are built, AIX ld can |
| 15602 | # have problems creating the table of contents. If linking a library |
| 15603 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15604 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15605 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15606 | |
| 15607 | archive_cmds='' |
| 15608 | hardcode_direct=yes |
| 15609 | hardcode_libdir_separator=':' |
| 15610 | link_all_deplibs=yes |
| 15611 | |
| 15612 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15613 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15614 | # We only want to do this on AIX 4.2 and lower, the check |
| 15615 | # below for broken collect2 doesn't work under 4.3+ |
| 15616 | collect2name=`${CC} -print-prog-name=collect2` |
| 15617 | if test -f "$collect2name" && \ |
| 15618 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15619 | then |
| 15620 | # We have reworked collect2 |
| 15621 | hardcode_direct=yes |
| 15622 | else |
| 15623 | # We have old collect2 |
| 15624 | hardcode_direct=unsupported |
| 15625 | # It fails to find uninstalled libraries when the uninstalled |
| 15626 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15627 | # to unsupported forces relinking |
| 15628 | hardcode_minus_L=yes |
| 15629 | hardcode_libdir_flag_spec='-L$libdir' |
| 15630 | hardcode_libdir_separator= |
| 15631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15632 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15633 | esac |
| 15634 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15635 | if test "$aix_use_runtimelinking" = yes; then |
| 15636 | shared_flag="$shared_flag "'${wl}-G' |
| 15637 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15638 | else |
| 15639 | # not using gcc |
| 15640 | if test "$host_cpu" = ia64; then |
| 15641 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15642 | # chokes on -Wl,-G. The following line is correct: |
| 15643 | shared_flag='-G' |
| 15644 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15645 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15646 | shared_flag='${wl}-G' |
| 15647 | else |
| 15648 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15649 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15650 | fi |
| 15651 | fi |
| 15652 | |
| 15653 | # It seems that -bexpall does not export symbols beginning with |
| 15654 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15655 | always_export_symbols=yes |
| 15656 | if test "$aix_use_runtimelinking" = yes; then |
| 15657 | # Warning - without using the other runtime loading flags (-brtl), |
| 15658 | # -berok will link without error, but may produce a broken library. |
| 15659 | allow_undefined_flag='-berok' |
| 15660 | # Determine the default libpath from the value encoded in an empty executable. |
| 15661 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15662 | /* confdefs.h. */ |
| 15663 | _ACEOF |
| 15664 | cat confdefs.h >>conftest.$ac_ext |
| 15665 | cat >>conftest.$ac_ext <<_ACEOF |
| 15666 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15667 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15668 | int |
| 15669 | main () |
| 15670 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15671 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15672 | ; |
| 15673 | return 0; |
| 15674 | } |
| 15675 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15676 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15677 | if { (ac_try="$ac_link" |
| 15678 | case "(($ac_try" in |
| 15679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15680 | *) ac_try_echo=$ac_try;; |
| 15681 | esac |
| 15682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15683 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15684 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15686 | rm -f conftest.er1 |
| 15687 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15689 | (exit $ac_status); } && |
| 15690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15691 | { (case "(($ac_try" in |
| 15692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15693 | *) ac_try_echo=$ac_try;; |
| 15694 | esac |
| 15695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15696 | (eval "$ac_try") 2>&5 |
| 15697 | ac_status=$? |
| 15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15699 | (exit $ac_status); }; } && |
| 15700 | { ac_try='test -s conftest$ac_exeext' |
| 15701 | { (case "(($ac_try" in |
| 15702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15703 | *) ac_try_echo=$ac_try;; |
| 15704 | esac |
| 15705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15706 | (eval "$ac_try") 2>&5 |
| 15707 | ac_status=$? |
| 15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15709 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15711 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15712 | }'` |
| 15713 | # Check for a 64-bit object if we didn't find anything. |
| 15714 | 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; } |
| 15715 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15716 | else |
| 15717 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15720 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15721 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15722 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15723 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15724 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15725 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15726 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15727 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15728 | 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] | 15729 | else |
| 15730 | if test "$host_cpu" = ia64; then |
| 15731 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15732 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15733 | 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] | 15734 | else |
| 15735 | # Determine the default libpath from the value encoded in an empty executable. |
| 15736 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15737 | /* confdefs.h. */ |
| 15738 | _ACEOF |
| 15739 | cat confdefs.h >>conftest.$ac_ext |
| 15740 | cat >>conftest.$ac_ext <<_ACEOF |
| 15741 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15742 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15743 | int |
| 15744 | main () |
| 15745 | { |
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 | ; |
| 15748 | return 0; |
| 15749 | } |
| 15750 | _ACEOF |
| 15751 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15752 | if { (ac_try="$ac_link" |
| 15753 | case "(($ac_try" in |
| 15754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15755 | *) ac_try_echo=$ac_try;; |
| 15756 | esac |
| 15757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15758 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15759 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15761 | rm -f conftest.er1 |
| 15762 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15764 | (exit $ac_status); } && |
| 15765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15766 | { (case "(($ac_try" in |
| 15767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15768 | *) ac_try_echo=$ac_try;; |
| 15769 | esac |
| 15770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15771 | (eval "$ac_try") 2>&5 |
| 15772 | ac_status=$? |
| 15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15774 | (exit $ac_status); }; } && |
| 15775 | { ac_try='test -s conftest$ac_exeext' |
| 15776 | { (case "(($ac_try" in |
| 15777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15778 | *) ac_try_echo=$ac_try;; |
| 15779 | esac |
| 15780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15781 | (eval "$ac_try") 2>&5 |
| 15782 | ac_status=$? |
| 15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15784 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15785 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15786 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15787 | }'` |
| 15788 | # Check for a 64-bit object if we didn't find anything. |
| 15789 | 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; } |
| 15790 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15791 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15792 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15795 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15797 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15798 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15799 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15800 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15801 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15802 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15803 | # Warning - without using the other run time loading flags, |
| 15804 | # -berok will link without error, but may produce a broken library. |
| 15805 | no_undefined_flag=' ${wl}-bernotok' |
| 15806 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15807 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15808 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15809 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15810 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15811 | 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] | 15812 | fi |
| 15813 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15814 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15815 | |
| 15816 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15817 | 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] | 15818 | hardcode_libdir_flag_spec='-L$libdir' |
| 15819 | hardcode_minus_L=yes |
| 15820 | # see comment about different semantics on the GNU ld section |
| 15821 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15822 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15823 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15824 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15825 | export_dynamic_flag_spec=-rdynamic |
| 15826 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15827 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15828 | cygwin* | mingw* | pw32*) |
| 15829 | # When not using gcc, we currently assume that we are using |
| 15830 | # Microsoft Visual C++. |
| 15831 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15832 | # no search path for DLLs. |
| 15833 | hardcode_libdir_flag_spec=' ' |
| 15834 | allow_undefined_flag=unsupported |
| 15835 | # Tell ltmain to make .lib files, not .a files. |
| 15836 | libext=lib |
| 15837 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15838 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15839 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15840 | 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] | 15841 | # The linker will automatically build a .lib file if we build a DLL. |
| 15842 | old_archive_From_new_cmds='true' |
| 15843 | # FIXME: Should let the user specify the lib program. |
| 15844 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15845 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15846 | enable_shared_with_static_runtimes=yes |
| 15847 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15848 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15849 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15850 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15851 | rhapsody* | darwin1.[012]) |
| 15852 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15853 | ;; |
| 15854 | *) # Darwin 1.3 on |
| 15855 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15856 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15857 | else |
| 15858 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15859 | 10.[012]) |
| 15860 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15861 | ;; |
| 15862 | 10.*) |
| 15863 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15864 | ;; |
| 15865 | esac |
| 15866 | fi |
| 15867 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15868 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15869 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15870 | hardcode_direct=no |
| 15871 | hardcode_automatic=yes |
| 15872 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15873 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15874 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15875 | if test "$GCC" = yes ; then |
| 15876 | output_verbose_link_cmd='echo' |
| 15877 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15878 | 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] | 15879 | # 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] | 15880 | 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}' |
| 15881 | 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] | 15882 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15883 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15884 | xlc*) |
| 15885 | output_verbose_link_cmd='echo' |
| 15886 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15887 | 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] | 15888 | # 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] | 15889 | 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}' |
| 15890 | 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] | 15891 | ;; |
| 15892 | *) |
| 15893 | ld_shlibs=no |
| 15894 | ;; |
| 15895 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15896 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15897 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15898 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15899 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15900 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15901 | hardcode_libdir_flag_spec='-L$libdir' |
| 15902 | hardcode_shlibpath_var=no |
| 15903 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15904 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15905 | freebsd1*) |
| 15906 | ld_shlibs=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 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15910 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15911 | # does not break anything, and helps significantly (at the cost of a little |
| 15912 | # extra space). |
| 15913 | freebsd2.2*) |
| 15914 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15915 | hardcode_libdir_flag_spec='-R$libdir' |
| 15916 | hardcode_direct=yes |
| 15917 | hardcode_shlibpath_var=no |
| 15918 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15919 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15920 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15921 | freebsd2*) |
| 15922 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15923 | hardcode_direct=yes |
| 15924 | hardcode_minus_L=yes |
| 15925 | hardcode_shlibpath_var=no |
| 15926 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15928 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15929 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15930 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15931 | hardcode_libdir_flag_spec='-R$libdir' |
| 15932 | hardcode_direct=yes |
| 15933 | hardcode_shlibpath_var=no |
| 15934 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15935 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15936 | hpux9*) |
| 15937 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15938 | 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] | 15939 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15940 | 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] | 15941 | fi |
| 15942 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15943 | hardcode_libdir_separator=: |
| 15944 | hardcode_direct=yes |
| 15945 | |
| 15946 | # hardcode_minus_L: Not really in the search PATH, |
| 15947 | # but as the default location of the library. |
| 15948 | hardcode_minus_L=yes |
| 15949 | export_dynamic_flag_spec='${wl}-E' |
| 15950 | ;; |
| 15951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15952 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15953 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15954 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15955 | else |
| 15956 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15957 | fi |
| 15958 | if test "$with_gnu_ld" = no; then |
| 15959 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15960 | hardcode_libdir_separator=: |
| 15961 | |
| 15962 | hardcode_direct=yes |
| 15963 | export_dynamic_flag_spec='${wl}-E' |
| 15964 | |
| 15965 | # hardcode_minus_L: Not really in the search PATH, |
| 15966 | # but as the default location of the library. |
| 15967 | hardcode_minus_L=yes |
| 15968 | fi |
| 15969 | ;; |
| 15970 | |
| 15971 | hpux11*) |
| 15972 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15973 | case $host_cpu in |
| 15974 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15975 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15976 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15977 | ia64*) |
| 15978 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15979 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15980 | *) |
| 15981 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15982 | ;; |
| 15983 | esac |
| 15984 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15985 | case $host_cpu in |
| 15986 | hppa*64*) |
| 15987 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15988 | ;; |
| 15989 | ia64*) |
| 15990 | 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] | 15991 | ;; |
| 15992 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15993 | 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] | 15994 | ;; |
| 15995 | esac |
| 15996 | fi |
| 15997 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15998 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15999 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16001 | case $host_cpu in |
| 16002 | hppa*64*|ia64*) |
| 16003 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 16004 | hardcode_direct=no |
| 16005 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16006 | ;; |
| 16007 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16008 | hardcode_direct=yes |
| 16009 | export_dynamic_flag_spec='${wl}-E' |
| 16010 | |
| 16011 | # hardcode_minus_L: Not really in the search PATH, |
| 16012 | # but as the default location of the library. |
| 16013 | hardcode_minus_L=yes |
| 16014 | ;; |
| 16015 | esac |
| 16016 | fi |
| 16017 | ;; |
| 16018 | |
| 16019 | irix5* | irix6* | nonstopux*) |
| 16020 | if test "$GCC" = yes; then |
| 16021 | 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' |
| 16022 | else |
| 16023 | 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' |
| 16024 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 16025 | fi |
| 16026 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16027 | hardcode_libdir_separator=: |
| 16028 | link_all_deplibs=yes |
| 16029 | ;; |
| 16030 | |
| 16031 | netbsd*) |
| 16032 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16033 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16034 | else |
| 16035 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16036 | fi |
| 16037 | hardcode_libdir_flag_spec='-R$libdir' |
| 16038 | hardcode_direct=yes |
| 16039 | hardcode_shlibpath_var=no |
| 16040 | ;; |
| 16041 | |
| 16042 | newsos6) |
| 16043 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16044 | hardcode_direct=yes |
| 16045 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16046 | hardcode_libdir_separator=: |
| 16047 | hardcode_shlibpath_var=no |
| 16048 | ;; |
| 16049 | |
| 16050 | openbsd*) |
| 16051 | hardcode_direct=yes |
| 16052 | hardcode_shlibpath_var=no |
| 16053 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16054 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16055 | 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] | 16056 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16057 | export_dynamic_flag_spec='${wl}-E' |
| 16058 | else |
| 16059 | case $host_os in |
| 16060 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16061 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16062 | hardcode_libdir_flag_spec='-R$libdir' |
| 16063 | ;; |
| 16064 | *) |
| 16065 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16066 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16067 | ;; |
| 16068 | esac |
| 16069 | fi |
| 16070 | ;; |
| 16071 | |
| 16072 | os2*) |
| 16073 | hardcode_libdir_flag_spec='-L$libdir' |
| 16074 | hardcode_minus_L=yes |
| 16075 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16076 | 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] | 16077 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16078 | ;; |
| 16079 | |
| 16080 | osf3*) |
| 16081 | if test "$GCC" = yes; then |
| 16082 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16083 | 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' |
| 16084 | else |
| 16085 | allow_undefined_flag=' -expect_unresolved \*' |
| 16086 | 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' |
| 16087 | fi |
| 16088 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16089 | hardcode_libdir_separator=: |
| 16090 | ;; |
| 16091 | |
| 16092 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16093 | if test "$GCC" = yes; then |
| 16094 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16095 | 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' |
| 16096 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16097 | else |
| 16098 | allow_undefined_flag=' -expect_unresolved \*' |
| 16099 | 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] | 16100 | 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] | 16101 | $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] | 16102 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16103 | # Both c and cxx compiler support -rpath directly |
| 16104 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 16105 | fi |
| 16106 | hardcode_libdir_separator=: |
| 16107 | ;; |
| 16108 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16109 | solaris*) |
| 16110 | no_undefined_flag=' -z text' |
| 16111 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16112 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16113 | 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] | 16114 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16115 | $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] | 16116 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16117 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16118 | 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] | 16119 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16120 | $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] | 16121 | fi |
| 16122 | hardcode_libdir_flag_spec='-R$libdir' |
| 16123 | hardcode_shlibpath_var=no |
| 16124 | case $host_os in |
| 16125 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16126 | *) |
| 16127 | # The compiler driver will combine linker options so we |
| 16128 | # cannot just pass the convience library names through |
| 16129 | # without $wl, iff we do not link with $LD. |
| 16130 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16131 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16132 | case $wlarc in |
| 16133 | '') |
| 16134 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 16135 | *) |
| 16136 | 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' ;; |
| 16137 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16138 | esac |
| 16139 | link_all_deplibs=yes |
| 16140 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16141 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16142 | sunos4*) |
| 16143 | if test "x$host_vendor" = xsequent; then |
| 16144 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16145 | # files that make .init and .fini sections work. |
| 16146 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16147 | else |
| 16148 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16149 | fi |
| 16150 | hardcode_libdir_flag_spec='-L$libdir' |
| 16151 | hardcode_direct=yes |
| 16152 | hardcode_minus_L=yes |
| 16153 | hardcode_shlibpath_var=no |
| 16154 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16155 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16156 | sysv4) |
| 16157 | case $host_vendor in |
| 16158 | sni) |
| 16159 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16160 | hardcode_direct=yes # is this really true??? |
| 16161 | ;; |
| 16162 | siemens) |
| 16163 | ## LD is ld it makes a PLAMLIB |
| 16164 | ## CC just makes a GrossModule. |
| 16165 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16166 | reload_cmds='$CC -r -o $output$reload_objs' |
| 16167 | hardcode_direct=no |
| 16168 | ;; |
| 16169 | motorola) |
| 16170 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16171 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16172 | ;; |
| 16173 | esac |
| 16174 | runpath_var='LD_RUN_PATH' |
| 16175 | hardcode_shlibpath_var=no |
| 16176 | ;; |
| 16177 | |
| 16178 | sysv4.3*) |
| 16179 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16180 | hardcode_shlibpath_var=no |
| 16181 | export_dynamic_flag_spec='-Bexport' |
| 16182 | ;; |
| 16183 | |
| 16184 | sysv4*MP*) |
| 16185 | if test -d /usr/nec; then |
| 16186 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16187 | hardcode_shlibpath_var=no |
| 16188 | runpath_var=LD_RUN_PATH |
| 16189 | hardcode_runpath_var=yes |
| 16190 | ld_shlibs=yes |
| 16191 | fi |
| 16192 | ;; |
| 16193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16194 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16195 | no_undefined_flag='${wl}-z,text' |
| 16196 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16197 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16198 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16200 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16201 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16202 | 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] | 16203 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16204 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16205 | 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] | 16206 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16207 | ;; |
| 16208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16209 | sysv5* | sco3.2v5* | sco5v6*) |
| 16210 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16211 | # link with -lc, and that would cause any symbols used from libc to |
| 16212 | # always be unresolved, which means just about no library would |
| 16213 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16214 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16215 | # as -z defs. |
| 16216 | no_undefined_flag='${wl}-z,text' |
| 16217 | allow_undefined_flag='${wl}-z,nodefs' |
| 16218 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16219 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16220 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16221 | hardcode_libdir_separator=':' |
| 16222 | link_all_deplibs=yes |
| 16223 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16224 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16225 | |
| 16226 | if test "$GCC" = yes; then |
| 16227 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16228 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16229 | else |
| 16230 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16231 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16232 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16233 | ;; |
| 16234 | |
| 16235 | uts4*) |
| 16236 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16237 | hardcode_libdir_flag_spec='-L$libdir' |
| 16238 | hardcode_shlibpath_var=no |
| 16239 | ;; |
| 16240 | |
| 16241 | *) |
| 16242 | ld_shlibs=no |
| 16243 | ;; |
| 16244 | esac |
| 16245 | fi |
| 16246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16247 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 16248 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16249 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16250 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16251 | # |
| 16252 | # Do we need to explicitly link libc? |
| 16253 | # |
| 16254 | case "x$archive_cmds_need_lc" in |
| 16255 | x|xyes) |
| 16256 | # Assume -lc should be added |
| 16257 | archive_cmds_need_lc=yes |
| 16258 | |
| 16259 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16260 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16261 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16262 | # FIXME: we may have to deal with multi-command sequences. |
| 16263 | ;; |
| 16264 | '$CC '*) |
| 16265 | # Test whether the compiler implicitly links with -lc since on some |
| 16266 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16267 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16268 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16269 | 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] | 16270 | $rm conftest* |
| 16271 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16272 | |
| 16273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16274 | (eval $ac_compile) 2>&5 |
| 16275 | ac_status=$? |
| 16276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16277 | (exit $ac_status); } 2>conftest.err; then |
| 16278 | soname=conftest |
| 16279 | lib=conftest |
| 16280 | libobjs=conftest.$ac_objext |
| 16281 | deplibs= |
| 16282 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16283 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16284 | compiler_flags=-v |
| 16285 | linker_flags=-v |
| 16286 | verstring= |
| 16287 | output_objdir=. |
| 16288 | libname=conftest |
| 16289 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16290 | allow_undefined_flag= |
| 16291 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16292 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16293 | ac_status=$? |
| 16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16295 | (exit $ac_status); } |
| 16296 | then |
| 16297 | archive_cmds_need_lc=no |
| 16298 | else |
| 16299 | archive_cmds_need_lc=yes |
| 16300 | fi |
| 16301 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16302 | else |
| 16303 | cat conftest.err 1>&5 |
| 16304 | fi |
| 16305 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16306 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 16307 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16308 | ;; |
| 16309 | esac |
| 16310 | fi |
| 16311 | ;; |
| 16312 | esac |
| 16313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16314 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16315 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16316 | library_names_spec= |
| 16317 | libname_spec='lib$name' |
| 16318 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16319 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16320 | postinstall_cmds= |
| 16321 | postuninstall_cmds= |
| 16322 | finish_cmds= |
| 16323 | finish_eval= |
| 16324 | shlibpath_var= |
| 16325 | shlibpath_overrides_runpath=unknown |
| 16326 | version_type=none |
| 16327 | dynamic_linker="$host_os ld.so" |
| 16328 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16329 | if test "$GCC" = yes; then |
| 16330 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16331 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16332 | # if the path contains ";" then we assume it to be the separator |
| 16333 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16334 | # assumed that no part of a normal pathname contains ";" but that should |
| 16335 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16336 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16337 | else |
| 16338 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16339 | fi |
| 16340 | else |
| 16341 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16342 | fi |
| 16343 | need_lib_prefix=unknown |
| 16344 | hardcode_into_libs=no |
| 16345 | |
| 16346 | # when you set need_version to no, make sure it does not cause -set_version |
| 16347 | # flags to be left without arguments |
| 16348 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16349 | |
| 16350 | case $host_os in |
| 16351 | aix3*) |
| 16352 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16353 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16354 | shlibpath_var=LIBPATH |
| 16355 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16356 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16357 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16358 | ;; |
| 16359 | |
| 16360 | aix4* | aix5*) |
| 16361 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16362 | need_lib_prefix=no |
| 16363 | need_version=no |
| 16364 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16365 | if test "$host_cpu" = ia64; then |
| 16366 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16367 | 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] | 16368 | shlibpath_var=LD_LIBRARY_PATH |
| 16369 | else |
| 16370 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16371 | # for dependence libraries. The import file would start with |
| 16372 | # the line `#! .'. This would cause the generated library to |
| 16373 | # depend on `.', always an invalid library. This was fixed in |
| 16374 | # development snapshots of GCC prior to 3.0. |
| 16375 | case $host_os in |
| 16376 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16377 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16378 | echo ' yes ' |
| 16379 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16380 | : |
| 16381 | else |
| 16382 | can_build_shared=no |
| 16383 | fi |
| 16384 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16385 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16386 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16387 | # soname into executable. Probably we can add versioning support to |
| 16388 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16389 | if test "$aix_use_runtimelinking" = yes; then |
| 16390 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16391 | # instead of lib<name>.a to let people know that these are not |
| 16392 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16393 | 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] | 16394 | else |
| 16395 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16396 | # and later when we are not doing run time linking. |
| 16397 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16398 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16399 | fi |
| 16400 | shlibpath_var=LIBPATH |
| 16401 | fi |
| 16402 | ;; |
| 16403 | |
| 16404 | amigaos*) |
| 16405 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16406 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16407 | 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] | 16408 | ;; |
| 16409 | |
| 16410 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16411 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16412 | dynamic_linker="$host_os ld.so" |
| 16413 | shlibpath_var=LIBRARY_PATH |
| 16414 | ;; |
| 16415 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16416 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16417 | version_type=linux |
| 16418 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16420 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16422 | shlibpath_var=LD_LIBRARY_PATH |
| 16423 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16424 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16425 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16426 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16427 | # libtool to hard-code these into programs |
| 16428 | ;; |
| 16429 | |
| 16430 | cygwin* | mingw* | pw32*) |
| 16431 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16432 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16433 | need_version=no |
| 16434 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16435 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16436 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16437 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16438 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16439 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16440 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16441 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16442 | dldir=$destdir/`dirname \$dlpath`~ |
| 16443 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16444 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16445 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16446 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16447 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16448 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16449 | shlibpath_overrides_runpath=yes |
| 16450 | |
| 16451 | case $host_os in |
| 16452 | cygwin*) |
| 16453 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16454 | 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] | 16455 | 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] | 16456 | ;; |
| 16457 | mingw*) |
| 16458 | # MinGW DLLs use traditional 'lib' prefix |
| 16459 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16460 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16461 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16462 | # It is most probably a Windows format PATH printed by |
| 16463 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16464 | # path with ; separators, and with drive letters. We can handle the |
| 16465 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16466 | # especially as we might pass files found there to a mingw objdump, |
| 16467 | # which wouldn't understand a cygwinified path. Ahh. |
| 16468 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16469 | else |
| 16470 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16471 | fi |
| 16472 | ;; |
| 16473 | pw32*) |
| 16474 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16475 | 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] | 16476 | ;; |
| 16477 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16478 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16479 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16480 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16481 | 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] | 16482 | ;; |
| 16483 | esac |
| 16484 | dynamic_linker='Win32 ld.exe' |
| 16485 | # FIXME: first we should search . and the directory the executable is in |
| 16486 | shlibpath_var=PATH |
| 16487 | ;; |
| 16488 | |
| 16489 | darwin* | rhapsody*) |
| 16490 | dynamic_linker="$host_os dyld" |
| 16491 | version_type=darwin |
| 16492 | need_lib_prefix=no |
| 16493 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16494 | 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] | 16495 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16496 | shlibpath_overrides_runpath=yes |
| 16497 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16498 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16499 | # 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] | 16500 | if test "$GCC" = yes; then |
| 16501 | 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"` |
| 16502 | else |
| 16503 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16504 | fi |
| 16505 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16506 | ;; |
| 16507 | |
| 16508 | dgux*) |
| 16509 | version_type=linux |
| 16510 | need_lib_prefix=no |
| 16511 | need_version=no |
| 16512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16513 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16514 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16515 | ;; |
| 16516 | |
| 16517 | freebsd1*) |
| 16518 | dynamic_linker=no |
| 16519 | ;; |
| 16520 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16521 | kfreebsd*-gnu) |
| 16522 | version_type=linux |
| 16523 | need_lib_prefix=no |
| 16524 | need_version=no |
| 16525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16526 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16527 | shlibpath_var=LD_LIBRARY_PATH |
| 16528 | shlibpath_overrides_runpath=no |
| 16529 | hardcode_into_libs=yes |
| 16530 | dynamic_linker='GNU ld.so' |
| 16531 | ;; |
| 16532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16533 | freebsd* | dragonfly*) |
| 16534 | # DragonFly does not have aout. When/if they implement a new |
| 16535 | # versioning mechanism, adjust this. |
| 16536 | if test -x /usr/bin/objformat; then |
| 16537 | objformat=`/usr/bin/objformat` |
| 16538 | else |
| 16539 | case $host_os in |
| 16540 | freebsd[123]*) objformat=aout ;; |
| 16541 | *) objformat=elf ;; |
| 16542 | esac |
| 16543 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16544 | version_type=freebsd-$objformat |
| 16545 | case $version_type in |
| 16546 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16547 | 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] | 16548 | need_version=no |
| 16549 | need_lib_prefix=no |
| 16550 | ;; |
| 16551 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16552 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16553 | need_version=yes |
| 16554 | ;; |
| 16555 | esac |
| 16556 | shlibpath_var=LD_LIBRARY_PATH |
| 16557 | case $host_os in |
| 16558 | freebsd2*) |
| 16559 | shlibpath_overrides_runpath=yes |
| 16560 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16561 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16562 | shlibpath_overrides_runpath=yes |
| 16563 | hardcode_into_libs=yes |
| 16564 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16565 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16566 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16567 | shlibpath_overrides_runpath=no |
| 16568 | hardcode_into_libs=yes |
| 16569 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16570 | freebsd*) # from 4.6 on |
| 16571 | shlibpath_overrides_runpath=yes |
| 16572 | hardcode_into_libs=yes |
| 16573 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16574 | esac |
| 16575 | ;; |
| 16576 | |
| 16577 | gnu*) |
| 16578 | version_type=linux |
| 16579 | need_lib_prefix=no |
| 16580 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16582 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16583 | shlibpath_var=LD_LIBRARY_PATH |
| 16584 | hardcode_into_libs=yes |
| 16585 | ;; |
| 16586 | |
| 16587 | hpux9* | hpux10* | hpux11*) |
| 16588 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16589 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16590 | version_type=sunos |
| 16591 | need_lib_prefix=no |
| 16592 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16593 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16594 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16595 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16596 | hardcode_into_libs=yes |
| 16597 | dynamic_linker="$host_os dld.so" |
| 16598 | shlibpath_var=LD_LIBRARY_PATH |
| 16599 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16601 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16602 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16603 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16604 | else |
| 16605 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16606 | fi |
| 16607 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16608 | ;; |
| 16609 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16610 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16611 | hardcode_into_libs=yes |
| 16612 | dynamic_linker="$host_os dld.sl" |
| 16613 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16614 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16616 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16617 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16618 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16619 | ;; |
| 16620 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16621 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16622 | dynamic_linker="$host_os dld.sl" |
| 16623 | shlibpath_var=SHLIB_PATH |
| 16624 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16626 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16627 | ;; |
| 16628 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16629 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16630 | postinstall_cmds='chmod 555 $lib' |
| 16631 | ;; |
| 16632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16633 | interix3*) |
| 16634 | version_type=linux |
| 16635 | need_lib_prefix=no |
| 16636 | need_version=no |
| 16637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16638 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16639 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16640 | shlibpath_var=LD_LIBRARY_PATH |
| 16641 | shlibpath_overrides_runpath=no |
| 16642 | hardcode_into_libs=yes |
| 16643 | ;; |
| 16644 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16645 | irix5* | irix6* | nonstopux*) |
| 16646 | case $host_os in |
| 16647 | nonstopux*) version_type=nonstopux ;; |
| 16648 | *) |
| 16649 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16650 | version_type=linux |
| 16651 | else |
| 16652 | version_type=irix |
| 16653 | fi ;; |
| 16654 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16655 | need_lib_prefix=no |
| 16656 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16658 | 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] | 16659 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16660 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16661 | libsuff= shlibsuff= |
| 16662 | ;; |
| 16663 | *) |
| 16664 | 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] | 16665 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16666 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16667 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16668 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16669 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16670 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16671 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16672 | esac |
| 16673 | ;; |
| 16674 | esac |
| 16675 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16676 | shlibpath_overrides_runpath=no |
| 16677 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16678 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16679 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16680 | ;; |
| 16681 | |
| 16682 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16683 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16684 | dynamic_linker=no |
| 16685 | ;; |
| 16686 | |
| 16687 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16688 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16689 | version_type=linux |
| 16690 | need_lib_prefix=no |
| 16691 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16693 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16694 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16695 | shlibpath_var=LD_LIBRARY_PATH |
| 16696 | shlibpath_overrides_runpath=no |
| 16697 | # This implies no fast_install, which is unacceptable. |
| 16698 | # Some rework will be needed to allow for fast_install |
| 16699 | # before this can be enabled. |
| 16700 | hardcode_into_libs=yes |
| 16701 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16702 | # Append ld.so.conf contents to the search path |
| 16703 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16704 | 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] | 16705 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16706 | fi |
| 16707 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16708 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16709 | # powerpc, because MkLinux only supported shared libraries with the |
| 16710 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16711 | # most powerpc-linux boxes support dynamic linking these days and |
| 16712 | # people can always --disable-shared, the test was removed, and we |
| 16713 | # assume the GNU/Linux dynamic linker is in use. |
| 16714 | dynamic_linker='GNU/Linux ld.so' |
| 16715 | ;; |
| 16716 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16717 | knetbsd*-gnu) |
| 16718 | version_type=linux |
| 16719 | need_lib_prefix=no |
| 16720 | need_version=no |
| 16721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16722 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16723 | shlibpath_var=LD_LIBRARY_PATH |
| 16724 | shlibpath_overrides_runpath=no |
| 16725 | hardcode_into_libs=yes |
| 16726 | dynamic_linker='GNU ld.so' |
| 16727 | ;; |
| 16728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16729 | netbsd*) |
| 16730 | version_type=sunos |
| 16731 | need_lib_prefix=no |
| 16732 | need_version=no |
| 16733 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16735 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16736 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16737 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16738 | 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] | 16739 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16740 | dynamic_linker='NetBSD ld.elf_so' |
| 16741 | fi |
| 16742 | shlibpath_var=LD_LIBRARY_PATH |
| 16743 | shlibpath_overrides_runpath=yes |
| 16744 | hardcode_into_libs=yes |
| 16745 | ;; |
| 16746 | |
| 16747 | newsos6) |
| 16748 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16750 | shlibpath_var=LD_LIBRARY_PATH |
| 16751 | shlibpath_overrides_runpath=yes |
| 16752 | ;; |
| 16753 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16754 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16755 | version_type=linux |
| 16756 | need_lib_prefix=no |
| 16757 | need_version=no |
| 16758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16759 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16760 | shlibpath_var=LD_LIBRARY_PATH |
| 16761 | shlibpath_overrides_runpath=yes |
| 16762 | ;; |
| 16763 | |
| 16764 | openbsd*) |
| 16765 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16766 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16767 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16768 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16769 | case $host_os in |
| 16770 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16771 | *) need_version=no ;; |
| 16772 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16774 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16775 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16776 | 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] | 16777 | case $host_os in |
| 16778 | openbsd2.[89] | openbsd2.[89].*) |
| 16779 | shlibpath_overrides_runpath=no |
| 16780 | ;; |
| 16781 | *) |
| 16782 | shlibpath_overrides_runpath=yes |
| 16783 | ;; |
| 16784 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16785 | else |
| 16786 | shlibpath_overrides_runpath=yes |
| 16787 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16788 | ;; |
| 16789 | |
| 16790 | os2*) |
| 16791 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16792 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16793 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16794 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16795 | dynamic_linker='OS/2 ld.exe' |
| 16796 | shlibpath_var=LIBPATH |
| 16797 | ;; |
| 16798 | |
| 16799 | osf3* | osf4* | osf5*) |
| 16800 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16801 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16802 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16803 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16804 | 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] | 16805 | shlibpath_var=LD_LIBRARY_PATH |
| 16806 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16807 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16808 | ;; |
| 16809 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16810 | solaris*) |
| 16811 | version_type=linux |
| 16812 | need_lib_prefix=no |
| 16813 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16815 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16816 | shlibpath_var=LD_LIBRARY_PATH |
| 16817 | shlibpath_overrides_runpath=yes |
| 16818 | hardcode_into_libs=yes |
| 16819 | # ldd complains unless libraries are executable |
| 16820 | postinstall_cmds='chmod +x $lib' |
| 16821 | ;; |
| 16822 | |
| 16823 | sunos4*) |
| 16824 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16826 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16827 | shlibpath_var=LD_LIBRARY_PATH |
| 16828 | shlibpath_overrides_runpath=yes |
| 16829 | if test "$with_gnu_ld" = yes; then |
| 16830 | need_lib_prefix=no |
| 16831 | fi |
| 16832 | need_version=yes |
| 16833 | ;; |
| 16834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16835 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16836 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16838 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16839 | shlibpath_var=LD_LIBRARY_PATH |
| 16840 | case $host_vendor in |
| 16841 | sni) |
| 16842 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16843 | need_lib_prefix=no |
| 16844 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16845 | runpath_var=LD_RUN_PATH |
| 16846 | ;; |
| 16847 | siemens) |
| 16848 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16849 | ;; |
| 16850 | motorola) |
| 16851 | need_lib_prefix=no |
| 16852 | need_version=no |
| 16853 | shlibpath_overrides_runpath=no |
| 16854 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16855 | ;; |
| 16856 | esac |
| 16857 | ;; |
| 16858 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16859 | sysv4*MP*) |
| 16860 | if test -d /usr/nec ;then |
| 16861 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16862 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16863 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16864 | shlibpath_var=LD_LIBRARY_PATH |
| 16865 | fi |
| 16866 | ;; |
| 16867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16868 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16869 | version_type=freebsd-elf |
| 16870 | need_lib_prefix=no |
| 16871 | need_version=no |
| 16872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16874 | shlibpath_var=LD_LIBRARY_PATH |
| 16875 | hardcode_into_libs=yes |
| 16876 | if test "$with_gnu_ld" = yes; then |
| 16877 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16878 | shlibpath_overrides_runpath=no |
| 16879 | else |
| 16880 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16881 | shlibpath_overrides_runpath=yes |
| 16882 | case $host_os in |
| 16883 | sco3.2v5*) |
| 16884 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16885 | ;; |
| 16886 | esac |
| 16887 | fi |
| 16888 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16889 | ;; |
| 16890 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16891 | uts4*) |
| 16892 | version_type=linux |
| 16893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16894 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16895 | shlibpath_var=LD_LIBRARY_PATH |
| 16896 | ;; |
| 16897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16898 | *) |
| 16899 | dynamic_linker=no |
| 16900 | ;; |
| 16901 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16902 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16903 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16904 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16906 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16907 | if test "$GCC" = yes; then |
| 16908 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16909 | fi |
| 16910 | |
| 16911 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16912 | 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] | 16913 | hardcode_action= |
| 16914 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16915 | test -n "$runpath_var" || \ |
| 16916 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16917 | |
| 16918 | # We can hardcode non-existant directories. |
| 16919 | if test "$hardcode_direct" != no && |
| 16920 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16921 | # have to relink, otherwise we might link with an installed library |
| 16922 | # when we should be linking with a yet-to-be-installed one |
| 16923 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16924 | test "$hardcode_minus_L" != no; then |
| 16925 | # Linking always hardcodes the temporary library directory. |
| 16926 | hardcode_action=relink |
| 16927 | else |
| 16928 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16929 | hardcode_action=immediate |
| 16930 | fi |
| 16931 | else |
| 16932 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16933 | # directories. |
| 16934 | hardcode_action=unsupported |
| 16935 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16936 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16937 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16938 | |
| 16939 | if test "$hardcode_action" = relink; then |
| 16940 | # Fast installation is not supported |
| 16941 | enable_fast_install=no |
| 16942 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16943 | test "$enable_shared" = no; then |
| 16944 | # Fast installation is not necessary |
| 16945 | enable_fast_install=needless |
| 16946 | fi |
| 16947 | |
| 16948 | striplib= |
| 16949 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16950 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16951 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16952 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16953 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16954 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16955 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16956 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16957 | else |
| 16958 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16959 | case $host_os in |
| 16960 | darwin*) |
| 16961 | if test -n "$STRIP" ; then |
| 16962 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16963 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16964 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16965 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16966 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16967 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16968 | fi |
| 16969 | ;; |
| 16970 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16971 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16972 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16973 | ;; |
| 16974 | esac |
| 16975 | fi |
| 16976 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16977 | if test "x$enable_dlopen" != xyes; then |
| 16978 | enable_dlopen=unknown |
| 16979 | enable_dlopen_self=unknown |
| 16980 | enable_dlopen_self_static=unknown |
| 16981 | else |
| 16982 | lt_cv_dlopen=no |
| 16983 | lt_cv_dlopen_libs= |
| 16984 | |
| 16985 | case $host_os in |
| 16986 | beos*) |
| 16987 | lt_cv_dlopen="load_add_on" |
| 16988 | lt_cv_dlopen_libs= |
| 16989 | lt_cv_dlopen_self=yes |
| 16990 | ;; |
| 16991 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16992 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16993 | lt_cv_dlopen="LoadLibrary" |
| 16994 | lt_cv_dlopen_libs= |
| 16995 | ;; |
| 16996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16997 | cygwin*) |
| 16998 | lt_cv_dlopen="dlopen" |
| 16999 | lt_cv_dlopen_libs= |
| 17000 | ;; |
| 17001 | |
| 17002 | darwin*) |
| 17003 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17004 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17005 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17006 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17008 | else |
| 17009 | ac_check_lib_save_LIBS=$LIBS |
| 17010 | LIBS="-ldl $LIBS" |
| 17011 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17012 | /* confdefs.h. */ |
| 17013 | _ACEOF |
| 17014 | cat confdefs.h >>conftest.$ac_ext |
| 17015 | cat >>conftest.$ac_ext <<_ACEOF |
| 17016 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17018 | /* Override any GCC internal prototype to avoid an error. |
| 17019 | Use char because int might match the return type of a GCC |
| 17020 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17021 | #ifdef __cplusplus |
| 17022 | extern "C" |
| 17023 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17024 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17025 | int |
| 17026 | main () |
| 17027 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17028 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17029 | ; |
| 17030 | return 0; |
| 17031 | } |
| 17032 | _ACEOF |
| 17033 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17034 | if { (ac_try="$ac_link" |
| 17035 | case "(($ac_try" in |
| 17036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17037 | *) ac_try_echo=$ac_try;; |
| 17038 | esac |
| 17039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17040 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17041 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17043 | rm -f conftest.er1 |
| 17044 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17046 | (exit $ac_status); } && |
| 17047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17048 | { (case "(($ac_try" in |
| 17049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17050 | *) ac_try_echo=$ac_try;; |
| 17051 | esac |
| 17052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17053 | (eval "$ac_try") 2>&5 |
| 17054 | ac_status=$? |
| 17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17056 | (exit $ac_status); }; } && |
| 17057 | { ac_try='test -s conftest$ac_exeext' |
| 17058 | { (case "(($ac_try" in |
| 17059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17060 | *) ac_try_echo=$ac_try;; |
| 17061 | esac |
| 17062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17063 | (eval "$ac_try") 2>&5 |
| 17064 | ac_status=$? |
| 17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17066 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17067 | ac_cv_lib_dl_dlopen=yes |
| 17068 | else |
| 17069 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17072 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17074 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17075 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17076 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17077 | LIBS=$ac_check_lib_save_LIBS |
| 17078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17079 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17080 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17081 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17082 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17083 | else |
| 17084 | |
| 17085 | lt_cv_dlopen="dyld" |
| 17086 | lt_cv_dlopen_libs= |
| 17087 | lt_cv_dlopen_self=yes |
| 17088 | |
| 17089 | fi |
| 17090 | |
| 17091 | ;; |
| 17092 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17093 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17094 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17095 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17096 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17098 | else |
| 17099 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17100 | /* confdefs.h. */ |
| 17101 | _ACEOF |
| 17102 | cat confdefs.h >>conftest.$ac_ext |
| 17103 | cat >>conftest.$ac_ext <<_ACEOF |
| 17104 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17105 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17107 | #define shl_load innocuous_shl_load |
| 17108 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17109 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17110 | which can conflict with char shl_load (); below. |
| 17111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17112 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17113 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17114 | #ifdef __STDC__ |
| 17115 | # include <limits.h> |
| 17116 | #else |
| 17117 | # include <assert.h> |
| 17118 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17119 | |
| 17120 | #undef shl_load |
| 17121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17122 | /* Override any GCC internal prototype to avoid an error. |
| 17123 | Use char because int might match the return type of a GCC |
| 17124 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17125 | #ifdef __cplusplus |
| 17126 | extern "C" |
| 17127 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17128 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17129 | /* The GNU C library defines this for functions which it implements |
| 17130 | to always fail with ENOSYS. Some functions are actually named |
| 17131 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17132 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17133 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17134 | #endif |
| 17135 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17136 | int |
| 17137 | main () |
| 17138 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17139 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17140 | ; |
| 17141 | return 0; |
| 17142 | } |
| 17143 | _ACEOF |
| 17144 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17145 | if { (ac_try="$ac_link" |
| 17146 | case "(($ac_try" in |
| 17147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17148 | *) ac_try_echo=$ac_try;; |
| 17149 | esac |
| 17150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17151 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17152 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17154 | rm -f conftest.er1 |
| 17155 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17157 | (exit $ac_status); } && |
| 17158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17159 | { (case "(($ac_try" in |
| 17160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17161 | *) ac_try_echo=$ac_try;; |
| 17162 | esac |
| 17163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17164 | (eval "$ac_try") 2>&5 |
| 17165 | ac_status=$? |
| 17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17167 | (exit $ac_status); }; } && |
| 17168 | { ac_try='test -s conftest$ac_exeext' |
| 17169 | { (case "(($ac_try" in |
| 17170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17171 | *) ac_try_echo=$ac_try;; |
| 17172 | esac |
| 17173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17174 | (eval "$ac_try") 2>&5 |
| 17175 | ac_status=$? |
| 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17177 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17178 | ac_cv_func_shl_load=yes |
| 17179 | else |
| 17180 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17183 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17184 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17185 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17186 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17187 | conftest$ac_exeext conftest.$ac_ext |
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 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17190 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17191 | if test $ac_cv_func_shl_load = yes; then |
| 17192 | lt_cv_dlopen="shl_load" |
| 17193 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17194 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17195 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17196 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17198 | else |
| 17199 | ac_check_lib_save_LIBS=$LIBS |
| 17200 | LIBS="-ldld $LIBS" |
| 17201 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17202 | /* confdefs.h. */ |
| 17203 | _ACEOF |
| 17204 | cat confdefs.h >>conftest.$ac_ext |
| 17205 | cat >>conftest.$ac_ext <<_ACEOF |
| 17206 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17208 | /* Override any GCC internal prototype to avoid an error. |
| 17209 | Use char because int might match the return type of a GCC |
| 17210 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17211 | #ifdef __cplusplus |
| 17212 | extern "C" |
| 17213 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17214 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17215 | int |
| 17216 | main () |
| 17217 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17218 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17219 | ; |
| 17220 | return 0; |
| 17221 | } |
| 17222 | _ACEOF |
| 17223 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17224 | if { (ac_try="$ac_link" |
| 17225 | case "(($ac_try" in |
| 17226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17227 | *) ac_try_echo=$ac_try;; |
| 17228 | esac |
| 17229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17230 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17231 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17233 | rm -f conftest.er1 |
| 17234 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17236 | (exit $ac_status); } && |
| 17237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17238 | { (case "(($ac_try" in |
| 17239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17240 | *) ac_try_echo=$ac_try;; |
| 17241 | esac |
| 17242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17243 | (eval "$ac_try") 2>&5 |
| 17244 | ac_status=$? |
| 17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17246 | (exit $ac_status); }; } && |
| 17247 | { ac_try='test -s conftest$ac_exeext' |
| 17248 | { (case "(($ac_try" in |
| 17249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17250 | *) ac_try_echo=$ac_try;; |
| 17251 | esac |
| 17252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17253 | (eval "$ac_try") 2>&5 |
| 17254 | ac_status=$? |
| 17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17256 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17257 | ac_cv_lib_dld_shl_load=yes |
| 17258 | else |
| 17259 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17262 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17263 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17264 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17265 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17266 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17267 | LIBS=$ac_check_lib_save_LIBS |
| 17268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17269 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17270 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17272 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17273 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17274 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17275 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17276 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17278 | else |
| 17279 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17280 | /* confdefs.h. */ |
| 17281 | _ACEOF |
| 17282 | cat confdefs.h >>conftest.$ac_ext |
| 17283 | cat >>conftest.$ac_ext <<_ACEOF |
| 17284 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17285 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17287 | #define dlopen innocuous_dlopen |
| 17288 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17289 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17290 | which can conflict with char dlopen (); below. |
| 17291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17292 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17293 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17294 | #ifdef __STDC__ |
| 17295 | # include <limits.h> |
| 17296 | #else |
| 17297 | # include <assert.h> |
| 17298 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17299 | |
| 17300 | #undef dlopen |
| 17301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17302 | /* Override any GCC internal prototype to avoid an error. |
| 17303 | Use char because int might match the return type of a GCC |
| 17304 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17305 | #ifdef __cplusplus |
| 17306 | extern "C" |
| 17307 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17308 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17309 | /* The GNU C library defines this for functions which it implements |
| 17310 | to always fail with ENOSYS. Some functions are actually named |
| 17311 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17312 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17313 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17314 | #endif |
| 17315 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17316 | int |
| 17317 | main () |
| 17318 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17319 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17320 | ; |
| 17321 | return 0; |
| 17322 | } |
| 17323 | _ACEOF |
| 17324 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17325 | if { (ac_try="$ac_link" |
| 17326 | case "(($ac_try" in |
| 17327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17328 | *) ac_try_echo=$ac_try;; |
| 17329 | esac |
| 17330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17331 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17332 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17334 | rm -f conftest.er1 |
| 17335 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17337 | (exit $ac_status); } && |
| 17338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17339 | { (case "(($ac_try" in |
| 17340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17341 | *) ac_try_echo=$ac_try;; |
| 17342 | esac |
| 17343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17344 | (eval "$ac_try") 2>&5 |
| 17345 | ac_status=$? |
| 17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17347 | (exit $ac_status); }; } && |
| 17348 | { ac_try='test -s conftest$ac_exeext' |
| 17349 | { (case "(($ac_try" in |
| 17350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17351 | *) ac_try_echo=$ac_try;; |
| 17352 | esac |
| 17353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17354 | (eval "$ac_try") 2>&5 |
| 17355 | ac_status=$? |
| 17356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17357 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17358 | ac_cv_func_dlopen=yes |
| 17359 | else |
| 17360 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17363 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17365 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17366 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17367 | conftest$ac_exeext conftest.$ac_ext |
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 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17370 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17371 | if test $ac_cv_func_dlopen = yes; then |
| 17372 | lt_cv_dlopen="dlopen" |
| 17373 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17374 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17375 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17376 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17378 | else |
| 17379 | ac_check_lib_save_LIBS=$LIBS |
| 17380 | LIBS="-ldl $LIBS" |
| 17381 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17382 | /* confdefs.h. */ |
| 17383 | _ACEOF |
| 17384 | cat confdefs.h >>conftest.$ac_ext |
| 17385 | cat >>conftest.$ac_ext <<_ACEOF |
| 17386 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17388 | /* Override any GCC internal prototype to avoid an error. |
| 17389 | Use char because int might match the return type of a GCC |
| 17390 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17391 | #ifdef __cplusplus |
| 17392 | extern "C" |
| 17393 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17394 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17395 | int |
| 17396 | main () |
| 17397 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17398 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17399 | ; |
| 17400 | return 0; |
| 17401 | } |
| 17402 | _ACEOF |
| 17403 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17404 | if { (ac_try="$ac_link" |
| 17405 | case "(($ac_try" in |
| 17406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17407 | *) ac_try_echo=$ac_try;; |
| 17408 | esac |
| 17409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17410 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17411 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17413 | rm -f conftest.er1 |
| 17414 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17416 | (exit $ac_status); } && |
| 17417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17418 | { (case "(($ac_try" in |
| 17419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17420 | *) ac_try_echo=$ac_try;; |
| 17421 | esac |
| 17422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17423 | (eval "$ac_try") 2>&5 |
| 17424 | ac_status=$? |
| 17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17426 | (exit $ac_status); }; } && |
| 17427 | { ac_try='test -s conftest$ac_exeext' |
| 17428 | { (case "(($ac_try" in |
| 17429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17430 | *) ac_try_echo=$ac_try;; |
| 17431 | esac |
| 17432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17433 | (eval "$ac_try") 2>&5 |
| 17434 | ac_status=$? |
| 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17436 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17437 | ac_cv_lib_dl_dlopen=yes |
| 17438 | else |
| 17439 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17442 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17444 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17445 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17446 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17447 | LIBS=$ac_check_lib_save_LIBS |
| 17448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17449 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17450 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17451 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17452 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17453 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17454 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17455 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17456 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17458 | else |
| 17459 | ac_check_lib_save_LIBS=$LIBS |
| 17460 | LIBS="-lsvld $LIBS" |
| 17461 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17462 | /* confdefs.h. */ |
| 17463 | _ACEOF |
| 17464 | cat confdefs.h >>conftest.$ac_ext |
| 17465 | cat >>conftest.$ac_ext <<_ACEOF |
| 17466 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17468 | /* Override any GCC internal prototype to avoid an error. |
| 17469 | Use char because int might match the return type of a GCC |
| 17470 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17471 | #ifdef __cplusplus |
| 17472 | extern "C" |
| 17473 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17474 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17475 | int |
| 17476 | main () |
| 17477 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17478 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17479 | ; |
| 17480 | return 0; |
| 17481 | } |
| 17482 | _ACEOF |
| 17483 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17484 | if { (ac_try="$ac_link" |
| 17485 | case "(($ac_try" in |
| 17486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17487 | *) ac_try_echo=$ac_try;; |
| 17488 | esac |
| 17489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17490 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17491 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17493 | rm -f conftest.er1 |
| 17494 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17496 | (exit $ac_status); } && |
| 17497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17498 | { (case "(($ac_try" in |
| 17499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17500 | *) ac_try_echo=$ac_try;; |
| 17501 | esac |
| 17502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17503 | (eval "$ac_try") 2>&5 |
| 17504 | ac_status=$? |
| 17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17506 | (exit $ac_status); }; } && |
| 17507 | { ac_try='test -s conftest$ac_exeext' |
| 17508 | { (case "(($ac_try" in |
| 17509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17510 | *) ac_try_echo=$ac_try;; |
| 17511 | esac |
| 17512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17513 | (eval "$ac_try") 2>&5 |
| 17514 | ac_status=$? |
| 17515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17516 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17517 | ac_cv_lib_svld_dlopen=yes |
| 17518 | else |
| 17519 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17522 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17523 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17524 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17525 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17526 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17527 | LIBS=$ac_check_lib_save_LIBS |
| 17528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17529 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17530 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17531 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17532 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17533 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17534 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17535 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17536 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17538 | else |
| 17539 | ac_check_lib_save_LIBS=$LIBS |
| 17540 | LIBS="-ldld $LIBS" |
| 17541 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17542 | /* confdefs.h. */ |
| 17543 | _ACEOF |
| 17544 | cat confdefs.h >>conftest.$ac_ext |
| 17545 | cat >>conftest.$ac_ext <<_ACEOF |
| 17546 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17548 | /* Override any GCC internal prototype to avoid an error. |
| 17549 | Use char because int might match the return type of a GCC |
| 17550 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17551 | #ifdef __cplusplus |
| 17552 | extern "C" |
| 17553 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17554 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17555 | int |
| 17556 | main () |
| 17557 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17558 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17559 | ; |
| 17560 | return 0; |
| 17561 | } |
| 17562 | _ACEOF |
| 17563 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17564 | if { (ac_try="$ac_link" |
| 17565 | case "(($ac_try" in |
| 17566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17567 | *) ac_try_echo=$ac_try;; |
| 17568 | esac |
| 17569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17570 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17571 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17573 | rm -f conftest.er1 |
| 17574 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17576 | (exit $ac_status); } && |
| 17577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17578 | { (case "(($ac_try" in |
| 17579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17580 | *) ac_try_echo=$ac_try;; |
| 17581 | esac |
| 17582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17583 | (eval "$ac_try") 2>&5 |
| 17584 | ac_status=$? |
| 17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17586 | (exit $ac_status); }; } && |
| 17587 | { ac_try='test -s conftest$ac_exeext' |
| 17588 | { (case "(($ac_try" in |
| 17589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17590 | *) ac_try_echo=$ac_try;; |
| 17591 | esac |
| 17592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17593 | (eval "$ac_try") 2>&5 |
| 17594 | ac_status=$? |
| 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17596 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17597 | ac_cv_lib_dld_dld_link=yes |
| 17598 | else |
| 17599 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17602 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17604 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17605 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17606 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17607 | LIBS=$ac_check_lib_save_LIBS |
| 17608 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17609 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17610 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17611 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17612 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17613 | fi |
| 17614 | |
| 17615 | |
| 17616 | fi |
| 17617 | |
| 17618 | |
| 17619 | fi |
| 17620 | |
| 17621 | |
| 17622 | fi |
| 17623 | |
| 17624 | |
| 17625 | fi |
| 17626 | |
| 17627 | |
| 17628 | fi |
| 17629 | |
| 17630 | ;; |
| 17631 | esac |
| 17632 | |
| 17633 | if test "x$lt_cv_dlopen" != xno; then |
| 17634 | enable_dlopen=yes |
| 17635 | else |
| 17636 | enable_dlopen=no |
| 17637 | fi |
| 17638 | |
| 17639 | case $lt_cv_dlopen in |
| 17640 | dlopen) |
| 17641 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17642 | 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] | 17643 | |
| 17644 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17645 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17646 | |
| 17647 | save_LIBS="$LIBS" |
| 17648 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17649 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17650 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17651 | 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] | 17652 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17654 | else |
| 17655 | if test "$cross_compiling" = yes; then : |
| 17656 | lt_cv_dlopen_self=cross |
| 17657 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17658 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17659 | lt_status=$lt_dlunknown |
| 17660 | cat > conftest.$ac_ext <<EOF |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 17661 | #line 17661 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17662 | #include "confdefs.h" |
| 17663 | |
| 17664 | #if HAVE_DLFCN_H |
| 17665 | #include <dlfcn.h> |
| 17666 | #endif |
| 17667 | |
| 17668 | #include <stdio.h> |
| 17669 | |
| 17670 | #ifdef RTLD_GLOBAL |
| 17671 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17672 | #else |
| 17673 | # ifdef DL_GLOBAL |
| 17674 | # define LT_DLGLOBAL DL_GLOBAL |
| 17675 | # else |
| 17676 | # define LT_DLGLOBAL 0 |
| 17677 | # endif |
| 17678 | #endif |
| 17679 | |
| 17680 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17681 | find out it does not work in some platform. */ |
| 17682 | #ifndef LT_DLLAZY_OR_NOW |
| 17683 | # ifdef RTLD_LAZY |
| 17684 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17685 | # else |
| 17686 | # ifdef DL_LAZY |
| 17687 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17688 | # else |
| 17689 | # ifdef RTLD_NOW |
| 17690 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17691 | # else |
| 17692 | # ifdef DL_NOW |
| 17693 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17694 | # else |
| 17695 | # define LT_DLLAZY_OR_NOW 0 |
| 17696 | # endif |
| 17697 | # endif |
| 17698 | # endif |
| 17699 | # endif |
| 17700 | #endif |
| 17701 | |
| 17702 | #ifdef __cplusplus |
| 17703 | extern "C" void exit (int); |
| 17704 | #endif |
| 17705 | |
| 17706 | void fnord() { int i=42;} |
| 17707 | int main () |
| 17708 | { |
| 17709 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17710 | int status = $lt_dlunknown; |
| 17711 | |
| 17712 | if (self) |
| 17713 | { |
| 17714 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17715 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17716 | /* dlclose (self); */ |
| 17717 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17718 | else |
| 17719 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17720 | |
| 17721 | exit (status); |
| 17722 | } |
| 17723 | EOF |
| 17724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17725 | (eval $ac_link) 2>&5 |
| 17726 | ac_status=$? |
| 17727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17728 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17729 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17730 | lt_status=$? |
| 17731 | case x$lt_status in |
| 17732 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17733 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17734 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17735 | esac |
| 17736 | else : |
| 17737 | # compilation failed |
| 17738 | lt_cv_dlopen_self=no |
| 17739 | fi |
| 17740 | fi |
| 17741 | rm -fr conftest* |
| 17742 | |
| 17743 | |
| 17744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17745 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17746 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17747 | |
| 17748 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17749 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17750 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17751 | 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] | 17752 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17754 | else |
| 17755 | if test "$cross_compiling" = yes; then : |
| 17756 | lt_cv_dlopen_self_static=cross |
| 17757 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17758 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17759 | lt_status=$lt_dlunknown |
| 17760 | cat > conftest.$ac_ext <<EOF |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 17761 | #line 17761 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17762 | #include "confdefs.h" |
| 17763 | |
| 17764 | #if HAVE_DLFCN_H |
| 17765 | #include <dlfcn.h> |
| 17766 | #endif |
| 17767 | |
| 17768 | #include <stdio.h> |
| 17769 | |
| 17770 | #ifdef RTLD_GLOBAL |
| 17771 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17772 | #else |
| 17773 | # ifdef DL_GLOBAL |
| 17774 | # define LT_DLGLOBAL DL_GLOBAL |
| 17775 | # else |
| 17776 | # define LT_DLGLOBAL 0 |
| 17777 | # endif |
| 17778 | #endif |
| 17779 | |
| 17780 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17781 | find out it does not work in some platform. */ |
| 17782 | #ifndef LT_DLLAZY_OR_NOW |
| 17783 | # ifdef RTLD_LAZY |
| 17784 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17785 | # else |
| 17786 | # ifdef DL_LAZY |
| 17787 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17788 | # else |
| 17789 | # ifdef RTLD_NOW |
| 17790 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17791 | # else |
| 17792 | # ifdef DL_NOW |
| 17793 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17794 | # else |
| 17795 | # define LT_DLLAZY_OR_NOW 0 |
| 17796 | # endif |
| 17797 | # endif |
| 17798 | # endif |
| 17799 | # endif |
| 17800 | #endif |
| 17801 | |
| 17802 | #ifdef __cplusplus |
| 17803 | extern "C" void exit (int); |
| 17804 | #endif |
| 17805 | |
| 17806 | void fnord() { int i=42;} |
| 17807 | int main () |
| 17808 | { |
| 17809 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17810 | int status = $lt_dlunknown; |
| 17811 | |
| 17812 | if (self) |
| 17813 | { |
| 17814 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17815 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17816 | /* dlclose (self); */ |
| 17817 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17818 | else |
| 17819 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17820 | |
| 17821 | exit (status); |
| 17822 | } |
| 17823 | EOF |
| 17824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17825 | (eval $ac_link) 2>&5 |
| 17826 | ac_status=$? |
| 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17828 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17829 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17830 | lt_status=$? |
| 17831 | case x$lt_status in |
| 17832 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17833 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17834 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17835 | esac |
| 17836 | else : |
| 17837 | # compilation failed |
| 17838 | lt_cv_dlopen_self_static=no |
| 17839 | fi |
| 17840 | fi |
| 17841 | rm -fr conftest* |
| 17842 | |
| 17843 | |
| 17844 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17845 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17846 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17847 | fi |
| 17848 | |
| 17849 | CPPFLAGS="$save_CPPFLAGS" |
| 17850 | LDFLAGS="$save_LDFLAGS" |
| 17851 | LIBS="$save_LIBS" |
| 17852 | ;; |
| 17853 | esac |
| 17854 | |
| 17855 | case $lt_cv_dlopen_self in |
| 17856 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17857 | *) enable_dlopen_self=unknown ;; |
| 17858 | esac |
| 17859 | |
| 17860 | case $lt_cv_dlopen_self_static in |
| 17861 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17862 | *) enable_dlopen_self_static=unknown ;; |
| 17863 | esac |
| 17864 | fi |
| 17865 | |
| 17866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17867 | # Report which library types will actually be built |
| 17868 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17869 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17870 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17871 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17873 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17874 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17875 | test "$can_build_shared" = "no" && enable_shared=no |
| 17876 | |
| 17877 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17878 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17879 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17880 | aix3*) |
| 17881 | test "$enable_shared" = yes && enable_static=no |
| 17882 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17883 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17884 | postinstall_cmds='$RANLIB $lib' |
| 17885 | fi |
| 17886 | ;; |
| 17887 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17888 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17889 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17890 | test "$enable_shared" = yes && enable_static=no |
| 17891 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17892 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17893 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17894 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17895 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17897 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17898 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17899 | # Make sure either enable_shared or enable_static is yes. |
| 17900 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17901 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17902 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17903 | |
| 17904 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17905 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17906 | # with your package, and you will get complaints that there are |
| 17907 | # no rules to generate ltmain.sh. |
| 17908 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17909 | # See if we are running on zsh, and set the options which allow our commands through |
| 17910 | # without removal of \ escapes. |
| 17911 | if test -n "${ZSH_VERSION+set}" ; then |
| 17912 | setopt NO_GLOB_SUBST |
| 17913 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17914 | # Now quote all the things that may contain metacharacters while being |
| 17915 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17916 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17917 | 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] | 17918 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17919 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17920 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17921 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17922 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17923 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17924 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17925 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17926 | compiler \ |
| 17927 | CC \ |
| 17928 | LD \ |
| 17929 | lt_prog_compiler_wl \ |
| 17930 | lt_prog_compiler_pic \ |
| 17931 | lt_prog_compiler_static \ |
| 17932 | lt_prog_compiler_no_builtin_flag \ |
| 17933 | export_dynamic_flag_spec \ |
| 17934 | thread_safe_flag_spec \ |
| 17935 | whole_archive_flag_spec \ |
| 17936 | enable_shared_with_static_runtimes \ |
| 17937 | old_archive_cmds \ |
| 17938 | old_archive_from_new_cmds \ |
| 17939 | predep_objects \ |
| 17940 | postdep_objects \ |
| 17941 | predeps \ |
| 17942 | postdeps \ |
| 17943 | compiler_lib_search_path \ |
| 17944 | archive_cmds \ |
| 17945 | archive_expsym_cmds \ |
| 17946 | postinstall_cmds \ |
| 17947 | postuninstall_cmds \ |
| 17948 | old_archive_from_expsyms_cmds \ |
| 17949 | allow_undefined_flag \ |
| 17950 | no_undefined_flag \ |
| 17951 | export_symbols_cmds \ |
| 17952 | hardcode_libdir_flag_spec \ |
| 17953 | hardcode_libdir_flag_spec_ld \ |
| 17954 | hardcode_libdir_separator \ |
| 17955 | hardcode_automatic \ |
| 17956 | module_cmds \ |
| 17957 | module_expsym_cmds \ |
| 17958 | lt_cv_prog_compiler_c_o \ |
| 17959 | exclude_expsyms \ |
| 17960 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17961 | |
| 17962 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17963 | old_archive_cmds | \ |
| 17964 | old_archive_from_new_cmds | \ |
| 17965 | archive_cmds | \ |
| 17966 | archive_expsym_cmds | \ |
| 17967 | module_cmds | \ |
| 17968 | module_expsym_cmds | \ |
| 17969 | old_archive_from_expsyms_cmds | \ |
| 17970 | export_symbols_cmds | \ |
| 17971 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17972 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17973 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17974 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17975 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17976 | 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] | 17977 | ;; |
| 17978 | *) |
| 17979 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17980 | ;; |
| 17981 | esac |
| 17982 | done |
| 17983 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17984 | case $lt_echo in |
| 17985 | *'\$0 --fallback-echo"') |
| 17986 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17987 | ;; |
| 17988 | esac |
| 17989 | |
| 17990 | cfgfile="${ofile}T" |
| 17991 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17992 | $rm -f "$cfgfile" |
| 17993 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17994 | echo "$as_me: creating $ofile" >&6;} |
| 17995 | |
| 17996 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17997 | #! $SHELL |
| 17998 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17999 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18000 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 18001 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 18002 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18003 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 18004 | # Free Software Foundation, Inc. |
| 18005 | # |
| 18006 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18007 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 18008 | # |
| 18009 | # This program is free software; you can redistribute it and/or modify |
| 18010 | # it under the terms of the GNU General Public License as published by |
| 18011 | # the Free Software Foundation; either version 2 of the License, or |
| 18012 | # (at your option) any later version. |
| 18013 | # |
| 18014 | # This program is distributed in the hope that it will be useful, but |
| 18015 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18016 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18017 | # General Public License for more details. |
| 18018 | # |
| 18019 | # You should have received a copy of the GNU General Public License |
| 18020 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18021 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18022 | # |
| 18023 | # As a special exception to the GNU General Public License, if you |
| 18024 | # distribute this file as part of a program that contains a |
| 18025 | # configuration script generated by Autoconf, you may include it under |
| 18026 | # the same distribution terms that you use for the rest of that program. |
| 18027 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18028 | # A sed program that does not truncate output. |
| 18029 | SED=$lt_SED |
| 18030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18031 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18032 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18033 | |
| 18034 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18035 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18036 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18037 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18038 | # The names of the tagged configurations supported by this script. |
| 18039 | available_tags= |
| 18040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18041 | # ### BEGIN LIBTOOL CONFIG |
| 18042 | |
| 18043 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18044 | |
| 18045 | # Shell to use when invoking shell scripts. |
| 18046 | SHELL=$lt_SHELL |
| 18047 | |
| 18048 | # Whether or not to build shared libraries. |
| 18049 | build_libtool_libs=$enable_shared |
| 18050 | |
| 18051 | # Whether or not to build static libraries. |
| 18052 | build_old_libs=$enable_static |
| 18053 | |
| 18054 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18055 | build_libtool_need_lc=$archive_cmds_need_lc |
| 18056 | |
| 18057 | # Whether or not to disallow shared libs when runtime libs are static |
| 18058 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18059 | |
| 18060 | # Whether or not to optimize for fast installation. |
| 18061 | fast_install=$enable_fast_install |
| 18062 | |
| 18063 | # The host system. |
| 18064 | host_alias=$host_alias |
| 18065 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18066 | host_os=$host_os |
| 18067 | |
| 18068 | # The build system. |
| 18069 | build_alias=$build_alias |
| 18070 | build=$build |
| 18071 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18072 | |
| 18073 | # An echo program that does not interpret backslashes. |
| 18074 | echo=$lt_echo |
| 18075 | |
| 18076 | # The archiver. |
| 18077 | AR=$lt_AR |
| 18078 | AR_FLAGS=$lt_AR_FLAGS |
| 18079 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18080 | # A C compiler. |
| 18081 | LTCC=$lt_LTCC |
| 18082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18083 | # LTCC compiler flags. |
| 18084 | LTCFLAGS=$lt_LTCFLAGS |
| 18085 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18086 | # A language-specific compiler. |
| 18087 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18088 | |
| 18089 | # Is the compiler the GNU C compiler? |
| 18090 | with_gcc=$GCC |
| 18091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18092 | # An ERE matcher. |
| 18093 | EGREP=$lt_EGREP |
| 18094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18095 | # The linker used to build libraries. |
| 18096 | LD=$lt_LD |
| 18097 | |
| 18098 | # Whether we need hard or soft links. |
| 18099 | LN_S=$lt_LN_S |
| 18100 | |
| 18101 | # A BSD-compatible nm program. |
| 18102 | NM=$lt_NM |
| 18103 | |
| 18104 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18105 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18106 | |
| 18107 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18108 | MAGIC_CMD=$MAGIC_CMD |
| 18109 | |
| 18110 | # Used on cygwin: DLL creation program. |
| 18111 | DLLTOOL="$DLLTOOL" |
| 18112 | |
| 18113 | # Used on cygwin: object dumper. |
| 18114 | OBJDUMP="$OBJDUMP" |
| 18115 | |
| 18116 | # Used on cygwin: assembler. |
| 18117 | AS="$AS" |
| 18118 | |
| 18119 | # The name of the directory that contains temporary libtool files. |
| 18120 | objdir=$objdir |
| 18121 | |
| 18122 | # How to create reloadable object files. |
| 18123 | reload_flag=$lt_reload_flag |
| 18124 | reload_cmds=$lt_reload_cmds |
| 18125 | |
| 18126 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18127 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18128 | |
| 18129 | # Object file suffix (normally "o"). |
| 18130 | objext="$ac_objext" |
| 18131 | |
| 18132 | # Old archive suffix (normally "a"). |
| 18133 | libext="$libext" |
| 18134 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18135 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18136 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18138 | # Executable file suffix (normally ""). |
| 18139 | exeext="$exeext" |
| 18140 | |
| 18141 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18142 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18143 | pic_mode=$pic_mode |
| 18144 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18145 | # What is the maximum length of a command? |
| 18146 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18147 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18148 | # Does compiler simultaneously support -c and -o options? |
| 18149 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18151 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18152 | need_locks=$lt_need_locks |
| 18153 | |
| 18154 | # Do we need the lib prefix for modules? |
| 18155 | need_lib_prefix=$need_lib_prefix |
| 18156 | |
| 18157 | # Do we need a version for libraries? |
| 18158 | need_version=$need_version |
| 18159 | |
| 18160 | # Whether dlopen is supported. |
| 18161 | dlopen_support=$enable_dlopen |
| 18162 | |
| 18163 | # Whether dlopen of programs is supported. |
| 18164 | dlopen_self=$enable_dlopen_self |
| 18165 | |
| 18166 | # Whether dlopen of statically linked programs is supported. |
| 18167 | dlopen_self_static=$enable_dlopen_self_static |
| 18168 | |
| 18169 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18170 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18171 | |
| 18172 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18173 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18174 | |
| 18175 | # Compiler flag to allow reflexive dlopens. |
| 18176 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 18177 | |
| 18178 | # Compiler flag to generate shared objects directly from archives. |
| 18179 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 18180 | |
| 18181 | # Compiler flag to generate thread-safe objects. |
| 18182 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 18183 | |
| 18184 | # Library versioning type. |
| 18185 | version_type=$version_type |
| 18186 | |
| 18187 | # Format of library name prefix. |
| 18188 | libname_spec=$lt_libname_spec |
| 18189 | |
| 18190 | # List of archive names. First name is the real one, the rest are links. |
| 18191 | # The last name is the one that the linker finds with -lNAME. |
| 18192 | library_names_spec=$lt_library_names_spec |
| 18193 | |
| 18194 | # The coded name of the library, if different from the real name. |
| 18195 | soname_spec=$lt_soname_spec |
| 18196 | |
| 18197 | # Commands used to build and install an old-style archive. |
| 18198 | RANLIB=$lt_RANLIB |
| 18199 | old_archive_cmds=$lt_old_archive_cmds |
| 18200 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18201 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18202 | |
| 18203 | # Create an old-style archive from a shared archive. |
| 18204 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 18205 | |
| 18206 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18207 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 18208 | |
| 18209 | # Commands used to build and install a shared archive. |
| 18210 | archive_cmds=$lt_archive_cmds |
| 18211 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 18212 | postinstall_cmds=$lt_postinstall_cmds |
| 18213 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18214 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18215 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18216 | module_cmds=$lt_module_cmds |
| 18217 | module_expsym_cmds=$lt_module_expsym_cmds |
| 18218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18219 | # Commands to strip libraries. |
| 18220 | old_striplib=$lt_old_striplib |
| 18221 | striplib=$lt_striplib |
| 18222 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18223 | # Dependencies to place before the objects being linked to create a |
| 18224 | # shared library. |
| 18225 | predep_objects=$lt_predep_objects |
| 18226 | |
| 18227 | # Dependencies to place after the objects being linked to create a |
| 18228 | # shared library. |
| 18229 | postdep_objects=$lt_postdep_objects |
| 18230 | |
| 18231 | # Dependencies to place before the objects being linked to create a |
| 18232 | # shared library. |
| 18233 | predeps=$lt_predeps |
| 18234 | |
| 18235 | # Dependencies to place after the objects being linked to create a |
| 18236 | # shared library. |
| 18237 | postdeps=$lt_postdeps |
| 18238 | |
| 18239 | # The library search path used internally by the compiler when linking |
| 18240 | # a shared library. |
| 18241 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 18242 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18243 | # Method to check whether dependent libraries are shared objects. |
| 18244 | deplibs_check_method=$lt_deplibs_check_method |
| 18245 | |
| 18246 | # Command to use when deplibs_check_method == file_magic. |
| 18247 | file_magic_cmd=$lt_file_magic_cmd |
| 18248 | |
| 18249 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18250 | allow_undefined_flag=$lt_allow_undefined_flag |
| 18251 | |
| 18252 | # Flag that forces no undefined symbols. |
| 18253 | no_undefined_flag=$lt_no_undefined_flag |
| 18254 | |
| 18255 | # Commands used to finish a libtool library installation in a directory. |
| 18256 | finish_cmds=$lt_finish_cmds |
| 18257 | |
| 18258 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18259 | finish_eval=$lt_finish_eval |
| 18260 | |
| 18261 | # 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] | 18262 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18263 | |
| 18264 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18265 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18266 | |
| 18267 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18268 | 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] | 18269 | |
| 18270 | # This is the shared library runtime path variable. |
| 18271 | runpath_var=$runpath_var |
| 18272 | |
| 18273 | # This is the shared library path variable. |
| 18274 | shlibpath_var=$shlibpath_var |
| 18275 | |
| 18276 | # Is shlibpath searched before the hard-coded library search path? |
| 18277 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18278 | |
| 18279 | # How to hardcode a shared library path into an executable. |
| 18280 | hardcode_action=$hardcode_action |
| 18281 | |
| 18282 | # Whether we should hardcode library paths into libraries. |
| 18283 | hardcode_into_libs=$hardcode_into_libs |
| 18284 | |
| 18285 | # Flag to hardcode \$libdir into a binary during linking. |
| 18286 | # This must work even if \$libdir does not exist. |
| 18287 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 18288 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18289 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18290 | # a binary during linking. This must work even if \$libdir does |
| 18291 | # not exist. |
| 18292 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 18293 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18294 | # Whether we need a single -rpath flag with a separated argument. |
| 18295 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18296 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18297 | # 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] | 18298 | # resulting binary. |
| 18299 | hardcode_direct=$hardcode_direct |
| 18300 | |
| 18301 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18302 | # resulting binary. |
| 18303 | hardcode_minus_L=$hardcode_minus_L |
| 18304 | |
| 18305 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18306 | # the resulting binary. |
| 18307 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 18308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18309 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18310 | # and all subsequent libraries and executables linked against it. |
| 18311 | hardcode_automatic=$hardcode_automatic |
| 18312 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18313 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18314 | # restored at relink time. |
| 18315 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18316 | |
| 18317 | # Whether libtool must link a program against all its dependency libraries. |
| 18318 | link_all_deplibs=$link_all_deplibs |
| 18319 | |
| 18320 | # Compile-time system search path for libraries |
| 18321 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18322 | |
| 18323 | # Run-time system search path for libraries |
| 18324 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18325 | |
| 18326 | # Fix the shell variable \$srcfile for the compiler. |
| 18327 | fix_srcfile_path="$fix_srcfile_path" |
| 18328 | |
| 18329 | # Set to yes if exported symbols are required. |
| 18330 | always_export_symbols=$always_export_symbols |
| 18331 | |
| 18332 | # The commands to list exported symbols. |
| 18333 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18334 | |
| 18335 | # The commands to extract the exported symbol list from a shared archive. |
| 18336 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18337 | |
| 18338 | # Symbols that should not be listed in the preloaded symbols. |
| 18339 | exclude_expsyms=$lt_exclude_expsyms |
| 18340 | |
| 18341 | # Symbols that must always be exported. |
| 18342 | include_expsyms=$lt_include_expsyms |
| 18343 | |
| 18344 | # ### END LIBTOOL CONFIG |
| 18345 | |
| 18346 | __EOF__ |
| 18347 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18348 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18349 | case $host_os in |
| 18350 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18351 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18352 | |
| 18353 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18354 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18355 | # vanish in a puff of smoke. |
| 18356 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18357 | COLLECT_NAMES= |
| 18358 | export COLLECT_NAMES |
| 18359 | fi |
| 18360 | EOF |
| 18361 | ;; |
| 18362 | esac |
| 18363 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18364 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18365 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18366 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18367 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18368 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18369 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18370 | mv -f "$cfgfile" "$ofile" || \ |
| 18371 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18372 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18373 | |
| 18374 | else |
| 18375 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18376 | # `config.status --recheck' to rerun these tests and create the |
| 18377 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18378 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18379 | if test -f "$ltmain_in"; then |
| 18380 | test -f Makefile && make "$ltmain" |
| 18381 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18382 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18383 | |
| 18384 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18385 | ac_ext=c |
| 18386 | ac_cpp='$CPP $CPPFLAGS' |
| 18387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18390 | |
| 18391 | CC="$lt_save_CC" |
| 18392 | |
| 18393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18394 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18395 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18396 | withval=$with_tags; tagnames="$withval" |
| 18397 | fi |
| 18398 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18399 | |
| 18400 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18401 | if test ! -f "${ofile}"; then |
| 18402 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18403 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18404 | fi |
| 18405 | |
| 18406 | if test -z "$LTCC"; then |
| 18407 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18408 | if test -z "$LTCC"; then |
| 18409 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18410 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18411 | else |
| 18412 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18413 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18414 | fi |
| 18415 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18416 | if test -z "$LTCFLAGS"; then |
| 18417 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18418 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18419 | |
| 18420 | # Extract list of available tagged configurations in $ofile. |
| 18421 | # Note that this assumes the entire list is on one line. |
| 18422 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18423 | |
| 18424 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18425 | for tagname in $tagnames; do |
| 18426 | IFS="$lt_save_ifs" |
| 18427 | # Check whether tagname contains only valid characters |
| 18428 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18429 | "") ;; |
| 18430 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18431 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18432 | { (exit 1); exit 1; }; } |
| 18433 | ;; |
| 18434 | esac |
| 18435 | |
| 18436 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18437 | then |
| 18438 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18439 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18440 | { (exit 1); exit 1; }; } |
| 18441 | fi |
| 18442 | |
| 18443 | # Update the list of available tags. |
| 18444 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18445 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18446 | |
| 18447 | case $tagname in |
| 18448 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18449 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18450 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18451 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18452 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18453 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18454 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18455 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18456 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18457 | |
| 18458 | |
| 18459 | |
| 18460 | |
| 18461 | archive_cmds_need_lc_CXX=no |
| 18462 | allow_undefined_flag_CXX= |
| 18463 | always_export_symbols_CXX=no |
| 18464 | archive_expsym_cmds_CXX= |
| 18465 | export_dynamic_flag_spec_CXX= |
| 18466 | hardcode_direct_CXX=no |
| 18467 | hardcode_libdir_flag_spec_CXX= |
| 18468 | hardcode_libdir_flag_spec_ld_CXX= |
| 18469 | hardcode_libdir_separator_CXX= |
| 18470 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18471 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18472 | hardcode_automatic_CXX=no |
| 18473 | module_cmds_CXX= |
| 18474 | module_expsym_cmds_CXX= |
| 18475 | link_all_deplibs_CXX=unknown |
| 18476 | old_archive_cmds_CXX=$old_archive_cmds |
| 18477 | no_undefined_flag_CXX= |
| 18478 | whole_archive_flag_spec_CXX= |
| 18479 | enable_shared_with_static_runtimes_CXX=no |
| 18480 | |
| 18481 | # Dependencies to place before and after the object being linked: |
| 18482 | predep_objects_CXX= |
| 18483 | postdep_objects_CXX= |
| 18484 | predeps_CXX= |
| 18485 | postdeps_CXX= |
| 18486 | compiler_lib_search_path_CXX= |
| 18487 | |
| 18488 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18489 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18490 | |
| 18491 | # Object file extension for compiled C++ test sources. |
| 18492 | objext=o |
| 18493 | objext_CXX=$objext |
| 18494 | |
| 18495 | # Code to be used in simple compile tests |
| 18496 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18497 | |
| 18498 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18499 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18500 | |
| 18501 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18502 | |
| 18503 | # If no C compiler was specified, use CC. |
| 18504 | LTCC=${LTCC-"$CC"} |
| 18505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18506 | # If no C compiler flags were specified, use CFLAGS. |
| 18507 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18508 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18509 | # Allow CC to be a program name with arguments. |
| 18510 | compiler=$CC |
| 18511 | |
| 18512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18513 | # save warnings/boilerplate of simple test code |
| 18514 | ac_outfile=conftest.$ac_objext |
| 18515 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18516 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18517 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18518 | $rm conftest* |
| 18519 | |
| 18520 | ac_outfile=conftest.$ac_objext |
| 18521 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18522 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18523 | _lt_linker_boilerplate=`cat conftest.err` |
| 18524 | $rm conftest* |
| 18525 | |
| 18526 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18527 | # Allow CC to be a program name with arguments. |
| 18528 | lt_save_CC=$CC |
| 18529 | lt_save_LD=$LD |
| 18530 | lt_save_GCC=$GCC |
| 18531 | GCC=$GXX |
| 18532 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18533 | lt_save_path_LD=$lt_cv_path_LD |
| 18534 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18535 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18536 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18537 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18538 | fi |
| 18539 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18540 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18541 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18542 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18543 | fi |
| 18544 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18545 | CC=${CXX-"c++"} |
| 18546 | compiler=$CC |
| 18547 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18548 | for cc_temp in $compiler""; do |
| 18549 | case $cc_temp in |
| 18550 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18551 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18552 | \-*) ;; |
| 18553 | *) break;; |
| 18554 | esac |
| 18555 | done |
| 18556 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18557 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18558 | |
| 18559 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18560 | # no_builtin_flag separately |
| 18561 | if test "$GXX" = yes; then |
| 18562 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18563 | else |
| 18564 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18565 | fi |
| 18566 | |
| 18567 | if test "$GXX" = yes; then |
| 18568 | # Set up default GNU C++ configuration |
| 18569 | |
| 18570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18571 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18572 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18573 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18574 | else |
| 18575 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18576 | fi |
| 18577 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18578 | ac_prog=ld |
| 18579 | if test "$GCC" = yes; then |
| 18580 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18581 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18582 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18583 | case $host in |
| 18584 | *-*-mingw*) |
| 18585 | # gcc leaves a trailing carriage return which upsets mingw |
| 18586 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18587 | *) |
| 18588 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18589 | esac |
| 18590 | case $ac_prog in |
| 18591 | # Accept absolute paths. |
| 18592 | [\\/]* | ?:[\\/]*) |
| 18593 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18594 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18595 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18596 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18597 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18598 | done |
| 18599 | test -z "$LD" && LD="$ac_prog" |
| 18600 | ;; |
| 18601 | "") |
| 18602 | # If it fails, then pretend we aren't using GCC. |
| 18603 | ac_prog=ld |
| 18604 | ;; |
| 18605 | *) |
| 18606 | # If it is relative, then search for the first ld in PATH. |
| 18607 | with_gnu_ld=unknown |
| 18608 | ;; |
| 18609 | esac |
| 18610 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18611 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18612 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18613 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18614 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18615 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18616 | fi |
| 18617 | if test "${lt_cv_path_LD+set}" = set; then |
| 18618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18619 | else |
| 18620 | if test -z "$LD"; then |
| 18621 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18622 | for ac_dir in $PATH; do |
| 18623 | IFS="$lt_save_ifs" |
| 18624 | test -z "$ac_dir" && ac_dir=. |
| 18625 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18626 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18627 | # 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] | 18628 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18629 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18630 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18631 | *GNU* | *'with BFD'*) |
| 18632 | test "$with_gnu_ld" != no && break |
| 18633 | ;; |
| 18634 | *) |
| 18635 | test "$with_gnu_ld" != yes && break |
| 18636 | ;; |
| 18637 | esac |
| 18638 | fi |
| 18639 | done |
| 18640 | IFS="$lt_save_ifs" |
| 18641 | else |
| 18642 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18643 | fi |
| 18644 | fi |
| 18645 | |
| 18646 | LD="$lt_cv_path_LD" |
| 18647 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18648 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18649 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18650 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18651 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18652 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18653 | fi |
| 18654 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18655 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18656 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18657 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18658 | 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] | 18659 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18661 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18662 | # 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] | 18663 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18664 | *GNU* | *'with BFD'*) |
| 18665 | lt_cv_prog_gnu_ld=yes |
| 18666 | ;; |
| 18667 | *) |
| 18668 | lt_cv_prog_gnu_ld=no |
| 18669 | ;; |
| 18670 | esac |
| 18671 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18672 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18673 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18674 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18675 | |
| 18676 | |
| 18677 | |
| 18678 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18679 | # archiving commands below assume that GNU ld is being used. |
| 18680 | if test "$with_gnu_ld" = yes; then |
| 18681 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18682 | 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' |
| 18683 | |
| 18684 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18685 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18686 | |
| 18687 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18688 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18689 | # investigate it a little bit more. (MM) |
| 18690 | wlarc='${wl}' |
| 18691 | |
| 18692 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18693 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18694 | grep 'no-whole-archive' > /dev/null; then |
| 18695 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18696 | else |
| 18697 | whole_archive_flag_spec_CXX= |
| 18698 | fi |
| 18699 | else |
| 18700 | with_gnu_ld=no |
| 18701 | wlarc= |
| 18702 | |
| 18703 | # A generic and very simple default shared library creation |
| 18704 | # command for GNU C++ for the case where it uses the native |
| 18705 | # linker, instead of GNU ld. If possible, this setting should |
| 18706 | # overridden to take advantage of the native linker features on |
| 18707 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18708 | 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] | 18709 | fi |
| 18710 | |
| 18711 | # Commands to make compiler produce verbose output that lists |
| 18712 | # what "hidden" libraries, object files and flags are used when |
| 18713 | # linking a shared library. |
| 18714 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18715 | |
| 18716 | else |
| 18717 | GXX=no |
| 18718 | with_gnu_ld=no |
| 18719 | wlarc= |
| 18720 | fi |
| 18721 | |
| 18722 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18723 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18724 | 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] | 18725 | ld_shlibs_CXX=yes |
| 18726 | case $host_os in |
| 18727 | aix3*) |
| 18728 | # FIXME: insert proper C++ library support |
| 18729 | ld_shlibs_CXX=no |
| 18730 | ;; |
| 18731 | aix4* | aix5*) |
| 18732 | if test "$host_cpu" = ia64; then |
| 18733 | # On IA64, the linker does run time linking by default, so we don't |
| 18734 | # have to do anything special. |
| 18735 | aix_use_runtimelinking=no |
| 18736 | exp_sym_flag='-Bexport' |
| 18737 | no_entry_flag="" |
| 18738 | else |
| 18739 | aix_use_runtimelinking=no |
| 18740 | |
| 18741 | # Test if we are trying to use run time linking or normal |
| 18742 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18743 | # need to do runtime linking. |
| 18744 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18745 | for ld_flag in $LDFLAGS; do |
| 18746 | case $ld_flag in |
| 18747 | *-brtl*) |
| 18748 | aix_use_runtimelinking=yes |
| 18749 | break |
| 18750 | ;; |
| 18751 | esac |
| 18752 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18753 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18754 | esac |
| 18755 | |
| 18756 | exp_sym_flag='-bexport' |
| 18757 | no_entry_flag='-bnoentry' |
| 18758 | fi |
| 18759 | |
| 18760 | # When large executables or shared objects are built, AIX ld can |
| 18761 | # have problems creating the table of contents. If linking a library |
| 18762 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18763 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18764 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18765 | |
| 18766 | archive_cmds_CXX='' |
| 18767 | hardcode_direct_CXX=yes |
| 18768 | hardcode_libdir_separator_CXX=':' |
| 18769 | link_all_deplibs_CXX=yes |
| 18770 | |
| 18771 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18772 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18773 | # We only want to do this on AIX 4.2 and lower, the check |
| 18774 | # below for broken collect2 doesn't work under 4.3+ |
| 18775 | collect2name=`${CC} -print-prog-name=collect2` |
| 18776 | if test -f "$collect2name" && \ |
| 18777 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18778 | then |
| 18779 | # We have reworked collect2 |
| 18780 | hardcode_direct_CXX=yes |
| 18781 | else |
| 18782 | # We have old collect2 |
| 18783 | hardcode_direct_CXX=unsupported |
| 18784 | # It fails to find uninstalled libraries when the uninstalled |
| 18785 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18786 | # to unsupported forces relinking |
| 18787 | hardcode_minus_L_CXX=yes |
| 18788 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18789 | hardcode_libdir_separator_CXX= |
| 18790 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18791 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18792 | esac |
| 18793 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18794 | if test "$aix_use_runtimelinking" = yes; then |
| 18795 | shared_flag="$shared_flag "'${wl}-G' |
| 18796 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18797 | else |
| 18798 | # not using gcc |
| 18799 | if test "$host_cpu" = ia64; then |
| 18800 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18801 | # chokes on -Wl,-G. The following line is correct: |
| 18802 | shared_flag='-G' |
| 18803 | else |
| 18804 | if test "$aix_use_runtimelinking" = yes; then |
| 18805 | shared_flag='${wl}-G' |
| 18806 | else |
| 18807 | shared_flag='${wl}-bM:SRE' |
| 18808 | fi |
| 18809 | fi |
| 18810 | fi |
| 18811 | |
| 18812 | # It seems that -bexpall does not export symbols beginning with |
| 18813 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18814 | always_export_symbols_CXX=yes |
| 18815 | if test "$aix_use_runtimelinking" = yes; then |
| 18816 | # Warning - without using the other runtime loading flags (-brtl), |
| 18817 | # -berok will link without error, but may produce a broken library. |
| 18818 | allow_undefined_flag_CXX='-berok' |
| 18819 | # Determine the default libpath from the value encoded in an empty executable. |
| 18820 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18821 | /* confdefs.h. */ |
| 18822 | _ACEOF |
| 18823 | cat confdefs.h >>conftest.$ac_ext |
| 18824 | cat >>conftest.$ac_ext <<_ACEOF |
| 18825 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18826 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18827 | int |
| 18828 | main () |
| 18829 | { |
| 18830 | |
| 18831 | ; |
| 18832 | return 0; |
| 18833 | } |
| 18834 | _ACEOF |
| 18835 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18836 | if { (ac_try="$ac_link" |
| 18837 | case "(($ac_try" in |
| 18838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18839 | *) ac_try_echo=$ac_try;; |
| 18840 | esac |
| 18841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18842 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18843 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18845 | rm -f conftest.er1 |
| 18846 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18848 | (exit $ac_status); } && |
| 18849 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18850 | { (case "(($ac_try" in |
| 18851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18852 | *) ac_try_echo=$ac_try;; |
| 18853 | esac |
| 18854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18855 | (eval "$ac_try") 2>&5 |
| 18856 | ac_status=$? |
| 18857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18858 | (exit $ac_status); }; } && |
| 18859 | { ac_try='test -s conftest$ac_exeext' |
| 18860 | { (case "(($ac_try" in |
| 18861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18862 | *) ac_try_echo=$ac_try;; |
| 18863 | esac |
| 18864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18865 | (eval "$ac_try") 2>&5 |
| 18866 | ac_status=$? |
| 18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18868 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18869 | |
| 18870 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18871 | }'` |
| 18872 | # Check for a 64-bit object if we didn't find anything. |
| 18873 | 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; } |
| 18874 | }'`; fi |
| 18875 | else |
| 18876 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18879 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18881 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18882 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18883 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18884 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18885 | |
| 18886 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18888 | 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] | 18889 | else |
| 18890 | if test "$host_cpu" = ia64; then |
| 18891 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18892 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18893 | 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] | 18894 | else |
| 18895 | # Determine the default libpath from the value encoded in an empty executable. |
| 18896 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18897 | /* confdefs.h. */ |
| 18898 | _ACEOF |
| 18899 | cat confdefs.h >>conftest.$ac_ext |
| 18900 | cat >>conftest.$ac_ext <<_ACEOF |
| 18901 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18902 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18903 | int |
| 18904 | main () |
| 18905 | { |
| 18906 | |
| 18907 | ; |
| 18908 | return 0; |
| 18909 | } |
| 18910 | _ACEOF |
| 18911 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18912 | if { (ac_try="$ac_link" |
| 18913 | case "(($ac_try" in |
| 18914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18915 | *) ac_try_echo=$ac_try;; |
| 18916 | esac |
| 18917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18918 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18919 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18921 | rm -f conftest.er1 |
| 18922 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18924 | (exit $ac_status); } && |
| 18925 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18926 | { (case "(($ac_try" in |
| 18927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18928 | *) ac_try_echo=$ac_try;; |
| 18929 | esac |
| 18930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18931 | (eval "$ac_try") 2>&5 |
| 18932 | ac_status=$? |
| 18933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18934 | (exit $ac_status); }; } && |
| 18935 | { ac_try='test -s conftest$ac_exeext' |
| 18936 | { (case "(($ac_try" in |
| 18937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18938 | *) ac_try_echo=$ac_try;; |
| 18939 | esac |
| 18940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18941 | (eval "$ac_try") 2>&5 |
| 18942 | ac_status=$? |
| 18943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18944 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18945 | |
| 18946 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18947 | }'` |
| 18948 | # Check for a 64-bit object if we didn't find anything. |
| 18949 | 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; } |
| 18950 | }'`; fi |
| 18951 | else |
| 18952 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18955 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18956 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18957 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18958 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18959 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18960 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18961 | |
| 18962 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18963 | # Warning - without using the other run time loading flags, |
| 18964 | # -berok will link without error, but may produce a broken library. |
| 18965 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18966 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18967 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18968 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18969 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18970 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18971 | 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] | 18972 | fi |
| 18973 | fi |
| 18974 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18975 | |
| 18976 | beos*) |
| 18977 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18978 | allow_undefined_flag_CXX=unsupported |
| 18979 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18980 | # support --undefined. This deserves some investigation. FIXME |
| 18981 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18982 | else |
| 18983 | ld_shlibs_CXX=no |
| 18984 | fi |
| 18985 | ;; |
| 18986 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18987 | chorus*) |
| 18988 | case $cc_basename in |
| 18989 | *) |
| 18990 | # FIXME: insert proper C++ library support |
| 18991 | ld_shlibs_CXX=no |
| 18992 | ;; |
| 18993 | esac |
| 18994 | ;; |
| 18995 | |
| 18996 | cygwin* | mingw* | pw32*) |
| 18997 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18998 | # as there is no search path for DLLs. |
| 18999 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 19000 | allow_undefined_flag_CXX=unsupported |
| 19001 | always_export_symbols_CXX=no |
| 19002 | enable_shared_with_static_runtimes_CXX=yes |
| 19003 | |
| 19004 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19005 | 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] | 19006 | # If the export-symbols file already is a .def file (1st line |
| 19007 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19008 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19009 | cp $export_symbols $output_objdir/$soname.def; |
| 19010 | else |
| 19011 | echo EXPORTS > $output_objdir/$soname.def; |
| 19012 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19013 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19014 | $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] | 19015 | else |
| 19016 | ld_shlibs_CXX=no |
| 19017 | fi |
| 19018 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19019 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19020 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19021 | rhapsody* | darwin1.[012]) |
| 19022 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 19023 | ;; |
| 19024 | *) # Darwin 1.3 on |
| 19025 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 19026 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19027 | else |
| 19028 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 19029 | 10.[012]) |
| 19030 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19031 | ;; |
| 19032 | 10.*) |
| 19033 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 19034 | ;; |
| 19035 | esac |
| 19036 | fi |
| 19037 | ;; |
| 19038 | esac |
| 19039 | archive_cmds_need_lc_CXX=no |
| 19040 | hardcode_direct_CXX=no |
| 19041 | hardcode_automatic_CXX=yes |
| 19042 | hardcode_shlibpath_var_CXX=unsupported |
| 19043 | whole_archive_flag_spec_CXX='' |
| 19044 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19045 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19046 | if test "$GXX" = yes ; then |
| 19047 | lt_int_apple_cc_single_mod=no |
| 19048 | output_verbose_link_cmd='echo' |
| 19049 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 19050 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19051 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19052 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19053 | 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] | 19054 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19055 | 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] | 19056 | fi |
| 19057 | 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] | 19058 | # 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] | 19059 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19060 | 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] | 19061 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19062 | 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] | 19063 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19064 | 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] | 19065 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19066 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19067 | xlc*) |
| 19068 | output_verbose_link_cmd='echo' |
| 19069 | 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' |
| 19070 | 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] | 19071 | # 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] | 19072 | 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}' |
| 19073 | 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] | 19074 | ;; |
| 19075 | *) |
| 19076 | ld_shlibs_CXX=no |
| 19077 | ;; |
| 19078 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19079 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19080 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19081 | |
| 19082 | dgux*) |
| 19083 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19084 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19085 | # FIXME: insert proper C++ library support |
| 19086 | ld_shlibs_CXX=no |
| 19087 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19088 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19089 | # Green Hills C++ Compiler |
| 19090 | # FIXME: insert proper C++ library support |
| 19091 | ld_shlibs_CXX=no |
| 19092 | ;; |
| 19093 | *) |
| 19094 | # FIXME: insert proper C++ library support |
| 19095 | ld_shlibs_CXX=no |
| 19096 | ;; |
| 19097 | esac |
| 19098 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19099 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19100 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 19101 | ld_shlibs_CXX=no |
| 19102 | ;; |
| 19103 | freebsd-elf*) |
| 19104 | archive_cmds_need_lc_CXX=no |
| 19105 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19106 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19107 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 19108 | # conventions |
| 19109 | ld_shlibs_CXX=yes |
| 19110 | ;; |
| 19111 | gnu*) |
| 19112 | ;; |
| 19113 | hpux9*) |
| 19114 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19115 | hardcode_libdir_separator_CXX=: |
| 19116 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19117 | hardcode_direct_CXX=yes |
| 19118 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19119 | # but as the default |
| 19120 | # location of the library. |
| 19121 | |
| 19122 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19123 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19124 | # FIXME: insert proper C++ library support |
| 19125 | ld_shlibs_CXX=no |
| 19126 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19127 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19128 | 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] | 19129 | # Commands to make compiler produce verbose output that lists |
| 19130 | # what "hidden" libraries, object files and flags are used when |
| 19131 | # linking a shared library. |
| 19132 | # |
| 19133 | # There doesn't appear to be a way to prevent this compiler from |
| 19134 | # explicitly linking system object files so we need to strip them |
| 19135 | # from the output so that they don't get included in the library |
| 19136 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19137 | 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] | 19138 | ;; |
| 19139 | *) |
| 19140 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19141 | 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] | 19142 | else |
| 19143 | # FIXME: insert proper C++ library support |
| 19144 | ld_shlibs_CXX=no |
| 19145 | fi |
| 19146 | ;; |
| 19147 | esac |
| 19148 | ;; |
| 19149 | hpux10*|hpux11*) |
| 19150 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19151 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19152 | hardcode_libdir_separator_CXX=: |
| 19153 | |
| 19154 | case $host_cpu in |
| 19155 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19156 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19157 | ;; |
| 19158 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19159 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19160 | ;; |
| 19161 | esac |
| 19162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19163 | case $host_cpu in |
| 19164 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19165 | hardcode_direct_CXX=no |
| 19166 | hardcode_shlibpath_var_CXX=no |
| 19167 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19168 | *) |
| 19169 | hardcode_direct_CXX=yes |
| 19170 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19171 | # but as the default |
| 19172 | # location of the library. |
| 19173 | ;; |
| 19174 | esac |
| 19175 | |
| 19176 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19177 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19178 | # FIXME: insert proper C++ library support |
| 19179 | ld_shlibs_CXX=no |
| 19180 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19181 | aCC*) |
| 19182 | case $host_cpu in |
| 19183 | hppa*64*) |
| 19184 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19185 | ;; |
| 19186 | ia64*) |
| 19187 | 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] | 19188 | ;; |
| 19189 | *) |
| 19190 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19191 | ;; |
| 19192 | esac |
| 19193 | # Commands to make compiler produce verbose output that lists |
| 19194 | # what "hidden" libraries, object files and flags are used when |
| 19195 | # linking a shared library. |
| 19196 | # |
| 19197 | # There doesn't appear to be a way to prevent this compiler from |
| 19198 | # explicitly linking system object files so we need to strip them |
| 19199 | # from the output so that they don't get included in the library |
| 19200 | # dependencies. |
| 19201 | 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' |
| 19202 | ;; |
| 19203 | *) |
| 19204 | if test "$GXX" = yes; then |
| 19205 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19206 | case $host_cpu in |
| 19207 | hppa*64*) |
| 19208 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19209 | ;; |
| 19210 | ia64*) |
| 19211 | 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] | 19212 | ;; |
| 19213 | *) |
| 19214 | 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' |
| 19215 | ;; |
| 19216 | esac |
| 19217 | fi |
| 19218 | else |
| 19219 | # FIXME: insert proper C++ library support |
| 19220 | ld_shlibs_CXX=no |
| 19221 | fi |
| 19222 | ;; |
| 19223 | esac |
| 19224 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19225 | interix3*) |
| 19226 | hardcode_direct_CXX=no |
| 19227 | hardcode_shlibpath_var_CXX=no |
| 19228 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19229 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19230 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 19231 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 19232 | # default) and relocated if they conflict, which is a slow very memory |
| 19233 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 19234 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 19235 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 19236 | 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' |
| 19237 | 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' |
| 19238 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19239 | irix5* | irix6*) |
| 19240 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19241 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19242 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19243 | 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] | 19244 | |
| 19245 | # Archives containing C++ object files must be created using |
| 19246 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 19247 | # necessary to make sure instantiated templates are included |
| 19248 | # in the archive. |
| 19249 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 19250 | ;; |
| 19251 | *) |
| 19252 | if test "$GXX" = yes; then |
| 19253 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19254 | 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] | 19255 | else |
| 19256 | 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' |
| 19257 | fi |
| 19258 | fi |
| 19259 | link_all_deplibs_CXX=yes |
| 19260 | ;; |
| 19261 | esac |
| 19262 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19263 | hardcode_libdir_separator_CXX=: |
| 19264 | ;; |
| 19265 | linux*) |
| 19266 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19267 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19268 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19269 | |
| 19270 | # KCC will only create a shared library if the output file |
| 19271 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19272 | # to its proper name (with version) after linking. |
| 19273 | 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' |
| 19274 | 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' |
| 19275 | # Commands to make compiler produce verbose output that lists |
| 19276 | # what "hidden" libraries, object files and flags are used when |
| 19277 | # linking a shared library. |
| 19278 | # |
| 19279 | # There doesn't appear to be a way to prevent this compiler from |
| 19280 | # explicitly linking system object files so we need to strip them |
| 19281 | # from the output so that they don't get included in the library |
| 19282 | # dependencies. |
| 19283 | 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' |
| 19284 | |
| 19285 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 19286 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19287 | |
| 19288 | # Archives containing C++ object files must be created using |
| 19289 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19290 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19291 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19292 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19293 | # Intel C++ |
| 19294 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19295 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 19296 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 19297 | # earlier do not add the objects themselves. |
| 19298 | case `$CC -V 2>&1` in |
| 19299 | *"Version 7."*) |
| 19300 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19301 | 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' |
| 19302 | ;; |
| 19303 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19304 | tmp_idyn= |
| 19305 | case $host_cpu in |
| 19306 | ia64*) tmp_idyn=' -i_dynamic';; |
| 19307 | esac |
| 19308 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19309 | 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] | 19310 | ;; |
| 19311 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19312 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19313 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19314 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19315 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 19316 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19317 | pgCC*) |
| 19318 | # Portland Group C++ compiler |
| 19319 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 19320 | 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' |
| 19321 | |
| 19322 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 19323 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19324 | 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' |
| 19325 | ;; |
| 19326 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19327 | # Compaq C++ |
| 19328 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19329 | 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' |
| 19330 | |
| 19331 | runpath_var=LD_RUN_PATH |
| 19332 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19333 | hardcode_libdir_separator_CXX=: |
| 19334 | |
| 19335 | # Commands to make compiler produce verbose output that lists |
| 19336 | # what "hidden" libraries, object files and flags are used when |
| 19337 | # linking a shared library. |
| 19338 | # |
| 19339 | # There doesn't appear to be a way to prevent this compiler from |
| 19340 | # explicitly linking system object files so we need to strip them |
| 19341 | # from the output so that they don't get included in the library |
| 19342 | # dependencies. |
| 19343 | 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' |
| 19344 | ;; |
| 19345 | esac |
| 19346 | ;; |
| 19347 | lynxos*) |
| 19348 | # FIXME: insert proper C++ library support |
| 19349 | ld_shlibs_CXX=no |
| 19350 | ;; |
| 19351 | m88k*) |
| 19352 | # FIXME: insert proper C++ library support |
| 19353 | ld_shlibs_CXX=no |
| 19354 | ;; |
| 19355 | mvs*) |
| 19356 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19357 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19358 | # FIXME: insert proper C++ library support |
| 19359 | ld_shlibs_CXX=no |
| 19360 | ;; |
| 19361 | *) |
| 19362 | # FIXME: insert proper C++ library support |
| 19363 | ld_shlibs_CXX=no |
| 19364 | ;; |
| 19365 | esac |
| 19366 | ;; |
| 19367 | netbsd*) |
| 19368 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19369 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19370 | wlarc= |
| 19371 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19372 | hardcode_direct_CXX=yes |
| 19373 | hardcode_shlibpath_var_CXX=no |
| 19374 | fi |
| 19375 | # Workaround some broken pre-1.5 toolchains |
| 19376 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19377 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19378 | openbsd2*) |
| 19379 | # C++ shared libraries are fairly broken |
| 19380 | ld_shlibs_CXX=no |
| 19381 | ;; |
| 19382 | openbsd*) |
| 19383 | hardcode_direct_CXX=yes |
| 19384 | hardcode_shlibpath_var_CXX=no |
| 19385 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19386 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19387 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19388 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19389 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19390 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19391 | fi |
| 19392 | output_verbose_link_cmd='echo' |
| 19393 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19394 | osf3*) |
| 19395 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19396 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19397 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19398 | |
| 19399 | # KCC will only create a shared library if the output file |
| 19400 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19401 | # to its proper name (with version) after linking. |
| 19402 | 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' |
| 19403 | |
| 19404 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19405 | hardcode_libdir_separator_CXX=: |
| 19406 | |
| 19407 | # Archives containing C++ object files must be created using |
| 19408 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19409 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19410 | |
| 19411 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19412 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19413 | # Rational C++ 2.4.1 |
| 19414 | # FIXME: insert proper C++ library support |
| 19415 | ld_shlibs_CXX=no |
| 19416 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19417 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19418 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19419 | 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] | 19420 | |
| 19421 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19422 | hardcode_libdir_separator_CXX=: |
| 19423 | |
| 19424 | # Commands to make compiler produce verbose output that lists |
| 19425 | # what "hidden" libraries, object files and flags are used when |
| 19426 | # linking a shared library. |
| 19427 | # |
| 19428 | # There doesn't appear to be a way to prevent this compiler from |
| 19429 | # explicitly linking system object files so we need to strip them |
| 19430 | # from the output so that they don't get included in the library |
| 19431 | # dependencies. |
| 19432 | 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' |
| 19433 | ;; |
| 19434 | *) |
| 19435 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19436 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19437 | 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] | 19438 | |
| 19439 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19440 | hardcode_libdir_separator_CXX=: |
| 19441 | |
| 19442 | # Commands to make compiler produce verbose output that lists |
| 19443 | # what "hidden" libraries, object files and flags are used when |
| 19444 | # linking a shared library. |
| 19445 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19446 | |
| 19447 | else |
| 19448 | # FIXME: insert proper C++ library support |
| 19449 | ld_shlibs_CXX=no |
| 19450 | fi |
| 19451 | ;; |
| 19452 | esac |
| 19453 | ;; |
| 19454 | osf4* | osf5*) |
| 19455 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19456 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19457 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19458 | |
| 19459 | # KCC will only create a shared library if the output file |
| 19460 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19461 | # to its proper name (with version) after linking. |
| 19462 | 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' |
| 19463 | |
| 19464 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19465 | hardcode_libdir_separator_CXX=: |
| 19466 | |
| 19467 | # Archives containing C++ object files must be created using |
| 19468 | # the KAI C++ compiler. |
| 19469 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19470 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19471 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19472 | # Rational C++ 2.4.1 |
| 19473 | # FIXME: insert proper C++ library support |
| 19474 | ld_shlibs_CXX=no |
| 19475 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19476 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19477 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19478 | 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] | 19479 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19480 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19481 | $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] | 19482 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19483 | |
| 19484 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19485 | hardcode_libdir_separator_CXX=: |
| 19486 | |
| 19487 | # Commands to make compiler produce verbose output that lists |
| 19488 | # what "hidden" libraries, object files and flags are used when |
| 19489 | # linking a shared library. |
| 19490 | # |
| 19491 | # There doesn't appear to be a way to prevent this compiler from |
| 19492 | # explicitly linking system object files so we need to strip them |
| 19493 | # from the output so that they don't get included in the library |
| 19494 | # dependencies. |
| 19495 | 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' |
| 19496 | ;; |
| 19497 | *) |
| 19498 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19499 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19500 | 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] | 19501 | |
| 19502 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19503 | hardcode_libdir_separator_CXX=: |
| 19504 | |
| 19505 | # Commands to make compiler produce verbose output that lists |
| 19506 | # what "hidden" libraries, object files and flags are used when |
| 19507 | # linking a shared library. |
| 19508 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19509 | |
| 19510 | else |
| 19511 | # FIXME: insert proper C++ library support |
| 19512 | ld_shlibs_CXX=no |
| 19513 | fi |
| 19514 | ;; |
| 19515 | esac |
| 19516 | ;; |
| 19517 | psos*) |
| 19518 | # FIXME: insert proper C++ library support |
| 19519 | ld_shlibs_CXX=no |
| 19520 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19521 | sunos4*) |
| 19522 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19523 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19524 | # Sun C++ 4.x |
| 19525 | # FIXME: insert proper C++ library support |
| 19526 | ld_shlibs_CXX=no |
| 19527 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19528 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19529 | # Lucid |
| 19530 | # FIXME: insert proper C++ library support |
| 19531 | ld_shlibs_CXX=no |
| 19532 | ;; |
| 19533 | *) |
| 19534 | # FIXME: insert proper C++ library support |
| 19535 | ld_shlibs_CXX=no |
| 19536 | ;; |
| 19537 | esac |
| 19538 | ;; |
| 19539 | solaris*) |
| 19540 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19541 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19542 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19543 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19544 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19545 | 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] | 19546 | 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] | 19547 | $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] | 19548 | |
| 19549 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19550 | hardcode_shlibpath_var_CXX=no |
| 19551 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19552 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19553 | *) |
| 19554 | # The C++ compiler is used as linker so we must use $wl |
| 19555 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19556 | # linker. We must also pass each convience library through |
| 19557 | # to the system linker between allextract/defaultextract. |
| 19558 | # The C++ compiler will combine linker options so we |
| 19559 | # cannot just pass the convience library names through |
| 19560 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19561 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19562 | 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] | 19563 | ;; |
| 19564 | esac |
| 19565 | link_all_deplibs_CXX=yes |
| 19566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19567 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19568 | |
| 19569 | # Archives containing C++ object files must be created using |
| 19570 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19571 | # necessary to make sure instantiated templates are included |
| 19572 | # in the archive. |
| 19573 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19574 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19575 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19576 | # Green Hills C++ Compiler |
| 19577 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19578 | |
| 19579 | # The C++ compiler must be used to create the archive. |
| 19580 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19581 | ;; |
| 19582 | *) |
| 19583 | # GNU C++ compiler with Solaris linker |
| 19584 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19585 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19586 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19587 | 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] | 19588 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19589 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19590 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19591 | # Commands to make compiler produce verbose output that lists |
| 19592 | # what "hidden" libraries, object files and flags are used when |
| 19593 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19594 | 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] | 19595 | else |
| 19596 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19597 | # platform. |
| 19598 | 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] | 19599 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19600 | $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] | 19601 | |
| 19602 | # Commands to make compiler produce verbose output that lists |
| 19603 | # what "hidden" libraries, object files and flags are used when |
| 19604 | # linking a shared library. |
| 19605 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19606 | fi |
| 19607 | |
| 19608 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19609 | fi |
| 19610 | ;; |
| 19611 | esac |
| 19612 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19613 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19614 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19615 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19616 | hardcode_shlibpath_var_CXX=no |
| 19617 | runpath_var='LD_RUN_PATH' |
| 19618 | |
| 19619 | case $cc_basename in |
| 19620 | CC*) |
| 19621 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19622 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19623 | ;; |
| 19624 | *) |
| 19625 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19626 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19627 | ;; |
| 19628 | esac |
| 19629 | ;; |
| 19630 | sysv5* | sco3.2v5* | sco5v6*) |
| 19631 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19632 | # link with -lc, and that would cause any symbols used from libc to |
| 19633 | # always be unresolved, which means just about no library would |
| 19634 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19635 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19636 | # as -z defs. |
| 19637 | # For security reasons, it is highly recommended that you always |
| 19638 | # use absolute paths for naming shared libraries, and exclude the |
| 19639 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19640 | # requires that you compile everything twice, which is a pain. |
| 19641 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19642 | # non-empty value in the environment. Most likely only useful for |
| 19643 | # creating official distributions of packages. |
| 19644 | # This is a hack until libtool officially supports absolute path |
| 19645 | # names for shared libraries. |
| 19646 | no_undefined_flag_CXX='${wl}-z,text' |
| 19647 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19648 | archive_cmds_need_lc_CXX=no |
| 19649 | hardcode_shlibpath_var_CXX=no |
| 19650 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19651 | hardcode_libdir_separator_CXX=':' |
| 19652 | link_all_deplibs_CXX=yes |
| 19653 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19654 | runpath_var='LD_RUN_PATH' |
| 19655 | |
| 19656 | case $cc_basename in |
| 19657 | CC*) |
| 19658 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19659 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19660 | ;; |
| 19661 | *) |
| 19662 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19663 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19664 | ;; |
| 19665 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19666 | ;; |
| 19667 | tandem*) |
| 19668 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19669 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19670 | # NonStop-UX NCC 3.20 |
| 19671 | # FIXME: insert proper C++ library support |
| 19672 | ld_shlibs_CXX=no |
| 19673 | ;; |
| 19674 | *) |
| 19675 | # FIXME: insert proper C++ library support |
| 19676 | ld_shlibs_CXX=no |
| 19677 | ;; |
| 19678 | esac |
| 19679 | ;; |
| 19680 | vxworks*) |
| 19681 | # FIXME: insert proper C++ library support |
| 19682 | ld_shlibs_CXX=no |
| 19683 | ;; |
| 19684 | *) |
| 19685 | # FIXME: insert proper C++ library support |
| 19686 | ld_shlibs_CXX=no |
| 19687 | ;; |
| 19688 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19689 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19690 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19691 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19692 | |
| 19693 | GCC_CXX="$GXX" |
| 19694 | LD_CXX="$LD" |
| 19695 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19696 | |
| 19697 | cat > conftest.$ac_ext <<EOF |
| 19698 | class Foo |
| 19699 | { |
| 19700 | public: |
| 19701 | Foo (void) { a = 0; } |
| 19702 | private: |
| 19703 | int a; |
| 19704 | }; |
| 19705 | EOF |
| 19706 | |
| 19707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19708 | (eval $ac_compile) 2>&5 |
| 19709 | ac_status=$? |
| 19710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19711 | (exit $ac_status); }; then |
| 19712 | # Parse the compiler output and extract the necessary |
| 19713 | # objects, libraries and library flags. |
| 19714 | |
| 19715 | # Sentinel used to keep track of whether or not we are before |
| 19716 | # the conftest object file. |
| 19717 | pre_test_object_deps_done=no |
| 19718 | |
| 19719 | # The `*' in the case matches for architectures that use `case' in |
| 19720 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19721 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19722 | 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] | 19723 | |
| 19724 | for p in `eval $output_verbose_link_cmd`; do |
| 19725 | case $p in |
| 19726 | |
| 19727 | -L* | -R* | -l*) |
| 19728 | # Some compilers place space between "-{L,R}" and the path. |
| 19729 | # Remove the space. |
| 19730 | if test $p = "-L" \ |
| 19731 | || test $p = "-R"; then |
| 19732 | prev=$p |
| 19733 | continue |
| 19734 | else |
| 19735 | prev= |
| 19736 | fi |
| 19737 | |
| 19738 | if test "$pre_test_object_deps_done" = no; then |
| 19739 | case $p in |
| 19740 | -L* | -R*) |
| 19741 | # Internal compiler library paths should come after those |
| 19742 | # provided the user. The postdeps already come after the |
| 19743 | # user supplied libs so there is no need to process them. |
| 19744 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19745 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19746 | else |
| 19747 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19748 | fi |
| 19749 | ;; |
| 19750 | # The "-l" case would never come before the object being |
| 19751 | # linked, so don't bother handling this case. |
| 19752 | esac |
| 19753 | else |
| 19754 | if test -z "$postdeps_CXX"; then |
| 19755 | postdeps_CXX="${prev}${p}" |
| 19756 | else |
| 19757 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19758 | fi |
| 19759 | fi |
| 19760 | ;; |
| 19761 | |
| 19762 | *.$objext) |
| 19763 | # This assumes that the test object file only shows up |
| 19764 | # once in the compiler output. |
| 19765 | if test "$p" = "conftest.$objext"; then |
| 19766 | pre_test_object_deps_done=yes |
| 19767 | continue |
| 19768 | fi |
| 19769 | |
| 19770 | if test "$pre_test_object_deps_done" = no; then |
| 19771 | if test -z "$predep_objects_CXX"; then |
| 19772 | predep_objects_CXX="$p" |
| 19773 | else |
| 19774 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19775 | fi |
| 19776 | else |
| 19777 | if test -z "$postdep_objects_CXX"; then |
| 19778 | postdep_objects_CXX="$p" |
| 19779 | else |
| 19780 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19781 | fi |
| 19782 | fi |
| 19783 | ;; |
| 19784 | |
| 19785 | *) ;; # Ignore the rest. |
| 19786 | |
| 19787 | esac |
| 19788 | done |
| 19789 | |
| 19790 | # Clean up. |
| 19791 | rm -f a.out a.exe |
| 19792 | else |
| 19793 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19794 | fi |
| 19795 | |
| 19796 | $rm -f confest.$objext |
| 19797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19798 | # PORTME: override above test on systems where it is broken |
| 19799 | case $host_os in |
| 19800 | interix3*) |
| 19801 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19802 | # hack all around it, let's just trust "g++" to DTRT. |
| 19803 | predep_objects_CXX= |
| 19804 | postdep_objects_CXX= |
| 19805 | postdeps_CXX= |
| 19806 | ;; |
| 19807 | |
| 19808 | solaris*) |
| 19809 | case $cc_basename in |
| 19810 | CC*) |
| 19811 | # Adding this requires a known-good setup of shared libraries for |
| 19812 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19813 | # archive will be linked into the output, leading to subtle bugs. |
| 19814 | postdeps_CXX='-lCstd -lCrun' |
| 19815 | ;; |
| 19816 | esac |
| 19817 | ;; |
| 19818 | esac |
| 19819 | |
| 19820 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19821 | case " $postdeps_CXX " in |
| 19822 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19823 | esac |
| 19824 | |
| 19825 | lt_prog_compiler_wl_CXX= |
| 19826 | lt_prog_compiler_pic_CXX= |
| 19827 | lt_prog_compiler_static_CXX= |
| 19828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19829 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19830 | 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] | 19831 | |
| 19832 | # C++ specific cases for pic, static, wl, etc. |
| 19833 | if test "$GXX" = yes; then |
| 19834 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19835 | lt_prog_compiler_static_CXX='-static' |
| 19836 | |
| 19837 | case $host_os in |
| 19838 | aix*) |
| 19839 | # All AIX code is PIC. |
| 19840 | if test "$host_cpu" = ia64; then |
| 19841 | # AIX 5 now supports IA64 processor |
| 19842 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19843 | fi |
| 19844 | ;; |
| 19845 | amigaos*) |
| 19846 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19847 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19848 | # like `-m68040'. |
| 19849 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19850 | ;; |
| 19851 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19852 | # PIC is the default for these OSes. |
| 19853 | ;; |
| 19854 | mingw* | os2* | pw32*) |
| 19855 | # This hack is so that the source file can tell whether it is being |
| 19856 | # built for inclusion in a dll (and should export symbols for example). |
| 19857 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19858 | ;; |
| 19859 | darwin* | rhapsody*) |
| 19860 | # PIC is the default on this platform |
| 19861 | # Common symbols not allowed in MH_DYLIB files |
| 19862 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19863 | ;; |
| 19864 | *djgpp*) |
| 19865 | # DJGPP does not support shared libraries at all |
| 19866 | lt_prog_compiler_pic_CXX= |
| 19867 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19868 | interix3*) |
| 19869 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19870 | # Instead, we relocate shared libraries at runtime. |
| 19871 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19872 | sysv4*MP*) |
| 19873 | if test -d /usr/nec; then |
| 19874 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19875 | fi |
| 19876 | ;; |
| 19877 | hpux*) |
| 19878 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19879 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19880 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19881 | hppa*64*|ia64*) |
| 19882 | ;; |
| 19883 | *) |
| 19884 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19885 | ;; |
| 19886 | esac |
| 19887 | ;; |
| 19888 | *) |
| 19889 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19890 | ;; |
| 19891 | esac |
| 19892 | else |
| 19893 | case $host_os in |
| 19894 | aix4* | aix5*) |
| 19895 | # All AIX code is PIC. |
| 19896 | if test "$host_cpu" = ia64; then |
| 19897 | # AIX 5 now supports IA64 processor |
| 19898 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19899 | else |
| 19900 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19901 | fi |
| 19902 | ;; |
| 19903 | chorus*) |
| 19904 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19905 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19906 | # Green Hills C++ Compiler |
| 19907 | # _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" |
| 19908 | ;; |
| 19909 | esac |
| 19910 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19911 | darwin*) |
| 19912 | # PIC is the default on this platform |
| 19913 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19914 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19915 | xlc*) |
| 19916 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19917 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19918 | ;; |
| 19919 | esac |
| 19920 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19921 | dgux*) |
| 19922 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19923 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19924 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19925 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19926 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19927 | # Green Hills C++ Compiler |
| 19928 | lt_prog_compiler_pic_CXX='-pic' |
| 19929 | ;; |
| 19930 | *) |
| 19931 | ;; |
| 19932 | esac |
| 19933 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19934 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19935 | # FreeBSD uses GNU C++ |
| 19936 | ;; |
| 19937 | hpux9* | hpux10* | hpux11*) |
| 19938 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19939 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19940 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19941 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19942 | if test "$host_cpu" != ia64; then |
| 19943 | lt_prog_compiler_pic_CXX='+Z' |
| 19944 | fi |
| 19945 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19946 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19947 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19948 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19949 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19950 | hppa*64*|ia64*) |
| 19951 | # +Z the default |
| 19952 | ;; |
| 19953 | *) |
| 19954 | lt_prog_compiler_pic_CXX='+Z' |
| 19955 | ;; |
| 19956 | esac |
| 19957 | ;; |
| 19958 | *) |
| 19959 | ;; |
| 19960 | esac |
| 19961 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19962 | interix*) |
| 19963 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19964 | # Anyone wants to do a port? |
| 19965 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19966 | irix5* | irix6* | nonstopux*) |
| 19967 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19968 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19969 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19970 | lt_prog_compiler_static_CXX='-non_shared' |
| 19971 | # CC pic flag -KPIC is the default. |
| 19972 | ;; |
| 19973 | *) |
| 19974 | ;; |
| 19975 | esac |
| 19976 | ;; |
| 19977 | linux*) |
| 19978 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19979 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19980 | # KAI C++ Compiler |
| 19981 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19982 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19983 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19984 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19985 | # Intel C++ |
| 19986 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19987 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19988 | lt_prog_compiler_static_CXX='-static' |
| 19989 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19990 | pgCC*) |
| 19991 | # Portland Group C++ compiler. |
| 19992 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19993 | lt_prog_compiler_pic_CXX='-fpic' |
| 19994 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19995 | ;; |
| 19996 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19997 | # Compaq C++ |
| 19998 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19999 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20000 | lt_prog_compiler_pic_CXX= |
| 20001 | lt_prog_compiler_static_CXX='-non_shared' |
| 20002 | ;; |
| 20003 | *) |
| 20004 | ;; |
| 20005 | esac |
| 20006 | ;; |
| 20007 | lynxos*) |
| 20008 | ;; |
| 20009 | m88k*) |
| 20010 | ;; |
| 20011 | mvs*) |
| 20012 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20013 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20014 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 20015 | ;; |
| 20016 | *) |
| 20017 | ;; |
| 20018 | esac |
| 20019 | ;; |
| 20020 | netbsd*) |
| 20021 | ;; |
| 20022 | osf3* | osf4* | osf5*) |
| 20023 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20024 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20025 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 20026 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20027 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20028 | # Rational C++ 2.4.1 |
| 20029 | lt_prog_compiler_pic_CXX='-pic' |
| 20030 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20031 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20032 | # Digital/Compaq C++ |
| 20033 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20034 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 20035 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 20036 | lt_prog_compiler_pic_CXX= |
| 20037 | lt_prog_compiler_static_CXX='-non_shared' |
| 20038 | ;; |
| 20039 | *) |
| 20040 | ;; |
| 20041 | esac |
| 20042 | ;; |
| 20043 | psos*) |
| 20044 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20045 | solaris*) |
| 20046 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20047 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20048 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 20049 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20050 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20051 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 20052 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20053 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20054 | # Green Hills C++ Compiler |
| 20055 | lt_prog_compiler_pic_CXX='-PIC' |
| 20056 | ;; |
| 20057 | *) |
| 20058 | ;; |
| 20059 | esac |
| 20060 | ;; |
| 20061 | sunos4*) |
| 20062 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20063 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20064 | # Sun C++ 4.x |
| 20065 | lt_prog_compiler_pic_CXX='-pic' |
| 20066 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20067 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20068 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20069 | # Lucid |
| 20070 | lt_prog_compiler_pic_CXX='-pic' |
| 20071 | ;; |
| 20072 | *) |
| 20073 | ;; |
| 20074 | esac |
| 20075 | ;; |
| 20076 | tandem*) |
| 20077 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20078 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20079 | # NonStop-UX NCC 3.20 |
| 20080 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20081 | ;; |
| 20082 | *) |
| 20083 | ;; |
| 20084 | esac |
| 20085 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20086 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20087 | case $cc_basename in |
| 20088 | CC*) |
| 20089 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20090 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20091 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20092 | ;; |
| 20093 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20094 | ;; |
| 20095 | vxworks*) |
| 20096 | ;; |
| 20097 | *) |
| 20098 | lt_prog_compiler_can_build_shared_CXX=no |
| 20099 | ;; |
| 20100 | esac |
| 20101 | fi |
| 20102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20103 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 20104 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20105 | |
| 20106 | # |
| 20107 | # Check to make sure the PIC flag actually works. |
| 20108 | # |
| 20109 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20111 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 20112 | 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] | 20113 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 20114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20115 | else |
| 20116 | lt_prog_compiler_pic_works_CXX=no |
| 20117 | ac_outfile=conftest.$ac_objext |
| 20118 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20119 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 20120 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20121 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20122 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20123 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20124 | # The option is referenced via a variable to avoid confusing sed. |
| 20125 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20126 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20127 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20128 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 20129 | (eval echo "\"\$as_me:20129: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20130 | (eval "$lt_compile" 2>conftest.err) |
| 20131 | ac_status=$? |
| 20132 | cat conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 20133 | echo "$as_me:20133: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20134 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20135 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20136 | # So say no if there are warnings other than the usual output. |
| 20137 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 20138 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20139 | 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] | 20140 | lt_prog_compiler_pic_works_CXX=yes |
| 20141 | fi |
| 20142 | fi |
| 20143 | $rm conftest* |
| 20144 | |
| 20145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20146 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 20147 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20148 | |
| 20149 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 20150 | case $lt_prog_compiler_pic_CXX in |
| 20151 | "" | " "*) ;; |
| 20152 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20153 | esac |
| 20154 | else |
| 20155 | lt_prog_compiler_pic_CXX= |
| 20156 | lt_prog_compiler_can_build_shared_CXX=no |
| 20157 | fi |
| 20158 | |
| 20159 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20160 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20161 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20162 | *djgpp*) |
| 20163 | lt_prog_compiler_pic_CXX= |
| 20164 | ;; |
| 20165 | *) |
| 20166 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20167 | ;; |
| 20168 | esac |
| 20169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20170 | # |
| 20171 | # Check to make sure the static flag actually works. |
| 20172 | # |
| 20173 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20174 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20175 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20176 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 20177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20178 | else |
| 20179 | lt_prog_compiler_static_works_CXX=no |
| 20180 | save_LDFLAGS="$LDFLAGS" |
| 20181 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20182 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20183 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20184 | # The linker can only warn and ignore the option if not recognized |
| 20185 | # So say no if there are warnings |
| 20186 | if test -s conftest.err; then |
| 20187 | # Append any errors to the config.log. |
| 20188 | cat conftest.err 1>&5 |
| 20189 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20190 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20191 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20192 | lt_prog_compiler_static_works_CXX=yes |
| 20193 | fi |
| 20194 | else |
| 20195 | lt_prog_compiler_static_works_CXX=yes |
| 20196 | fi |
| 20197 | fi |
| 20198 | $rm conftest* |
| 20199 | LDFLAGS="$save_LDFLAGS" |
| 20200 | |
| 20201 | fi |
| 20202 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 20203 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 20204 | |
| 20205 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 20206 | : |
| 20207 | else |
| 20208 | lt_prog_compiler_static_CXX= |
| 20209 | fi |
| 20210 | |
| 20211 | |
| 20212 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20213 | 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] | 20214 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 20215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20216 | else |
| 20217 | lt_cv_prog_compiler_c_o_CXX=no |
| 20218 | $rm -r conftest 2>/dev/null |
| 20219 | mkdir conftest |
| 20220 | cd conftest |
| 20221 | mkdir out |
| 20222 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20224 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20225 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20226 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20227 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20228 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20229 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20230 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20231 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20232 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 20233 | (eval echo "\"\$as_me:20233: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20234 | (eval "$lt_compile" 2>out/conftest.err) |
| 20235 | ac_status=$? |
| 20236 | cat out/conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 20237 | echo "$as_me:20237: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20238 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20239 | then |
| 20240 | # The compiler can only warn and ignore the option if not recognized |
| 20241 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20242 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20243 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20244 | 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] | 20245 | lt_cv_prog_compiler_c_o_CXX=yes |
| 20246 | fi |
| 20247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20248 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20249 | $rm conftest* |
| 20250 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20251 | # template instantiation |
| 20252 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20253 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20254 | cd .. |
| 20255 | rmdir conftest |
| 20256 | $rm conftest* |
| 20257 | |
| 20258 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20259 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 20260 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20261 | |
| 20262 | |
| 20263 | hard_links="nottested" |
| 20264 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 20265 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20266 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20267 | 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] | 20268 | hard_links=yes |
| 20269 | $rm conftest* |
| 20270 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20271 | touch conftest.a |
| 20272 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20273 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20274 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20275 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20276 | if test "$hard_links" = no; then |
| 20277 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20278 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20279 | need_locks=warn |
| 20280 | fi |
| 20281 | else |
| 20282 | need_locks=no |
| 20283 | fi |
| 20284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20285 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20286 | 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] | 20287 | |
| 20288 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20289 | case $host_os in |
| 20290 | aix4* | aix5*) |
| 20291 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20292 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20293 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20294 | 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' |
| 20295 | else |
| 20296 | 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' |
| 20297 | fi |
| 20298 | ;; |
| 20299 | pw32*) |
| 20300 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 20301 | ;; |
| 20302 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20303 | 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] | 20304 | ;; |
| 20305 | *) |
| 20306 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20307 | ;; |
| 20308 | esac |
| 20309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20310 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 20311 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20312 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 20313 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20314 | # |
| 20315 | # Do we need to explicitly link libc? |
| 20316 | # |
| 20317 | case "x$archive_cmds_need_lc_CXX" in |
| 20318 | x|xyes) |
| 20319 | # Assume -lc should be added |
| 20320 | archive_cmds_need_lc_CXX=yes |
| 20321 | |
| 20322 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20323 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20324 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20325 | # FIXME: we may have to deal with multi-command sequences. |
| 20326 | ;; |
| 20327 | '$CC '*) |
| 20328 | # Test whether the compiler implicitly links with -lc since on some |
| 20329 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20330 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20331 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20332 | 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] | 20333 | $rm conftest* |
| 20334 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20335 | |
| 20336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20337 | (eval $ac_compile) 2>&5 |
| 20338 | ac_status=$? |
| 20339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20340 | (exit $ac_status); } 2>conftest.err; then |
| 20341 | soname=conftest |
| 20342 | lib=conftest |
| 20343 | libobjs=conftest.$ac_objext |
| 20344 | deplibs= |
| 20345 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20346 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20347 | compiler_flags=-v |
| 20348 | linker_flags=-v |
| 20349 | verstring= |
| 20350 | output_objdir=. |
| 20351 | libname=conftest |
| 20352 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20353 | allow_undefined_flag_CXX= |
| 20354 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20355 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20356 | ac_status=$? |
| 20357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20358 | (exit $ac_status); } |
| 20359 | then |
| 20360 | archive_cmds_need_lc_CXX=no |
| 20361 | else |
| 20362 | archive_cmds_need_lc_CXX=yes |
| 20363 | fi |
| 20364 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20365 | else |
| 20366 | cat conftest.err 1>&5 |
| 20367 | fi |
| 20368 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20369 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20370 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20371 | ;; |
| 20372 | esac |
| 20373 | fi |
| 20374 | ;; |
| 20375 | esac |
| 20376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20377 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20378 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20379 | library_names_spec= |
| 20380 | libname_spec='lib$name' |
| 20381 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20382 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20383 | postinstall_cmds= |
| 20384 | postuninstall_cmds= |
| 20385 | finish_cmds= |
| 20386 | finish_eval= |
| 20387 | shlibpath_var= |
| 20388 | shlibpath_overrides_runpath=unknown |
| 20389 | version_type=none |
| 20390 | dynamic_linker="$host_os ld.so" |
| 20391 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20392 | if test "$GCC" = yes; then |
| 20393 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20394 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20395 | # if the path contains ";" then we assume it to be the separator |
| 20396 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20397 | # assumed that no part of a normal pathname contains ";" but that should |
| 20398 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20399 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20400 | else |
| 20401 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20402 | fi |
| 20403 | else |
| 20404 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20405 | fi |
| 20406 | need_lib_prefix=unknown |
| 20407 | hardcode_into_libs=no |
| 20408 | |
| 20409 | # when you set need_version to no, make sure it does not cause -set_version |
| 20410 | # flags to be left without arguments |
| 20411 | need_version=unknown |
| 20412 | |
| 20413 | case $host_os in |
| 20414 | aix3*) |
| 20415 | version_type=linux |
| 20416 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20417 | shlibpath_var=LIBPATH |
| 20418 | |
| 20419 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20421 | ;; |
| 20422 | |
| 20423 | aix4* | aix5*) |
| 20424 | version_type=linux |
| 20425 | need_lib_prefix=no |
| 20426 | need_version=no |
| 20427 | hardcode_into_libs=yes |
| 20428 | if test "$host_cpu" = ia64; then |
| 20429 | # AIX 5 supports IA64 |
| 20430 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20431 | shlibpath_var=LD_LIBRARY_PATH |
| 20432 | else |
| 20433 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20434 | # for dependence libraries. The import file would start with |
| 20435 | # the line `#! .'. This would cause the generated library to |
| 20436 | # depend on `.', always an invalid library. This was fixed in |
| 20437 | # development snapshots of GCC prior to 3.0. |
| 20438 | case $host_os in |
| 20439 | aix4 | aix4.[01] | aix4.[01].*) |
| 20440 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20441 | echo ' yes ' |
| 20442 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20443 | : |
| 20444 | else |
| 20445 | can_build_shared=no |
| 20446 | fi |
| 20447 | ;; |
| 20448 | esac |
| 20449 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20450 | # soname into executable. Probably we can add versioning support to |
| 20451 | # collect2, so additional links can be useful in future. |
| 20452 | if test "$aix_use_runtimelinking" = yes; then |
| 20453 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20454 | # instead of lib<name>.a to let people know that these are not |
| 20455 | # typical AIX shared libraries. |
| 20456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20457 | else |
| 20458 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20459 | # and later when we are not doing run time linking. |
| 20460 | library_names_spec='${libname}${release}.a $libname.a' |
| 20461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20462 | fi |
| 20463 | shlibpath_var=LIBPATH |
| 20464 | fi |
| 20465 | ;; |
| 20466 | |
| 20467 | amigaos*) |
| 20468 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20469 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20470 | 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] | 20471 | ;; |
| 20472 | |
| 20473 | beos*) |
| 20474 | library_names_spec='${libname}${shared_ext}' |
| 20475 | dynamic_linker="$host_os ld.so" |
| 20476 | shlibpath_var=LIBRARY_PATH |
| 20477 | ;; |
| 20478 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20479 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20480 | version_type=linux |
| 20481 | need_version=no |
| 20482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20483 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20484 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20485 | shlibpath_var=LD_LIBRARY_PATH |
| 20486 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20487 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20488 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20489 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20490 | # libtool to hard-code these into programs |
| 20491 | ;; |
| 20492 | |
| 20493 | cygwin* | mingw* | pw32*) |
| 20494 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20495 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20496 | need_version=no |
| 20497 | need_lib_prefix=no |
| 20498 | |
| 20499 | case $GCC,$host_os in |
| 20500 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20501 | library_names_spec='$libname.dll.a' |
| 20502 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20503 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20504 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20505 | dldir=$destdir/`dirname \$dlpath`~ |
| 20506 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20507 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20508 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20509 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20510 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20511 | $rm \$dlpath' |
| 20512 | shlibpath_overrides_runpath=yes |
| 20513 | |
| 20514 | case $host_os in |
| 20515 | cygwin*) |
| 20516 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20517 | 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] | 20518 | 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] | 20519 | ;; |
| 20520 | mingw*) |
| 20521 | # MinGW DLLs use traditional 'lib' prefix |
| 20522 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20523 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20524 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20525 | # It is most probably a Windows format PATH printed by |
| 20526 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20527 | # path with ; separators, and with drive letters. We can handle the |
| 20528 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20529 | # especially as we might pass files found there to a mingw objdump, |
| 20530 | # which wouldn't understand a cygwinified path. Ahh. |
| 20531 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20532 | else |
| 20533 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20534 | fi |
| 20535 | ;; |
| 20536 | pw32*) |
| 20537 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20538 | 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] | 20539 | ;; |
| 20540 | esac |
| 20541 | ;; |
| 20542 | |
| 20543 | *) |
| 20544 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20545 | ;; |
| 20546 | esac |
| 20547 | dynamic_linker='Win32 ld.exe' |
| 20548 | # FIXME: first we should search . and the directory the executable is in |
| 20549 | shlibpath_var=PATH |
| 20550 | ;; |
| 20551 | |
| 20552 | darwin* | rhapsody*) |
| 20553 | dynamic_linker="$host_os dyld" |
| 20554 | version_type=darwin |
| 20555 | need_lib_prefix=no |
| 20556 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20557 | 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] | 20558 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20559 | shlibpath_overrides_runpath=yes |
| 20560 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20561 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20562 | # 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] | 20563 | if test "$GCC" = yes; then |
| 20564 | 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"` |
| 20565 | else |
| 20566 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20567 | fi |
| 20568 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20569 | ;; |
| 20570 | |
| 20571 | dgux*) |
| 20572 | version_type=linux |
| 20573 | need_lib_prefix=no |
| 20574 | need_version=no |
| 20575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20577 | shlibpath_var=LD_LIBRARY_PATH |
| 20578 | ;; |
| 20579 | |
| 20580 | freebsd1*) |
| 20581 | dynamic_linker=no |
| 20582 | ;; |
| 20583 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20584 | kfreebsd*-gnu) |
| 20585 | version_type=linux |
| 20586 | need_lib_prefix=no |
| 20587 | need_version=no |
| 20588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20589 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20590 | shlibpath_var=LD_LIBRARY_PATH |
| 20591 | shlibpath_overrides_runpath=no |
| 20592 | hardcode_into_libs=yes |
| 20593 | dynamic_linker='GNU ld.so' |
| 20594 | ;; |
| 20595 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20596 | freebsd* | dragonfly*) |
| 20597 | # DragonFly does not have aout. When/if they implement a new |
| 20598 | # versioning mechanism, adjust this. |
| 20599 | if test -x /usr/bin/objformat; then |
| 20600 | objformat=`/usr/bin/objformat` |
| 20601 | else |
| 20602 | case $host_os in |
| 20603 | freebsd[123]*) objformat=aout ;; |
| 20604 | *) objformat=elf ;; |
| 20605 | esac |
| 20606 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20607 | version_type=freebsd-$objformat |
| 20608 | case $version_type in |
| 20609 | freebsd-elf*) |
| 20610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20611 | need_version=no |
| 20612 | need_lib_prefix=no |
| 20613 | ;; |
| 20614 | freebsd-*) |
| 20615 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20616 | need_version=yes |
| 20617 | ;; |
| 20618 | esac |
| 20619 | shlibpath_var=LD_LIBRARY_PATH |
| 20620 | case $host_os in |
| 20621 | freebsd2*) |
| 20622 | shlibpath_overrides_runpath=yes |
| 20623 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20624 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20625 | shlibpath_overrides_runpath=yes |
| 20626 | hardcode_into_libs=yes |
| 20627 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20628 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20629 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20630 | shlibpath_overrides_runpath=no |
| 20631 | hardcode_into_libs=yes |
| 20632 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20633 | freebsd*) # from 4.6 on |
| 20634 | shlibpath_overrides_runpath=yes |
| 20635 | hardcode_into_libs=yes |
| 20636 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20637 | esac |
| 20638 | ;; |
| 20639 | |
| 20640 | gnu*) |
| 20641 | version_type=linux |
| 20642 | need_lib_prefix=no |
| 20643 | need_version=no |
| 20644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20645 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20646 | shlibpath_var=LD_LIBRARY_PATH |
| 20647 | hardcode_into_libs=yes |
| 20648 | ;; |
| 20649 | |
| 20650 | hpux9* | hpux10* | hpux11*) |
| 20651 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20652 | # link against other versions. |
| 20653 | version_type=sunos |
| 20654 | need_lib_prefix=no |
| 20655 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20656 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20657 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20658 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20659 | hardcode_into_libs=yes |
| 20660 | dynamic_linker="$host_os dld.so" |
| 20661 | shlibpath_var=LD_LIBRARY_PATH |
| 20662 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20664 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20665 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20666 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20667 | else |
| 20668 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20669 | fi |
| 20670 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20671 | ;; |
| 20672 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20673 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20674 | hardcode_into_libs=yes |
| 20675 | dynamic_linker="$host_os dld.sl" |
| 20676 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20677 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20679 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20680 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20681 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20682 | ;; |
| 20683 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20684 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20685 | dynamic_linker="$host_os dld.sl" |
| 20686 | shlibpath_var=SHLIB_PATH |
| 20687 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20689 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20690 | ;; |
| 20691 | esac |
| 20692 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20693 | postinstall_cmds='chmod 555 $lib' |
| 20694 | ;; |
| 20695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20696 | interix3*) |
| 20697 | version_type=linux |
| 20698 | need_lib_prefix=no |
| 20699 | need_version=no |
| 20700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20701 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20702 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20703 | shlibpath_var=LD_LIBRARY_PATH |
| 20704 | shlibpath_overrides_runpath=no |
| 20705 | hardcode_into_libs=yes |
| 20706 | ;; |
| 20707 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20708 | irix5* | irix6* | nonstopux*) |
| 20709 | case $host_os in |
| 20710 | nonstopux*) version_type=nonstopux ;; |
| 20711 | *) |
| 20712 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20713 | version_type=linux |
| 20714 | else |
| 20715 | version_type=irix |
| 20716 | fi ;; |
| 20717 | esac |
| 20718 | need_lib_prefix=no |
| 20719 | need_version=no |
| 20720 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20722 | case $host_os in |
| 20723 | irix5* | nonstopux*) |
| 20724 | libsuff= shlibsuff= |
| 20725 | ;; |
| 20726 | *) |
| 20727 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20728 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20729 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20730 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20731 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20732 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20733 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20734 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20735 | esac |
| 20736 | ;; |
| 20737 | esac |
| 20738 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20739 | shlibpath_overrides_runpath=no |
| 20740 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20741 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20742 | hardcode_into_libs=yes |
| 20743 | ;; |
| 20744 | |
| 20745 | # No shared lib support for Linux oldld, aout, or coff. |
| 20746 | linux*oldld* | linux*aout* | linux*coff*) |
| 20747 | dynamic_linker=no |
| 20748 | ;; |
| 20749 | |
| 20750 | # This must be Linux ELF. |
| 20751 | linux*) |
| 20752 | version_type=linux |
| 20753 | need_lib_prefix=no |
| 20754 | need_version=no |
| 20755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20756 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20757 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20758 | shlibpath_var=LD_LIBRARY_PATH |
| 20759 | shlibpath_overrides_runpath=no |
| 20760 | # This implies no fast_install, which is unacceptable. |
| 20761 | # Some rework will be needed to allow for fast_install |
| 20762 | # before this can be enabled. |
| 20763 | hardcode_into_libs=yes |
| 20764 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20765 | # Append ld.so.conf contents to the search path |
| 20766 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20767 | 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] | 20768 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20769 | fi |
| 20770 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20771 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20772 | # powerpc, because MkLinux only supported shared libraries with the |
| 20773 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20774 | # most powerpc-linux boxes support dynamic linking these days and |
| 20775 | # people can always --disable-shared, the test was removed, and we |
| 20776 | # assume the GNU/Linux dynamic linker is in use. |
| 20777 | dynamic_linker='GNU/Linux ld.so' |
| 20778 | ;; |
| 20779 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20780 | knetbsd*-gnu) |
| 20781 | version_type=linux |
| 20782 | need_lib_prefix=no |
| 20783 | need_version=no |
| 20784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20785 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20786 | shlibpath_var=LD_LIBRARY_PATH |
| 20787 | shlibpath_overrides_runpath=no |
| 20788 | hardcode_into_libs=yes |
| 20789 | dynamic_linker='GNU ld.so' |
| 20790 | ;; |
| 20791 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20792 | netbsd*) |
| 20793 | version_type=sunos |
| 20794 | need_lib_prefix=no |
| 20795 | need_version=no |
| 20796 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20798 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20799 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20800 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20801 | 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] | 20802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20803 | dynamic_linker='NetBSD ld.elf_so' |
| 20804 | fi |
| 20805 | shlibpath_var=LD_LIBRARY_PATH |
| 20806 | shlibpath_overrides_runpath=yes |
| 20807 | hardcode_into_libs=yes |
| 20808 | ;; |
| 20809 | |
| 20810 | newsos6) |
| 20811 | version_type=linux |
| 20812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20813 | shlibpath_var=LD_LIBRARY_PATH |
| 20814 | shlibpath_overrides_runpath=yes |
| 20815 | ;; |
| 20816 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20817 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20818 | version_type=linux |
| 20819 | need_lib_prefix=no |
| 20820 | need_version=no |
| 20821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20822 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20823 | shlibpath_var=LD_LIBRARY_PATH |
| 20824 | shlibpath_overrides_runpath=yes |
| 20825 | ;; |
| 20826 | |
| 20827 | openbsd*) |
| 20828 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20829 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20830 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20831 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20832 | case $host_os in |
| 20833 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20834 | *) need_version=no ;; |
| 20835 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20837 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20838 | shlibpath_var=LD_LIBRARY_PATH |
| 20839 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20840 | case $host_os in |
| 20841 | openbsd2.[89] | openbsd2.[89].*) |
| 20842 | shlibpath_overrides_runpath=no |
| 20843 | ;; |
| 20844 | *) |
| 20845 | shlibpath_overrides_runpath=yes |
| 20846 | ;; |
| 20847 | esac |
| 20848 | else |
| 20849 | shlibpath_overrides_runpath=yes |
| 20850 | fi |
| 20851 | ;; |
| 20852 | |
| 20853 | os2*) |
| 20854 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20855 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20856 | need_lib_prefix=no |
| 20857 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20858 | dynamic_linker='OS/2 ld.exe' |
| 20859 | shlibpath_var=LIBPATH |
| 20860 | ;; |
| 20861 | |
| 20862 | osf3* | osf4* | osf5*) |
| 20863 | version_type=osf |
| 20864 | need_lib_prefix=no |
| 20865 | need_version=no |
| 20866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20868 | shlibpath_var=LD_LIBRARY_PATH |
| 20869 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20870 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20871 | ;; |
| 20872 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20873 | solaris*) |
| 20874 | version_type=linux |
| 20875 | need_lib_prefix=no |
| 20876 | need_version=no |
| 20877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20878 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20879 | shlibpath_var=LD_LIBRARY_PATH |
| 20880 | shlibpath_overrides_runpath=yes |
| 20881 | hardcode_into_libs=yes |
| 20882 | # ldd complains unless libraries are executable |
| 20883 | postinstall_cmds='chmod +x $lib' |
| 20884 | ;; |
| 20885 | |
| 20886 | sunos4*) |
| 20887 | version_type=sunos |
| 20888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20889 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20890 | shlibpath_var=LD_LIBRARY_PATH |
| 20891 | shlibpath_overrides_runpath=yes |
| 20892 | if test "$with_gnu_ld" = yes; then |
| 20893 | need_lib_prefix=no |
| 20894 | fi |
| 20895 | need_version=yes |
| 20896 | ;; |
| 20897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20898 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20899 | version_type=linux |
| 20900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20901 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20902 | shlibpath_var=LD_LIBRARY_PATH |
| 20903 | case $host_vendor in |
| 20904 | sni) |
| 20905 | shlibpath_overrides_runpath=no |
| 20906 | need_lib_prefix=no |
| 20907 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20908 | runpath_var=LD_RUN_PATH |
| 20909 | ;; |
| 20910 | siemens) |
| 20911 | need_lib_prefix=no |
| 20912 | ;; |
| 20913 | motorola) |
| 20914 | need_lib_prefix=no |
| 20915 | need_version=no |
| 20916 | shlibpath_overrides_runpath=no |
| 20917 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20918 | ;; |
| 20919 | esac |
| 20920 | ;; |
| 20921 | |
| 20922 | sysv4*MP*) |
| 20923 | if test -d /usr/nec ;then |
| 20924 | version_type=linux |
| 20925 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20926 | soname_spec='$libname${shared_ext}.$major' |
| 20927 | shlibpath_var=LD_LIBRARY_PATH |
| 20928 | fi |
| 20929 | ;; |
| 20930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20931 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20932 | version_type=freebsd-elf |
| 20933 | need_lib_prefix=no |
| 20934 | need_version=no |
| 20935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20936 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20937 | shlibpath_var=LD_LIBRARY_PATH |
| 20938 | hardcode_into_libs=yes |
| 20939 | if test "$with_gnu_ld" = yes; then |
| 20940 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20941 | shlibpath_overrides_runpath=no |
| 20942 | else |
| 20943 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20944 | shlibpath_overrides_runpath=yes |
| 20945 | case $host_os in |
| 20946 | sco3.2v5*) |
| 20947 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20948 | ;; |
| 20949 | esac |
| 20950 | fi |
| 20951 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20952 | ;; |
| 20953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20954 | uts4*) |
| 20955 | version_type=linux |
| 20956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20957 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20958 | shlibpath_var=LD_LIBRARY_PATH |
| 20959 | ;; |
| 20960 | |
| 20961 | *) |
| 20962 | dynamic_linker=no |
| 20963 | ;; |
| 20964 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20965 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20966 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20967 | test "$dynamic_linker" = no && can_build_shared=no |
| 20968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20969 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20970 | if test "$GCC" = yes; then |
| 20971 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20972 | fi |
| 20973 | |
| 20974 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20975 | 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] | 20976 | hardcode_action_CXX= |
| 20977 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20978 | test -n "$runpath_var_CXX" || \ |
| 20979 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20980 | |
| 20981 | # We can hardcode non-existant directories. |
| 20982 | if test "$hardcode_direct_CXX" != no && |
| 20983 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20984 | # have to relink, otherwise we might link with an installed library |
| 20985 | # when we should be linking with a yet-to-be-installed one |
| 20986 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20987 | test "$hardcode_minus_L_CXX" != no; then |
| 20988 | # Linking always hardcodes the temporary library directory. |
| 20989 | hardcode_action_CXX=relink |
| 20990 | else |
| 20991 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20992 | hardcode_action_CXX=immediate |
| 20993 | fi |
| 20994 | else |
| 20995 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20996 | # directories. |
| 20997 | hardcode_action_CXX=unsupported |
| 20998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20999 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 21000 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21001 | |
| 21002 | if test "$hardcode_action_CXX" = relink; then |
| 21003 | # Fast installation is not supported |
| 21004 | enable_fast_install=no |
| 21005 | elif test "$shlibpath_overrides_runpath" = yes || |
| 21006 | test "$enable_shared" = no; then |
| 21007 | # Fast installation is not necessary |
| 21008 | enable_fast_install=needless |
| 21009 | fi |
| 21010 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21011 | |
| 21012 | # The else clause should only fire when bootstrapping the |
| 21013 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 21014 | # with your package, and you will get complaints that there are |
| 21015 | # no rules to generate ltmain.sh. |
| 21016 | if test -f "$ltmain"; then |
| 21017 | # See if we are running on zsh, and set the options which allow our commands through |
| 21018 | # without removal of \ escapes. |
| 21019 | if test -n "${ZSH_VERSION+set}" ; then |
| 21020 | setopt NO_GLOB_SUBST |
| 21021 | fi |
| 21022 | # Now quote all the things that may contain metacharacters while being |
| 21023 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 21024 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21025 | 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] | 21026 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21027 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 21028 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 21029 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 21030 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 21031 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 21032 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 21033 | old_postinstall_cmds old_postuninstall_cmds \ |
| 21034 | compiler_CXX \ |
| 21035 | CC_CXX \ |
| 21036 | LD_CXX \ |
| 21037 | lt_prog_compiler_wl_CXX \ |
| 21038 | lt_prog_compiler_pic_CXX \ |
| 21039 | lt_prog_compiler_static_CXX \ |
| 21040 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 21041 | export_dynamic_flag_spec_CXX \ |
| 21042 | thread_safe_flag_spec_CXX \ |
| 21043 | whole_archive_flag_spec_CXX \ |
| 21044 | enable_shared_with_static_runtimes_CXX \ |
| 21045 | old_archive_cmds_CXX \ |
| 21046 | old_archive_from_new_cmds_CXX \ |
| 21047 | predep_objects_CXX \ |
| 21048 | postdep_objects_CXX \ |
| 21049 | predeps_CXX \ |
| 21050 | postdeps_CXX \ |
| 21051 | compiler_lib_search_path_CXX \ |
| 21052 | archive_cmds_CXX \ |
| 21053 | archive_expsym_cmds_CXX \ |
| 21054 | postinstall_cmds_CXX \ |
| 21055 | postuninstall_cmds_CXX \ |
| 21056 | old_archive_from_expsyms_cmds_CXX \ |
| 21057 | allow_undefined_flag_CXX \ |
| 21058 | no_undefined_flag_CXX \ |
| 21059 | export_symbols_cmds_CXX \ |
| 21060 | hardcode_libdir_flag_spec_CXX \ |
| 21061 | hardcode_libdir_flag_spec_ld_CXX \ |
| 21062 | hardcode_libdir_separator_CXX \ |
| 21063 | hardcode_automatic_CXX \ |
| 21064 | module_cmds_CXX \ |
| 21065 | module_expsym_cmds_CXX \ |
| 21066 | lt_cv_prog_compiler_c_o_CXX \ |
| 21067 | exclude_expsyms_CXX \ |
| 21068 | include_expsyms_CXX; do |
| 21069 | |
| 21070 | case $var in |
| 21071 | old_archive_cmds_CXX | \ |
| 21072 | old_archive_from_new_cmds_CXX | \ |
| 21073 | archive_cmds_CXX | \ |
| 21074 | archive_expsym_cmds_CXX | \ |
| 21075 | module_cmds_CXX | \ |
| 21076 | module_expsym_cmds_CXX | \ |
| 21077 | old_archive_from_expsyms_cmds_CXX | \ |
| 21078 | export_symbols_cmds_CXX | \ |
| 21079 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 21080 | postinstall_cmds | postuninstall_cmds | \ |
| 21081 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 21082 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 21083 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21084 | 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] | 21085 | ;; |
| 21086 | *) |
| 21087 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 21088 | ;; |
| 21089 | esac |
| 21090 | done |
| 21091 | |
| 21092 | case $lt_echo in |
| 21093 | *'\$0 --fallback-echo"') |
| 21094 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 21095 | ;; |
| 21096 | esac |
| 21097 | |
| 21098 | cfgfile="$ofile" |
| 21099 | |
| 21100 | cat <<__EOF__ >> "$cfgfile" |
| 21101 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 21102 | |
| 21103 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 21104 | |
| 21105 | # Shell to use when invoking shell scripts. |
| 21106 | SHELL=$lt_SHELL |
| 21107 | |
| 21108 | # Whether or not to build shared libraries. |
| 21109 | build_libtool_libs=$enable_shared |
| 21110 | |
| 21111 | # Whether or not to build static libraries. |
| 21112 | build_old_libs=$enable_static |
| 21113 | |
| 21114 | # Whether or not to add -lc for building shared libraries. |
| 21115 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21116 | |
| 21117 | # Whether or not to disallow shared libs when runtime libs are static |
| 21118 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21119 | |
| 21120 | # Whether or not to optimize for fast installation. |
| 21121 | fast_install=$enable_fast_install |
| 21122 | |
| 21123 | # The host system. |
| 21124 | host_alias=$host_alias |
| 21125 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21126 | host_os=$host_os |
| 21127 | |
| 21128 | # The build system. |
| 21129 | build_alias=$build_alias |
| 21130 | build=$build |
| 21131 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21132 | |
| 21133 | # An echo program that does not interpret backslashes. |
| 21134 | echo=$lt_echo |
| 21135 | |
| 21136 | # The archiver. |
| 21137 | AR=$lt_AR |
| 21138 | AR_FLAGS=$lt_AR_FLAGS |
| 21139 | |
| 21140 | # A C compiler. |
| 21141 | LTCC=$lt_LTCC |
| 21142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21143 | # LTCC compiler flags. |
| 21144 | LTCFLAGS=$lt_LTCFLAGS |
| 21145 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21146 | # A language-specific compiler. |
| 21147 | CC=$lt_compiler_CXX |
| 21148 | |
| 21149 | # Is the compiler the GNU C compiler? |
| 21150 | with_gcc=$GCC_CXX |
| 21151 | |
| 21152 | # An ERE matcher. |
| 21153 | EGREP=$lt_EGREP |
| 21154 | |
| 21155 | # The linker used to build libraries. |
| 21156 | LD=$lt_LD_CXX |
| 21157 | |
| 21158 | # Whether we need hard or soft links. |
| 21159 | LN_S=$lt_LN_S |
| 21160 | |
| 21161 | # A BSD-compatible nm program. |
| 21162 | NM=$lt_NM |
| 21163 | |
| 21164 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21165 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21166 | |
| 21167 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21168 | MAGIC_CMD=$MAGIC_CMD |
| 21169 | |
| 21170 | # Used on cygwin: DLL creation program. |
| 21171 | DLLTOOL="$DLLTOOL" |
| 21172 | |
| 21173 | # Used on cygwin: object dumper. |
| 21174 | OBJDUMP="$OBJDUMP" |
| 21175 | |
| 21176 | # Used on cygwin: assembler. |
| 21177 | AS="$AS" |
| 21178 | |
| 21179 | # The name of the directory that contains temporary libtool files. |
| 21180 | objdir=$objdir |
| 21181 | |
| 21182 | # How to create reloadable object files. |
| 21183 | reload_flag=$lt_reload_flag |
| 21184 | reload_cmds=$lt_reload_cmds |
| 21185 | |
| 21186 | # How to pass a linker flag through the compiler. |
| 21187 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21188 | |
| 21189 | # Object file suffix (normally "o"). |
| 21190 | objext="$ac_objext" |
| 21191 | |
| 21192 | # Old archive suffix (normally "a"). |
| 21193 | libext="$libext" |
| 21194 | |
| 21195 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21196 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21197 | |
| 21198 | # Executable file suffix (normally ""). |
| 21199 | exeext="$exeext" |
| 21200 | |
| 21201 | # Additional compiler flags for building library objects. |
| 21202 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21203 | pic_mode=$pic_mode |
| 21204 | |
| 21205 | # What is the maximum length of a command? |
| 21206 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21207 | |
| 21208 | # Does compiler simultaneously support -c and -o options? |
| 21209 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21211 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21212 | need_locks=$lt_need_locks |
| 21213 | |
| 21214 | # Do we need the lib prefix for modules? |
| 21215 | need_lib_prefix=$need_lib_prefix |
| 21216 | |
| 21217 | # Do we need a version for libraries? |
| 21218 | need_version=$need_version |
| 21219 | |
| 21220 | # Whether dlopen is supported. |
| 21221 | dlopen_support=$enable_dlopen |
| 21222 | |
| 21223 | # Whether dlopen of programs is supported. |
| 21224 | dlopen_self=$enable_dlopen_self |
| 21225 | |
| 21226 | # Whether dlopen of statically linked programs is supported. |
| 21227 | dlopen_self_static=$enable_dlopen_self_static |
| 21228 | |
| 21229 | # Compiler flag to prevent dynamic linking. |
| 21230 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21231 | |
| 21232 | # Compiler flag to turn off builtin functions. |
| 21233 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21234 | |
| 21235 | # Compiler flag to allow reflexive dlopens. |
| 21236 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21237 | |
| 21238 | # Compiler flag to generate shared objects directly from archives. |
| 21239 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21240 | |
| 21241 | # Compiler flag to generate thread-safe objects. |
| 21242 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 21243 | |
| 21244 | # Library versioning type. |
| 21245 | version_type=$version_type |
| 21246 | |
| 21247 | # Format of library name prefix. |
| 21248 | libname_spec=$lt_libname_spec |
| 21249 | |
| 21250 | # List of archive names. First name is the real one, the rest are links. |
| 21251 | # The last name is the one that the linker finds with -lNAME. |
| 21252 | library_names_spec=$lt_library_names_spec |
| 21253 | |
| 21254 | # The coded name of the library, if different from the real name. |
| 21255 | soname_spec=$lt_soname_spec |
| 21256 | |
| 21257 | # Commands used to build and install an old-style archive. |
| 21258 | RANLIB=$lt_RANLIB |
| 21259 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21260 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21261 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21262 | |
| 21263 | # Create an old-style archive from a shared archive. |
| 21264 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21265 | |
| 21266 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21267 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21268 | |
| 21269 | # Commands used to build and install a shared archive. |
| 21270 | archive_cmds=$lt_archive_cmds_CXX |
| 21271 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21272 | postinstall_cmds=$lt_postinstall_cmds |
| 21273 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21274 | |
| 21275 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21276 | module_cmds=$lt_module_cmds_CXX |
| 21277 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21278 | |
| 21279 | # Commands to strip libraries. |
| 21280 | old_striplib=$lt_old_striplib |
| 21281 | striplib=$lt_striplib |
| 21282 | |
| 21283 | # Dependencies to place before the objects being linked to create a |
| 21284 | # shared library. |
| 21285 | predep_objects=$lt_predep_objects_CXX |
| 21286 | |
| 21287 | # Dependencies to place after the objects being linked to create a |
| 21288 | # shared library. |
| 21289 | postdep_objects=$lt_postdep_objects_CXX |
| 21290 | |
| 21291 | # Dependencies to place before the objects being linked to create a |
| 21292 | # shared library. |
| 21293 | predeps=$lt_predeps_CXX |
| 21294 | |
| 21295 | # Dependencies to place after the objects being linked to create a |
| 21296 | # shared library. |
| 21297 | postdeps=$lt_postdeps_CXX |
| 21298 | |
| 21299 | # The library search path used internally by the compiler when linking |
| 21300 | # a shared library. |
| 21301 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21302 | |
| 21303 | # Method to check whether dependent libraries are shared objects. |
| 21304 | deplibs_check_method=$lt_deplibs_check_method |
| 21305 | |
| 21306 | # Command to use when deplibs_check_method == file_magic. |
| 21307 | file_magic_cmd=$lt_file_magic_cmd |
| 21308 | |
| 21309 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21310 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21311 | |
| 21312 | # Flag that forces no undefined symbols. |
| 21313 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21314 | |
| 21315 | # Commands used to finish a libtool library installation in a directory. |
| 21316 | finish_cmds=$lt_finish_cmds |
| 21317 | |
| 21318 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21319 | finish_eval=$lt_finish_eval |
| 21320 | |
| 21321 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21322 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21323 | |
| 21324 | # Transform the output of nm in a proper C declaration |
| 21325 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21326 | |
| 21327 | # Transform the output of nm in a C name address pair |
| 21328 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21329 | |
| 21330 | # This is the shared library runtime path variable. |
| 21331 | runpath_var=$runpath_var |
| 21332 | |
| 21333 | # This is the shared library path variable. |
| 21334 | shlibpath_var=$shlibpath_var |
| 21335 | |
| 21336 | # Is shlibpath searched before the hard-coded library search path? |
| 21337 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21338 | |
| 21339 | # How to hardcode a shared library path into an executable. |
| 21340 | hardcode_action=$hardcode_action_CXX |
| 21341 | |
| 21342 | # Whether we should hardcode library paths into libraries. |
| 21343 | hardcode_into_libs=$hardcode_into_libs |
| 21344 | |
| 21345 | # Flag to hardcode \$libdir into a binary during linking. |
| 21346 | # This must work even if \$libdir does not exist. |
| 21347 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21348 | |
| 21349 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21350 | # a binary during linking. This must work even if \$libdir does |
| 21351 | # not exist. |
| 21352 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21353 | |
| 21354 | # Whether we need a single -rpath flag with a separated argument. |
| 21355 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21356 | |
| 21357 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21358 | # resulting binary. |
| 21359 | hardcode_direct=$hardcode_direct_CXX |
| 21360 | |
| 21361 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21362 | # resulting binary. |
| 21363 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21364 | |
| 21365 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21366 | # the resulting binary. |
| 21367 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21368 | |
| 21369 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21370 | # and all subsequent libraries and executables linked against it. |
| 21371 | hardcode_automatic=$hardcode_automatic_CXX |
| 21372 | |
| 21373 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21374 | # restored at relink time. |
| 21375 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21376 | |
| 21377 | # Whether libtool must link a program against all its dependency libraries. |
| 21378 | link_all_deplibs=$link_all_deplibs_CXX |
| 21379 | |
| 21380 | # Compile-time system search path for libraries |
| 21381 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21382 | |
| 21383 | # Run-time system search path for libraries |
| 21384 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21385 | |
| 21386 | # Fix the shell variable \$srcfile for the compiler. |
| 21387 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21388 | |
| 21389 | # Set to yes if exported symbols are required. |
| 21390 | always_export_symbols=$always_export_symbols_CXX |
| 21391 | |
| 21392 | # The commands to list exported symbols. |
| 21393 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21394 | |
| 21395 | # The commands to extract the exported symbol list from a shared archive. |
| 21396 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21397 | |
| 21398 | # Symbols that should not be listed in the preloaded symbols. |
| 21399 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21400 | |
| 21401 | # Symbols that must always be exported. |
| 21402 | include_expsyms=$lt_include_expsyms_CXX |
| 21403 | |
| 21404 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21405 | |
| 21406 | __EOF__ |
| 21407 | |
| 21408 | |
| 21409 | else |
| 21410 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21411 | # `config.status --recheck' to rerun these tests and create the |
| 21412 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21413 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21414 | if test -f "$ltmain_in"; then |
| 21415 | test -f Makefile && make "$ltmain" |
| 21416 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21417 | fi |
| 21418 | |
| 21419 | |
| 21420 | ac_ext=c |
| 21421 | ac_cpp='$CPP $CPPFLAGS' |
| 21422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21425 | |
| 21426 | CC=$lt_save_CC |
| 21427 | LDCXX=$LD |
| 21428 | LD=$lt_save_LD |
| 21429 | GCC=$lt_save_GCC |
| 21430 | with_gnu_ldcxx=$with_gnu_ld |
| 21431 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21432 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21433 | lt_cv_path_LD=$lt_save_path_LD |
| 21434 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21435 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21436 | |
| 21437 | else |
| 21438 | tagname="" |
| 21439 | fi |
| 21440 | ;; |
| 21441 | |
| 21442 | F77) |
| 21443 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21444 | |
| 21445 | ac_ext=f |
| 21446 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21447 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21448 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21449 | |
| 21450 | |
| 21451 | archive_cmds_need_lc_F77=no |
| 21452 | allow_undefined_flag_F77= |
| 21453 | always_export_symbols_F77=no |
| 21454 | archive_expsym_cmds_F77= |
| 21455 | export_dynamic_flag_spec_F77= |
| 21456 | hardcode_direct_F77=no |
| 21457 | hardcode_libdir_flag_spec_F77= |
| 21458 | hardcode_libdir_flag_spec_ld_F77= |
| 21459 | hardcode_libdir_separator_F77= |
| 21460 | hardcode_minus_L_F77=no |
| 21461 | hardcode_automatic_F77=no |
| 21462 | module_cmds_F77= |
| 21463 | module_expsym_cmds_F77= |
| 21464 | link_all_deplibs_F77=unknown |
| 21465 | old_archive_cmds_F77=$old_archive_cmds |
| 21466 | no_undefined_flag_F77= |
| 21467 | whole_archive_flag_spec_F77= |
| 21468 | enable_shared_with_static_runtimes_F77=no |
| 21469 | |
| 21470 | # Source file extension for f77 test sources. |
| 21471 | ac_ext=f |
| 21472 | |
| 21473 | # Object file extension for compiled f77 test sources. |
| 21474 | objext=o |
| 21475 | objext_F77=$objext |
| 21476 | |
| 21477 | # Code to be used in simple compile tests |
| 21478 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21479 | |
| 21480 | # Code to be used in simple link tests |
| 21481 | lt_simple_link_test_code=" program t\n end\n" |
| 21482 | |
| 21483 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21484 | |
| 21485 | # If no C compiler was specified, use CC. |
| 21486 | LTCC=${LTCC-"$CC"} |
| 21487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21488 | # If no C compiler flags were specified, use CFLAGS. |
| 21489 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21490 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21491 | # Allow CC to be a program name with arguments. |
| 21492 | compiler=$CC |
| 21493 | |
| 21494 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21495 | # save warnings/boilerplate of simple test code |
| 21496 | ac_outfile=conftest.$ac_objext |
| 21497 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21498 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21499 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21500 | $rm conftest* |
| 21501 | |
| 21502 | ac_outfile=conftest.$ac_objext |
| 21503 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21504 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21505 | _lt_linker_boilerplate=`cat conftest.err` |
| 21506 | $rm conftest* |
| 21507 | |
| 21508 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21509 | # Allow CC to be a program name with arguments. |
| 21510 | lt_save_CC="$CC" |
| 21511 | CC=${F77-"f77"} |
| 21512 | compiler=$CC |
| 21513 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21514 | for cc_temp in $compiler""; do |
| 21515 | case $cc_temp in |
| 21516 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21517 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21518 | \-*) ;; |
| 21519 | *) break;; |
| 21520 | esac |
| 21521 | done |
| 21522 | 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] | 21523 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21525 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21526 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21527 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21528 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21529 | |
| 21530 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21531 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21532 | test "$can_build_shared" = "no" && enable_shared=no |
| 21533 | |
| 21534 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21535 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21536 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21537 | aix3*) |
| 21538 | test "$enable_shared" = yes && enable_static=no |
| 21539 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21540 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21541 | postinstall_cmds='$RANLIB $lib' |
| 21542 | fi |
| 21543 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21544 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21545 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21546 | test "$enable_shared" = yes && enable_static=no |
| 21547 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21548 | ;; |
| 21549 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21550 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21551 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21553 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21554 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21555 | # Make sure either enable_shared or enable_static is yes. |
| 21556 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21557 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21558 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21559 | |
| 21560 | GCC_F77="$G77" |
| 21561 | LD_F77="$LD" |
| 21562 | |
| 21563 | lt_prog_compiler_wl_F77= |
| 21564 | lt_prog_compiler_pic_F77= |
| 21565 | lt_prog_compiler_static_F77= |
| 21566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21567 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21568 | 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] | 21569 | |
| 21570 | if test "$GCC" = yes; then |
| 21571 | lt_prog_compiler_wl_F77='-Wl,' |
| 21572 | lt_prog_compiler_static_F77='-static' |
| 21573 | |
| 21574 | case $host_os in |
| 21575 | aix*) |
| 21576 | # All AIX code is PIC. |
| 21577 | if test "$host_cpu" = ia64; then |
| 21578 | # AIX 5 now supports IA64 processor |
| 21579 | lt_prog_compiler_static_F77='-Bstatic' |
| 21580 | fi |
| 21581 | ;; |
| 21582 | |
| 21583 | amigaos*) |
| 21584 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21585 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21586 | # like `-m68040'. |
| 21587 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21588 | ;; |
| 21589 | |
| 21590 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21591 | # PIC is the default for these OSes. |
| 21592 | ;; |
| 21593 | |
| 21594 | mingw* | pw32* | os2*) |
| 21595 | # This hack is so that the source file can tell whether it is being |
| 21596 | # built for inclusion in a dll (and should export symbols for example). |
| 21597 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21598 | ;; |
| 21599 | |
| 21600 | darwin* | rhapsody*) |
| 21601 | # PIC is the default on this platform |
| 21602 | # Common symbols not allowed in MH_DYLIB files |
| 21603 | lt_prog_compiler_pic_F77='-fno-common' |
| 21604 | ;; |
| 21605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21606 | interix3*) |
| 21607 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21608 | # Instead, we relocate shared libraries at runtime. |
| 21609 | ;; |
| 21610 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21611 | msdosdjgpp*) |
| 21612 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21613 | # on systems that don't support them. |
| 21614 | lt_prog_compiler_can_build_shared_F77=no |
| 21615 | enable_shared=no |
| 21616 | ;; |
| 21617 | |
| 21618 | sysv4*MP*) |
| 21619 | if test -d /usr/nec; then |
| 21620 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21621 | fi |
| 21622 | ;; |
| 21623 | |
| 21624 | hpux*) |
| 21625 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21626 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21627 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21628 | hppa*64*|ia64*) |
| 21629 | # +Z the default |
| 21630 | ;; |
| 21631 | *) |
| 21632 | lt_prog_compiler_pic_F77='-fPIC' |
| 21633 | ;; |
| 21634 | esac |
| 21635 | ;; |
| 21636 | |
| 21637 | *) |
| 21638 | lt_prog_compiler_pic_F77='-fPIC' |
| 21639 | ;; |
| 21640 | esac |
| 21641 | else |
| 21642 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21643 | case $host_os in |
| 21644 | aix*) |
| 21645 | lt_prog_compiler_wl_F77='-Wl,' |
| 21646 | if test "$host_cpu" = ia64; then |
| 21647 | # AIX 5 now supports IA64 processor |
| 21648 | lt_prog_compiler_static_F77='-Bstatic' |
| 21649 | else |
| 21650 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21651 | fi |
| 21652 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21653 | darwin*) |
| 21654 | # PIC is the default on this platform |
| 21655 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21656 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21657 | xlc*) |
| 21658 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21659 | lt_prog_compiler_wl_F77='-Wl,' |
| 21660 | ;; |
| 21661 | esac |
| 21662 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21663 | |
| 21664 | mingw* | pw32* | os2*) |
| 21665 | # This hack is so that the source file can tell whether it is being |
| 21666 | # built for inclusion in a dll (and should export symbols for example). |
| 21667 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21668 | ;; |
| 21669 | |
| 21670 | hpux9* | hpux10* | hpux11*) |
| 21671 | lt_prog_compiler_wl_F77='-Wl,' |
| 21672 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21673 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21674 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21675 | hppa*64*|ia64*) |
| 21676 | # +Z the default |
| 21677 | ;; |
| 21678 | *) |
| 21679 | lt_prog_compiler_pic_F77='+Z' |
| 21680 | ;; |
| 21681 | esac |
| 21682 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21683 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21684 | ;; |
| 21685 | |
| 21686 | irix5* | irix6* | nonstopux*) |
| 21687 | lt_prog_compiler_wl_F77='-Wl,' |
| 21688 | # PIC (with -KPIC) is the default. |
| 21689 | lt_prog_compiler_static_F77='-non_shared' |
| 21690 | ;; |
| 21691 | |
| 21692 | newsos6) |
| 21693 | lt_prog_compiler_pic_F77='-KPIC' |
| 21694 | lt_prog_compiler_static_F77='-Bstatic' |
| 21695 | ;; |
| 21696 | |
| 21697 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21698 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21699 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21700 | lt_prog_compiler_wl_F77='-Wl,' |
| 21701 | lt_prog_compiler_pic_F77='-KPIC' |
| 21702 | lt_prog_compiler_static_F77='-static' |
| 21703 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21704 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21705 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21706 | # which looks to be a dead project) |
| 21707 | lt_prog_compiler_wl_F77='-Wl,' |
| 21708 | lt_prog_compiler_pic_F77='-fpic' |
| 21709 | lt_prog_compiler_static_F77='-Bstatic' |
| 21710 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21711 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21712 | lt_prog_compiler_wl_F77='-Wl,' |
| 21713 | # All Alpha code is PIC. |
| 21714 | lt_prog_compiler_static_F77='-non_shared' |
| 21715 | ;; |
| 21716 | esac |
| 21717 | ;; |
| 21718 | |
| 21719 | osf3* | osf4* | osf5*) |
| 21720 | lt_prog_compiler_wl_F77='-Wl,' |
| 21721 | # All OSF/1 code is PIC. |
| 21722 | lt_prog_compiler_static_F77='-non_shared' |
| 21723 | ;; |
| 21724 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21725 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21726 | lt_prog_compiler_pic_F77='-KPIC' |
| 21727 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21728 | case $cc_basename in |
| 21729 | f77* | f90* | f95*) |
| 21730 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21731 | *) |
| 21732 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21733 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21734 | ;; |
| 21735 | |
| 21736 | sunos4*) |
| 21737 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21738 | lt_prog_compiler_pic_F77='-PIC' |
| 21739 | lt_prog_compiler_static_F77='-Bstatic' |
| 21740 | ;; |
| 21741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21742 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21743 | lt_prog_compiler_wl_F77='-Wl,' |
| 21744 | lt_prog_compiler_pic_F77='-KPIC' |
| 21745 | lt_prog_compiler_static_F77='-Bstatic' |
| 21746 | ;; |
| 21747 | |
| 21748 | sysv4*MP*) |
| 21749 | if test -d /usr/nec ;then |
| 21750 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21751 | lt_prog_compiler_static_F77='-Bstatic' |
| 21752 | fi |
| 21753 | ;; |
| 21754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21755 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21756 | lt_prog_compiler_wl_F77='-Wl,' |
| 21757 | lt_prog_compiler_pic_F77='-KPIC' |
| 21758 | lt_prog_compiler_static_F77='-Bstatic' |
| 21759 | ;; |
| 21760 | |
| 21761 | unicos*) |
| 21762 | lt_prog_compiler_wl_F77='-Wl,' |
| 21763 | lt_prog_compiler_can_build_shared_F77=no |
| 21764 | ;; |
| 21765 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21766 | uts4*) |
| 21767 | lt_prog_compiler_pic_F77='-pic' |
| 21768 | lt_prog_compiler_static_F77='-Bstatic' |
| 21769 | ;; |
| 21770 | |
| 21771 | *) |
| 21772 | lt_prog_compiler_can_build_shared_F77=no |
| 21773 | ;; |
| 21774 | esac |
| 21775 | fi |
| 21776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21777 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21778 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21779 | |
| 21780 | # |
| 21781 | # Check to make sure the PIC flag actually works. |
| 21782 | # |
| 21783 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21785 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21786 | 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] | 21787 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21789 | else |
| 21790 | lt_prog_compiler_pic_works_F77=no |
| 21791 | ac_outfile=conftest.$ac_objext |
| 21792 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21793 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21794 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21795 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21796 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21797 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21798 | # The option is referenced via a variable to avoid confusing sed. |
| 21799 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21800 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21801 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21802 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 21803 | (eval echo "\"\$as_me:21803: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21804 | (eval "$lt_compile" 2>conftest.err) |
| 21805 | ac_status=$? |
| 21806 | cat conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 21807 | echo "$as_me:21807: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21808 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21809 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21810 | # So say no if there are warnings other than the usual output. |
| 21811 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21812 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21813 | 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] | 21814 | lt_prog_compiler_pic_works_F77=yes |
| 21815 | fi |
| 21816 | fi |
| 21817 | $rm conftest* |
| 21818 | |
| 21819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21820 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21821 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21822 | |
| 21823 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21824 | case $lt_prog_compiler_pic_F77 in |
| 21825 | "" | " "*) ;; |
| 21826 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21827 | esac |
| 21828 | else |
| 21829 | lt_prog_compiler_pic_F77= |
| 21830 | lt_prog_compiler_can_build_shared_F77=no |
| 21831 | fi |
| 21832 | |
| 21833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21834 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21835 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21836 | *djgpp*) |
| 21837 | lt_prog_compiler_pic_F77= |
| 21838 | ;; |
| 21839 | *) |
| 21840 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21841 | ;; |
| 21842 | esac |
| 21843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21844 | # |
| 21845 | # Check to make sure the static flag actually works. |
| 21846 | # |
| 21847 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21848 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21849 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21850 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21852 | else |
| 21853 | lt_prog_compiler_static_works_F77=no |
| 21854 | save_LDFLAGS="$LDFLAGS" |
| 21855 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21856 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21857 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21858 | # The linker can only warn and ignore the option if not recognized |
| 21859 | # So say no if there are warnings |
| 21860 | if test -s conftest.err; then |
| 21861 | # Append any errors to the config.log. |
| 21862 | cat conftest.err 1>&5 |
| 21863 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21864 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21865 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21866 | lt_prog_compiler_static_works_F77=yes |
| 21867 | fi |
| 21868 | else |
| 21869 | lt_prog_compiler_static_works_F77=yes |
| 21870 | fi |
| 21871 | fi |
| 21872 | $rm conftest* |
| 21873 | LDFLAGS="$save_LDFLAGS" |
| 21874 | |
| 21875 | fi |
| 21876 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21877 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21878 | |
| 21879 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21880 | : |
| 21881 | else |
| 21882 | lt_prog_compiler_static_F77= |
| 21883 | fi |
| 21884 | |
| 21885 | |
| 21886 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21887 | 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] | 21888 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21890 | else |
| 21891 | lt_cv_prog_compiler_c_o_F77=no |
| 21892 | $rm -r conftest 2>/dev/null |
| 21893 | mkdir conftest |
| 21894 | cd conftest |
| 21895 | mkdir out |
| 21896 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21897 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21898 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21899 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21900 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21901 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21902 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21903 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21904 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21905 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21906 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 21907 | (eval echo "\"\$as_me:21907: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21908 | (eval "$lt_compile" 2>out/conftest.err) |
| 21909 | ac_status=$? |
| 21910 | cat out/conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 21911 | echo "$as_me:21911: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21912 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21913 | then |
| 21914 | # The compiler can only warn and ignore the option if not recognized |
| 21915 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21916 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21917 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21918 | 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] | 21919 | lt_cv_prog_compiler_c_o_F77=yes |
| 21920 | fi |
| 21921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21922 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21923 | $rm conftest* |
| 21924 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21925 | # template instantiation |
| 21926 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21927 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21928 | cd .. |
| 21929 | rmdir conftest |
| 21930 | $rm conftest* |
| 21931 | |
| 21932 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21933 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21934 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21935 | |
| 21936 | |
| 21937 | hard_links="nottested" |
| 21938 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21939 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21940 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21941 | 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] | 21942 | hard_links=yes |
| 21943 | $rm conftest* |
| 21944 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21945 | touch conftest.a |
| 21946 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21947 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21948 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21949 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21950 | if test "$hard_links" = no; then |
| 21951 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21952 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21953 | need_locks=warn |
| 21954 | fi |
| 21955 | else |
| 21956 | need_locks=no |
| 21957 | fi |
| 21958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21959 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21960 | 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] | 21961 | |
| 21962 | runpath_var= |
| 21963 | allow_undefined_flag_F77= |
| 21964 | enable_shared_with_static_runtimes_F77=no |
| 21965 | archive_cmds_F77= |
| 21966 | archive_expsym_cmds_F77= |
| 21967 | old_archive_From_new_cmds_F77= |
| 21968 | old_archive_from_expsyms_cmds_F77= |
| 21969 | export_dynamic_flag_spec_F77= |
| 21970 | whole_archive_flag_spec_F77= |
| 21971 | thread_safe_flag_spec_F77= |
| 21972 | hardcode_libdir_flag_spec_F77= |
| 21973 | hardcode_libdir_flag_spec_ld_F77= |
| 21974 | hardcode_libdir_separator_F77= |
| 21975 | hardcode_direct_F77=no |
| 21976 | hardcode_minus_L_F77=no |
| 21977 | hardcode_shlibpath_var_F77=unsupported |
| 21978 | link_all_deplibs_F77=unknown |
| 21979 | hardcode_automatic_F77=no |
| 21980 | module_cmds_F77= |
| 21981 | module_expsym_cmds_F77= |
| 21982 | always_export_symbols_F77=no |
| 21983 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21984 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21985 | # included in the symbol list |
| 21986 | include_expsyms_F77= |
| 21987 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21988 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21989 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21990 | # as well as any symbol that contains `d'. |
| 21991 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21992 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21993 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21994 | # the symbol is explicitly referenced. Since portable code cannot |
| 21995 | # rely on this symbol name, it's probably fine to never include it in |
| 21996 | # preloaded symbol tables. |
| 21997 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21998 | # Just being paranoid about ensuring that cc_basename is set. |
| 21999 | for cc_temp in $compiler""; do |
| 22000 | case $cc_temp in |
| 22001 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 22002 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 22003 | \-*) ;; |
| 22004 | *) break;; |
| 22005 | esac |
| 22006 | done |
| 22007 | 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] | 22008 | |
| 22009 | case $host_os in |
| 22010 | cygwin* | mingw* | pw32*) |
| 22011 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 22012 | # When not using gcc, we currently assume that we are using |
| 22013 | # Microsoft Visual C++. |
| 22014 | if test "$GCC" != yes; then |
| 22015 | with_gnu_ld=no |
| 22016 | fi |
| 22017 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22018 | interix*) |
| 22019 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 22020 | with_gnu_ld=yes |
| 22021 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22022 | openbsd*) |
| 22023 | with_gnu_ld=no |
| 22024 | ;; |
| 22025 | esac |
| 22026 | |
| 22027 | ld_shlibs_F77=yes |
| 22028 | if test "$with_gnu_ld" = yes; then |
| 22029 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 22030 | wlarc='${wl}' |
| 22031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22032 | # Set some defaults for GNU ld with shared library support. These |
| 22033 | # are reset later if shared libraries are not supported. Putting them |
| 22034 | # here allows them to be overridden if necessary. |
| 22035 | runpath_var=LD_RUN_PATH |
| 22036 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 22037 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 22038 | # ancient GNU ld didn't support --whole-archive et. al. |
| 22039 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 22040 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 22041 | else |
| 22042 | whole_archive_flag_spec_F77= |
| 22043 | fi |
| 22044 | supports_anon_versioning=no |
| 22045 | case `$LD -v 2>/dev/null` in |
| 22046 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 22047 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 22048 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 22049 | *\ 2.11.*) ;; # other 2.11 versions |
| 22050 | *) supports_anon_versioning=yes ;; |
| 22051 | esac |
| 22052 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22053 | # See if GNU ld supports shared libraries. |
| 22054 | case $host_os in |
| 22055 | aix3* | aix4* | aix5*) |
| 22056 | # On AIX/PPC, the GNU linker is very broken |
| 22057 | if test "$host_cpu" != ia64; then |
| 22058 | ld_shlibs_F77=no |
| 22059 | cat <<EOF 1>&2 |
| 22060 | |
| 22061 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 22062 | *** to be unable to reliably create shared libraries on AIX. |
| 22063 | *** Therefore, libtool is disabling shared libraries support. If you |
| 22064 | *** really care for shared libraries, you may want to modify your PATH |
| 22065 | *** so that a non-GNU linker is found, and then restart. |
| 22066 | |
| 22067 | EOF |
| 22068 | fi |
| 22069 | ;; |
| 22070 | |
| 22071 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22072 | 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] | 22073 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22074 | hardcode_minus_L_F77=yes |
| 22075 | |
| 22076 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 22077 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 22078 | # to version 4, is to share data among multiple programs linked |
| 22079 | # with the same dynamic library. Since this doesn't match the |
| 22080 | # behavior of shared libraries on other platforms, we can't use |
| 22081 | # them. |
| 22082 | ld_shlibs_F77=no |
| 22083 | ;; |
| 22084 | |
| 22085 | beos*) |
| 22086 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22087 | allow_undefined_flag_F77=unsupported |
| 22088 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22089 | # support --undefined. This deserves some investigation. FIXME |
| 22090 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22091 | else |
| 22092 | ld_shlibs_F77=no |
| 22093 | fi |
| 22094 | ;; |
| 22095 | |
| 22096 | cygwin* | mingw* | pw32*) |
| 22097 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 22098 | # as there is no search path for DLLs. |
| 22099 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22100 | allow_undefined_flag_F77=unsupported |
| 22101 | always_export_symbols_F77=no |
| 22102 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22103 | 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] | 22104 | |
| 22105 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22106 | 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] | 22107 | # If the export-symbols file already is a .def file (1st line |
| 22108 | # is EXPORTS), use it as is; otherwise, prepend... |
| 22109 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 22110 | cp $export_symbols $output_objdir/$soname.def; |
| 22111 | else |
| 22112 | echo EXPORTS > $output_objdir/$soname.def; |
| 22113 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22114 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22115 | $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] | 22116 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22117 | ld_shlibs_F77=no |
| 22118 | fi |
| 22119 | ;; |
| 22120 | |
| 22121 | interix3*) |
| 22122 | hardcode_direct_F77=no |
| 22123 | hardcode_shlibpath_var_F77=no |
| 22124 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22125 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22126 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 22127 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 22128 | # default) and relocated if they conflict, which is a slow very memory |
| 22129 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 22130 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 22131 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 22132 | 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' |
| 22133 | 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' |
| 22134 | ;; |
| 22135 | |
| 22136 | linux*) |
| 22137 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22138 | tmp_addflag= |
| 22139 | case $cc_basename,$host_cpu in |
| 22140 | pgcc*) # Portland Group C compiler |
| 22141 | 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' |
| 22142 | tmp_addflag=' $pic_flag' |
| 22143 | ;; |
| 22144 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 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 -Mnomain' ;; |
| 22147 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 22148 | tmp_addflag=' -i_dynamic' ;; |
| 22149 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 22150 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 22151 | ifc* | ifort*) # Intel Fortran compiler |
| 22152 | tmp_addflag=' -nofor_main' ;; |
| 22153 | esac |
| 22154 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22155 | |
| 22156 | if test $supports_anon_versioning = yes; then |
| 22157 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22158 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22159 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 22160 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22161 | fi |
| 22162 | else |
| 22163 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22164 | fi |
| 22165 | ;; |
| 22166 | |
| 22167 | netbsd*) |
| 22168 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22169 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22170 | wlarc= |
| 22171 | else |
| 22172 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22173 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22174 | fi |
| 22175 | ;; |
| 22176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22177 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22178 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22179 | ld_shlibs_F77=no |
| 22180 | cat <<EOF 1>&2 |
| 22181 | |
| 22182 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22183 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22184 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22185 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22186 | *** your PATH or compiler configuration so that the native linker is |
| 22187 | *** used, and then restart. |
| 22188 | |
| 22189 | EOF |
| 22190 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22191 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22192 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22193 | else |
| 22194 | ld_shlibs_F77=no |
| 22195 | fi |
| 22196 | ;; |
| 22197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22198 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 22199 | case `$LD -v 2>&1` in |
| 22200 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 22201 | ld_shlibs_F77=no |
| 22202 | cat <<_LT_EOF 1>&2 |
| 22203 | |
| 22204 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 22205 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 22206 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22207 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 22208 | *** your PATH or compiler configuration so that the native linker is |
| 22209 | *** used, and then restart. |
| 22210 | |
| 22211 | _LT_EOF |
| 22212 | ;; |
| 22213 | *) |
| 22214 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22215 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 22216 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 22217 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 22218 | else |
| 22219 | ld_shlibs_F77=no |
| 22220 | fi |
| 22221 | ;; |
| 22222 | esac |
| 22223 | ;; |
| 22224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22225 | sunos4*) |
| 22226 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22227 | wlarc= |
| 22228 | hardcode_direct_F77=yes |
| 22229 | hardcode_shlibpath_var_F77=no |
| 22230 | ;; |
| 22231 | |
| 22232 | *) |
| 22233 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22234 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22235 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22236 | else |
| 22237 | ld_shlibs_F77=no |
| 22238 | fi |
| 22239 | ;; |
| 22240 | esac |
| 22241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22242 | if test "$ld_shlibs_F77" = no; then |
| 22243 | runpath_var= |
| 22244 | hardcode_libdir_flag_spec_F77= |
| 22245 | export_dynamic_flag_spec_F77= |
| 22246 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22247 | fi |
| 22248 | else |
| 22249 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22250 | case $host_os in |
| 22251 | aix3*) |
| 22252 | allow_undefined_flag_F77=unsupported |
| 22253 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22254 | 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] | 22255 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22256 | # are no directories specified by -L. |
| 22257 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22258 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22259 | # Neither direct hardcoding nor static linking is supported with a |
| 22260 | # broken collect2. |
| 22261 | hardcode_direct_F77=unsupported |
| 22262 | fi |
| 22263 | ;; |
| 22264 | |
| 22265 | aix4* | aix5*) |
| 22266 | if test "$host_cpu" = ia64; then |
| 22267 | # On IA64, the linker does run time linking by default, so we don't |
| 22268 | # have to do anything special. |
| 22269 | aix_use_runtimelinking=no |
| 22270 | exp_sym_flag='-Bexport' |
| 22271 | no_entry_flag="" |
| 22272 | else |
| 22273 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22274 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22275 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22276 | 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' |
| 22277 | else |
| 22278 | 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' |
| 22279 | fi |
| 22280 | aix_use_runtimelinking=no |
| 22281 | |
| 22282 | # Test if we are trying to use run time linking or normal |
| 22283 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22284 | # need to do runtime linking. |
| 22285 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22286 | for ld_flag in $LDFLAGS; do |
| 22287 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22288 | aix_use_runtimelinking=yes |
| 22289 | break |
| 22290 | fi |
| 22291 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22292 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22293 | esac |
| 22294 | |
| 22295 | exp_sym_flag='-bexport' |
| 22296 | no_entry_flag='-bnoentry' |
| 22297 | fi |
| 22298 | |
| 22299 | # When large executables or shared objects are built, AIX ld can |
| 22300 | # have problems creating the table of contents. If linking a library |
| 22301 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22302 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22303 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22304 | |
| 22305 | archive_cmds_F77='' |
| 22306 | hardcode_direct_F77=yes |
| 22307 | hardcode_libdir_separator_F77=':' |
| 22308 | link_all_deplibs_F77=yes |
| 22309 | |
| 22310 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22311 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22312 | # We only want to do this on AIX 4.2 and lower, the check |
| 22313 | # below for broken collect2 doesn't work under 4.3+ |
| 22314 | collect2name=`${CC} -print-prog-name=collect2` |
| 22315 | if test -f "$collect2name" && \ |
| 22316 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22317 | then |
| 22318 | # We have reworked collect2 |
| 22319 | hardcode_direct_F77=yes |
| 22320 | else |
| 22321 | # We have old collect2 |
| 22322 | hardcode_direct_F77=unsupported |
| 22323 | # It fails to find uninstalled libraries when the uninstalled |
| 22324 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22325 | # to unsupported forces relinking |
| 22326 | hardcode_minus_L_F77=yes |
| 22327 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22328 | hardcode_libdir_separator_F77= |
| 22329 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22330 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22331 | esac |
| 22332 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22333 | if test "$aix_use_runtimelinking" = yes; then |
| 22334 | shared_flag="$shared_flag "'${wl}-G' |
| 22335 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22336 | else |
| 22337 | # not using gcc |
| 22338 | if test "$host_cpu" = ia64; then |
| 22339 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22340 | # chokes on -Wl,-G. The following line is correct: |
| 22341 | shared_flag='-G' |
| 22342 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22343 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22344 | shared_flag='${wl}-G' |
| 22345 | else |
| 22346 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22347 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22348 | fi |
| 22349 | fi |
| 22350 | |
| 22351 | # It seems that -bexpall does not export symbols beginning with |
| 22352 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22353 | always_export_symbols_F77=yes |
| 22354 | if test "$aix_use_runtimelinking" = yes; then |
| 22355 | # Warning - without using the other runtime loading flags (-brtl), |
| 22356 | # -berok will link without error, but may produce a broken library. |
| 22357 | allow_undefined_flag_F77='-berok' |
| 22358 | # Determine the default libpath from the value encoded in an empty executable. |
| 22359 | cat >conftest.$ac_ext <<_ACEOF |
| 22360 | program main |
| 22361 | |
| 22362 | end |
| 22363 | _ACEOF |
| 22364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22365 | if { (ac_try="$ac_link" |
| 22366 | case "(($ac_try" in |
| 22367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22368 | *) ac_try_echo=$ac_try;; |
| 22369 | esac |
| 22370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22371 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22372 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22374 | rm -f conftest.er1 |
| 22375 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22377 | (exit $ac_status); } && |
| 22378 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22379 | { (case "(($ac_try" in |
| 22380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22381 | *) ac_try_echo=$ac_try;; |
| 22382 | esac |
| 22383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22384 | (eval "$ac_try") 2>&5 |
| 22385 | ac_status=$? |
| 22386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22387 | (exit $ac_status); }; } && |
| 22388 | { ac_try='test -s conftest$ac_exeext' |
| 22389 | { (case "(($ac_try" in |
| 22390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22391 | *) ac_try_echo=$ac_try;; |
| 22392 | esac |
| 22393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22394 | (eval "$ac_try") 2>&5 |
| 22395 | ac_status=$? |
| 22396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22397 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22398 | |
| 22399 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22400 | }'` |
| 22401 | # Check for a 64-bit object if we didn't find anything. |
| 22402 | 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; } |
| 22403 | }'`; fi |
| 22404 | else |
| 22405 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22408 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22409 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22410 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22411 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22412 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22413 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22414 | |
| 22415 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22416 | 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] | 22417 | else |
| 22418 | if test "$host_cpu" = ia64; then |
| 22419 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22420 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22421 | 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] | 22422 | else |
| 22423 | # Determine the default libpath from the value encoded in an empty executable. |
| 22424 | cat >conftest.$ac_ext <<_ACEOF |
| 22425 | program main |
| 22426 | |
| 22427 | end |
| 22428 | _ACEOF |
| 22429 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22430 | if { (ac_try="$ac_link" |
| 22431 | case "(($ac_try" in |
| 22432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22433 | *) ac_try_echo=$ac_try;; |
| 22434 | esac |
| 22435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22436 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22437 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22439 | rm -f conftest.er1 |
| 22440 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22442 | (exit $ac_status); } && |
| 22443 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22444 | { (case "(($ac_try" in |
| 22445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22446 | *) ac_try_echo=$ac_try;; |
| 22447 | esac |
| 22448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22449 | (eval "$ac_try") 2>&5 |
| 22450 | ac_status=$? |
| 22451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22452 | (exit $ac_status); }; } && |
| 22453 | { ac_try='test -s conftest$ac_exeext' |
| 22454 | { (case "(($ac_try" in |
| 22455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22456 | *) ac_try_echo=$ac_try;; |
| 22457 | esac |
| 22458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22459 | (eval "$ac_try") 2>&5 |
| 22460 | ac_status=$? |
| 22461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22462 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22463 | |
| 22464 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22465 | }'` |
| 22466 | # Check for a 64-bit object if we didn't find anything. |
| 22467 | 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; } |
| 22468 | }'`; fi |
| 22469 | else |
| 22470 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22473 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22474 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22475 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22476 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22477 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22478 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22479 | |
| 22480 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22481 | # Warning - without using the other run time loading flags, |
| 22482 | # -berok will link without error, but may produce a broken library. |
| 22483 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22484 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22485 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22486 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22487 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22488 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22489 | 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] | 22490 | fi |
| 22491 | fi |
| 22492 | ;; |
| 22493 | |
| 22494 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22495 | 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] | 22496 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22497 | hardcode_minus_L_F77=yes |
| 22498 | # see comment about different semantics on the GNU ld section |
| 22499 | ld_shlibs_F77=no |
| 22500 | ;; |
| 22501 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22502 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22503 | export_dynamic_flag_spec_F77=-rdynamic |
| 22504 | ;; |
| 22505 | |
| 22506 | cygwin* | mingw* | pw32*) |
| 22507 | # When not using gcc, we currently assume that we are using |
| 22508 | # Microsoft Visual C++. |
| 22509 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22510 | # no search path for DLLs. |
| 22511 | hardcode_libdir_flag_spec_F77=' ' |
| 22512 | allow_undefined_flag_F77=unsupported |
| 22513 | # Tell ltmain to make .lib files, not .a files. |
| 22514 | libext=lib |
| 22515 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22516 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22517 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22518 | 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] | 22519 | # The linker will automatically build a .lib file if we build a DLL. |
| 22520 | old_archive_From_new_cmds_F77='true' |
| 22521 | # FIXME: Should let the user specify the lib program. |
| 22522 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22523 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22524 | enable_shared_with_static_runtimes_F77=yes |
| 22525 | ;; |
| 22526 | |
| 22527 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22528 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22529 | rhapsody* | darwin1.[012]) |
| 22530 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22531 | ;; |
| 22532 | *) # Darwin 1.3 on |
| 22533 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22534 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22535 | else |
| 22536 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22537 | 10.[012]) |
| 22538 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22539 | ;; |
| 22540 | 10.*) |
| 22541 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22542 | ;; |
| 22543 | esac |
| 22544 | fi |
| 22545 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22546 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22547 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22548 | hardcode_direct_F77=no |
| 22549 | hardcode_automatic_F77=yes |
| 22550 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22551 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22552 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22553 | if test "$GCC" = yes ; then |
| 22554 | output_verbose_link_cmd='echo' |
| 22555 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22556 | 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] | 22557 | # 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] | 22558 | 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}' |
| 22559 | 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] | 22560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22561 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22562 | xlc*) |
| 22563 | output_verbose_link_cmd='echo' |
| 22564 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22565 | 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] | 22566 | # 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] | 22567 | 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}' |
| 22568 | 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] | 22569 | ;; |
| 22570 | *) |
| 22571 | ld_shlibs_F77=no |
| 22572 | ;; |
| 22573 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22574 | fi |
| 22575 | ;; |
| 22576 | |
| 22577 | dgux*) |
| 22578 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22579 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22580 | hardcode_shlibpath_var_F77=no |
| 22581 | ;; |
| 22582 | |
| 22583 | freebsd1*) |
| 22584 | ld_shlibs_F77=no |
| 22585 | ;; |
| 22586 | |
| 22587 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22588 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22589 | # does not break anything, and helps significantly (at the cost of a little |
| 22590 | # extra space). |
| 22591 | freebsd2.2*) |
| 22592 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22593 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22594 | hardcode_direct_F77=yes |
| 22595 | hardcode_shlibpath_var_F77=no |
| 22596 | ;; |
| 22597 | |
| 22598 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22599 | freebsd2*) |
| 22600 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22601 | hardcode_direct_F77=yes |
| 22602 | hardcode_minus_L_F77=yes |
| 22603 | hardcode_shlibpath_var_F77=no |
| 22604 | ;; |
| 22605 | |
| 22606 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22608 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22609 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22610 | hardcode_direct_F77=yes |
| 22611 | hardcode_shlibpath_var_F77=no |
| 22612 | ;; |
| 22613 | |
| 22614 | hpux9*) |
| 22615 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22616 | 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] | 22617 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22618 | 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] | 22619 | fi |
| 22620 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22621 | hardcode_libdir_separator_F77=: |
| 22622 | hardcode_direct_F77=yes |
| 22623 | |
| 22624 | # hardcode_minus_L: Not really in the search PATH, |
| 22625 | # but as the default location of the library. |
| 22626 | hardcode_minus_L_F77=yes |
| 22627 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22628 | ;; |
| 22629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22630 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22631 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22632 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22633 | else |
| 22634 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22635 | fi |
| 22636 | if test "$with_gnu_ld" = no; then |
| 22637 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22638 | hardcode_libdir_separator_F77=: |
| 22639 | |
| 22640 | hardcode_direct_F77=yes |
| 22641 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22642 | |
| 22643 | # hardcode_minus_L: Not really in the search PATH, |
| 22644 | # but as the default location of the library. |
| 22645 | hardcode_minus_L_F77=yes |
| 22646 | fi |
| 22647 | ;; |
| 22648 | |
| 22649 | hpux11*) |
| 22650 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22651 | case $host_cpu in |
| 22652 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22653 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22654 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22655 | ia64*) |
| 22656 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22657 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22658 | *) |
| 22659 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22660 | ;; |
| 22661 | esac |
| 22662 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22663 | case $host_cpu in |
| 22664 | hppa*64*) |
| 22665 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22666 | ;; |
| 22667 | ia64*) |
| 22668 | 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] | 22669 | ;; |
| 22670 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22671 | 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] | 22672 | ;; |
| 22673 | esac |
| 22674 | fi |
| 22675 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22676 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22677 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22679 | case $host_cpu in |
| 22680 | hppa*64*|ia64*) |
| 22681 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22682 | hardcode_direct_F77=no |
| 22683 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22684 | ;; |
| 22685 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22686 | hardcode_direct_F77=yes |
| 22687 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22688 | |
| 22689 | # hardcode_minus_L: Not really in the search PATH, |
| 22690 | # but as the default location of the library. |
| 22691 | hardcode_minus_L_F77=yes |
| 22692 | ;; |
| 22693 | esac |
| 22694 | fi |
| 22695 | ;; |
| 22696 | |
| 22697 | irix5* | irix6* | nonstopux*) |
| 22698 | if test "$GCC" = yes; then |
| 22699 | 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' |
| 22700 | else |
| 22701 | 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' |
| 22702 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22703 | fi |
| 22704 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22705 | hardcode_libdir_separator_F77=: |
| 22706 | link_all_deplibs_F77=yes |
| 22707 | ;; |
| 22708 | |
| 22709 | netbsd*) |
| 22710 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22711 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22712 | else |
| 22713 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22714 | fi |
| 22715 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22716 | hardcode_direct_F77=yes |
| 22717 | hardcode_shlibpath_var_F77=no |
| 22718 | ;; |
| 22719 | |
| 22720 | newsos6) |
| 22721 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22722 | hardcode_direct_F77=yes |
| 22723 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22724 | hardcode_libdir_separator_F77=: |
| 22725 | hardcode_shlibpath_var_F77=no |
| 22726 | ;; |
| 22727 | |
| 22728 | openbsd*) |
| 22729 | hardcode_direct_F77=yes |
| 22730 | hardcode_shlibpath_var_F77=no |
| 22731 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22732 | 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] | 22733 | 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] | 22734 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22735 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22736 | else |
| 22737 | case $host_os in |
| 22738 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22739 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22740 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22741 | ;; |
| 22742 | *) |
| 22743 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22744 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22745 | ;; |
| 22746 | esac |
| 22747 | fi |
| 22748 | ;; |
| 22749 | |
| 22750 | os2*) |
| 22751 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22752 | hardcode_minus_L_F77=yes |
| 22753 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22754 | 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] | 22755 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22756 | ;; |
| 22757 | |
| 22758 | osf3*) |
| 22759 | if test "$GCC" = yes; then |
| 22760 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22761 | 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' |
| 22762 | else |
| 22763 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22764 | 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' |
| 22765 | fi |
| 22766 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22767 | hardcode_libdir_separator_F77=: |
| 22768 | ;; |
| 22769 | |
| 22770 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22771 | if test "$GCC" = yes; then |
| 22772 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22773 | 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' |
| 22774 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22775 | else |
| 22776 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22777 | 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] | 22778 | 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] | 22779 | $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] | 22780 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22781 | # Both c and cxx compiler support -rpath directly |
| 22782 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22783 | fi |
| 22784 | hardcode_libdir_separator_F77=: |
| 22785 | ;; |
| 22786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22787 | solaris*) |
| 22788 | no_undefined_flag_F77=' -z text' |
| 22789 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22790 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22791 | 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] | 22792 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22793 | $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] | 22794 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22795 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22796 | 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] | 22797 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22798 | $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] | 22799 | fi |
| 22800 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22801 | hardcode_shlibpath_var_F77=no |
| 22802 | case $host_os in |
| 22803 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22804 | *) |
| 22805 | # The compiler driver will combine linker options so we |
| 22806 | # cannot just pass the convience library names through |
| 22807 | # without $wl, iff we do not link with $LD. |
| 22808 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22809 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22810 | case $wlarc in |
| 22811 | '') |
| 22812 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22813 | *) |
| 22814 | 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' ;; |
| 22815 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22816 | esac |
| 22817 | link_all_deplibs_F77=yes |
| 22818 | ;; |
| 22819 | |
| 22820 | sunos4*) |
| 22821 | if test "x$host_vendor" = xsequent; then |
| 22822 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22823 | # files that make .init and .fini sections work. |
| 22824 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22825 | else |
| 22826 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22827 | fi |
| 22828 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22829 | hardcode_direct_F77=yes |
| 22830 | hardcode_minus_L_F77=yes |
| 22831 | hardcode_shlibpath_var_F77=no |
| 22832 | ;; |
| 22833 | |
| 22834 | sysv4) |
| 22835 | case $host_vendor in |
| 22836 | sni) |
| 22837 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22838 | hardcode_direct_F77=yes # is this really true??? |
| 22839 | ;; |
| 22840 | siemens) |
| 22841 | ## LD is ld it makes a PLAMLIB |
| 22842 | ## CC just makes a GrossModule. |
| 22843 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22844 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22845 | hardcode_direct_F77=no |
| 22846 | ;; |
| 22847 | motorola) |
| 22848 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22849 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22850 | ;; |
| 22851 | esac |
| 22852 | runpath_var='LD_RUN_PATH' |
| 22853 | hardcode_shlibpath_var_F77=no |
| 22854 | ;; |
| 22855 | |
| 22856 | sysv4.3*) |
| 22857 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22858 | hardcode_shlibpath_var_F77=no |
| 22859 | export_dynamic_flag_spec_F77='-Bexport' |
| 22860 | ;; |
| 22861 | |
| 22862 | sysv4*MP*) |
| 22863 | if test -d /usr/nec; then |
| 22864 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22865 | hardcode_shlibpath_var_F77=no |
| 22866 | runpath_var=LD_RUN_PATH |
| 22867 | hardcode_runpath_var=yes |
| 22868 | ld_shlibs_F77=yes |
| 22869 | fi |
| 22870 | ;; |
| 22871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22872 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22873 | no_undefined_flag_F77='${wl}-z,text' |
| 22874 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22875 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22876 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22877 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22878 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22879 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22880 | 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] | 22881 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22882 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22883 | 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] | 22884 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22885 | ;; |
| 22886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22887 | sysv5* | sco3.2v5* | sco5v6*) |
| 22888 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22889 | # link with -lc, and that would cause any symbols used from libc to |
| 22890 | # always be unresolved, which means just about no library would |
| 22891 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22892 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22893 | # as -z defs. |
| 22894 | no_undefined_flag_F77='${wl}-z,text' |
| 22895 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22896 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22897 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22898 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22899 | hardcode_libdir_separator_F77=':' |
| 22900 | link_all_deplibs_F77=yes |
| 22901 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22902 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22903 | |
| 22904 | if test "$GCC" = yes; then |
| 22905 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22906 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22907 | else |
| 22908 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22909 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22910 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22911 | ;; |
| 22912 | |
| 22913 | uts4*) |
| 22914 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22915 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22916 | hardcode_shlibpath_var_F77=no |
| 22917 | ;; |
| 22918 | |
| 22919 | *) |
| 22920 | ld_shlibs_F77=no |
| 22921 | ;; |
| 22922 | esac |
| 22923 | fi |
| 22924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22925 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22926 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22927 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22928 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22929 | # |
| 22930 | # Do we need to explicitly link libc? |
| 22931 | # |
| 22932 | case "x$archive_cmds_need_lc_F77" in |
| 22933 | x|xyes) |
| 22934 | # Assume -lc should be added |
| 22935 | archive_cmds_need_lc_F77=yes |
| 22936 | |
| 22937 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22938 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22939 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22940 | # FIXME: we may have to deal with multi-command sequences. |
| 22941 | ;; |
| 22942 | '$CC '*) |
| 22943 | # Test whether the compiler implicitly links with -lc since on some |
| 22944 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22945 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22946 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22947 | 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] | 22948 | $rm conftest* |
| 22949 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22950 | |
| 22951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22952 | (eval $ac_compile) 2>&5 |
| 22953 | ac_status=$? |
| 22954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22955 | (exit $ac_status); } 2>conftest.err; then |
| 22956 | soname=conftest |
| 22957 | lib=conftest |
| 22958 | libobjs=conftest.$ac_objext |
| 22959 | deplibs= |
| 22960 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22961 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22962 | compiler_flags=-v |
| 22963 | linker_flags=-v |
| 22964 | verstring= |
| 22965 | output_objdir=. |
| 22966 | libname=conftest |
| 22967 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22968 | allow_undefined_flag_F77= |
| 22969 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22970 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22971 | ac_status=$? |
| 22972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22973 | (exit $ac_status); } |
| 22974 | then |
| 22975 | archive_cmds_need_lc_F77=no |
| 22976 | else |
| 22977 | archive_cmds_need_lc_F77=yes |
| 22978 | fi |
| 22979 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22980 | else |
| 22981 | cat conftest.err 1>&5 |
| 22982 | fi |
| 22983 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22984 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22985 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22986 | ;; |
| 22987 | esac |
| 22988 | fi |
| 22989 | ;; |
| 22990 | esac |
| 22991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22992 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22993 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22994 | library_names_spec= |
| 22995 | libname_spec='lib$name' |
| 22996 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22997 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22998 | postinstall_cmds= |
| 22999 | postuninstall_cmds= |
| 23000 | finish_cmds= |
| 23001 | finish_eval= |
| 23002 | shlibpath_var= |
| 23003 | shlibpath_overrides_runpath=unknown |
| 23004 | version_type=none |
| 23005 | dynamic_linker="$host_os ld.so" |
| 23006 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 23007 | if test "$GCC" = yes; then |
| 23008 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23009 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 23010 | # if the path contains ";" then we assume it to be the separator |
| 23011 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 23012 | # assumed that no part of a normal pathname contains ";" but that should |
| 23013 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 23014 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23015 | else |
| 23016 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23017 | fi |
| 23018 | else |
| 23019 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 23020 | fi |
| 23021 | need_lib_prefix=unknown |
| 23022 | hardcode_into_libs=no |
| 23023 | |
| 23024 | # when you set need_version to no, make sure it does not cause -set_version |
| 23025 | # flags to be left without arguments |
| 23026 | need_version=unknown |
| 23027 | |
| 23028 | case $host_os in |
| 23029 | aix3*) |
| 23030 | version_type=linux |
| 23031 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 23032 | shlibpath_var=LIBPATH |
| 23033 | |
| 23034 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 23035 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23036 | ;; |
| 23037 | |
| 23038 | aix4* | aix5*) |
| 23039 | version_type=linux |
| 23040 | need_lib_prefix=no |
| 23041 | need_version=no |
| 23042 | hardcode_into_libs=yes |
| 23043 | if test "$host_cpu" = ia64; then |
| 23044 | # AIX 5 supports IA64 |
| 23045 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 23046 | shlibpath_var=LD_LIBRARY_PATH |
| 23047 | else |
| 23048 | # With GCC up to 2.95.x, collect2 would create an import file |
| 23049 | # for dependence libraries. The import file would start with |
| 23050 | # the line `#! .'. This would cause the generated library to |
| 23051 | # depend on `.', always an invalid library. This was fixed in |
| 23052 | # development snapshots of GCC prior to 3.0. |
| 23053 | case $host_os in |
| 23054 | aix4 | aix4.[01] | aix4.[01].*) |
| 23055 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 23056 | echo ' yes ' |
| 23057 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 23058 | : |
| 23059 | else |
| 23060 | can_build_shared=no |
| 23061 | fi |
| 23062 | ;; |
| 23063 | esac |
| 23064 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 23065 | # soname into executable. Probably we can add versioning support to |
| 23066 | # collect2, so additional links can be useful in future. |
| 23067 | if test "$aix_use_runtimelinking" = yes; then |
| 23068 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 23069 | # instead of lib<name>.a to let people know that these are not |
| 23070 | # typical AIX shared libraries. |
| 23071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23072 | else |
| 23073 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 23074 | # and later when we are not doing run time linking. |
| 23075 | library_names_spec='${libname}${release}.a $libname.a' |
| 23076 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23077 | fi |
| 23078 | shlibpath_var=LIBPATH |
| 23079 | fi |
| 23080 | ;; |
| 23081 | |
| 23082 | amigaos*) |
| 23083 | library_names_spec='$libname.ixlibrary $libname.a' |
| 23084 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23085 | 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] | 23086 | ;; |
| 23087 | |
| 23088 | beos*) |
| 23089 | library_names_spec='${libname}${shared_ext}' |
| 23090 | dynamic_linker="$host_os ld.so" |
| 23091 | shlibpath_var=LIBRARY_PATH |
| 23092 | ;; |
| 23093 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23094 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23095 | version_type=linux |
| 23096 | need_version=no |
| 23097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 23100 | shlibpath_var=LD_LIBRARY_PATH |
| 23101 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 23102 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 23103 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 23104 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 23105 | # libtool to hard-code these into programs |
| 23106 | ;; |
| 23107 | |
| 23108 | cygwin* | mingw* | pw32*) |
| 23109 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23110 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23111 | need_version=no |
| 23112 | need_lib_prefix=no |
| 23113 | |
| 23114 | case $GCC,$host_os in |
| 23115 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 23116 | library_names_spec='$libname.dll.a' |
| 23117 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23118 | postinstall_cmds='base_file=`basename \${file}`~ |
| 23119 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 23120 | dldir=$destdir/`dirname \$dlpath`~ |
| 23121 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23122 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 23123 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23124 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 23125 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23126 | $rm \$dlpath' |
| 23127 | shlibpath_overrides_runpath=yes |
| 23128 | |
| 23129 | case $host_os in |
| 23130 | cygwin*) |
| 23131 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 23132 | 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] | 23133 | 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] | 23134 | ;; |
| 23135 | mingw*) |
| 23136 | # MinGW DLLs use traditional 'lib' prefix |
| 23137 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 23138 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23139 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 23140 | # It is most probably a Windows format PATH printed by |
| 23141 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 23142 | # path with ; separators, and with drive letters. We can handle the |
| 23143 | # drive letters (cygwin fileutils understands them), so leave them, |
| 23144 | # especially as we might pass files found there to a mingw objdump, |
| 23145 | # which wouldn't understand a cygwinified path. Ahh. |
| 23146 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23147 | else |
| 23148 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23149 | fi |
| 23150 | ;; |
| 23151 | pw32*) |
| 23152 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23153 | 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] | 23154 | ;; |
| 23155 | esac |
| 23156 | ;; |
| 23157 | |
| 23158 | *) |
| 23159 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23160 | ;; |
| 23161 | esac |
| 23162 | dynamic_linker='Win32 ld.exe' |
| 23163 | # FIXME: first we should search . and the directory the executable is in |
| 23164 | shlibpath_var=PATH |
| 23165 | ;; |
| 23166 | |
| 23167 | darwin* | rhapsody*) |
| 23168 | dynamic_linker="$host_os dyld" |
| 23169 | version_type=darwin |
| 23170 | need_lib_prefix=no |
| 23171 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23172 | 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] | 23173 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23174 | shlibpath_overrides_runpath=yes |
| 23175 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23176 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23177 | # 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] | 23178 | if test "$GCC" = yes; then |
| 23179 | 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"` |
| 23180 | else |
| 23181 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23182 | fi |
| 23183 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23184 | ;; |
| 23185 | |
| 23186 | dgux*) |
| 23187 | version_type=linux |
| 23188 | need_lib_prefix=no |
| 23189 | need_version=no |
| 23190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23192 | shlibpath_var=LD_LIBRARY_PATH |
| 23193 | ;; |
| 23194 | |
| 23195 | freebsd1*) |
| 23196 | dynamic_linker=no |
| 23197 | ;; |
| 23198 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23199 | kfreebsd*-gnu) |
| 23200 | version_type=linux |
| 23201 | need_lib_prefix=no |
| 23202 | need_version=no |
| 23203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23204 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23205 | shlibpath_var=LD_LIBRARY_PATH |
| 23206 | shlibpath_overrides_runpath=no |
| 23207 | hardcode_into_libs=yes |
| 23208 | dynamic_linker='GNU ld.so' |
| 23209 | ;; |
| 23210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23211 | freebsd* | dragonfly*) |
| 23212 | # DragonFly does not have aout. When/if they implement a new |
| 23213 | # versioning mechanism, adjust this. |
| 23214 | if test -x /usr/bin/objformat; then |
| 23215 | objformat=`/usr/bin/objformat` |
| 23216 | else |
| 23217 | case $host_os in |
| 23218 | freebsd[123]*) objformat=aout ;; |
| 23219 | *) objformat=elf ;; |
| 23220 | esac |
| 23221 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23222 | version_type=freebsd-$objformat |
| 23223 | case $version_type in |
| 23224 | freebsd-elf*) |
| 23225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23226 | need_version=no |
| 23227 | need_lib_prefix=no |
| 23228 | ;; |
| 23229 | freebsd-*) |
| 23230 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23231 | need_version=yes |
| 23232 | ;; |
| 23233 | esac |
| 23234 | shlibpath_var=LD_LIBRARY_PATH |
| 23235 | case $host_os in |
| 23236 | freebsd2*) |
| 23237 | shlibpath_overrides_runpath=yes |
| 23238 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23239 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23240 | shlibpath_overrides_runpath=yes |
| 23241 | hardcode_into_libs=yes |
| 23242 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23243 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 23244 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23245 | shlibpath_overrides_runpath=no |
| 23246 | hardcode_into_libs=yes |
| 23247 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23248 | freebsd*) # from 4.6 on |
| 23249 | shlibpath_overrides_runpath=yes |
| 23250 | hardcode_into_libs=yes |
| 23251 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23252 | esac |
| 23253 | ;; |
| 23254 | |
| 23255 | gnu*) |
| 23256 | version_type=linux |
| 23257 | need_lib_prefix=no |
| 23258 | need_version=no |
| 23259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23261 | shlibpath_var=LD_LIBRARY_PATH |
| 23262 | hardcode_into_libs=yes |
| 23263 | ;; |
| 23264 | |
| 23265 | hpux9* | hpux10* | hpux11*) |
| 23266 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23267 | # link against other versions. |
| 23268 | version_type=sunos |
| 23269 | need_lib_prefix=no |
| 23270 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23271 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23272 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23273 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23274 | hardcode_into_libs=yes |
| 23275 | dynamic_linker="$host_os dld.so" |
| 23276 | shlibpath_var=LD_LIBRARY_PATH |
| 23277 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23279 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23280 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23281 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23282 | else |
| 23283 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23284 | fi |
| 23285 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23286 | ;; |
| 23287 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23288 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23289 | hardcode_into_libs=yes |
| 23290 | dynamic_linker="$host_os dld.sl" |
| 23291 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23292 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23294 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23295 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23296 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23297 | ;; |
| 23298 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23299 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23300 | dynamic_linker="$host_os dld.sl" |
| 23301 | shlibpath_var=SHLIB_PATH |
| 23302 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23304 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23305 | ;; |
| 23306 | esac |
| 23307 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23308 | postinstall_cmds='chmod 555 $lib' |
| 23309 | ;; |
| 23310 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23311 | interix3*) |
| 23312 | version_type=linux |
| 23313 | need_lib_prefix=no |
| 23314 | need_version=no |
| 23315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23316 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23317 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 23318 | shlibpath_var=LD_LIBRARY_PATH |
| 23319 | shlibpath_overrides_runpath=no |
| 23320 | hardcode_into_libs=yes |
| 23321 | ;; |
| 23322 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23323 | irix5* | irix6* | nonstopux*) |
| 23324 | case $host_os in |
| 23325 | nonstopux*) version_type=nonstopux ;; |
| 23326 | *) |
| 23327 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23328 | version_type=linux |
| 23329 | else |
| 23330 | version_type=irix |
| 23331 | fi ;; |
| 23332 | esac |
| 23333 | need_lib_prefix=no |
| 23334 | need_version=no |
| 23335 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23337 | case $host_os in |
| 23338 | irix5* | nonstopux*) |
| 23339 | libsuff= shlibsuff= |
| 23340 | ;; |
| 23341 | *) |
| 23342 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23343 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23344 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23345 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23346 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23347 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23348 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23349 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23350 | esac |
| 23351 | ;; |
| 23352 | esac |
| 23353 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23354 | shlibpath_overrides_runpath=no |
| 23355 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23356 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23357 | hardcode_into_libs=yes |
| 23358 | ;; |
| 23359 | |
| 23360 | # No shared lib support for Linux oldld, aout, or coff. |
| 23361 | linux*oldld* | linux*aout* | linux*coff*) |
| 23362 | dynamic_linker=no |
| 23363 | ;; |
| 23364 | |
| 23365 | # This must be Linux ELF. |
| 23366 | linux*) |
| 23367 | version_type=linux |
| 23368 | need_lib_prefix=no |
| 23369 | need_version=no |
| 23370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23371 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23372 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23373 | shlibpath_var=LD_LIBRARY_PATH |
| 23374 | shlibpath_overrides_runpath=no |
| 23375 | # This implies no fast_install, which is unacceptable. |
| 23376 | # Some rework will be needed to allow for fast_install |
| 23377 | # before this can be enabled. |
| 23378 | hardcode_into_libs=yes |
| 23379 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23380 | # Append ld.so.conf contents to the search path |
| 23381 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23382 | 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] | 23383 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23384 | fi |
| 23385 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23386 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23387 | # powerpc, because MkLinux only supported shared libraries with the |
| 23388 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23389 | # most powerpc-linux boxes support dynamic linking these days and |
| 23390 | # people can always --disable-shared, the test was removed, and we |
| 23391 | # assume the GNU/Linux dynamic linker is in use. |
| 23392 | dynamic_linker='GNU/Linux ld.so' |
| 23393 | ;; |
| 23394 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23395 | knetbsd*-gnu) |
| 23396 | version_type=linux |
| 23397 | need_lib_prefix=no |
| 23398 | need_version=no |
| 23399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23400 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23401 | shlibpath_var=LD_LIBRARY_PATH |
| 23402 | shlibpath_overrides_runpath=no |
| 23403 | hardcode_into_libs=yes |
| 23404 | dynamic_linker='GNU ld.so' |
| 23405 | ;; |
| 23406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23407 | netbsd*) |
| 23408 | version_type=sunos |
| 23409 | need_lib_prefix=no |
| 23410 | need_version=no |
| 23411 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23413 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23414 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23415 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23416 | 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] | 23417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23418 | dynamic_linker='NetBSD ld.elf_so' |
| 23419 | fi |
| 23420 | shlibpath_var=LD_LIBRARY_PATH |
| 23421 | shlibpath_overrides_runpath=yes |
| 23422 | hardcode_into_libs=yes |
| 23423 | ;; |
| 23424 | |
| 23425 | newsos6) |
| 23426 | version_type=linux |
| 23427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23428 | shlibpath_var=LD_LIBRARY_PATH |
| 23429 | shlibpath_overrides_runpath=yes |
| 23430 | ;; |
| 23431 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23432 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23433 | version_type=linux |
| 23434 | need_lib_prefix=no |
| 23435 | need_version=no |
| 23436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23437 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23438 | shlibpath_var=LD_LIBRARY_PATH |
| 23439 | shlibpath_overrides_runpath=yes |
| 23440 | ;; |
| 23441 | |
| 23442 | openbsd*) |
| 23443 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23444 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23445 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23446 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23447 | case $host_os in |
| 23448 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23449 | *) need_version=no ;; |
| 23450 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23452 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23453 | shlibpath_var=LD_LIBRARY_PATH |
| 23454 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23455 | case $host_os in |
| 23456 | openbsd2.[89] | openbsd2.[89].*) |
| 23457 | shlibpath_overrides_runpath=no |
| 23458 | ;; |
| 23459 | *) |
| 23460 | shlibpath_overrides_runpath=yes |
| 23461 | ;; |
| 23462 | esac |
| 23463 | else |
| 23464 | shlibpath_overrides_runpath=yes |
| 23465 | fi |
| 23466 | ;; |
| 23467 | |
| 23468 | os2*) |
| 23469 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23470 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23471 | need_lib_prefix=no |
| 23472 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23473 | dynamic_linker='OS/2 ld.exe' |
| 23474 | shlibpath_var=LIBPATH |
| 23475 | ;; |
| 23476 | |
| 23477 | osf3* | osf4* | osf5*) |
| 23478 | version_type=osf |
| 23479 | need_lib_prefix=no |
| 23480 | need_version=no |
| 23481 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23483 | shlibpath_var=LD_LIBRARY_PATH |
| 23484 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23485 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23486 | ;; |
| 23487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23488 | solaris*) |
| 23489 | version_type=linux |
| 23490 | need_lib_prefix=no |
| 23491 | need_version=no |
| 23492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23494 | shlibpath_var=LD_LIBRARY_PATH |
| 23495 | shlibpath_overrides_runpath=yes |
| 23496 | hardcode_into_libs=yes |
| 23497 | # ldd complains unless libraries are executable |
| 23498 | postinstall_cmds='chmod +x $lib' |
| 23499 | ;; |
| 23500 | |
| 23501 | sunos4*) |
| 23502 | version_type=sunos |
| 23503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23504 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23505 | shlibpath_var=LD_LIBRARY_PATH |
| 23506 | shlibpath_overrides_runpath=yes |
| 23507 | if test "$with_gnu_ld" = yes; then |
| 23508 | need_lib_prefix=no |
| 23509 | fi |
| 23510 | need_version=yes |
| 23511 | ;; |
| 23512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23513 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23514 | version_type=linux |
| 23515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23517 | shlibpath_var=LD_LIBRARY_PATH |
| 23518 | case $host_vendor in |
| 23519 | sni) |
| 23520 | shlibpath_overrides_runpath=no |
| 23521 | need_lib_prefix=no |
| 23522 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23523 | runpath_var=LD_RUN_PATH |
| 23524 | ;; |
| 23525 | siemens) |
| 23526 | need_lib_prefix=no |
| 23527 | ;; |
| 23528 | motorola) |
| 23529 | need_lib_prefix=no |
| 23530 | need_version=no |
| 23531 | shlibpath_overrides_runpath=no |
| 23532 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23533 | ;; |
| 23534 | esac |
| 23535 | ;; |
| 23536 | |
| 23537 | sysv4*MP*) |
| 23538 | if test -d /usr/nec ;then |
| 23539 | version_type=linux |
| 23540 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23541 | soname_spec='$libname${shared_ext}.$major' |
| 23542 | shlibpath_var=LD_LIBRARY_PATH |
| 23543 | fi |
| 23544 | ;; |
| 23545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23546 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23547 | version_type=freebsd-elf |
| 23548 | need_lib_prefix=no |
| 23549 | need_version=no |
| 23550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23552 | shlibpath_var=LD_LIBRARY_PATH |
| 23553 | hardcode_into_libs=yes |
| 23554 | if test "$with_gnu_ld" = yes; then |
| 23555 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23556 | shlibpath_overrides_runpath=no |
| 23557 | else |
| 23558 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23559 | shlibpath_overrides_runpath=yes |
| 23560 | case $host_os in |
| 23561 | sco3.2v5*) |
| 23562 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23563 | ;; |
| 23564 | esac |
| 23565 | fi |
| 23566 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23567 | ;; |
| 23568 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23569 | uts4*) |
| 23570 | version_type=linux |
| 23571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23572 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23573 | shlibpath_var=LD_LIBRARY_PATH |
| 23574 | ;; |
| 23575 | |
| 23576 | *) |
| 23577 | dynamic_linker=no |
| 23578 | ;; |
| 23579 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23580 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23581 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23582 | test "$dynamic_linker" = no && can_build_shared=no |
| 23583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23584 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23585 | if test "$GCC" = yes; then |
| 23586 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23587 | fi |
| 23588 | |
| 23589 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23590 | 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] | 23591 | hardcode_action_F77= |
| 23592 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23593 | test -n "$runpath_var_F77" || \ |
| 23594 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23595 | |
| 23596 | # We can hardcode non-existant directories. |
| 23597 | if test "$hardcode_direct_F77" != no && |
| 23598 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23599 | # have to relink, otherwise we might link with an installed library |
| 23600 | # when we should be linking with a yet-to-be-installed one |
| 23601 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23602 | test "$hardcode_minus_L_F77" != no; then |
| 23603 | # Linking always hardcodes the temporary library directory. |
| 23604 | hardcode_action_F77=relink |
| 23605 | else |
| 23606 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23607 | hardcode_action_F77=immediate |
| 23608 | fi |
| 23609 | else |
| 23610 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23611 | # directories. |
| 23612 | hardcode_action_F77=unsupported |
| 23613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23614 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23615 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23616 | |
| 23617 | if test "$hardcode_action_F77" = relink; then |
| 23618 | # Fast installation is not supported |
| 23619 | enable_fast_install=no |
| 23620 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23621 | test "$enable_shared" = no; then |
| 23622 | # Fast installation is not necessary |
| 23623 | enable_fast_install=needless |
| 23624 | fi |
| 23625 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23626 | |
| 23627 | # The else clause should only fire when bootstrapping the |
| 23628 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23629 | # with your package, and you will get complaints that there are |
| 23630 | # no rules to generate ltmain.sh. |
| 23631 | if test -f "$ltmain"; then |
| 23632 | # See if we are running on zsh, and set the options which allow our commands through |
| 23633 | # without removal of \ escapes. |
| 23634 | if test -n "${ZSH_VERSION+set}" ; then |
| 23635 | setopt NO_GLOB_SUBST |
| 23636 | fi |
| 23637 | # Now quote all the things that may contain metacharacters while being |
| 23638 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23639 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23640 | 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] | 23641 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23642 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23643 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23644 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23645 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23646 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23647 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23648 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23649 | compiler_F77 \ |
| 23650 | CC_F77 \ |
| 23651 | LD_F77 \ |
| 23652 | lt_prog_compiler_wl_F77 \ |
| 23653 | lt_prog_compiler_pic_F77 \ |
| 23654 | lt_prog_compiler_static_F77 \ |
| 23655 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23656 | export_dynamic_flag_spec_F77 \ |
| 23657 | thread_safe_flag_spec_F77 \ |
| 23658 | whole_archive_flag_spec_F77 \ |
| 23659 | enable_shared_with_static_runtimes_F77 \ |
| 23660 | old_archive_cmds_F77 \ |
| 23661 | old_archive_from_new_cmds_F77 \ |
| 23662 | predep_objects_F77 \ |
| 23663 | postdep_objects_F77 \ |
| 23664 | predeps_F77 \ |
| 23665 | postdeps_F77 \ |
| 23666 | compiler_lib_search_path_F77 \ |
| 23667 | archive_cmds_F77 \ |
| 23668 | archive_expsym_cmds_F77 \ |
| 23669 | postinstall_cmds_F77 \ |
| 23670 | postuninstall_cmds_F77 \ |
| 23671 | old_archive_from_expsyms_cmds_F77 \ |
| 23672 | allow_undefined_flag_F77 \ |
| 23673 | no_undefined_flag_F77 \ |
| 23674 | export_symbols_cmds_F77 \ |
| 23675 | hardcode_libdir_flag_spec_F77 \ |
| 23676 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23677 | hardcode_libdir_separator_F77 \ |
| 23678 | hardcode_automatic_F77 \ |
| 23679 | module_cmds_F77 \ |
| 23680 | module_expsym_cmds_F77 \ |
| 23681 | lt_cv_prog_compiler_c_o_F77 \ |
| 23682 | exclude_expsyms_F77 \ |
| 23683 | include_expsyms_F77; do |
| 23684 | |
| 23685 | case $var in |
| 23686 | old_archive_cmds_F77 | \ |
| 23687 | old_archive_from_new_cmds_F77 | \ |
| 23688 | archive_cmds_F77 | \ |
| 23689 | archive_expsym_cmds_F77 | \ |
| 23690 | module_cmds_F77 | \ |
| 23691 | module_expsym_cmds_F77 | \ |
| 23692 | old_archive_from_expsyms_cmds_F77 | \ |
| 23693 | export_symbols_cmds_F77 | \ |
| 23694 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23695 | postinstall_cmds | postuninstall_cmds | \ |
| 23696 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23697 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23698 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23699 | 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] | 23700 | ;; |
| 23701 | *) |
| 23702 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23703 | ;; |
| 23704 | esac |
| 23705 | done |
| 23706 | |
| 23707 | case $lt_echo in |
| 23708 | *'\$0 --fallback-echo"') |
| 23709 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23710 | ;; |
| 23711 | esac |
| 23712 | |
| 23713 | cfgfile="$ofile" |
| 23714 | |
| 23715 | cat <<__EOF__ >> "$cfgfile" |
| 23716 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23717 | |
| 23718 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23719 | |
| 23720 | # Shell to use when invoking shell scripts. |
| 23721 | SHELL=$lt_SHELL |
| 23722 | |
| 23723 | # Whether or not to build shared libraries. |
| 23724 | build_libtool_libs=$enable_shared |
| 23725 | |
| 23726 | # Whether or not to build static libraries. |
| 23727 | build_old_libs=$enable_static |
| 23728 | |
| 23729 | # Whether or not to add -lc for building shared libraries. |
| 23730 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23731 | |
| 23732 | # Whether or not to disallow shared libs when runtime libs are static |
| 23733 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23734 | |
| 23735 | # Whether or not to optimize for fast installation. |
| 23736 | fast_install=$enable_fast_install |
| 23737 | |
| 23738 | # The host system. |
| 23739 | host_alias=$host_alias |
| 23740 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23741 | host_os=$host_os |
| 23742 | |
| 23743 | # The build system. |
| 23744 | build_alias=$build_alias |
| 23745 | build=$build |
| 23746 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23747 | |
| 23748 | # An echo program that does not interpret backslashes. |
| 23749 | echo=$lt_echo |
| 23750 | |
| 23751 | # The archiver. |
| 23752 | AR=$lt_AR |
| 23753 | AR_FLAGS=$lt_AR_FLAGS |
| 23754 | |
| 23755 | # A C compiler. |
| 23756 | LTCC=$lt_LTCC |
| 23757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23758 | # LTCC compiler flags. |
| 23759 | LTCFLAGS=$lt_LTCFLAGS |
| 23760 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23761 | # A language-specific compiler. |
| 23762 | CC=$lt_compiler_F77 |
| 23763 | |
| 23764 | # Is the compiler the GNU C compiler? |
| 23765 | with_gcc=$GCC_F77 |
| 23766 | |
| 23767 | # An ERE matcher. |
| 23768 | EGREP=$lt_EGREP |
| 23769 | |
| 23770 | # The linker used to build libraries. |
| 23771 | LD=$lt_LD_F77 |
| 23772 | |
| 23773 | # Whether we need hard or soft links. |
| 23774 | LN_S=$lt_LN_S |
| 23775 | |
| 23776 | # A BSD-compatible nm program. |
| 23777 | NM=$lt_NM |
| 23778 | |
| 23779 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23780 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23781 | |
| 23782 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23783 | MAGIC_CMD=$MAGIC_CMD |
| 23784 | |
| 23785 | # Used on cygwin: DLL creation program. |
| 23786 | DLLTOOL="$DLLTOOL" |
| 23787 | |
| 23788 | # Used on cygwin: object dumper. |
| 23789 | OBJDUMP="$OBJDUMP" |
| 23790 | |
| 23791 | # Used on cygwin: assembler. |
| 23792 | AS="$AS" |
| 23793 | |
| 23794 | # The name of the directory that contains temporary libtool files. |
| 23795 | objdir=$objdir |
| 23796 | |
| 23797 | # How to create reloadable object files. |
| 23798 | reload_flag=$lt_reload_flag |
| 23799 | reload_cmds=$lt_reload_cmds |
| 23800 | |
| 23801 | # How to pass a linker flag through the compiler. |
| 23802 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23803 | |
| 23804 | # Object file suffix (normally "o"). |
| 23805 | objext="$ac_objext" |
| 23806 | |
| 23807 | # Old archive suffix (normally "a"). |
| 23808 | libext="$libext" |
| 23809 | |
| 23810 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23811 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23812 | |
| 23813 | # Executable file suffix (normally ""). |
| 23814 | exeext="$exeext" |
| 23815 | |
| 23816 | # Additional compiler flags for building library objects. |
| 23817 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23818 | pic_mode=$pic_mode |
| 23819 | |
| 23820 | # What is the maximum length of a command? |
| 23821 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23822 | |
| 23823 | # Does compiler simultaneously support -c and -o options? |
| 23824 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23826 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23827 | need_locks=$lt_need_locks |
| 23828 | |
| 23829 | # Do we need the lib prefix for modules? |
| 23830 | need_lib_prefix=$need_lib_prefix |
| 23831 | |
| 23832 | # Do we need a version for libraries? |
| 23833 | need_version=$need_version |
| 23834 | |
| 23835 | # Whether dlopen is supported. |
| 23836 | dlopen_support=$enable_dlopen |
| 23837 | |
| 23838 | # Whether dlopen of programs is supported. |
| 23839 | dlopen_self=$enable_dlopen_self |
| 23840 | |
| 23841 | # Whether dlopen of statically linked programs is supported. |
| 23842 | dlopen_self_static=$enable_dlopen_self_static |
| 23843 | |
| 23844 | # Compiler flag to prevent dynamic linking. |
| 23845 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23846 | |
| 23847 | # Compiler flag to turn off builtin functions. |
| 23848 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23849 | |
| 23850 | # Compiler flag to allow reflexive dlopens. |
| 23851 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23852 | |
| 23853 | # Compiler flag to generate shared objects directly from archives. |
| 23854 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23855 | |
| 23856 | # Compiler flag to generate thread-safe objects. |
| 23857 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23858 | |
| 23859 | # Library versioning type. |
| 23860 | version_type=$version_type |
| 23861 | |
| 23862 | # Format of library name prefix. |
| 23863 | libname_spec=$lt_libname_spec |
| 23864 | |
| 23865 | # List of archive names. First name is the real one, the rest are links. |
| 23866 | # The last name is the one that the linker finds with -lNAME. |
| 23867 | library_names_spec=$lt_library_names_spec |
| 23868 | |
| 23869 | # The coded name of the library, if different from the real name. |
| 23870 | soname_spec=$lt_soname_spec |
| 23871 | |
| 23872 | # Commands used to build and install an old-style archive. |
| 23873 | RANLIB=$lt_RANLIB |
| 23874 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23875 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23876 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23877 | |
| 23878 | # Create an old-style archive from a shared archive. |
| 23879 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23880 | |
| 23881 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23882 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23883 | |
| 23884 | # Commands used to build and install a shared archive. |
| 23885 | archive_cmds=$lt_archive_cmds_F77 |
| 23886 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23887 | postinstall_cmds=$lt_postinstall_cmds |
| 23888 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23889 | |
| 23890 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23891 | module_cmds=$lt_module_cmds_F77 |
| 23892 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23893 | |
| 23894 | # Commands to strip libraries. |
| 23895 | old_striplib=$lt_old_striplib |
| 23896 | striplib=$lt_striplib |
| 23897 | |
| 23898 | # Dependencies to place before the objects being linked to create a |
| 23899 | # shared library. |
| 23900 | predep_objects=$lt_predep_objects_F77 |
| 23901 | |
| 23902 | # Dependencies to place after the objects being linked to create a |
| 23903 | # shared library. |
| 23904 | postdep_objects=$lt_postdep_objects_F77 |
| 23905 | |
| 23906 | # Dependencies to place before the objects being linked to create a |
| 23907 | # shared library. |
| 23908 | predeps=$lt_predeps_F77 |
| 23909 | |
| 23910 | # Dependencies to place after the objects being linked to create a |
| 23911 | # shared library. |
| 23912 | postdeps=$lt_postdeps_F77 |
| 23913 | |
| 23914 | # The library search path used internally by the compiler when linking |
| 23915 | # a shared library. |
| 23916 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23917 | |
| 23918 | # Method to check whether dependent libraries are shared objects. |
| 23919 | deplibs_check_method=$lt_deplibs_check_method |
| 23920 | |
| 23921 | # Command to use when deplibs_check_method == file_magic. |
| 23922 | file_magic_cmd=$lt_file_magic_cmd |
| 23923 | |
| 23924 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23925 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23926 | |
| 23927 | # Flag that forces no undefined symbols. |
| 23928 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23929 | |
| 23930 | # Commands used to finish a libtool library installation in a directory. |
| 23931 | finish_cmds=$lt_finish_cmds |
| 23932 | |
| 23933 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23934 | finish_eval=$lt_finish_eval |
| 23935 | |
| 23936 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23937 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23938 | |
| 23939 | # Transform the output of nm in a proper C declaration |
| 23940 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23941 | |
| 23942 | # Transform the output of nm in a C name address pair |
| 23943 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23944 | |
| 23945 | # This is the shared library runtime path variable. |
| 23946 | runpath_var=$runpath_var |
| 23947 | |
| 23948 | # This is the shared library path variable. |
| 23949 | shlibpath_var=$shlibpath_var |
| 23950 | |
| 23951 | # Is shlibpath searched before the hard-coded library search path? |
| 23952 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23953 | |
| 23954 | # How to hardcode a shared library path into an executable. |
| 23955 | hardcode_action=$hardcode_action_F77 |
| 23956 | |
| 23957 | # Whether we should hardcode library paths into libraries. |
| 23958 | hardcode_into_libs=$hardcode_into_libs |
| 23959 | |
| 23960 | # Flag to hardcode \$libdir into a binary during linking. |
| 23961 | # This must work even if \$libdir does not exist. |
| 23962 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23963 | |
| 23964 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23965 | # a binary during linking. This must work even if \$libdir does |
| 23966 | # not exist. |
| 23967 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23968 | |
| 23969 | # Whether we need a single -rpath flag with a separated argument. |
| 23970 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23971 | |
| 23972 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23973 | # resulting binary. |
| 23974 | hardcode_direct=$hardcode_direct_F77 |
| 23975 | |
| 23976 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23977 | # resulting binary. |
| 23978 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23979 | |
| 23980 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23981 | # the resulting binary. |
| 23982 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23983 | |
| 23984 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23985 | # and all subsequent libraries and executables linked against it. |
| 23986 | hardcode_automatic=$hardcode_automatic_F77 |
| 23987 | |
| 23988 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23989 | # restored at relink time. |
| 23990 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23991 | |
| 23992 | # Whether libtool must link a program against all its dependency libraries. |
| 23993 | link_all_deplibs=$link_all_deplibs_F77 |
| 23994 | |
| 23995 | # Compile-time system search path for libraries |
| 23996 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23997 | |
| 23998 | # Run-time system search path for libraries |
| 23999 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24000 | |
| 24001 | # Fix the shell variable \$srcfile for the compiler. |
| 24002 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 24003 | |
| 24004 | # Set to yes if exported symbols are required. |
| 24005 | always_export_symbols=$always_export_symbols_F77 |
| 24006 | |
| 24007 | # The commands to list exported symbols. |
| 24008 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 24009 | |
| 24010 | # The commands to extract the exported symbol list from a shared archive. |
| 24011 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24012 | |
| 24013 | # Symbols that should not be listed in the preloaded symbols. |
| 24014 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 24015 | |
| 24016 | # Symbols that must always be exported. |
| 24017 | include_expsyms=$lt_include_expsyms_F77 |
| 24018 | |
| 24019 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24020 | |
| 24021 | __EOF__ |
| 24022 | |
| 24023 | |
| 24024 | else |
| 24025 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24026 | # `config.status --recheck' to rerun these tests and create the |
| 24027 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24028 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24029 | if test -f "$ltmain_in"; then |
| 24030 | test -f Makefile && make "$ltmain" |
| 24031 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24032 | fi |
| 24033 | |
| 24034 | |
| 24035 | ac_ext=c |
| 24036 | ac_cpp='$CPP $CPPFLAGS' |
| 24037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24040 | |
| 24041 | CC="$lt_save_CC" |
| 24042 | |
| 24043 | else |
| 24044 | tagname="" |
| 24045 | fi |
| 24046 | ;; |
| 24047 | |
| 24048 | GCJ) |
| 24049 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24050 | ac_ext=c |
| 24051 | ac_cpp='$CPP $CPPFLAGS' |
| 24052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24055 | |
| 24056 | |
| 24057 | # Source file extension for Java test sources. |
| 24058 | ac_ext=java |
| 24059 | |
| 24060 | # Object file extension for compiled Java test sources. |
| 24061 | objext=o |
| 24062 | objext_GCJ=$objext |
| 24063 | |
| 24064 | # Code to be used in simple compile tests |
| 24065 | lt_simple_compile_test_code="class foo {}\n" |
| 24066 | |
| 24067 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24068 | 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] | 24069 | |
| 24070 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24071 | |
| 24072 | # If no C compiler was specified, use CC. |
| 24073 | LTCC=${LTCC-"$CC"} |
| 24074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24075 | # If no C compiler flags were specified, use CFLAGS. |
| 24076 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 24077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24078 | # Allow CC to be a program name with arguments. |
| 24079 | compiler=$CC |
| 24080 | |
| 24081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24082 | # save warnings/boilerplate of simple test code |
| 24083 | ac_outfile=conftest.$ac_objext |
| 24084 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 24085 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24086 | _lt_compiler_boilerplate=`cat conftest.err` |
| 24087 | $rm conftest* |
| 24088 | |
| 24089 | ac_outfile=conftest.$ac_objext |
| 24090 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 24091 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24092 | _lt_linker_boilerplate=`cat conftest.err` |
| 24093 | $rm conftest* |
| 24094 | |
| 24095 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24096 | # Allow CC to be a program name with arguments. |
| 24097 | lt_save_CC="$CC" |
| 24098 | CC=${GCJ-"gcj"} |
| 24099 | compiler=$CC |
| 24100 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24101 | for cc_temp in $compiler""; do |
| 24102 | case $cc_temp in |
| 24103 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24104 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24105 | \-*) ;; |
| 24106 | *) break;; |
| 24107 | esac |
| 24108 | done |
| 24109 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 24110 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24111 | |
| 24112 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 24113 | archive_cmds_need_lc_GCJ=no |
| 24114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24115 | old_archive_cmds_GCJ=$old_archive_cmds |
| 24116 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24117 | |
| 24118 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 24119 | |
| 24120 | if test "$GCC" = yes; then |
| 24121 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 24122 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24124 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 24125 | 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] | 24126 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 24127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24128 | else |
| 24129 | lt_cv_prog_compiler_rtti_exceptions=no |
| 24130 | ac_outfile=conftest.$ac_objext |
| 24131 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24132 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 24133 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24134 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24135 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24136 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24137 | # The option is referenced via a variable to avoid confusing sed. |
| 24138 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24139 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24140 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24141 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 24142 | (eval echo "\"\$as_me:24142: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24143 | (eval "$lt_compile" 2>conftest.err) |
| 24144 | ac_status=$? |
| 24145 | cat conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 24146 | echo "$as_me:24146: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24147 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24148 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24149 | # So say no if there are warnings other than the usual output. |
| 24150 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24151 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24152 | 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] | 24153 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 24154 | fi |
| 24155 | fi |
| 24156 | $rm conftest* |
| 24157 | |
| 24158 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24159 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 24160 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24161 | |
| 24162 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 24163 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 24164 | else |
| 24165 | : |
| 24166 | fi |
| 24167 | |
| 24168 | fi |
| 24169 | |
| 24170 | lt_prog_compiler_wl_GCJ= |
| 24171 | lt_prog_compiler_pic_GCJ= |
| 24172 | lt_prog_compiler_static_GCJ= |
| 24173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24174 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 24175 | 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] | 24176 | |
| 24177 | if test "$GCC" = yes; then |
| 24178 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24179 | lt_prog_compiler_static_GCJ='-static' |
| 24180 | |
| 24181 | case $host_os in |
| 24182 | aix*) |
| 24183 | # All AIX code is PIC. |
| 24184 | if test "$host_cpu" = ia64; then |
| 24185 | # AIX 5 now supports IA64 processor |
| 24186 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24187 | fi |
| 24188 | ;; |
| 24189 | |
| 24190 | amigaos*) |
| 24191 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 24192 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 24193 | # like `-m68040'. |
| 24194 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 24195 | ;; |
| 24196 | |
| 24197 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 24198 | # PIC is the default for these OSes. |
| 24199 | ;; |
| 24200 | |
| 24201 | mingw* | pw32* | os2*) |
| 24202 | # This hack is so that the source file can tell whether it is being |
| 24203 | # built for inclusion in a dll (and should export symbols for example). |
| 24204 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24205 | ;; |
| 24206 | |
| 24207 | darwin* | rhapsody*) |
| 24208 | # PIC is the default on this platform |
| 24209 | # Common symbols not allowed in MH_DYLIB files |
| 24210 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 24211 | ;; |
| 24212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24213 | interix3*) |
| 24214 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 24215 | # Instead, we relocate shared libraries at runtime. |
| 24216 | ;; |
| 24217 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24218 | msdosdjgpp*) |
| 24219 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 24220 | # on systems that don't support them. |
| 24221 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24222 | enable_shared=no |
| 24223 | ;; |
| 24224 | |
| 24225 | sysv4*MP*) |
| 24226 | if test -d /usr/nec; then |
| 24227 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 24228 | fi |
| 24229 | ;; |
| 24230 | |
| 24231 | hpux*) |
| 24232 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24233 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24234 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24235 | hppa*64*|ia64*) |
| 24236 | # +Z the default |
| 24237 | ;; |
| 24238 | *) |
| 24239 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24240 | ;; |
| 24241 | esac |
| 24242 | ;; |
| 24243 | |
| 24244 | *) |
| 24245 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24246 | ;; |
| 24247 | esac |
| 24248 | else |
| 24249 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 24250 | case $host_os in |
| 24251 | aix*) |
| 24252 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24253 | if test "$host_cpu" = ia64; then |
| 24254 | # AIX 5 now supports IA64 processor |
| 24255 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24256 | else |
| 24257 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 24258 | fi |
| 24259 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24260 | darwin*) |
| 24261 | # PIC is the default on this platform |
| 24262 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24263 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24264 | xlc*) |
| 24265 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 24266 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24267 | ;; |
| 24268 | esac |
| 24269 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24270 | |
| 24271 | mingw* | pw32* | os2*) |
| 24272 | # This hack is so that the source file can tell whether it is being |
| 24273 | # built for inclusion in a dll (and should export symbols for example). |
| 24274 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24275 | ;; |
| 24276 | |
| 24277 | hpux9* | hpux10* | hpux11*) |
| 24278 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24279 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24280 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24281 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24282 | hppa*64*|ia64*) |
| 24283 | # +Z the default |
| 24284 | ;; |
| 24285 | *) |
| 24286 | lt_prog_compiler_pic_GCJ='+Z' |
| 24287 | ;; |
| 24288 | esac |
| 24289 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 24290 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 24291 | ;; |
| 24292 | |
| 24293 | irix5* | irix6* | nonstopux*) |
| 24294 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24295 | # PIC (with -KPIC) is the default. |
| 24296 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24297 | ;; |
| 24298 | |
| 24299 | newsos6) |
| 24300 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24301 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24302 | ;; |
| 24303 | |
| 24304 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24305 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24306 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24307 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24308 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24309 | lt_prog_compiler_static_GCJ='-static' |
| 24310 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24311 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 24312 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 24313 | # which looks to be a dead project) |
| 24314 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24315 | lt_prog_compiler_pic_GCJ='-fpic' |
| 24316 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24317 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24318 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24319 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24320 | # All Alpha code is PIC. |
| 24321 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24322 | ;; |
| 24323 | esac |
| 24324 | ;; |
| 24325 | |
| 24326 | osf3* | osf4* | osf5*) |
| 24327 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24328 | # All OSF/1 code is PIC. |
| 24329 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24330 | ;; |
| 24331 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24332 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24333 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24334 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24335 | case $cc_basename in |
| 24336 | f77* | f90* | f95*) |
| 24337 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24338 | *) |
| 24339 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24340 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24341 | ;; |
| 24342 | |
| 24343 | sunos4*) |
| 24344 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24345 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24346 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24347 | ;; |
| 24348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24349 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24350 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24351 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24352 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24353 | ;; |
| 24354 | |
| 24355 | sysv4*MP*) |
| 24356 | if test -d /usr/nec ;then |
| 24357 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24358 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24359 | fi |
| 24360 | ;; |
| 24361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24362 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24363 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24364 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24365 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24366 | ;; |
| 24367 | |
| 24368 | unicos*) |
| 24369 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24370 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24371 | ;; |
| 24372 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24373 | uts4*) |
| 24374 | lt_prog_compiler_pic_GCJ='-pic' |
| 24375 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24376 | ;; |
| 24377 | |
| 24378 | *) |
| 24379 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24380 | ;; |
| 24381 | esac |
| 24382 | fi |
| 24383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24384 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24385 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24386 | |
| 24387 | # |
| 24388 | # Check to make sure the PIC flag actually works. |
| 24389 | # |
| 24390 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24392 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24393 | 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] | 24394 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24396 | else |
| 24397 | lt_prog_compiler_pic_works_GCJ=no |
| 24398 | ac_outfile=conftest.$ac_objext |
| 24399 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24400 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24401 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24402 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24403 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24404 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24405 | # The option is referenced via a variable to avoid confusing sed. |
| 24406 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24407 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24408 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24409 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 24410 | (eval echo "\"\$as_me:24410: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24411 | (eval "$lt_compile" 2>conftest.err) |
| 24412 | ac_status=$? |
| 24413 | cat conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 24414 | echo "$as_me:24414: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24415 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24416 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24417 | # So say no if there are warnings other than the usual output. |
| 24418 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24419 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24420 | 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] | 24421 | lt_prog_compiler_pic_works_GCJ=yes |
| 24422 | fi |
| 24423 | fi |
| 24424 | $rm conftest* |
| 24425 | |
| 24426 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24427 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24428 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24429 | |
| 24430 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24431 | case $lt_prog_compiler_pic_GCJ in |
| 24432 | "" | " "*) ;; |
| 24433 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24434 | esac |
| 24435 | else |
| 24436 | lt_prog_compiler_pic_GCJ= |
| 24437 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24438 | fi |
| 24439 | |
| 24440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24441 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24442 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24443 | *djgpp*) |
| 24444 | lt_prog_compiler_pic_GCJ= |
| 24445 | ;; |
| 24446 | *) |
| 24447 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24448 | ;; |
| 24449 | esac |
| 24450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24451 | # |
| 24452 | # Check to make sure the static flag actually works. |
| 24453 | # |
| 24454 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24455 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24456 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24457 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24459 | else |
| 24460 | lt_prog_compiler_static_works_GCJ=no |
| 24461 | save_LDFLAGS="$LDFLAGS" |
| 24462 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24463 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24464 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24465 | # The linker can only warn and ignore the option if not recognized |
| 24466 | # So say no if there are warnings |
| 24467 | if test -s conftest.err; then |
| 24468 | # Append any errors to the config.log. |
| 24469 | cat conftest.err 1>&5 |
| 24470 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24471 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24472 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24473 | lt_prog_compiler_static_works_GCJ=yes |
| 24474 | fi |
| 24475 | else |
| 24476 | lt_prog_compiler_static_works_GCJ=yes |
| 24477 | fi |
| 24478 | fi |
| 24479 | $rm conftest* |
| 24480 | LDFLAGS="$save_LDFLAGS" |
| 24481 | |
| 24482 | fi |
| 24483 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24484 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24485 | |
| 24486 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24487 | : |
| 24488 | else |
| 24489 | lt_prog_compiler_static_GCJ= |
| 24490 | fi |
| 24491 | |
| 24492 | |
| 24493 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24494 | 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] | 24495 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24497 | else |
| 24498 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24499 | $rm -r conftest 2>/dev/null |
| 24500 | mkdir conftest |
| 24501 | cd conftest |
| 24502 | mkdir out |
| 24503 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24504 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24505 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24506 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24507 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24508 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24509 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24510 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24511 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24512 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24513 | -e 's:$: $lt_compiler_flag:'` |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 24514 | (eval echo "\"\$as_me:24514: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24515 | (eval "$lt_compile" 2>out/conftest.err) |
| 24516 | ac_status=$? |
| 24517 | cat out/conftest.err >&5 |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 24518 | echo "$as_me:24518: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24519 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24520 | then |
| 24521 | # The compiler can only warn and ignore the option if not recognized |
| 24522 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24523 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24524 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24525 | 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] | 24526 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24527 | fi |
| 24528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24529 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24530 | $rm conftest* |
| 24531 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24532 | # template instantiation |
| 24533 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24534 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24535 | cd .. |
| 24536 | rmdir conftest |
| 24537 | $rm conftest* |
| 24538 | |
| 24539 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24540 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24541 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24542 | |
| 24543 | |
| 24544 | hard_links="nottested" |
| 24545 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24546 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24547 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24548 | 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] | 24549 | hard_links=yes |
| 24550 | $rm conftest* |
| 24551 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24552 | touch conftest.a |
| 24553 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24554 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24555 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24556 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24557 | if test "$hard_links" = no; then |
| 24558 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24559 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24560 | need_locks=warn |
| 24561 | fi |
| 24562 | else |
| 24563 | need_locks=no |
| 24564 | fi |
| 24565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24566 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24567 | 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] | 24568 | |
| 24569 | runpath_var= |
| 24570 | allow_undefined_flag_GCJ= |
| 24571 | enable_shared_with_static_runtimes_GCJ=no |
| 24572 | archive_cmds_GCJ= |
| 24573 | archive_expsym_cmds_GCJ= |
| 24574 | old_archive_From_new_cmds_GCJ= |
| 24575 | old_archive_from_expsyms_cmds_GCJ= |
| 24576 | export_dynamic_flag_spec_GCJ= |
| 24577 | whole_archive_flag_spec_GCJ= |
| 24578 | thread_safe_flag_spec_GCJ= |
| 24579 | hardcode_libdir_flag_spec_GCJ= |
| 24580 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24581 | hardcode_libdir_separator_GCJ= |
| 24582 | hardcode_direct_GCJ=no |
| 24583 | hardcode_minus_L_GCJ=no |
| 24584 | hardcode_shlibpath_var_GCJ=unsupported |
| 24585 | link_all_deplibs_GCJ=unknown |
| 24586 | hardcode_automatic_GCJ=no |
| 24587 | module_cmds_GCJ= |
| 24588 | module_expsym_cmds_GCJ= |
| 24589 | always_export_symbols_GCJ=no |
| 24590 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24591 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24592 | # included in the symbol list |
| 24593 | include_expsyms_GCJ= |
| 24594 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24595 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24596 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24597 | # as well as any symbol that contains `d'. |
| 24598 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24599 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24600 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24601 | # the symbol is explicitly referenced. Since portable code cannot |
| 24602 | # rely on this symbol name, it's probably fine to never include it in |
| 24603 | # preloaded symbol tables. |
| 24604 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24605 | # Just being paranoid about ensuring that cc_basename is set. |
| 24606 | for cc_temp in $compiler""; do |
| 24607 | case $cc_temp in |
| 24608 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24609 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24610 | \-*) ;; |
| 24611 | *) break;; |
| 24612 | esac |
| 24613 | done |
| 24614 | 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] | 24615 | |
| 24616 | case $host_os in |
| 24617 | cygwin* | mingw* | pw32*) |
| 24618 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24619 | # When not using gcc, we currently assume that we are using |
| 24620 | # Microsoft Visual C++. |
| 24621 | if test "$GCC" != yes; then |
| 24622 | with_gnu_ld=no |
| 24623 | fi |
| 24624 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24625 | interix*) |
| 24626 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24627 | with_gnu_ld=yes |
| 24628 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24629 | openbsd*) |
| 24630 | with_gnu_ld=no |
| 24631 | ;; |
| 24632 | esac |
| 24633 | |
| 24634 | ld_shlibs_GCJ=yes |
| 24635 | if test "$with_gnu_ld" = yes; then |
| 24636 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24637 | wlarc='${wl}' |
| 24638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24639 | # Set some defaults for GNU ld with shared library support. These |
| 24640 | # are reset later if shared libraries are not supported. Putting them |
| 24641 | # here allows them to be overridden if necessary. |
| 24642 | runpath_var=LD_RUN_PATH |
| 24643 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24644 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24645 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24646 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24647 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24648 | else |
| 24649 | whole_archive_flag_spec_GCJ= |
| 24650 | fi |
| 24651 | supports_anon_versioning=no |
| 24652 | case `$LD -v 2>/dev/null` in |
| 24653 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24654 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24655 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24656 | *\ 2.11.*) ;; # other 2.11 versions |
| 24657 | *) supports_anon_versioning=yes ;; |
| 24658 | esac |
| 24659 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24660 | # See if GNU ld supports shared libraries. |
| 24661 | case $host_os in |
| 24662 | aix3* | aix4* | aix5*) |
| 24663 | # On AIX/PPC, the GNU linker is very broken |
| 24664 | if test "$host_cpu" != ia64; then |
| 24665 | ld_shlibs_GCJ=no |
| 24666 | cat <<EOF 1>&2 |
| 24667 | |
| 24668 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24669 | *** to be unable to reliably create shared libraries on AIX. |
| 24670 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24671 | *** really care for shared libraries, you may want to modify your PATH |
| 24672 | *** so that a non-GNU linker is found, and then restart. |
| 24673 | |
| 24674 | EOF |
| 24675 | fi |
| 24676 | ;; |
| 24677 | |
| 24678 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24679 | 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] | 24680 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24681 | hardcode_minus_L_GCJ=yes |
| 24682 | |
| 24683 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24684 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24685 | # to version 4, is to share data among multiple programs linked |
| 24686 | # with the same dynamic library. Since this doesn't match the |
| 24687 | # behavior of shared libraries on other platforms, we can't use |
| 24688 | # them. |
| 24689 | ld_shlibs_GCJ=no |
| 24690 | ;; |
| 24691 | |
| 24692 | beos*) |
| 24693 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24694 | allow_undefined_flag_GCJ=unsupported |
| 24695 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24696 | # support --undefined. This deserves some investigation. FIXME |
| 24697 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24698 | else |
| 24699 | ld_shlibs_GCJ=no |
| 24700 | fi |
| 24701 | ;; |
| 24702 | |
| 24703 | cygwin* | mingw* | pw32*) |
| 24704 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24705 | # as there is no search path for DLLs. |
| 24706 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24707 | allow_undefined_flag_GCJ=unsupported |
| 24708 | always_export_symbols_GCJ=no |
| 24709 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24710 | 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] | 24711 | |
| 24712 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24713 | 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] | 24714 | # If the export-symbols file already is a .def file (1st line |
| 24715 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24716 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24717 | cp $export_symbols $output_objdir/$soname.def; |
| 24718 | else |
| 24719 | echo EXPORTS > $output_objdir/$soname.def; |
| 24720 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24721 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24722 | $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] | 24723 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24724 | ld_shlibs_GCJ=no |
| 24725 | fi |
| 24726 | ;; |
| 24727 | |
| 24728 | interix3*) |
| 24729 | hardcode_direct_GCJ=no |
| 24730 | hardcode_shlibpath_var_GCJ=no |
| 24731 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24732 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24733 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24734 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24735 | # default) and relocated if they conflict, which is a slow very memory |
| 24736 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24737 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24738 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24739 | 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' |
| 24740 | 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' |
| 24741 | ;; |
| 24742 | |
| 24743 | linux*) |
| 24744 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24745 | tmp_addflag= |
| 24746 | case $cc_basename,$host_cpu in |
| 24747 | pgcc*) # Portland Group C compiler |
| 24748 | 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' |
| 24749 | tmp_addflag=' $pic_flag' |
| 24750 | ;; |
| 24751 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 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 -Mnomain' ;; |
| 24754 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24755 | tmp_addflag=' -i_dynamic' ;; |
| 24756 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24757 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24758 | ifc* | ifort*) # Intel Fortran compiler |
| 24759 | tmp_addflag=' -nofor_main' ;; |
| 24760 | esac |
| 24761 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24762 | |
| 24763 | if test $supports_anon_versioning = yes; then |
| 24764 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24765 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24766 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24767 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24768 | fi |
| 24769 | else |
| 24770 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24771 | fi |
| 24772 | ;; |
| 24773 | |
| 24774 | netbsd*) |
| 24775 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24776 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24777 | wlarc= |
| 24778 | else |
| 24779 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24780 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24781 | fi |
| 24782 | ;; |
| 24783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24784 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24785 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24786 | ld_shlibs_GCJ=no |
| 24787 | cat <<EOF 1>&2 |
| 24788 | |
| 24789 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24790 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24791 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24792 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24793 | *** your PATH or compiler configuration so that the native linker is |
| 24794 | *** used, and then restart. |
| 24795 | |
| 24796 | EOF |
| 24797 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24798 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24799 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24800 | else |
| 24801 | ld_shlibs_GCJ=no |
| 24802 | fi |
| 24803 | ;; |
| 24804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24805 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24806 | case `$LD -v 2>&1` in |
| 24807 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24808 | ld_shlibs_GCJ=no |
| 24809 | cat <<_LT_EOF 1>&2 |
| 24810 | |
| 24811 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24812 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24813 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24814 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24815 | *** your PATH or compiler configuration so that the native linker is |
| 24816 | *** used, and then restart. |
| 24817 | |
| 24818 | _LT_EOF |
| 24819 | ;; |
| 24820 | *) |
| 24821 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24822 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24823 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24824 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24825 | else |
| 24826 | ld_shlibs_GCJ=no |
| 24827 | fi |
| 24828 | ;; |
| 24829 | esac |
| 24830 | ;; |
| 24831 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24832 | sunos4*) |
| 24833 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24834 | wlarc= |
| 24835 | hardcode_direct_GCJ=yes |
| 24836 | hardcode_shlibpath_var_GCJ=no |
| 24837 | ;; |
| 24838 | |
| 24839 | *) |
| 24840 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24841 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24842 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24843 | else |
| 24844 | ld_shlibs_GCJ=no |
| 24845 | fi |
| 24846 | ;; |
| 24847 | esac |
| 24848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24849 | if test "$ld_shlibs_GCJ" = no; then |
| 24850 | runpath_var= |
| 24851 | hardcode_libdir_flag_spec_GCJ= |
| 24852 | export_dynamic_flag_spec_GCJ= |
| 24853 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24854 | fi |
| 24855 | else |
| 24856 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24857 | case $host_os in |
| 24858 | aix3*) |
| 24859 | allow_undefined_flag_GCJ=unsupported |
| 24860 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24861 | 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] | 24862 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24863 | # are no directories specified by -L. |
| 24864 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24865 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24866 | # Neither direct hardcoding nor static linking is supported with a |
| 24867 | # broken collect2. |
| 24868 | hardcode_direct_GCJ=unsupported |
| 24869 | fi |
| 24870 | ;; |
| 24871 | |
| 24872 | aix4* | aix5*) |
| 24873 | if test "$host_cpu" = ia64; then |
| 24874 | # On IA64, the linker does run time linking by default, so we don't |
| 24875 | # have to do anything special. |
| 24876 | aix_use_runtimelinking=no |
| 24877 | exp_sym_flag='-Bexport' |
| 24878 | no_entry_flag="" |
| 24879 | else |
| 24880 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24881 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24882 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24883 | 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' |
| 24884 | else |
| 24885 | 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' |
| 24886 | fi |
| 24887 | aix_use_runtimelinking=no |
| 24888 | |
| 24889 | # Test if we are trying to use run time linking or normal |
| 24890 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24891 | # need to do runtime linking. |
| 24892 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24893 | for ld_flag in $LDFLAGS; do |
| 24894 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24895 | aix_use_runtimelinking=yes |
| 24896 | break |
| 24897 | fi |
| 24898 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24899 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24900 | esac |
| 24901 | |
| 24902 | exp_sym_flag='-bexport' |
| 24903 | no_entry_flag='-bnoentry' |
| 24904 | fi |
| 24905 | |
| 24906 | # When large executables or shared objects are built, AIX ld can |
| 24907 | # have problems creating the table of contents. If linking a library |
| 24908 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24909 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24910 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24911 | |
| 24912 | archive_cmds_GCJ='' |
| 24913 | hardcode_direct_GCJ=yes |
| 24914 | hardcode_libdir_separator_GCJ=':' |
| 24915 | link_all_deplibs_GCJ=yes |
| 24916 | |
| 24917 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24918 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24919 | # We only want to do this on AIX 4.2 and lower, the check |
| 24920 | # below for broken collect2 doesn't work under 4.3+ |
| 24921 | collect2name=`${CC} -print-prog-name=collect2` |
| 24922 | if test -f "$collect2name" && \ |
| 24923 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24924 | then |
| 24925 | # We have reworked collect2 |
| 24926 | hardcode_direct_GCJ=yes |
| 24927 | else |
| 24928 | # We have old collect2 |
| 24929 | hardcode_direct_GCJ=unsupported |
| 24930 | # It fails to find uninstalled libraries when the uninstalled |
| 24931 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24932 | # to unsupported forces relinking |
| 24933 | hardcode_minus_L_GCJ=yes |
| 24934 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24935 | hardcode_libdir_separator_GCJ= |
| 24936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24937 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24938 | esac |
| 24939 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24940 | if test "$aix_use_runtimelinking" = yes; then |
| 24941 | shared_flag="$shared_flag "'${wl}-G' |
| 24942 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24943 | else |
| 24944 | # not using gcc |
| 24945 | if test "$host_cpu" = ia64; then |
| 24946 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24947 | # chokes on -Wl,-G. The following line is correct: |
| 24948 | shared_flag='-G' |
| 24949 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24950 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24951 | shared_flag='${wl}-G' |
| 24952 | else |
| 24953 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24954 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24955 | fi |
| 24956 | fi |
| 24957 | |
| 24958 | # It seems that -bexpall does not export symbols beginning with |
| 24959 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24960 | always_export_symbols_GCJ=yes |
| 24961 | if test "$aix_use_runtimelinking" = yes; then |
| 24962 | # Warning - without using the other runtime loading flags (-brtl), |
| 24963 | # -berok will link without error, but may produce a broken library. |
| 24964 | allow_undefined_flag_GCJ='-berok' |
| 24965 | # Determine the default libpath from the value encoded in an empty executable. |
| 24966 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24967 | /* confdefs.h. */ |
| 24968 | _ACEOF |
| 24969 | cat confdefs.h >>conftest.$ac_ext |
| 24970 | cat >>conftest.$ac_ext <<_ACEOF |
| 24971 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24972 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24973 | int |
| 24974 | main () |
| 24975 | { |
| 24976 | |
| 24977 | ; |
| 24978 | return 0; |
| 24979 | } |
| 24980 | _ACEOF |
| 24981 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24982 | if { (ac_try="$ac_link" |
| 24983 | case "(($ac_try" in |
| 24984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24985 | *) ac_try_echo=$ac_try;; |
| 24986 | esac |
| 24987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24988 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24989 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24991 | rm -f conftest.er1 |
| 24992 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 24994 | (exit $ac_status); } && |
| 24995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24996 | { (case "(($ac_try" in |
| 24997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24998 | *) ac_try_echo=$ac_try;; |
| 24999 | esac |
| 25000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25001 | (eval "$ac_try") 2>&5 |
| 25002 | ac_status=$? |
| 25003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25004 | (exit $ac_status); }; } && |
| 25005 | { ac_try='test -s conftest$ac_exeext' |
| 25006 | { (case "(($ac_try" in |
| 25007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25008 | *) ac_try_echo=$ac_try;; |
| 25009 | esac |
| 25010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25011 | (eval "$ac_try") 2>&5 |
| 25012 | ac_status=$? |
| 25013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25014 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25015 | |
| 25016 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25017 | }'` |
| 25018 | # Check for a 64-bit object if we didn't find anything. |
| 25019 | 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; } |
| 25020 | }'`; fi |
| 25021 | else |
| 25022 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25025 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25027 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25028 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25029 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25030 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25031 | |
| 25032 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25033 | 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] | 25034 | else |
| 25035 | if test "$host_cpu" = ia64; then |
| 25036 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 25037 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25038 | 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] | 25039 | else |
| 25040 | # Determine the default libpath from the value encoded in an empty executable. |
| 25041 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25042 | /* confdefs.h. */ |
| 25043 | _ACEOF |
| 25044 | cat confdefs.h >>conftest.$ac_ext |
| 25045 | cat >>conftest.$ac_ext <<_ACEOF |
| 25046 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25047 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25048 | int |
| 25049 | main () |
| 25050 | { |
| 25051 | |
| 25052 | ; |
| 25053 | return 0; |
| 25054 | } |
| 25055 | _ACEOF |
| 25056 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25057 | if { (ac_try="$ac_link" |
| 25058 | case "(($ac_try" in |
| 25059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25060 | *) ac_try_echo=$ac_try;; |
| 25061 | esac |
| 25062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25063 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25064 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25066 | rm -f conftest.er1 |
| 25067 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25069 | (exit $ac_status); } && |
| 25070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25071 | { (case "(($ac_try" in |
| 25072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25073 | *) ac_try_echo=$ac_try;; |
| 25074 | esac |
| 25075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25076 | (eval "$ac_try") 2>&5 |
| 25077 | ac_status=$? |
| 25078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25079 | (exit $ac_status); }; } && |
| 25080 | { ac_try='test -s conftest$ac_exeext' |
| 25081 | { (case "(($ac_try" in |
| 25082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25083 | *) ac_try_echo=$ac_try;; |
| 25084 | esac |
| 25085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25086 | (eval "$ac_try") 2>&5 |
| 25087 | ac_status=$? |
| 25088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25089 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25090 | |
| 25091 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25092 | }'` |
| 25093 | # Check for a 64-bit object if we didn't find anything. |
| 25094 | 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; } |
| 25095 | }'`; fi |
| 25096 | else |
| 25097 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25100 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25102 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25103 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25104 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25105 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25106 | |
| 25107 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 25108 | # Warning - without using the other run time loading flags, |
| 25109 | # -berok will link without error, but may produce a broken library. |
| 25110 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 25111 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25112 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25113 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25114 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25115 | # This is similar to how AIX traditionally builds its shared libraries. |
| 25116 | 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] | 25117 | fi |
| 25118 | fi |
| 25119 | ;; |
| 25120 | |
| 25121 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25122 | 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] | 25123 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25124 | hardcode_minus_L_GCJ=yes |
| 25125 | # see comment about different semantics on the GNU ld section |
| 25126 | ld_shlibs_GCJ=no |
| 25127 | ;; |
| 25128 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25129 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25130 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 25131 | ;; |
| 25132 | |
| 25133 | cygwin* | mingw* | pw32*) |
| 25134 | # When not using gcc, we currently assume that we are using |
| 25135 | # Microsoft Visual C++. |
| 25136 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 25137 | # no search path for DLLs. |
| 25138 | hardcode_libdir_flag_spec_GCJ=' ' |
| 25139 | allow_undefined_flag_GCJ=unsupported |
| 25140 | # Tell ltmain to make .lib files, not .a files. |
| 25141 | libext=lib |
| 25142 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25143 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25144 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25145 | 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] | 25146 | # The linker will automatically build a .lib file if we build a DLL. |
| 25147 | old_archive_From_new_cmds_GCJ='true' |
| 25148 | # FIXME: Should let the user specify the lib program. |
| 25149 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25150 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25151 | enable_shared_with_static_runtimes_GCJ=yes |
| 25152 | ;; |
| 25153 | |
| 25154 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25155 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25156 | rhapsody* | darwin1.[012]) |
| 25157 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 25158 | ;; |
| 25159 | *) # Darwin 1.3 on |
| 25160 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 25161 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25162 | else |
| 25163 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 25164 | 10.[012]) |
| 25165 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25166 | ;; |
| 25167 | 10.*) |
| 25168 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 25169 | ;; |
| 25170 | esac |
| 25171 | fi |
| 25172 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25173 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25174 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25175 | hardcode_direct_GCJ=no |
| 25176 | hardcode_automatic_GCJ=yes |
| 25177 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25178 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25179 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25180 | if test "$GCC" = yes ; then |
| 25181 | output_verbose_link_cmd='echo' |
| 25182 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25183 | 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] | 25184 | # 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] | 25185 | 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}' |
| 25186 | 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] | 25187 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25188 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25189 | xlc*) |
| 25190 | output_verbose_link_cmd='echo' |
| 25191 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25192 | 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] | 25193 | # 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] | 25194 | 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}' |
| 25195 | 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] | 25196 | ;; |
| 25197 | *) |
| 25198 | ld_shlibs_GCJ=no |
| 25199 | ;; |
| 25200 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25201 | fi |
| 25202 | ;; |
| 25203 | |
| 25204 | dgux*) |
| 25205 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25206 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25207 | hardcode_shlibpath_var_GCJ=no |
| 25208 | ;; |
| 25209 | |
| 25210 | freebsd1*) |
| 25211 | ld_shlibs_GCJ=no |
| 25212 | ;; |
| 25213 | |
| 25214 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25215 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25216 | # does not break anything, and helps significantly (at the cost of a little |
| 25217 | # extra space). |
| 25218 | freebsd2.2*) |
| 25219 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25220 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25221 | hardcode_direct_GCJ=yes |
| 25222 | hardcode_shlibpath_var_GCJ=no |
| 25223 | ;; |
| 25224 | |
| 25225 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25226 | freebsd2*) |
| 25227 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25228 | hardcode_direct_GCJ=yes |
| 25229 | hardcode_minus_L_GCJ=yes |
| 25230 | hardcode_shlibpath_var_GCJ=no |
| 25231 | ;; |
| 25232 | |
| 25233 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25234 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25235 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25236 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25237 | hardcode_direct_GCJ=yes |
| 25238 | hardcode_shlibpath_var_GCJ=no |
| 25239 | ;; |
| 25240 | |
| 25241 | hpux9*) |
| 25242 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25243 | 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] | 25244 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25245 | 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] | 25246 | fi |
| 25247 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25248 | hardcode_libdir_separator_GCJ=: |
| 25249 | hardcode_direct_GCJ=yes |
| 25250 | |
| 25251 | # hardcode_minus_L: Not really in the search PATH, |
| 25252 | # but as the default location of the library. |
| 25253 | hardcode_minus_L_GCJ=yes |
| 25254 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25255 | ;; |
| 25256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25257 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25258 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25259 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25260 | else |
| 25261 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25262 | fi |
| 25263 | if test "$with_gnu_ld" = no; then |
| 25264 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25265 | hardcode_libdir_separator_GCJ=: |
| 25266 | |
| 25267 | hardcode_direct_GCJ=yes |
| 25268 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25269 | |
| 25270 | # hardcode_minus_L: Not really in the search PATH, |
| 25271 | # but as the default location of the library. |
| 25272 | hardcode_minus_L_GCJ=yes |
| 25273 | fi |
| 25274 | ;; |
| 25275 | |
| 25276 | hpux11*) |
| 25277 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25278 | case $host_cpu in |
| 25279 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25280 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25281 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25282 | ia64*) |
| 25283 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25284 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25285 | *) |
| 25286 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25287 | ;; |
| 25288 | esac |
| 25289 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25290 | case $host_cpu in |
| 25291 | hppa*64*) |
| 25292 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25293 | ;; |
| 25294 | ia64*) |
| 25295 | 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] | 25296 | ;; |
| 25297 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25298 | 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] | 25299 | ;; |
| 25300 | esac |
| 25301 | fi |
| 25302 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25303 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25304 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25306 | case $host_cpu in |
| 25307 | hppa*64*|ia64*) |
| 25308 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 25309 | hardcode_direct_GCJ=no |
| 25310 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25311 | ;; |
| 25312 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25313 | hardcode_direct_GCJ=yes |
| 25314 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25315 | |
| 25316 | # hardcode_minus_L: Not really in the search PATH, |
| 25317 | # but as the default location of the library. |
| 25318 | hardcode_minus_L_GCJ=yes |
| 25319 | ;; |
| 25320 | esac |
| 25321 | fi |
| 25322 | ;; |
| 25323 | |
| 25324 | irix5* | irix6* | nonstopux*) |
| 25325 | if test "$GCC" = yes; then |
| 25326 | 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' |
| 25327 | else |
| 25328 | 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' |
| 25329 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25330 | fi |
| 25331 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25332 | hardcode_libdir_separator_GCJ=: |
| 25333 | link_all_deplibs_GCJ=yes |
| 25334 | ;; |
| 25335 | |
| 25336 | netbsd*) |
| 25337 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25338 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25339 | else |
| 25340 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25341 | fi |
| 25342 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25343 | hardcode_direct_GCJ=yes |
| 25344 | hardcode_shlibpath_var_GCJ=no |
| 25345 | ;; |
| 25346 | |
| 25347 | newsos6) |
| 25348 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25349 | hardcode_direct_GCJ=yes |
| 25350 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25351 | hardcode_libdir_separator_GCJ=: |
| 25352 | hardcode_shlibpath_var_GCJ=no |
| 25353 | ;; |
| 25354 | |
| 25355 | openbsd*) |
| 25356 | hardcode_direct_GCJ=yes |
| 25357 | hardcode_shlibpath_var_GCJ=no |
| 25358 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25359 | 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] | 25360 | 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] | 25361 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25362 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25363 | else |
| 25364 | case $host_os in |
| 25365 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25366 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25367 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25368 | ;; |
| 25369 | *) |
| 25370 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25371 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25372 | ;; |
| 25373 | esac |
| 25374 | fi |
| 25375 | ;; |
| 25376 | |
| 25377 | os2*) |
| 25378 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25379 | hardcode_minus_L_GCJ=yes |
| 25380 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25381 | 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] | 25382 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25383 | ;; |
| 25384 | |
| 25385 | osf3*) |
| 25386 | if test "$GCC" = yes; then |
| 25387 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25388 | 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' |
| 25389 | else |
| 25390 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25391 | 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' |
| 25392 | fi |
| 25393 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25394 | hardcode_libdir_separator_GCJ=: |
| 25395 | ;; |
| 25396 | |
| 25397 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25398 | if test "$GCC" = yes; then |
| 25399 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25400 | 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' |
| 25401 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25402 | else |
| 25403 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25404 | 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] | 25405 | 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] | 25406 | $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] | 25407 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25408 | # Both c and cxx compiler support -rpath directly |
| 25409 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25410 | fi |
| 25411 | hardcode_libdir_separator_GCJ=: |
| 25412 | ;; |
| 25413 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25414 | solaris*) |
| 25415 | no_undefined_flag_GCJ=' -z text' |
| 25416 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25417 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25418 | 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] | 25419 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25420 | $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] | 25421 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25422 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25423 | 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] | 25424 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25425 | $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] | 25426 | fi |
| 25427 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25428 | hardcode_shlibpath_var_GCJ=no |
| 25429 | case $host_os in |
| 25430 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25431 | *) |
| 25432 | # The compiler driver will combine linker options so we |
| 25433 | # cannot just pass the convience library names through |
| 25434 | # without $wl, iff we do not link with $LD. |
| 25435 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25436 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25437 | case $wlarc in |
| 25438 | '') |
| 25439 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25440 | *) |
| 25441 | 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' ;; |
| 25442 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25443 | esac |
| 25444 | link_all_deplibs_GCJ=yes |
| 25445 | ;; |
| 25446 | |
| 25447 | sunos4*) |
| 25448 | if test "x$host_vendor" = xsequent; then |
| 25449 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25450 | # files that make .init and .fini sections work. |
| 25451 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25452 | else |
| 25453 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25454 | fi |
| 25455 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25456 | hardcode_direct_GCJ=yes |
| 25457 | hardcode_minus_L_GCJ=yes |
| 25458 | hardcode_shlibpath_var_GCJ=no |
| 25459 | ;; |
| 25460 | |
| 25461 | sysv4) |
| 25462 | case $host_vendor in |
| 25463 | sni) |
| 25464 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25465 | hardcode_direct_GCJ=yes # is this really true??? |
| 25466 | ;; |
| 25467 | siemens) |
| 25468 | ## LD is ld it makes a PLAMLIB |
| 25469 | ## CC just makes a GrossModule. |
| 25470 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25471 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25472 | hardcode_direct_GCJ=no |
| 25473 | ;; |
| 25474 | motorola) |
| 25475 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25476 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25477 | ;; |
| 25478 | esac |
| 25479 | runpath_var='LD_RUN_PATH' |
| 25480 | hardcode_shlibpath_var_GCJ=no |
| 25481 | ;; |
| 25482 | |
| 25483 | sysv4.3*) |
| 25484 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25485 | hardcode_shlibpath_var_GCJ=no |
| 25486 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25487 | ;; |
| 25488 | |
| 25489 | sysv4*MP*) |
| 25490 | if test -d /usr/nec; then |
| 25491 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25492 | hardcode_shlibpath_var_GCJ=no |
| 25493 | runpath_var=LD_RUN_PATH |
| 25494 | hardcode_runpath_var=yes |
| 25495 | ld_shlibs_GCJ=yes |
| 25496 | fi |
| 25497 | ;; |
| 25498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25499 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25500 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25501 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25502 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25503 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25504 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25505 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25506 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25507 | 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] | 25508 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25509 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25510 | 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] | 25511 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25512 | ;; |
| 25513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25514 | sysv5* | sco3.2v5* | sco5v6*) |
| 25515 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25516 | # link with -lc, and that would cause any symbols used from libc to |
| 25517 | # always be unresolved, which means just about no library would |
| 25518 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25519 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25520 | # as -z defs. |
| 25521 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25522 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25523 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25524 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25525 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25526 | hardcode_libdir_separator_GCJ=':' |
| 25527 | link_all_deplibs_GCJ=yes |
| 25528 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25529 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25530 | |
| 25531 | if test "$GCC" = yes; then |
| 25532 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25533 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25534 | else |
| 25535 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25536 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25537 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25538 | ;; |
| 25539 | |
| 25540 | uts4*) |
| 25541 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25542 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25543 | hardcode_shlibpath_var_GCJ=no |
| 25544 | ;; |
| 25545 | |
| 25546 | *) |
| 25547 | ld_shlibs_GCJ=no |
| 25548 | ;; |
| 25549 | esac |
| 25550 | fi |
| 25551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25552 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25553 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25554 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25556 | # |
| 25557 | # Do we need to explicitly link libc? |
| 25558 | # |
| 25559 | case "x$archive_cmds_need_lc_GCJ" in |
| 25560 | x|xyes) |
| 25561 | # Assume -lc should be added |
| 25562 | archive_cmds_need_lc_GCJ=yes |
| 25563 | |
| 25564 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25565 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25566 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25567 | # FIXME: we may have to deal with multi-command sequences. |
| 25568 | ;; |
| 25569 | '$CC '*) |
| 25570 | # Test whether the compiler implicitly links with -lc since on some |
| 25571 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25572 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25573 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25574 | 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] | 25575 | $rm conftest* |
| 25576 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25577 | |
| 25578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25579 | (eval $ac_compile) 2>&5 |
| 25580 | ac_status=$? |
| 25581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25582 | (exit $ac_status); } 2>conftest.err; then |
| 25583 | soname=conftest |
| 25584 | lib=conftest |
| 25585 | libobjs=conftest.$ac_objext |
| 25586 | deplibs= |
| 25587 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25588 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25589 | compiler_flags=-v |
| 25590 | linker_flags=-v |
| 25591 | verstring= |
| 25592 | output_objdir=. |
| 25593 | libname=conftest |
| 25594 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25595 | allow_undefined_flag_GCJ= |
| 25596 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25597 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25598 | ac_status=$? |
| 25599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25600 | (exit $ac_status); } |
| 25601 | then |
| 25602 | archive_cmds_need_lc_GCJ=no |
| 25603 | else |
| 25604 | archive_cmds_need_lc_GCJ=yes |
| 25605 | fi |
| 25606 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25607 | else |
| 25608 | cat conftest.err 1>&5 |
| 25609 | fi |
| 25610 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25611 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25612 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25613 | ;; |
| 25614 | esac |
| 25615 | fi |
| 25616 | ;; |
| 25617 | esac |
| 25618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25619 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25620 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25621 | library_names_spec= |
| 25622 | libname_spec='lib$name' |
| 25623 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25624 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25625 | postinstall_cmds= |
| 25626 | postuninstall_cmds= |
| 25627 | finish_cmds= |
| 25628 | finish_eval= |
| 25629 | shlibpath_var= |
| 25630 | shlibpath_overrides_runpath=unknown |
| 25631 | version_type=none |
| 25632 | dynamic_linker="$host_os ld.so" |
| 25633 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25634 | if test "$GCC" = yes; then |
| 25635 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25636 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25637 | # if the path contains ";" then we assume it to be the separator |
| 25638 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25639 | # assumed that no part of a normal pathname contains ";" but that should |
| 25640 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25641 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25642 | else |
| 25643 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25644 | fi |
| 25645 | else |
| 25646 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25647 | fi |
| 25648 | need_lib_prefix=unknown |
| 25649 | hardcode_into_libs=no |
| 25650 | |
| 25651 | # when you set need_version to no, make sure it does not cause -set_version |
| 25652 | # flags to be left without arguments |
| 25653 | need_version=unknown |
| 25654 | |
| 25655 | case $host_os in |
| 25656 | aix3*) |
| 25657 | version_type=linux |
| 25658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25659 | shlibpath_var=LIBPATH |
| 25660 | |
| 25661 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25663 | ;; |
| 25664 | |
| 25665 | aix4* | aix5*) |
| 25666 | version_type=linux |
| 25667 | need_lib_prefix=no |
| 25668 | need_version=no |
| 25669 | hardcode_into_libs=yes |
| 25670 | if test "$host_cpu" = ia64; then |
| 25671 | # AIX 5 supports IA64 |
| 25672 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25673 | shlibpath_var=LD_LIBRARY_PATH |
| 25674 | else |
| 25675 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25676 | # for dependence libraries. The import file would start with |
| 25677 | # the line `#! .'. This would cause the generated library to |
| 25678 | # depend on `.', always an invalid library. This was fixed in |
| 25679 | # development snapshots of GCC prior to 3.0. |
| 25680 | case $host_os in |
| 25681 | aix4 | aix4.[01] | aix4.[01].*) |
| 25682 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25683 | echo ' yes ' |
| 25684 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25685 | : |
| 25686 | else |
| 25687 | can_build_shared=no |
| 25688 | fi |
| 25689 | ;; |
| 25690 | esac |
| 25691 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25692 | # soname into executable. Probably we can add versioning support to |
| 25693 | # collect2, so additional links can be useful in future. |
| 25694 | if test "$aix_use_runtimelinking" = yes; then |
| 25695 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25696 | # instead of lib<name>.a to let people know that these are not |
| 25697 | # typical AIX shared libraries. |
| 25698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25699 | else |
| 25700 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25701 | # and later when we are not doing run time linking. |
| 25702 | library_names_spec='${libname}${release}.a $libname.a' |
| 25703 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25704 | fi |
| 25705 | shlibpath_var=LIBPATH |
| 25706 | fi |
| 25707 | ;; |
| 25708 | |
| 25709 | amigaos*) |
| 25710 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25711 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25712 | 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] | 25713 | ;; |
| 25714 | |
| 25715 | beos*) |
| 25716 | library_names_spec='${libname}${shared_ext}' |
| 25717 | dynamic_linker="$host_os ld.so" |
| 25718 | shlibpath_var=LIBRARY_PATH |
| 25719 | ;; |
| 25720 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25721 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25722 | version_type=linux |
| 25723 | need_version=no |
| 25724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25726 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25727 | shlibpath_var=LD_LIBRARY_PATH |
| 25728 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25729 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25730 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25731 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25732 | # libtool to hard-code these into programs |
| 25733 | ;; |
| 25734 | |
| 25735 | cygwin* | mingw* | pw32*) |
| 25736 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25737 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25738 | need_version=no |
| 25739 | need_lib_prefix=no |
| 25740 | |
| 25741 | case $GCC,$host_os in |
| 25742 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25743 | library_names_spec='$libname.dll.a' |
| 25744 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25745 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25746 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25747 | dldir=$destdir/`dirname \$dlpath`~ |
| 25748 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25749 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25750 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25751 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25752 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25753 | $rm \$dlpath' |
| 25754 | shlibpath_overrides_runpath=yes |
| 25755 | |
| 25756 | case $host_os in |
| 25757 | cygwin*) |
| 25758 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25759 | 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] | 25760 | 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] | 25761 | ;; |
| 25762 | mingw*) |
| 25763 | # MinGW DLLs use traditional 'lib' prefix |
| 25764 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25765 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25766 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25767 | # It is most probably a Windows format PATH printed by |
| 25768 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25769 | # path with ; separators, and with drive letters. We can handle the |
| 25770 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25771 | # especially as we might pass files found there to a mingw objdump, |
| 25772 | # which wouldn't understand a cygwinified path. Ahh. |
| 25773 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25774 | else |
| 25775 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25776 | fi |
| 25777 | ;; |
| 25778 | pw32*) |
| 25779 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25780 | 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] | 25781 | ;; |
| 25782 | esac |
| 25783 | ;; |
| 25784 | |
| 25785 | *) |
| 25786 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25787 | ;; |
| 25788 | esac |
| 25789 | dynamic_linker='Win32 ld.exe' |
| 25790 | # FIXME: first we should search . and the directory the executable is in |
| 25791 | shlibpath_var=PATH |
| 25792 | ;; |
| 25793 | |
| 25794 | darwin* | rhapsody*) |
| 25795 | dynamic_linker="$host_os dyld" |
| 25796 | version_type=darwin |
| 25797 | need_lib_prefix=no |
| 25798 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25799 | 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] | 25800 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25801 | shlibpath_overrides_runpath=yes |
| 25802 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25803 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25804 | # 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] | 25805 | if test "$GCC" = yes; then |
| 25806 | 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"` |
| 25807 | else |
| 25808 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25809 | fi |
| 25810 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25811 | ;; |
| 25812 | |
| 25813 | dgux*) |
| 25814 | version_type=linux |
| 25815 | need_lib_prefix=no |
| 25816 | need_version=no |
| 25817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25818 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25819 | shlibpath_var=LD_LIBRARY_PATH |
| 25820 | ;; |
| 25821 | |
| 25822 | freebsd1*) |
| 25823 | dynamic_linker=no |
| 25824 | ;; |
| 25825 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25826 | kfreebsd*-gnu) |
| 25827 | version_type=linux |
| 25828 | need_lib_prefix=no |
| 25829 | need_version=no |
| 25830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25832 | shlibpath_var=LD_LIBRARY_PATH |
| 25833 | shlibpath_overrides_runpath=no |
| 25834 | hardcode_into_libs=yes |
| 25835 | dynamic_linker='GNU ld.so' |
| 25836 | ;; |
| 25837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25838 | freebsd* | dragonfly*) |
| 25839 | # DragonFly does not have aout. When/if they implement a new |
| 25840 | # versioning mechanism, adjust this. |
| 25841 | if test -x /usr/bin/objformat; then |
| 25842 | objformat=`/usr/bin/objformat` |
| 25843 | else |
| 25844 | case $host_os in |
| 25845 | freebsd[123]*) objformat=aout ;; |
| 25846 | *) objformat=elf ;; |
| 25847 | esac |
| 25848 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25849 | version_type=freebsd-$objformat |
| 25850 | case $version_type in |
| 25851 | freebsd-elf*) |
| 25852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25853 | need_version=no |
| 25854 | need_lib_prefix=no |
| 25855 | ;; |
| 25856 | freebsd-*) |
| 25857 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25858 | need_version=yes |
| 25859 | ;; |
| 25860 | esac |
| 25861 | shlibpath_var=LD_LIBRARY_PATH |
| 25862 | case $host_os in |
| 25863 | freebsd2*) |
| 25864 | shlibpath_overrides_runpath=yes |
| 25865 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25866 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25867 | shlibpath_overrides_runpath=yes |
| 25868 | hardcode_into_libs=yes |
| 25869 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25870 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25871 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25872 | shlibpath_overrides_runpath=no |
| 25873 | hardcode_into_libs=yes |
| 25874 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25875 | freebsd*) # from 4.6 on |
| 25876 | shlibpath_overrides_runpath=yes |
| 25877 | hardcode_into_libs=yes |
| 25878 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25879 | esac |
| 25880 | ;; |
| 25881 | |
| 25882 | gnu*) |
| 25883 | version_type=linux |
| 25884 | need_lib_prefix=no |
| 25885 | need_version=no |
| 25886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25888 | shlibpath_var=LD_LIBRARY_PATH |
| 25889 | hardcode_into_libs=yes |
| 25890 | ;; |
| 25891 | |
| 25892 | hpux9* | hpux10* | hpux11*) |
| 25893 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25894 | # link against other versions. |
| 25895 | version_type=sunos |
| 25896 | need_lib_prefix=no |
| 25897 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25898 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25899 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25900 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25901 | hardcode_into_libs=yes |
| 25902 | dynamic_linker="$host_os dld.so" |
| 25903 | shlibpath_var=LD_LIBRARY_PATH |
| 25904 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25906 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25907 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25908 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25909 | else |
| 25910 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25911 | fi |
| 25912 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25913 | ;; |
| 25914 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25915 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25916 | hardcode_into_libs=yes |
| 25917 | dynamic_linker="$host_os dld.sl" |
| 25918 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25919 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25922 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25923 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25924 | ;; |
| 25925 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25926 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25927 | dynamic_linker="$host_os dld.sl" |
| 25928 | shlibpath_var=SHLIB_PATH |
| 25929 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25931 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25932 | ;; |
| 25933 | esac |
| 25934 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25935 | postinstall_cmds='chmod 555 $lib' |
| 25936 | ;; |
| 25937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25938 | interix3*) |
| 25939 | version_type=linux |
| 25940 | need_lib_prefix=no |
| 25941 | need_version=no |
| 25942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25944 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25945 | shlibpath_var=LD_LIBRARY_PATH |
| 25946 | shlibpath_overrides_runpath=no |
| 25947 | hardcode_into_libs=yes |
| 25948 | ;; |
| 25949 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25950 | irix5* | irix6* | nonstopux*) |
| 25951 | case $host_os in |
| 25952 | nonstopux*) version_type=nonstopux ;; |
| 25953 | *) |
| 25954 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25955 | version_type=linux |
| 25956 | else |
| 25957 | version_type=irix |
| 25958 | fi ;; |
| 25959 | esac |
| 25960 | need_lib_prefix=no |
| 25961 | need_version=no |
| 25962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25964 | case $host_os in |
| 25965 | irix5* | nonstopux*) |
| 25966 | libsuff= shlibsuff= |
| 25967 | ;; |
| 25968 | *) |
| 25969 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25970 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25971 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25972 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25973 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25974 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25975 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25976 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25977 | esac |
| 25978 | ;; |
| 25979 | esac |
| 25980 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25981 | shlibpath_overrides_runpath=no |
| 25982 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25983 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25984 | hardcode_into_libs=yes |
| 25985 | ;; |
| 25986 | |
| 25987 | # No shared lib support for Linux oldld, aout, or coff. |
| 25988 | linux*oldld* | linux*aout* | linux*coff*) |
| 25989 | dynamic_linker=no |
| 25990 | ;; |
| 25991 | |
| 25992 | # This must be Linux ELF. |
| 25993 | linux*) |
| 25994 | version_type=linux |
| 25995 | need_lib_prefix=no |
| 25996 | need_version=no |
| 25997 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25998 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25999 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 26000 | shlibpath_var=LD_LIBRARY_PATH |
| 26001 | shlibpath_overrides_runpath=no |
| 26002 | # This implies no fast_install, which is unacceptable. |
| 26003 | # Some rework will be needed to allow for fast_install |
| 26004 | # before this can be enabled. |
| 26005 | hardcode_into_libs=yes |
| 26006 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26007 | # Append ld.so.conf contents to the search path |
| 26008 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26009 | 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] | 26010 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 26011 | fi |
| 26012 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26013 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 26014 | # powerpc, because MkLinux only supported shared libraries with the |
| 26015 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 26016 | # most powerpc-linux boxes support dynamic linking these days and |
| 26017 | # people can always --disable-shared, the test was removed, and we |
| 26018 | # assume the GNU/Linux dynamic linker is in use. |
| 26019 | dynamic_linker='GNU/Linux ld.so' |
| 26020 | ;; |
| 26021 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26022 | knetbsd*-gnu) |
| 26023 | version_type=linux |
| 26024 | need_lib_prefix=no |
| 26025 | need_version=no |
| 26026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 26027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26028 | shlibpath_var=LD_LIBRARY_PATH |
| 26029 | shlibpath_overrides_runpath=no |
| 26030 | hardcode_into_libs=yes |
| 26031 | dynamic_linker='GNU ld.so' |
| 26032 | ;; |
| 26033 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26034 | netbsd*) |
| 26035 | version_type=sunos |
| 26036 | need_lib_prefix=no |
| 26037 | need_version=no |
| 26038 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 26039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26041 | dynamic_linker='NetBSD (a.out) ld.so' |
| 26042 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26043 | 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] | 26044 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26045 | dynamic_linker='NetBSD ld.elf_so' |
| 26046 | fi |
| 26047 | shlibpath_var=LD_LIBRARY_PATH |
| 26048 | shlibpath_overrides_runpath=yes |
| 26049 | hardcode_into_libs=yes |
| 26050 | ;; |
| 26051 | |
| 26052 | newsos6) |
| 26053 | version_type=linux |
| 26054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26055 | shlibpath_var=LD_LIBRARY_PATH |
| 26056 | shlibpath_overrides_runpath=yes |
| 26057 | ;; |
| 26058 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26059 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26060 | version_type=linux |
| 26061 | need_lib_prefix=no |
| 26062 | need_version=no |
| 26063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26064 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26065 | shlibpath_var=LD_LIBRARY_PATH |
| 26066 | shlibpath_overrides_runpath=yes |
| 26067 | ;; |
| 26068 | |
| 26069 | openbsd*) |
| 26070 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26071 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26072 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26073 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 26074 | case $host_os in |
| 26075 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 26076 | *) need_version=no ;; |
| 26077 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26079 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26080 | shlibpath_var=LD_LIBRARY_PATH |
| 26081 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 26082 | case $host_os in |
| 26083 | openbsd2.[89] | openbsd2.[89].*) |
| 26084 | shlibpath_overrides_runpath=no |
| 26085 | ;; |
| 26086 | *) |
| 26087 | shlibpath_overrides_runpath=yes |
| 26088 | ;; |
| 26089 | esac |
| 26090 | else |
| 26091 | shlibpath_overrides_runpath=yes |
| 26092 | fi |
| 26093 | ;; |
| 26094 | |
| 26095 | os2*) |
| 26096 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26097 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26098 | need_lib_prefix=no |
| 26099 | library_names_spec='$libname${shared_ext} $libname.a' |
| 26100 | dynamic_linker='OS/2 ld.exe' |
| 26101 | shlibpath_var=LIBPATH |
| 26102 | ;; |
| 26103 | |
| 26104 | osf3* | osf4* | osf5*) |
| 26105 | version_type=osf |
| 26106 | need_lib_prefix=no |
| 26107 | need_version=no |
| 26108 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26110 | shlibpath_var=LD_LIBRARY_PATH |
| 26111 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 26112 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 26113 | ;; |
| 26114 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26115 | solaris*) |
| 26116 | version_type=linux |
| 26117 | need_lib_prefix=no |
| 26118 | need_version=no |
| 26119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26120 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26121 | shlibpath_var=LD_LIBRARY_PATH |
| 26122 | shlibpath_overrides_runpath=yes |
| 26123 | hardcode_into_libs=yes |
| 26124 | # ldd complains unless libraries are executable |
| 26125 | postinstall_cmds='chmod +x $lib' |
| 26126 | ;; |
| 26127 | |
| 26128 | sunos4*) |
| 26129 | version_type=sunos |
| 26130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26131 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 26132 | shlibpath_var=LD_LIBRARY_PATH |
| 26133 | shlibpath_overrides_runpath=yes |
| 26134 | if test "$with_gnu_ld" = yes; then |
| 26135 | need_lib_prefix=no |
| 26136 | fi |
| 26137 | need_version=yes |
| 26138 | ;; |
| 26139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26140 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26141 | version_type=linux |
| 26142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26143 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26144 | shlibpath_var=LD_LIBRARY_PATH |
| 26145 | case $host_vendor in |
| 26146 | sni) |
| 26147 | shlibpath_overrides_runpath=no |
| 26148 | need_lib_prefix=no |
| 26149 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 26150 | runpath_var=LD_RUN_PATH |
| 26151 | ;; |
| 26152 | siemens) |
| 26153 | need_lib_prefix=no |
| 26154 | ;; |
| 26155 | motorola) |
| 26156 | need_lib_prefix=no |
| 26157 | need_version=no |
| 26158 | shlibpath_overrides_runpath=no |
| 26159 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 26160 | ;; |
| 26161 | esac |
| 26162 | ;; |
| 26163 | |
| 26164 | sysv4*MP*) |
| 26165 | if test -d /usr/nec ;then |
| 26166 | version_type=linux |
| 26167 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 26168 | soname_spec='$libname${shared_ext}.$major' |
| 26169 | shlibpath_var=LD_LIBRARY_PATH |
| 26170 | fi |
| 26171 | ;; |
| 26172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26173 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 26174 | version_type=freebsd-elf |
| 26175 | need_lib_prefix=no |
| 26176 | need_version=no |
| 26177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26179 | shlibpath_var=LD_LIBRARY_PATH |
| 26180 | hardcode_into_libs=yes |
| 26181 | if test "$with_gnu_ld" = yes; then |
| 26182 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 26183 | shlibpath_overrides_runpath=no |
| 26184 | else |
| 26185 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 26186 | shlibpath_overrides_runpath=yes |
| 26187 | case $host_os in |
| 26188 | sco3.2v5*) |
| 26189 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 26190 | ;; |
| 26191 | esac |
| 26192 | fi |
| 26193 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 26194 | ;; |
| 26195 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26196 | uts4*) |
| 26197 | version_type=linux |
| 26198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26200 | shlibpath_var=LD_LIBRARY_PATH |
| 26201 | ;; |
| 26202 | |
| 26203 | *) |
| 26204 | dynamic_linker=no |
| 26205 | ;; |
| 26206 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26207 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 26208 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26209 | test "$dynamic_linker" = no && can_build_shared=no |
| 26210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26211 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 26212 | if test "$GCC" = yes; then |
| 26213 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 26214 | fi |
| 26215 | |
| 26216 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 26217 | 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] | 26218 | hardcode_action_GCJ= |
| 26219 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 26220 | test -n "$runpath_var_GCJ" || \ |
| 26221 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 26222 | |
| 26223 | # We can hardcode non-existant directories. |
| 26224 | if test "$hardcode_direct_GCJ" != no && |
| 26225 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 26226 | # have to relink, otherwise we might link with an installed library |
| 26227 | # when we should be linking with a yet-to-be-installed one |
| 26228 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 26229 | test "$hardcode_minus_L_GCJ" != no; then |
| 26230 | # Linking always hardcodes the temporary library directory. |
| 26231 | hardcode_action_GCJ=relink |
| 26232 | else |
| 26233 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 26234 | hardcode_action_GCJ=immediate |
| 26235 | fi |
| 26236 | else |
| 26237 | # We cannot hardcode anything, or else we can only hardcode existing |
| 26238 | # directories. |
| 26239 | hardcode_action_GCJ=unsupported |
| 26240 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26241 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 26242 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26243 | |
| 26244 | if test "$hardcode_action_GCJ" = relink; then |
| 26245 | # Fast installation is not supported |
| 26246 | enable_fast_install=no |
| 26247 | elif test "$shlibpath_overrides_runpath" = yes || |
| 26248 | test "$enable_shared" = no; then |
| 26249 | # Fast installation is not necessary |
| 26250 | enable_fast_install=needless |
| 26251 | fi |
| 26252 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26253 | |
| 26254 | # The else clause should only fire when bootstrapping the |
| 26255 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26256 | # with your package, and you will get complaints that there are |
| 26257 | # no rules to generate ltmain.sh. |
| 26258 | if test -f "$ltmain"; then |
| 26259 | # See if we are running on zsh, and set the options which allow our commands through |
| 26260 | # without removal of \ escapes. |
| 26261 | if test -n "${ZSH_VERSION+set}" ; then |
| 26262 | setopt NO_GLOB_SUBST |
| 26263 | fi |
| 26264 | # Now quote all the things that may contain metacharacters while being |
| 26265 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26266 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26267 | 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] | 26268 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26269 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26270 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26271 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26272 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26273 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26274 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26275 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26276 | compiler_GCJ \ |
| 26277 | CC_GCJ \ |
| 26278 | LD_GCJ \ |
| 26279 | lt_prog_compiler_wl_GCJ \ |
| 26280 | lt_prog_compiler_pic_GCJ \ |
| 26281 | lt_prog_compiler_static_GCJ \ |
| 26282 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 26283 | export_dynamic_flag_spec_GCJ \ |
| 26284 | thread_safe_flag_spec_GCJ \ |
| 26285 | whole_archive_flag_spec_GCJ \ |
| 26286 | enable_shared_with_static_runtimes_GCJ \ |
| 26287 | old_archive_cmds_GCJ \ |
| 26288 | old_archive_from_new_cmds_GCJ \ |
| 26289 | predep_objects_GCJ \ |
| 26290 | postdep_objects_GCJ \ |
| 26291 | predeps_GCJ \ |
| 26292 | postdeps_GCJ \ |
| 26293 | compiler_lib_search_path_GCJ \ |
| 26294 | archive_cmds_GCJ \ |
| 26295 | archive_expsym_cmds_GCJ \ |
| 26296 | postinstall_cmds_GCJ \ |
| 26297 | postuninstall_cmds_GCJ \ |
| 26298 | old_archive_from_expsyms_cmds_GCJ \ |
| 26299 | allow_undefined_flag_GCJ \ |
| 26300 | no_undefined_flag_GCJ \ |
| 26301 | export_symbols_cmds_GCJ \ |
| 26302 | hardcode_libdir_flag_spec_GCJ \ |
| 26303 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 26304 | hardcode_libdir_separator_GCJ \ |
| 26305 | hardcode_automatic_GCJ \ |
| 26306 | module_cmds_GCJ \ |
| 26307 | module_expsym_cmds_GCJ \ |
| 26308 | lt_cv_prog_compiler_c_o_GCJ \ |
| 26309 | exclude_expsyms_GCJ \ |
| 26310 | include_expsyms_GCJ; do |
| 26311 | |
| 26312 | case $var in |
| 26313 | old_archive_cmds_GCJ | \ |
| 26314 | old_archive_from_new_cmds_GCJ | \ |
| 26315 | archive_cmds_GCJ | \ |
| 26316 | archive_expsym_cmds_GCJ | \ |
| 26317 | module_cmds_GCJ | \ |
| 26318 | module_expsym_cmds_GCJ | \ |
| 26319 | old_archive_from_expsyms_cmds_GCJ | \ |
| 26320 | export_symbols_cmds_GCJ | \ |
| 26321 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26322 | postinstall_cmds | postuninstall_cmds | \ |
| 26323 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26324 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26325 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26326 | 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] | 26327 | ;; |
| 26328 | *) |
| 26329 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26330 | ;; |
| 26331 | esac |
| 26332 | done |
| 26333 | |
| 26334 | case $lt_echo in |
| 26335 | *'\$0 --fallback-echo"') |
| 26336 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26337 | ;; |
| 26338 | esac |
| 26339 | |
| 26340 | cfgfile="$ofile" |
| 26341 | |
| 26342 | cat <<__EOF__ >> "$cfgfile" |
| 26343 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26344 | |
| 26345 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26346 | |
| 26347 | # Shell to use when invoking shell scripts. |
| 26348 | SHELL=$lt_SHELL |
| 26349 | |
| 26350 | # Whether or not to build shared libraries. |
| 26351 | build_libtool_libs=$enable_shared |
| 26352 | |
| 26353 | # Whether or not to build static libraries. |
| 26354 | build_old_libs=$enable_static |
| 26355 | |
| 26356 | # Whether or not to add -lc for building shared libraries. |
| 26357 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26358 | |
| 26359 | # Whether or not to disallow shared libs when runtime libs are static |
| 26360 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26361 | |
| 26362 | # Whether or not to optimize for fast installation. |
| 26363 | fast_install=$enable_fast_install |
| 26364 | |
| 26365 | # The host system. |
| 26366 | host_alias=$host_alias |
| 26367 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26368 | host_os=$host_os |
| 26369 | |
| 26370 | # The build system. |
| 26371 | build_alias=$build_alias |
| 26372 | build=$build |
| 26373 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26374 | |
| 26375 | # An echo program that does not interpret backslashes. |
| 26376 | echo=$lt_echo |
| 26377 | |
| 26378 | # The archiver. |
| 26379 | AR=$lt_AR |
| 26380 | AR_FLAGS=$lt_AR_FLAGS |
| 26381 | |
| 26382 | # A C compiler. |
| 26383 | LTCC=$lt_LTCC |
| 26384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26385 | # LTCC compiler flags. |
| 26386 | LTCFLAGS=$lt_LTCFLAGS |
| 26387 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26388 | # A language-specific compiler. |
| 26389 | CC=$lt_compiler_GCJ |
| 26390 | |
| 26391 | # Is the compiler the GNU C compiler? |
| 26392 | with_gcc=$GCC_GCJ |
| 26393 | |
| 26394 | # An ERE matcher. |
| 26395 | EGREP=$lt_EGREP |
| 26396 | |
| 26397 | # The linker used to build libraries. |
| 26398 | LD=$lt_LD_GCJ |
| 26399 | |
| 26400 | # Whether we need hard or soft links. |
| 26401 | LN_S=$lt_LN_S |
| 26402 | |
| 26403 | # A BSD-compatible nm program. |
| 26404 | NM=$lt_NM |
| 26405 | |
| 26406 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26407 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26408 | |
| 26409 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26410 | MAGIC_CMD=$MAGIC_CMD |
| 26411 | |
| 26412 | # Used on cygwin: DLL creation program. |
| 26413 | DLLTOOL="$DLLTOOL" |
| 26414 | |
| 26415 | # Used on cygwin: object dumper. |
| 26416 | OBJDUMP="$OBJDUMP" |
| 26417 | |
| 26418 | # Used on cygwin: assembler. |
| 26419 | AS="$AS" |
| 26420 | |
| 26421 | # The name of the directory that contains temporary libtool files. |
| 26422 | objdir=$objdir |
| 26423 | |
| 26424 | # How to create reloadable object files. |
| 26425 | reload_flag=$lt_reload_flag |
| 26426 | reload_cmds=$lt_reload_cmds |
| 26427 | |
| 26428 | # How to pass a linker flag through the compiler. |
| 26429 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26430 | |
| 26431 | # Object file suffix (normally "o"). |
| 26432 | objext="$ac_objext" |
| 26433 | |
| 26434 | # Old archive suffix (normally "a"). |
| 26435 | libext="$libext" |
| 26436 | |
| 26437 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26438 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26439 | |
| 26440 | # Executable file suffix (normally ""). |
| 26441 | exeext="$exeext" |
| 26442 | |
| 26443 | # Additional compiler flags for building library objects. |
| 26444 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26445 | pic_mode=$pic_mode |
| 26446 | |
| 26447 | # What is the maximum length of a command? |
| 26448 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26449 | |
| 26450 | # Does compiler simultaneously support -c and -o options? |
| 26451 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26453 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26454 | need_locks=$lt_need_locks |
| 26455 | |
| 26456 | # Do we need the lib prefix for modules? |
| 26457 | need_lib_prefix=$need_lib_prefix |
| 26458 | |
| 26459 | # Do we need a version for libraries? |
| 26460 | need_version=$need_version |
| 26461 | |
| 26462 | # Whether dlopen is supported. |
| 26463 | dlopen_support=$enable_dlopen |
| 26464 | |
| 26465 | # Whether dlopen of programs is supported. |
| 26466 | dlopen_self=$enable_dlopen_self |
| 26467 | |
| 26468 | # Whether dlopen of statically linked programs is supported. |
| 26469 | dlopen_self_static=$enable_dlopen_self_static |
| 26470 | |
| 26471 | # Compiler flag to prevent dynamic linking. |
| 26472 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26473 | |
| 26474 | # Compiler flag to turn off builtin functions. |
| 26475 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26476 | |
| 26477 | # Compiler flag to allow reflexive dlopens. |
| 26478 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26479 | |
| 26480 | # Compiler flag to generate shared objects directly from archives. |
| 26481 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26482 | |
| 26483 | # Compiler flag to generate thread-safe objects. |
| 26484 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26485 | |
| 26486 | # Library versioning type. |
| 26487 | version_type=$version_type |
| 26488 | |
| 26489 | # Format of library name prefix. |
| 26490 | libname_spec=$lt_libname_spec |
| 26491 | |
| 26492 | # List of archive names. First name is the real one, the rest are links. |
| 26493 | # The last name is the one that the linker finds with -lNAME. |
| 26494 | library_names_spec=$lt_library_names_spec |
| 26495 | |
| 26496 | # The coded name of the library, if different from the real name. |
| 26497 | soname_spec=$lt_soname_spec |
| 26498 | |
| 26499 | # Commands used to build and install an old-style archive. |
| 26500 | RANLIB=$lt_RANLIB |
| 26501 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26502 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26503 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26504 | |
| 26505 | # Create an old-style archive from a shared archive. |
| 26506 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26507 | |
| 26508 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26509 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26510 | |
| 26511 | # Commands used to build and install a shared archive. |
| 26512 | archive_cmds=$lt_archive_cmds_GCJ |
| 26513 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26514 | postinstall_cmds=$lt_postinstall_cmds |
| 26515 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26516 | |
| 26517 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26518 | module_cmds=$lt_module_cmds_GCJ |
| 26519 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26520 | |
| 26521 | # Commands to strip libraries. |
| 26522 | old_striplib=$lt_old_striplib |
| 26523 | striplib=$lt_striplib |
| 26524 | |
| 26525 | # Dependencies to place before the objects being linked to create a |
| 26526 | # shared library. |
| 26527 | predep_objects=$lt_predep_objects_GCJ |
| 26528 | |
| 26529 | # Dependencies to place after the objects being linked to create a |
| 26530 | # shared library. |
| 26531 | postdep_objects=$lt_postdep_objects_GCJ |
| 26532 | |
| 26533 | # Dependencies to place before the objects being linked to create a |
| 26534 | # shared library. |
| 26535 | predeps=$lt_predeps_GCJ |
| 26536 | |
| 26537 | # Dependencies to place after the objects being linked to create a |
| 26538 | # shared library. |
| 26539 | postdeps=$lt_postdeps_GCJ |
| 26540 | |
| 26541 | # The library search path used internally by the compiler when linking |
| 26542 | # a shared library. |
| 26543 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26544 | |
| 26545 | # Method to check whether dependent libraries are shared objects. |
| 26546 | deplibs_check_method=$lt_deplibs_check_method |
| 26547 | |
| 26548 | # Command to use when deplibs_check_method == file_magic. |
| 26549 | file_magic_cmd=$lt_file_magic_cmd |
| 26550 | |
| 26551 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26552 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26553 | |
| 26554 | # Flag that forces no undefined symbols. |
| 26555 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26556 | |
| 26557 | # Commands used to finish a libtool library installation in a directory. |
| 26558 | finish_cmds=$lt_finish_cmds |
| 26559 | |
| 26560 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26561 | finish_eval=$lt_finish_eval |
| 26562 | |
| 26563 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26564 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26565 | |
| 26566 | # Transform the output of nm in a proper C declaration |
| 26567 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26568 | |
| 26569 | # Transform the output of nm in a C name address pair |
| 26570 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26571 | |
| 26572 | # This is the shared library runtime path variable. |
| 26573 | runpath_var=$runpath_var |
| 26574 | |
| 26575 | # This is the shared library path variable. |
| 26576 | shlibpath_var=$shlibpath_var |
| 26577 | |
| 26578 | # Is shlibpath searched before the hard-coded library search path? |
| 26579 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26580 | |
| 26581 | # How to hardcode a shared library path into an executable. |
| 26582 | hardcode_action=$hardcode_action_GCJ |
| 26583 | |
| 26584 | # Whether we should hardcode library paths into libraries. |
| 26585 | hardcode_into_libs=$hardcode_into_libs |
| 26586 | |
| 26587 | # Flag to hardcode \$libdir into a binary during linking. |
| 26588 | # This must work even if \$libdir does not exist. |
| 26589 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26590 | |
| 26591 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26592 | # a binary during linking. This must work even if \$libdir does |
| 26593 | # not exist. |
| 26594 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26595 | |
| 26596 | # Whether we need a single -rpath flag with a separated argument. |
| 26597 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26598 | |
| 26599 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26600 | # resulting binary. |
| 26601 | hardcode_direct=$hardcode_direct_GCJ |
| 26602 | |
| 26603 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26604 | # resulting binary. |
| 26605 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26606 | |
| 26607 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26608 | # the resulting binary. |
| 26609 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26610 | |
| 26611 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26612 | # and all subsequent libraries and executables linked against it. |
| 26613 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26614 | |
| 26615 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26616 | # restored at relink time. |
| 26617 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26618 | |
| 26619 | # Whether libtool must link a program against all its dependency libraries. |
| 26620 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26621 | |
| 26622 | # Compile-time system search path for libraries |
| 26623 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26624 | |
| 26625 | # Run-time system search path for libraries |
| 26626 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26627 | |
| 26628 | # Fix the shell variable \$srcfile for the compiler. |
| 26629 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26630 | |
| 26631 | # Set to yes if exported symbols are required. |
| 26632 | always_export_symbols=$always_export_symbols_GCJ |
| 26633 | |
| 26634 | # The commands to list exported symbols. |
| 26635 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26636 | |
| 26637 | # The commands to extract the exported symbol list from a shared archive. |
| 26638 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26639 | |
| 26640 | # Symbols that should not be listed in the preloaded symbols. |
| 26641 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26642 | |
| 26643 | # Symbols that must always be exported. |
| 26644 | include_expsyms=$lt_include_expsyms_GCJ |
| 26645 | |
| 26646 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26647 | |
| 26648 | __EOF__ |
| 26649 | |
| 26650 | |
| 26651 | else |
| 26652 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26653 | # `config.status --recheck' to rerun these tests and create the |
| 26654 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26655 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26656 | if test -f "$ltmain_in"; then |
| 26657 | test -f Makefile && make "$ltmain" |
| 26658 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26659 | fi |
| 26660 | |
| 26661 | |
| 26662 | ac_ext=c |
| 26663 | ac_cpp='$CPP $CPPFLAGS' |
| 26664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26667 | |
| 26668 | CC="$lt_save_CC" |
| 26669 | |
| 26670 | else |
| 26671 | tagname="" |
| 26672 | fi |
| 26673 | ;; |
| 26674 | |
| 26675 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26676 | ac_ext=c |
| 26677 | ac_cpp='$CPP $CPPFLAGS' |
| 26678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26681 | |
| 26682 | |
| 26683 | # Source file extension for RC test sources. |
| 26684 | ac_ext=rc |
| 26685 | |
| 26686 | # Object file extension for compiled RC test sources. |
| 26687 | objext=o |
| 26688 | objext_RC=$objext |
| 26689 | |
| 26690 | # Code to be used in simple compile tests |
| 26691 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26692 | |
| 26693 | # Code to be used in simple link tests |
| 26694 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26695 | |
| 26696 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26697 | |
| 26698 | # If no C compiler was specified, use CC. |
| 26699 | LTCC=${LTCC-"$CC"} |
| 26700 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26701 | # If no C compiler flags were specified, use CFLAGS. |
| 26702 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26704 | # Allow CC to be a program name with arguments. |
| 26705 | compiler=$CC |
| 26706 | |
| 26707 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26708 | # save warnings/boilerplate of simple test code |
| 26709 | ac_outfile=conftest.$ac_objext |
| 26710 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26711 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26712 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26713 | $rm conftest* |
| 26714 | |
| 26715 | ac_outfile=conftest.$ac_objext |
| 26716 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26717 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26718 | _lt_linker_boilerplate=`cat conftest.err` |
| 26719 | $rm conftest* |
| 26720 | |
| 26721 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26722 | # Allow CC to be a program name with arguments. |
| 26723 | lt_save_CC="$CC" |
| 26724 | CC=${RC-"windres"} |
| 26725 | compiler=$CC |
| 26726 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26727 | for cc_temp in $compiler""; do |
| 26728 | case $cc_temp in |
| 26729 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26730 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26731 | \-*) ;; |
| 26732 | *) break;; |
| 26733 | esac |
| 26734 | done |
| 26735 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26736 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26737 | lt_cv_prog_compiler_c_o_RC=yes |
| 26738 | |
| 26739 | # The else clause should only fire when bootstrapping the |
| 26740 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26741 | # with your package, and you will get complaints that there are |
| 26742 | # no rules to generate ltmain.sh. |
| 26743 | if test -f "$ltmain"; then |
| 26744 | # See if we are running on zsh, and set the options which allow our commands through |
| 26745 | # without removal of \ escapes. |
| 26746 | if test -n "${ZSH_VERSION+set}" ; then |
| 26747 | setopt NO_GLOB_SUBST |
| 26748 | fi |
| 26749 | # Now quote all the things that may contain metacharacters while being |
| 26750 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26751 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26752 | 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] | 26753 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26754 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26755 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26756 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26757 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26758 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26759 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26760 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26761 | compiler_RC \ |
| 26762 | CC_RC \ |
| 26763 | LD_RC \ |
| 26764 | lt_prog_compiler_wl_RC \ |
| 26765 | lt_prog_compiler_pic_RC \ |
| 26766 | lt_prog_compiler_static_RC \ |
| 26767 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26768 | export_dynamic_flag_spec_RC \ |
| 26769 | thread_safe_flag_spec_RC \ |
| 26770 | whole_archive_flag_spec_RC \ |
| 26771 | enable_shared_with_static_runtimes_RC \ |
| 26772 | old_archive_cmds_RC \ |
| 26773 | old_archive_from_new_cmds_RC \ |
| 26774 | predep_objects_RC \ |
| 26775 | postdep_objects_RC \ |
| 26776 | predeps_RC \ |
| 26777 | postdeps_RC \ |
| 26778 | compiler_lib_search_path_RC \ |
| 26779 | archive_cmds_RC \ |
| 26780 | archive_expsym_cmds_RC \ |
| 26781 | postinstall_cmds_RC \ |
| 26782 | postuninstall_cmds_RC \ |
| 26783 | old_archive_from_expsyms_cmds_RC \ |
| 26784 | allow_undefined_flag_RC \ |
| 26785 | no_undefined_flag_RC \ |
| 26786 | export_symbols_cmds_RC \ |
| 26787 | hardcode_libdir_flag_spec_RC \ |
| 26788 | hardcode_libdir_flag_spec_ld_RC \ |
| 26789 | hardcode_libdir_separator_RC \ |
| 26790 | hardcode_automatic_RC \ |
| 26791 | module_cmds_RC \ |
| 26792 | module_expsym_cmds_RC \ |
| 26793 | lt_cv_prog_compiler_c_o_RC \ |
| 26794 | exclude_expsyms_RC \ |
| 26795 | include_expsyms_RC; do |
| 26796 | |
| 26797 | case $var in |
| 26798 | old_archive_cmds_RC | \ |
| 26799 | old_archive_from_new_cmds_RC | \ |
| 26800 | archive_cmds_RC | \ |
| 26801 | archive_expsym_cmds_RC | \ |
| 26802 | module_cmds_RC | \ |
| 26803 | module_expsym_cmds_RC | \ |
| 26804 | old_archive_from_expsyms_cmds_RC | \ |
| 26805 | export_symbols_cmds_RC | \ |
| 26806 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26807 | postinstall_cmds | postuninstall_cmds | \ |
| 26808 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26809 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26810 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26811 | 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] | 26812 | ;; |
| 26813 | *) |
| 26814 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26815 | ;; |
| 26816 | esac |
| 26817 | done |
| 26818 | |
| 26819 | case $lt_echo in |
| 26820 | *'\$0 --fallback-echo"') |
| 26821 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26822 | ;; |
| 26823 | esac |
| 26824 | |
| 26825 | cfgfile="$ofile" |
| 26826 | |
| 26827 | cat <<__EOF__ >> "$cfgfile" |
| 26828 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26829 | |
| 26830 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26831 | |
| 26832 | # Shell to use when invoking shell scripts. |
| 26833 | SHELL=$lt_SHELL |
| 26834 | |
| 26835 | # Whether or not to build shared libraries. |
| 26836 | build_libtool_libs=$enable_shared |
| 26837 | |
| 26838 | # Whether or not to build static libraries. |
| 26839 | build_old_libs=$enable_static |
| 26840 | |
| 26841 | # Whether or not to add -lc for building shared libraries. |
| 26842 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26843 | |
| 26844 | # Whether or not to disallow shared libs when runtime libs are static |
| 26845 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26846 | |
| 26847 | # Whether or not to optimize for fast installation. |
| 26848 | fast_install=$enable_fast_install |
| 26849 | |
| 26850 | # The host system. |
| 26851 | host_alias=$host_alias |
| 26852 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26853 | host_os=$host_os |
| 26854 | |
| 26855 | # The build system. |
| 26856 | build_alias=$build_alias |
| 26857 | build=$build |
| 26858 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26859 | |
| 26860 | # An echo program that does not interpret backslashes. |
| 26861 | echo=$lt_echo |
| 26862 | |
| 26863 | # The archiver. |
| 26864 | AR=$lt_AR |
| 26865 | AR_FLAGS=$lt_AR_FLAGS |
| 26866 | |
| 26867 | # A C compiler. |
| 26868 | LTCC=$lt_LTCC |
| 26869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26870 | # LTCC compiler flags. |
| 26871 | LTCFLAGS=$lt_LTCFLAGS |
| 26872 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26873 | # A language-specific compiler. |
| 26874 | CC=$lt_compiler_RC |
| 26875 | |
| 26876 | # Is the compiler the GNU C compiler? |
| 26877 | with_gcc=$GCC_RC |
| 26878 | |
| 26879 | # An ERE matcher. |
| 26880 | EGREP=$lt_EGREP |
| 26881 | |
| 26882 | # The linker used to build libraries. |
| 26883 | LD=$lt_LD_RC |
| 26884 | |
| 26885 | # Whether we need hard or soft links. |
| 26886 | LN_S=$lt_LN_S |
| 26887 | |
| 26888 | # A BSD-compatible nm program. |
| 26889 | NM=$lt_NM |
| 26890 | |
| 26891 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26892 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26893 | |
| 26894 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26895 | MAGIC_CMD=$MAGIC_CMD |
| 26896 | |
| 26897 | # Used on cygwin: DLL creation program. |
| 26898 | DLLTOOL="$DLLTOOL" |
| 26899 | |
| 26900 | # Used on cygwin: object dumper. |
| 26901 | OBJDUMP="$OBJDUMP" |
| 26902 | |
| 26903 | # Used on cygwin: assembler. |
| 26904 | AS="$AS" |
| 26905 | |
| 26906 | # The name of the directory that contains temporary libtool files. |
| 26907 | objdir=$objdir |
| 26908 | |
| 26909 | # How to create reloadable object files. |
| 26910 | reload_flag=$lt_reload_flag |
| 26911 | reload_cmds=$lt_reload_cmds |
| 26912 | |
| 26913 | # How to pass a linker flag through the compiler. |
| 26914 | wl=$lt_lt_prog_compiler_wl_RC |
| 26915 | |
| 26916 | # Object file suffix (normally "o"). |
| 26917 | objext="$ac_objext" |
| 26918 | |
| 26919 | # Old archive suffix (normally "a"). |
| 26920 | libext="$libext" |
| 26921 | |
| 26922 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26923 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26924 | |
| 26925 | # Executable file suffix (normally ""). |
| 26926 | exeext="$exeext" |
| 26927 | |
| 26928 | # Additional compiler flags for building library objects. |
| 26929 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26930 | pic_mode=$pic_mode |
| 26931 | |
| 26932 | # What is the maximum length of a command? |
| 26933 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26934 | |
| 26935 | # Does compiler simultaneously support -c and -o options? |
| 26936 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26938 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26939 | need_locks=$lt_need_locks |
| 26940 | |
| 26941 | # Do we need the lib prefix for modules? |
| 26942 | need_lib_prefix=$need_lib_prefix |
| 26943 | |
| 26944 | # Do we need a version for libraries? |
| 26945 | need_version=$need_version |
| 26946 | |
| 26947 | # Whether dlopen is supported. |
| 26948 | dlopen_support=$enable_dlopen |
| 26949 | |
| 26950 | # Whether dlopen of programs is supported. |
| 26951 | dlopen_self=$enable_dlopen_self |
| 26952 | |
| 26953 | # Whether dlopen of statically linked programs is supported. |
| 26954 | dlopen_self_static=$enable_dlopen_self_static |
| 26955 | |
| 26956 | # Compiler flag to prevent dynamic linking. |
| 26957 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26958 | |
| 26959 | # Compiler flag to turn off builtin functions. |
| 26960 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26961 | |
| 26962 | # Compiler flag to allow reflexive dlopens. |
| 26963 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26964 | |
| 26965 | # Compiler flag to generate shared objects directly from archives. |
| 26966 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26967 | |
| 26968 | # Compiler flag to generate thread-safe objects. |
| 26969 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26970 | |
| 26971 | # Library versioning type. |
| 26972 | version_type=$version_type |
| 26973 | |
| 26974 | # Format of library name prefix. |
| 26975 | libname_spec=$lt_libname_spec |
| 26976 | |
| 26977 | # List of archive names. First name is the real one, the rest are links. |
| 26978 | # The last name is the one that the linker finds with -lNAME. |
| 26979 | library_names_spec=$lt_library_names_spec |
| 26980 | |
| 26981 | # The coded name of the library, if different from the real name. |
| 26982 | soname_spec=$lt_soname_spec |
| 26983 | |
| 26984 | # Commands used to build and install an old-style archive. |
| 26985 | RANLIB=$lt_RANLIB |
| 26986 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26987 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26988 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26989 | |
| 26990 | # Create an old-style archive from a shared archive. |
| 26991 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26992 | |
| 26993 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26994 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26995 | |
| 26996 | # Commands used to build and install a shared archive. |
| 26997 | archive_cmds=$lt_archive_cmds_RC |
| 26998 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26999 | postinstall_cmds=$lt_postinstall_cmds |
| 27000 | postuninstall_cmds=$lt_postuninstall_cmds |
| 27001 | |
| 27002 | # Commands used to build a loadable module (assumed same as above if empty) |
| 27003 | module_cmds=$lt_module_cmds_RC |
| 27004 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 27005 | |
| 27006 | # Commands to strip libraries. |
| 27007 | old_striplib=$lt_old_striplib |
| 27008 | striplib=$lt_striplib |
| 27009 | |
| 27010 | # Dependencies to place before the objects being linked to create a |
| 27011 | # shared library. |
| 27012 | predep_objects=$lt_predep_objects_RC |
| 27013 | |
| 27014 | # Dependencies to place after the objects being linked to create a |
| 27015 | # shared library. |
| 27016 | postdep_objects=$lt_postdep_objects_RC |
| 27017 | |
| 27018 | # Dependencies to place before the objects being linked to create a |
| 27019 | # shared library. |
| 27020 | predeps=$lt_predeps_RC |
| 27021 | |
| 27022 | # Dependencies to place after the objects being linked to create a |
| 27023 | # shared library. |
| 27024 | postdeps=$lt_postdeps_RC |
| 27025 | |
| 27026 | # The library search path used internally by the compiler when linking |
| 27027 | # a shared library. |
| 27028 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 27029 | |
| 27030 | # Method to check whether dependent libraries are shared objects. |
| 27031 | deplibs_check_method=$lt_deplibs_check_method |
| 27032 | |
| 27033 | # Command to use when deplibs_check_method == file_magic. |
| 27034 | file_magic_cmd=$lt_file_magic_cmd |
| 27035 | |
| 27036 | # Flag that allows shared libraries with undefined symbols to be built. |
| 27037 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 27038 | |
| 27039 | # Flag that forces no undefined symbols. |
| 27040 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 27041 | |
| 27042 | # Commands used to finish a libtool library installation in a directory. |
| 27043 | finish_cmds=$lt_finish_cmds |
| 27044 | |
| 27045 | # Same as above, but a single script fragment to be evaled but not shown. |
| 27046 | finish_eval=$lt_finish_eval |
| 27047 | |
| 27048 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 27049 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 27050 | |
| 27051 | # Transform the output of nm in a proper C declaration |
| 27052 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 27053 | |
| 27054 | # Transform the output of nm in a C name address pair |
| 27055 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 27056 | |
| 27057 | # This is the shared library runtime path variable. |
| 27058 | runpath_var=$runpath_var |
| 27059 | |
| 27060 | # This is the shared library path variable. |
| 27061 | shlibpath_var=$shlibpath_var |
| 27062 | |
| 27063 | # Is shlibpath searched before the hard-coded library search path? |
| 27064 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27065 | |
| 27066 | # How to hardcode a shared library path into an executable. |
| 27067 | hardcode_action=$hardcode_action_RC |
| 27068 | |
| 27069 | # Whether we should hardcode library paths into libraries. |
| 27070 | hardcode_into_libs=$hardcode_into_libs |
| 27071 | |
| 27072 | # Flag to hardcode \$libdir into a binary during linking. |
| 27073 | # This must work even if \$libdir does not exist. |
| 27074 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 27075 | |
| 27076 | # If ld is used when linking, flag to hardcode \$libdir into |
| 27077 | # a binary during linking. This must work even if \$libdir does |
| 27078 | # not exist. |
| 27079 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 27080 | |
| 27081 | # Whether we need a single -rpath flag with a separated argument. |
| 27082 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 27083 | |
| 27084 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 27085 | # resulting binary. |
| 27086 | hardcode_direct=$hardcode_direct_RC |
| 27087 | |
| 27088 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 27089 | # resulting binary. |
| 27090 | hardcode_minus_L=$hardcode_minus_L_RC |
| 27091 | |
| 27092 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 27093 | # the resulting binary. |
| 27094 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 27095 | |
| 27096 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 27097 | # and all subsequent libraries and executables linked against it. |
| 27098 | hardcode_automatic=$hardcode_automatic_RC |
| 27099 | |
| 27100 | # Variables whose values should be saved in libtool wrapper scripts and |
| 27101 | # restored at relink time. |
| 27102 | variables_saved_for_relink="$variables_saved_for_relink" |
| 27103 | |
| 27104 | # Whether libtool must link a program against all its dependency libraries. |
| 27105 | link_all_deplibs=$link_all_deplibs_RC |
| 27106 | |
| 27107 | # Compile-time system search path for libraries |
| 27108 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27109 | |
| 27110 | # Run-time system search path for libraries |
| 27111 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 27112 | |
| 27113 | # Fix the shell variable \$srcfile for the compiler. |
| 27114 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 27115 | |
| 27116 | # Set to yes if exported symbols are required. |
| 27117 | always_export_symbols=$always_export_symbols_RC |
| 27118 | |
| 27119 | # The commands to list exported symbols. |
| 27120 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 27121 | |
| 27122 | # The commands to extract the exported symbol list from a shared archive. |
| 27123 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27124 | |
| 27125 | # Symbols that should not be listed in the preloaded symbols. |
| 27126 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 27127 | |
| 27128 | # Symbols that must always be exported. |
| 27129 | include_expsyms=$lt_include_expsyms_RC |
| 27130 | |
| 27131 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 27132 | |
| 27133 | __EOF__ |
| 27134 | |
| 27135 | |
| 27136 | else |
| 27137 | # If there is no Makefile yet, we rely on a make rule to execute |
| 27138 | # `config.status --recheck' to rerun these tests and create the |
| 27139 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27140 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 27141 | if test -f "$ltmain_in"; then |
| 27142 | test -f Makefile && make "$ltmain" |
| 27143 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27144 | fi |
| 27145 | |
| 27146 | |
| 27147 | ac_ext=c |
| 27148 | ac_cpp='$CPP $CPPFLAGS' |
| 27149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27152 | |
| 27153 | CC="$lt_save_CC" |
| 27154 | |
| 27155 | ;; |
| 27156 | |
| 27157 | *) |
| 27158 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 27159 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 27160 | { (exit 1); exit 1; }; } |
| 27161 | ;; |
| 27162 | esac |
| 27163 | |
| 27164 | # Append the new tag name to the list of available tags. |
| 27165 | if test -n "$tagname" ; then |
| 27166 | available_tags="$available_tags $tagname" |
| 27167 | fi |
| 27168 | fi |
| 27169 | done |
| 27170 | IFS="$lt_save_ifs" |
| 27171 | |
| 27172 | # Now substitute the updated list of available tags. |
| 27173 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 27174 | mv "${ofile}T" "$ofile" |
| 27175 | chmod +x "$ofile" |
| 27176 | else |
| 27177 | rm -f "${ofile}T" |
| 27178 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 27179 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 27180 | { (exit 1); exit 1; }; } |
| 27181 | fi |
| 27182 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27183 | |
| 27184 | |
| 27185 | |
| 27186 | # This can be used to rebuild libtool when needed |
| 27187 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 27188 | |
| 27189 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27190 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27191 | |
| 27192 | # Prevent multiple expansion |
| 27193 | |
| 27194 | |
| 27195 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27196 | |
| 27197 | |
| 27198 | |
| 27199 | |
| 27200 | |
| 27201 | |
| 27202 | |
| 27203 | |
| 27204 | |
| 27205 | |
| 27206 | |
| 27207 | |
| 27208 | |
| 27209 | |
| 27210 | |
| 27211 | |
| 27212 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27213 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27214 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 27215 | |
| 27216 | cat >>confdefs.h <<\_ACEOF |
| 27217 | #define CAN_DLOPEN_SELF 1 |
| 27218 | _ACEOF |
| 27219 | |
| 27220 | fi |
| 27221 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 27222 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27223 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27224 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 27225 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27226 | LLVMGCCCOMMAND="$LLVMGCC" |
| 27227 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27228 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27229 | |
| 27230 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27231 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27232 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 27233 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27236 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 27237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27238 | else |
| 27239 | case $LLVMGCC in |
| 27240 | [\\/]* | ?:[\\/]*) |
| 27241 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 27242 | ;; |
| 27243 | *) |
| 27244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27245 | for as_dir in $PATH |
| 27246 | do |
| 27247 | IFS=$as_save_IFS |
| 27248 | test -z "$as_dir" && as_dir=. |
| 27249 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27250 | 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] | 27251 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 27252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27253 | break 2 |
| 27254 | fi |
| 27255 | done |
| 27256 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27257 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27258 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27259 | ;; |
| 27260 | esac |
| 27261 | fi |
| 27262 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27263 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27264 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 27265 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27266 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27268 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27269 | fi |
| 27270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27271 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27272 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 27273 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27276 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 27277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27278 | else |
| 27279 | case $LLVMGXX in |
| 27280 | [\\/]* | ?:[\\/]*) |
| 27281 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 27282 | ;; |
| 27283 | *) |
| 27284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27285 | for as_dir in $PATH |
| 27286 | do |
| 27287 | IFS=$as_save_IFS |
| 27288 | test -z "$as_dir" && as_dir=. |
| 27289 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27290 | 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] | 27291 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 27292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27293 | break 2 |
| 27294 | fi |
| 27295 | done |
| 27296 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27297 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27298 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27299 | ;; |
| 27300 | esac |
| 27301 | fi |
| 27302 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27303 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27304 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 27305 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27306 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27308 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27309 | fi |
| 27310 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27311 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27312 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27313 | if test -z "$LLVMGCC"; then |
| 27314 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27315 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27316 | fi |
| 27317 | if test -z "$LLVMGXX"; then |
| 27318 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27319 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27320 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27321 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27322 | LLVMGCC=$LLVMGCC |
| 27323 | |
| 27324 | LLVMGXX=$LLVMGXX |
| 27325 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27326 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27327 | |
| 27328 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27329 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27330 | fi |
| 27331 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27333 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 27334 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27335 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27336 | ICC=no |
| 27337 | IXX=no |
| 27338 | case $CC in |
| 27339 | icc*|icpc*) |
| 27340 | ICC=yes |
| 27341 | IXX=yes |
| 27342 | ;; |
| 27343 | *) |
| 27344 | ;; |
| 27345 | esac |
| 27346 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27347 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27348 | then |
| 27349 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27350 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27351 | { (exit 1); exit 1; }; } |
| 27352 | fi |
| 27353 | |
| 27354 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27355 | then |
| 27356 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27357 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27358 | { (exit 1); exit 1; }; } |
| 27359 | fi |
| 27360 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27361 | if test "$GCC" = "yes" |
| 27362 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27363 | cat >conftest.$ac_ext <<_ACEOF |
| 27364 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27365 | #error Unsupported GCC version |
| 27366 | #endif |
| 27367 | |
| 27368 | _ACEOF |
| 27369 | rm -f conftest.$ac_objext |
| 27370 | if { (ac_try="$ac_compile" |
| 27371 | case "(($ac_try" in |
| 27372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27373 | *) ac_try_echo=$ac_try;; |
| 27374 | esac |
| 27375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27376 | (eval "$ac_compile") 2>conftest.er1 |
| 27377 | ac_status=$? |
| 27378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27379 | rm -f conftest.er1 |
| 27380 | cat conftest.err >&5 |
| 27381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27382 | (exit $ac_status); } && |
| 27383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27384 | { (case "(($ac_try" in |
| 27385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27386 | *) ac_try_echo=$ac_try;; |
| 27387 | esac |
| 27388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27389 | (eval "$ac_try") 2>&5 |
| 27390 | ac_status=$? |
| 27391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27392 | (exit $ac_status); }; } && |
| 27393 | { ac_try='test -s conftest.$ac_objext' |
| 27394 | { (case "(($ac_try" in |
| 27395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27396 | *) ac_try_echo=$ac_try;; |
| 27397 | esac |
| 27398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27399 | (eval "$ac_try") 2>&5 |
| 27400 | ac_status=$? |
| 27401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27402 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27403 | : |
| 27404 | else |
| 27405 | echo "$as_me: failed program was:" >&5 |
| 27406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27407 | |
| 27408 | { { 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] | 27409 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27410 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27411 | fi |
| 27412 | |
| 27413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27414 | fi |
| 27415 | |
| 27416 | if test -z "$llvm_cv_gnu_make_command" |
| 27417 | then |
| 27418 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27419 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27420 | { (exit 1); exit 1; }; } |
| 27421 | fi |
| 27422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27423 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27424 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27425 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 27426 | |
| 27427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27428 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27429 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27430 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27432 | else |
| 27433 | ac_check_lib_save_LIBS=$LIBS |
| 27434 | LIBS="-lm $LIBS" |
| 27435 | cat >conftest.$ac_ext <<_ACEOF |
| 27436 | /* confdefs.h. */ |
| 27437 | _ACEOF |
| 27438 | cat confdefs.h >>conftest.$ac_ext |
| 27439 | cat >>conftest.$ac_ext <<_ACEOF |
| 27440 | /* end confdefs.h. */ |
| 27441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27442 | /* Override any GCC internal prototype to avoid an error. |
| 27443 | Use char because int might match the return type of a GCC |
| 27444 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27445 | #ifdef __cplusplus |
| 27446 | extern "C" |
| 27447 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27448 | char sin (); |
| 27449 | int |
| 27450 | main () |
| 27451 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27452 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27453 | ; |
| 27454 | return 0; |
| 27455 | } |
| 27456 | _ACEOF |
| 27457 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27458 | if { (ac_try="$ac_link" |
| 27459 | case "(($ac_try" in |
| 27460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27461 | *) ac_try_echo=$ac_try;; |
| 27462 | esac |
| 27463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27464 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27465 | ac_status=$? |
| 27466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27467 | rm -f conftest.er1 |
| 27468 | cat conftest.err >&5 |
| 27469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27470 | (exit $ac_status); } && |
| 27471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27472 | { (case "(($ac_try" in |
| 27473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27474 | *) ac_try_echo=$ac_try;; |
| 27475 | esac |
| 27476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27477 | (eval "$ac_try") 2>&5 |
| 27478 | ac_status=$? |
| 27479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27480 | (exit $ac_status); }; } && |
| 27481 | { ac_try='test -s conftest$ac_exeext' |
| 27482 | { (case "(($ac_try" in |
| 27483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27484 | *) ac_try_echo=$ac_try;; |
| 27485 | esac |
| 27486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27487 | (eval "$ac_try") 2>&5 |
| 27488 | ac_status=$? |
| 27489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27490 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27491 | ac_cv_lib_m_sin=yes |
| 27492 | else |
| 27493 | echo "$as_me: failed program was:" >&5 |
| 27494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27496 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27497 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27498 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27499 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27500 | conftest$ac_exeext conftest.$ac_ext |
| 27501 | LIBS=$ac_check_lib_save_LIBS |
| 27502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27504 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27505 | if test $ac_cv_lib_m_sin = yes; then |
| 27506 | cat >>confdefs.h <<_ACEOF |
| 27507 | #define HAVE_LIBM 1 |
| 27508 | _ACEOF |
| 27509 | |
| 27510 | LIBS="-lm $LIBS" |
| 27511 | |
| 27512 | fi |
| 27513 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27514 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27515 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27516 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27517 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27518 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27520 | else |
| 27521 | ac_check_lib_save_LIBS=$LIBS |
| 27522 | LIBS="-limagehlp $LIBS" |
| 27523 | cat >conftest.$ac_ext <<_ACEOF |
| 27524 | /* confdefs.h. */ |
| 27525 | _ACEOF |
| 27526 | cat confdefs.h >>conftest.$ac_ext |
| 27527 | cat >>conftest.$ac_ext <<_ACEOF |
| 27528 | /* end confdefs.h. */ |
| 27529 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27530 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27531 | int |
| 27532 | main () |
| 27533 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27534 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27535 | ; |
| 27536 | return 0; |
| 27537 | } |
| 27538 | _ACEOF |
| 27539 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27540 | if { (ac_try="$ac_link" |
| 27541 | case "(($ac_try" in |
| 27542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27543 | *) ac_try_echo=$ac_try;; |
| 27544 | esac |
| 27545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27546 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27547 | ac_status=$? |
| 27548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27549 | rm -f conftest.er1 |
| 27550 | cat conftest.err >&5 |
| 27551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27552 | (exit $ac_status); } && |
| 27553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27554 | { (case "(($ac_try" in |
| 27555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27556 | *) ac_try_echo=$ac_try;; |
| 27557 | esac |
| 27558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27559 | (eval "$ac_try") 2>&5 |
| 27560 | ac_status=$? |
| 27561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27562 | (exit $ac_status); }; } && |
| 27563 | { ac_try='test -s conftest$ac_exeext' |
| 27564 | { (case "(($ac_try" in |
| 27565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27566 | *) ac_try_echo=$ac_try;; |
| 27567 | esac |
| 27568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27569 | (eval "$ac_try") 2>&5 |
| 27570 | ac_status=$? |
| 27571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27572 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27573 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27574 | else |
| 27575 | echo "$as_me: failed program was:" >&5 |
| 27576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27578 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27579 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27580 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27581 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27582 | conftest$ac_exeext conftest.$ac_ext |
| 27583 | LIBS=$ac_check_lib_save_LIBS |
| 27584 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27585 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27586 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27587 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27588 | cat >>confdefs.h <<_ACEOF |
| 27589 | #define HAVE_LIBIMAGEHLP 1 |
| 27590 | _ACEOF |
| 27591 | |
| 27592 | LIBS="-limagehlp $LIBS" |
| 27593 | |
| 27594 | fi |
| 27595 | |
| 27596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27597 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27598 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27599 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27601 | else |
| 27602 | ac_check_lib_save_LIBS=$LIBS |
| 27603 | LIBS="-lpsapi $LIBS" |
| 27604 | cat >conftest.$ac_ext <<_ACEOF |
| 27605 | /* confdefs.h. */ |
| 27606 | _ACEOF |
| 27607 | cat confdefs.h >>conftest.$ac_ext |
| 27608 | cat >>conftest.$ac_ext <<_ACEOF |
| 27609 | /* end confdefs.h. */ |
| 27610 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27611 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27612 | int |
| 27613 | main () |
| 27614 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27615 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27616 | ; |
| 27617 | return 0; |
| 27618 | } |
| 27619 | _ACEOF |
| 27620 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27621 | if { (ac_try="$ac_link" |
| 27622 | case "(($ac_try" in |
| 27623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27624 | *) ac_try_echo=$ac_try;; |
| 27625 | esac |
| 27626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27627 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27628 | ac_status=$? |
| 27629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27630 | rm -f conftest.er1 |
| 27631 | cat conftest.err >&5 |
| 27632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27633 | (exit $ac_status); } && |
| 27634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27635 | { (case "(($ac_try" in |
| 27636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27637 | *) ac_try_echo=$ac_try;; |
| 27638 | esac |
| 27639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27640 | (eval "$ac_try") 2>&5 |
| 27641 | ac_status=$? |
| 27642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27643 | (exit $ac_status); }; } && |
| 27644 | { ac_try='test -s conftest$ac_exeext' |
| 27645 | { (case "(($ac_try" in |
| 27646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27647 | *) ac_try_echo=$ac_try;; |
| 27648 | esac |
| 27649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27650 | (eval "$ac_try") 2>&5 |
| 27651 | ac_status=$? |
| 27652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27653 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27654 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27655 | else |
| 27656 | echo "$as_me: failed program was:" >&5 |
| 27657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27659 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27660 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27661 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27662 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27663 | conftest$ac_exeext conftest.$ac_ext |
| 27664 | LIBS=$ac_check_lib_save_LIBS |
| 27665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27666 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27667 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27668 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27669 | cat >>confdefs.h <<_ACEOF |
| 27670 | #define HAVE_LIBPSAPI 1 |
| 27671 | _ACEOF |
| 27672 | |
| 27673 | LIBS="-lpsapi $LIBS" |
| 27674 | |
| 27675 | fi |
| 27676 | |
| 27677 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27679 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27680 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27681 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27683 | else |
| 27684 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27685 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27686 | /* confdefs.h. */ |
| 27687 | _ACEOF |
| 27688 | cat confdefs.h >>conftest.$ac_ext |
| 27689 | cat >>conftest.$ac_ext <<_ACEOF |
| 27690 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27692 | /* Override any GCC internal prototype to avoid an error. |
| 27693 | Use char because int might match the return type of a GCC |
| 27694 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27695 | #ifdef __cplusplus |
| 27696 | extern "C" |
| 27697 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27698 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27699 | int |
| 27700 | main () |
| 27701 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27702 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27703 | ; |
| 27704 | return 0; |
| 27705 | } |
| 27706 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27707 | for ac_lib in '' dl; do |
| 27708 | if test -z "$ac_lib"; then |
| 27709 | ac_res="none required" |
| 27710 | else |
| 27711 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27712 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27713 | fi |
| 27714 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27715 | if { (ac_try="$ac_link" |
| 27716 | case "(($ac_try" in |
| 27717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27718 | *) ac_try_echo=$ac_try;; |
| 27719 | esac |
| 27720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27721 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27722 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27724 | rm -f conftest.er1 |
| 27725 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27727 | (exit $ac_status); } && |
| 27728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27729 | { (case "(($ac_try" in |
| 27730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27731 | *) ac_try_echo=$ac_try;; |
| 27732 | esac |
| 27733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27734 | (eval "$ac_try") 2>&5 |
| 27735 | ac_status=$? |
| 27736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27737 | (exit $ac_status); }; } && |
| 27738 | { ac_try='test -s conftest$ac_exeext' |
| 27739 | { (case "(($ac_try" in |
| 27740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27741 | *) ac_try_echo=$ac_try;; |
| 27742 | esac |
| 27743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27744 | (eval "$ac_try") 2>&5 |
| 27745 | ac_status=$? |
| 27746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27747 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27748 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27749 | else |
| 27750 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27754 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27755 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27756 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27757 | conftest$ac_exeext |
| 27758 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27759 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27761 | done |
| 27762 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27763 | : |
| 27764 | else |
| 27765 | ac_cv_search_dlopen=no |
| 27766 | fi |
| 27767 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27768 | LIBS=$ac_func_search_save_LIBS |
| 27769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27770 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27771 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27772 | ac_res=$ac_cv_search_dlopen |
| 27773 | if test "$ac_res" != no; then |
| 27774 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27775 | |
| 27776 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27777 | #define HAVE_DLOPEN 1 |
| 27778 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27779 | |
| 27780 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27781 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27782 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27783 | fi |
| 27784 | |
| 27785 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27786 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 27787 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27788 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 27789 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27791 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27792 | ac_func_search_save_LIBS=$LIBS |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27793 | cat >conftest.$ac_ext <<_ACEOF |
| 27794 | /* confdefs.h. */ |
| 27795 | _ACEOF |
| 27796 | cat confdefs.h >>conftest.$ac_ext |
| 27797 | cat >>conftest.$ac_ext <<_ACEOF |
| 27798 | /* end confdefs.h. */ |
| 27799 | |
| 27800 | /* Override any GCC internal prototype to avoid an error. |
| 27801 | Use char because int might match the return type of a GCC |
| 27802 | builtin and then its argument prototype would still apply. */ |
| 27803 | #ifdef __cplusplus |
| 27804 | extern "C" |
| 27805 | #endif |
| 27806 | char ffi_call (); |
| 27807 | int |
| 27808 | main () |
| 27809 | { |
| 27810 | return ffi_call (); |
| 27811 | ; |
| 27812 | return 0; |
| 27813 | } |
| 27814 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27815 | for ac_lib in '' ffi; do |
| 27816 | if test -z "$ac_lib"; then |
| 27817 | ac_res="none required" |
| 27818 | else |
| 27819 | ac_res=-l$ac_lib |
| 27820 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 27821 | fi |
| 27822 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27823 | if { (ac_try="$ac_link" |
| 27824 | case "(($ac_try" in |
| 27825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27826 | *) ac_try_echo=$ac_try;; |
| 27827 | esac |
| 27828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27829 | (eval "$ac_link") 2>conftest.er1 |
| 27830 | ac_status=$? |
| 27831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27832 | rm -f conftest.er1 |
| 27833 | cat conftest.err >&5 |
| 27834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27835 | (exit $ac_status); } && |
| 27836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27837 | { (case "(($ac_try" in |
| 27838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27839 | *) ac_try_echo=$ac_try;; |
| 27840 | esac |
| 27841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27842 | (eval "$ac_try") 2>&5 |
| 27843 | ac_status=$? |
| 27844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27845 | (exit $ac_status); }; } && |
| 27846 | { ac_try='test -s conftest$ac_exeext' |
| 27847 | { (case "(($ac_try" in |
| 27848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27849 | *) ac_try_echo=$ac_try;; |
| 27850 | esac |
| 27851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27852 | (eval "$ac_try") 2>&5 |
| 27853 | ac_status=$? |
| 27854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27855 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27856 | ac_cv_search_ffi_call=$ac_res |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27857 | else |
| 27858 | echo "$as_me: failed program was:" >&5 |
| 27859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27860 | |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27861 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27862 | fi |
| 27863 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27864 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27865 | conftest$ac_exeext |
| 27866 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27867 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27868 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27869 | done |
| 27870 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27871 | : |
| 27872 | else |
| 27873 | ac_cv_search_ffi_call=no |
| 27874 | fi |
| 27875 | rm conftest.$ac_ext |
| 27876 | LIBS=$ac_func_search_save_LIBS |
| 27877 | fi |
| 27878 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 27879 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
| 27880 | ac_res=$ac_cv_search_ffi_call |
| 27881 | if test "$ac_res" != no; then |
| 27882 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 27883 | |
| 27884 | cat >>confdefs.h <<\_ACEOF |
| 27885 | #define HAVE_FFI_CALL 1 |
| 27886 | _ACEOF |
| 27887 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27888 | else |
| 27889 | { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 27890 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
| 27891 | fi |
| 27892 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27893 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27895 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27896 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27897 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27899 | else |
| 27900 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27901 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27902 | /* confdefs.h. */ |
| 27903 | _ACEOF |
| 27904 | cat confdefs.h >>conftest.$ac_ext |
| 27905 | cat >>conftest.$ac_ext <<_ACEOF |
| 27906 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27908 | /* Override any GCC internal prototype to avoid an error. |
| 27909 | Use char because int might match the return type of a GCC |
| 27910 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27911 | #ifdef __cplusplus |
| 27912 | extern "C" |
| 27913 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27914 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27915 | int |
| 27916 | main () |
| 27917 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27918 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27919 | ; |
| 27920 | return 0; |
| 27921 | } |
| 27922 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27923 | for ac_lib in '' malloc; do |
| 27924 | if test -z "$ac_lib"; then |
| 27925 | ac_res="none required" |
| 27926 | else |
| 27927 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27928 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27929 | fi |
| 27930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27931 | if { (ac_try="$ac_link" |
| 27932 | case "(($ac_try" in |
| 27933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27934 | *) ac_try_echo=$ac_try;; |
| 27935 | esac |
| 27936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27937 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27938 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27940 | rm -f conftest.er1 |
| 27941 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27943 | (exit $ac_status); } && |
| 27944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27945 | { (case "(($ac_try" in |
| 27946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27947 | *) ac_try_echo=$ac_try;; |
| 27948 | esac |
| 27949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27950 | (eval "$ac_try") 2>&5 |
| 27951 | ac_status=$? |
| 27952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27953 | (exit $ac_status); }; } && |
| 27954 | { ac_try='test -s conftest$ac_exeext' |
| 27955 | { (case "(($ac_try" in |
| 27956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27957 | *) ac_try_echo=$ac_try;; |
| 27958 | esac |
| 27959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27960 | (eval "$ac_try") 2>&5 |
| 27961 | ac_status=$? |
| 27962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27963 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27964 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27965 | else |
| 27966 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27969 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27971 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27972 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27973 | conftest$ac_exeext |
| 27974 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27975 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27977 | done |
| 27978 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27979 | : |
| 27980 | else |
| 27981 | ac_cv_search_mallinfo=no |
| 27982 | fi |
| 27983 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27984 | LIBS=$ac_func_search_save_LIBS |
| 27985 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27986 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27987 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27988 | ac_res=$ac_cv_search_mallinfo |
| 27989 | if test "$ac_res" != no; then |
| 27990 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27991 | |
| 27992 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27993 | #define HAVE_MALLINFO 1 |
| 27994 | _ACEOF |
| 27995 | |
| 27996 | fi |
| 27997 | |
| 27998 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27999 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28001 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 28002 | 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] | 28003 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 28004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28005 | else |
| 28006 | ac_check_lib_save_LIBS=$LIBS |
| 28007 | LIBS="-lpthread $LIBS" |
| 28008 | cat >conftest.$ac_ext <<_ACEOF |
| 28009 | /* confdefs.h. */ |
| 28010 | _ACEOF |
| 28011 | cat confdefs.h >>conftest.$ac_ext |
| 28012 | cat >>conftest.$ac_ext <<_ACEOF |
| 28013 | /* end confdefs.h. */ |
| 28014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28015 | /* Override any GCC internal prototype to avoid an error. |
| 28016 | Use char because int might match the return type of a GCC |
| 28017 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28018 | #ifdef __cplusplus |
| 28019 | extern "C" |
| 28020 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28021 | char pthread_mutex_init (); |
| 28022 | int |
| 28023 | main () |
| 28024 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28025 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28026 | ; |
| 28027 | return 0; |
| 28028 | } |
| 28029 | _ACEOF |
| 28030 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28031 | if { (ac_try="$ac_link" |
| 28032 | case "(($ac_try" in |
| 28033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28034 | *) ac_try_echo=$ac_try;; |
| 28035 | esac |
| 28036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28037 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28038 | ac_status=$? |
| 28039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28040 | rm -f conftest.er1 |
| 28041 | cat conftest.err >&5 |
| 28042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28043 | (exit $ac_status); } && |
| 28044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28045 | { (case "(($ac_try" in |
| 28046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28047 | *) ac_try_echo=$ac_try;; |
| 28048 | esac |
| 28049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28050 | (eval "$ac_try") 2>&5 |
| 28051 | ac_status=$? |
| 28052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28053 | (exit $ac_status); }; } && |
| 28054 | { ac_try='test -s conftest$ac_exeext' |
| 28055 | { (case "(($ac_try" in |
| 28056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28057 | *) ac_try_echo=$ac_try;; |
| 28058 | esac |
| 28059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28060 | (eval "$ac_try") 2>&5 |
| 28061 | ac_status=$? |
| 28062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28063 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28064 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 28065 | else |
| 28066 | echo "$as_me: failed program was:" >&5 |
| 28067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28068 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28069 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28070 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28071 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28072 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28073 | conftest$ac_exeext conftest.$ac_ext |
| 28074 | LIBS=$ac_check_lib_save_LIBS |
| 28075 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28076 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 28077 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28078 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 28079 | cat >>confdefs.h <<_ACEOF |
| 28080 | #define HAVE_LIBPTHREAD 1 |
| 28081 | _ACEOF |
| 28082 | |
| 28083 | LIBS="-lpthread $LIBS" |
| 28084 | |
| 28085 | fi |
| 28086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28087 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 28088 | 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] | 28089 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28091 | else |
| 28092 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28093 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28094 | /* confdefs.h. */ |
| 28095 | _ACEOF |
| 28096 | cat confdefs.h >>conftest.$ac_ext |
| 28097 | cat >>conftest.$ac_ext <<_ACEOF |
| 28098 | /* end confdefs.h. */ |
| 28099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28100 | /* Override any GCC internal prototype to avoid an error. |
| 28101 | Use char because int might match the return type of a GCC |
| 28102 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28103 | #ifdef __cplusplus |
| 28104 | extern "C" |
| 28105 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28106 | char pthread_mutex_lock (); |
| 28107 | int |
| 28108 | main () |
| 28109 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28110 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28111 | ; |
| 28112 | return 0; |
| 28113 | } |
| 28114 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28115 | for ac_lib in '' pthread; do |
| 28116 | if test -z "$ac_lib"; then |
| 28117 | ac_res="none required" |
| 28118 | else |
| 28119 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28120 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28121 | fi |
| 28122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28123 | if { (ac_try="$ac_link" |
| 28124 | case "(($ac_try" in |
| 28125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28126 | *) ac_try_echo=$ac_try;; |
| 28127 | esac |
| 28128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28129 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28130 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28132 | rm -f conftest.er1 |
| 28133 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28135 | (exit $ac_status); } && |
| 28136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28137 | { (case "(($ac_try" in |
| 28138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28139 | *) ac_try_echo=$ac_try;; |
| 28140 | esac |
| 28141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28142 | (eval "$ac_try") 2>&5 |
| 28143 | ac_status=$? |
| 28144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28145 | (exit $ac_status); }; } && |
| 28146 | { ac_try='test -s conftest$ac_exeext' |
| 28147 | { (case "(($ac_try" in |
| 28148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28149 | *) ac_try_echo=$ac_try;; |
| 28150 | esac |
| 28151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28152 | (eval "$ac_try") 2>&5 |
| 28153 | ac_status=$? |
| 28154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28155 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28156 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28157 | else |
| 28158 | echo "$as_me: failed program was:" >&5 |
| 28159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28161 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28163 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28164 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28165 | conftest$ac_exeext |
| 28166 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28167 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28168 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28169 | done |
| 28170 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28171 | : |
| 28172 | else |
| 28173 | ac_cv_search_pthread_mutex_lock=no |
| 28174 | fi |
| 28175 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28176 | LIBS=$ac_func_search_save_LIBS |
| 28177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28178 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 28179 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 28180 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 28181 | if test "$ac_res" != no; then |
| 28182 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28183 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28184 | cat >>confdefs.h <<\_ACEOF |
| 28185 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 28186 | _ACEOF |
| 28187 | |
| 28188 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28189 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 28190 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 28191 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 28192 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28194 | else |
| 28195 | ac_func_search_save_LIBS=$LIBS |
| 28196 | cat >conftest.$ac_ext <<_ACEOF |
| 28197 | /* confdefs.h. */ |
| 28198 | _ACEOF |
| 28199 | cat confdefs.h >>conftest.$ac_ext |
| 28200 | cat >>conftest.$ac_ext <<_ACEOF |
| 28201 | /* end confdefs.h. */ |
| 28202 | |
| 28203 | /* Override any GCC internal prototype to avoid an error. |
| 28204 | Use char because int might match the return type of a GCC |
| 28205 | builtin and then its argument prototype would still apply. */ |
| 28206 | #ifdef __cplusplus |
| 28207 | extern "C" |
| 28208 | #endif |
| 28209 | char pthread_rwlock_init (); |
| 28210 | int |
| 28211 | main () |
| 28212 | { |
| 28213 | return pthread_rwlock_init (); |
| 28214 | ; |
| 28215 | return 0; |
| 28216 | } |
| 28217 | _ACEOF |
| 28218 | for ac_lib in '' pthread; do |
| 28219 | if test -z "$ac_lib"; then |
| 28220 | ac_res="none required" |
| 28221 | else |
| 28222 | ac_res=-l$ac_lib |
| 28223 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28224 | fi |
| 28225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28226 | if { (ac_try="$ac_link" |
| 28227 | case "(($ac_try" in |
| 28228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28229 | *) ac_try_echo=$ac_try;; |
| 28230 | esac |
| 28231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28232 | (eval "$ac_link") 2>conftest.er1 |
| 28233 | ac_status=$? |
| 28234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28235 | rm -f conftest.er1 |
| 28236 | cat conftest.err >&5 |
| 28237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28238 | (exit $ac_status); } && |
| 28239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28240 | { (case "(($ac_try" in |
| 28241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28242 | *) ac_try_echo=$ac_try;; |
| 28243 | esac |
| 28244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28245 | (eval "$ac_try") 2>&5 |
| 28246 | ac_status=$? |
| 28247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28248 | (exit $ac_status); }; } && |
| 28249 | { ac_try='test -s conftest$ac_exeext' |
| 28250 | { (case "(($ac_try" in |
| 28251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28252 | *) ac_try_echo=$ac_try;; |
| 28253 | esac |
| 28254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28255 | (eval "$ac_try") 2>&5 |
| 28256 | ac_status=$? |
| 28257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28258 | (exit $ac_status); }; }; then |
| 28259 | ac_cv_search_pthread_rwlock_init=$ac_res |
| 28260 | else |
| 28261 | echo "$as_me: failed program was:" >&5 |
| 28262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28263 | |
| 28264 | |
| 28265 | fi |
| 28266 | |
| 28267 | rm -f core conftest.err conftest.$ac_objext \ |
| 28268 | conftest$ac_exeext |
| 28269 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28270 | break |
| 28271 | fi |
| 28272 | done |
| 28273 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28274 | : |
| 28275 | else |
| 28276 | ac_cv_search_pthread_rwlock_init=no |
| 28277 | fi |
| 28278 | rm conftest.$ac_ext |
| 28279 | LIBS=$ac_func_search_save_LIBS |
| 28280 | fi |
| 28281 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 28282 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
| 28283 | ac_res=$ac_cv_search_pthread_rwlock_init |
| 28284 | if test "$ac_res" != no; then |
| 28285 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28286 | |
| 28287 | cat >>confdefs.h <<\_ACEOF |
| 28288 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 28289 | _ACEOF |
| 28290 | |
| 28291 | fi |
| 28292 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 28293 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 28294 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 28295 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28297 | else |
| 28298 | ac_func_search_save_LIBS=$LIBS |
| 28299 | cat >conftest.$ac_ext <<_ACEOF |
| 28300 | /* confdefs.h. */ |
| 28301 | _ACEOF |
| 28302 | cat confdefs.h >>conftest.$ac_ext |
| 28303 | cat >>conftest.$ac_ext <<_ACEOF |
| 28304 | /* end confdefs.h. */ |
| 28305 | |
| 28306 | /* Override any GCC internal prototype to avoid an error. |
| 28307 | Use char because int might match the return type of a GCC |
| 28308 | builtin and then its argument prototype would still apply. */ |
| 28309 | #ifdef __cplusplus |
| 28310 | extern "C" |
| 28311 | #endif |
| 28312 | char pthread_getspecific (); |
| 28313 | int |
| 28314 | main () |
| 28315 | { |
| 28316 | return pthread_getspecific (); |
| 28317 | ; |
| 28318 | return 0; |
| 28319 | } |
| 28320 | _ACEOF |
| 28321 | for ac_lib in '' pthread; do |
| 28322 | if test -z "$ac_lib"; then |
| 28323 | ac_res="none required" |
| 28324 | else |
| 28325 | ac_res=-l$ac_lib |
| 28326 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28327 | fi |
| 28328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28329 | if { (ac_try="$ac_link" |
| 28330 | case "(($ac_try" in |
| 28331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28332 | *) ac_try_echo=$ac_try;; |
| 28333 | esac |
| 28334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28335 | (eval "$ac_link") 2>conftest.er1 |
| 28336 | ac_status=$? |
| 28337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28338 | rm -f conftest.er1 |
| 28339 | cat conftest.err >&5 |
| 28340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28341 | (exit $ac_status); } && |
| 28342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28343 | { (case "(($ac_try" in |
| 28344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28345 | *) ac_try_echo=$ac_try;; |
| 28346 | esac |
| 28347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28348 | (eval "$ac_try") 2>&5 |
| 28349 | ac_status=$? |
| 28350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28351 | (exit $ac_status); }; } && |
| 28352 | { ac_try='test -s conftest$ac_exeext' |
| 28353 | { (case "(($ac_try" in |
| 28354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28355 | *) ac_try_echo=$ac_try;; |
| 28356 | esac |
| 28357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28358 | (eval "$ac_try") 2>&5 |
| 28359 | ac_status=$? |
| 28360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28361 | (exit $ac_status); }; }; then |
| 28362 | ac_cv_search_pthread_getspecific=$ac_res |
| 28363 | else |
| 28364 | echo "$as_me: failed program was:" >&5 |
| 28365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28366 | |
| 28367 | |
| 28368 | fi |
| 28369 | |
| 28370 | rm -f core conftest.err conftest.$ac_objext \ |
| 28371 | conftest$ac_exeext |
| 28372 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28373 | break |
| 28374 | fi |
| 28375 | done |
| 28376 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28377 | : |
| 28378 | else |
| 28379 | ac_cv_search_pthread_getspecific=no |
| 28380 | fi |
| 28381 | rm conftest.$ac_ext |
| 28382 | LIBS=$ac_func_search_save_LIBS |
| 28383 | fi |
| 28384 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 28385 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
| 28386 | ac_res=$ac_cv_search_pthread_getspecific |
| 28387 | if test "$ac_res" != no; then |
| 28388 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28389 | |
| 28390 | cat >>confdefs.h <<\_ACEOF |
| 28391 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 28392 | _ACEOF |
| 28393 | |
| 28394 | fi |
| 28395 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28396 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28397 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28398 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28399 | # Check whether --with-udis86 was given. |
| 28400 | if test "${with_udis86+set}" = set; then |
| 28401 | withval=$with_udis86; |
| 28402 | USE_UDIS86=1 |
| 28403 | |
| 28404 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28405 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28406 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 28407 | esac |
| 28408 | |
| 28409 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 28410 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 28411 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 28412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28413 | else |
| 28414 | ac_check_lib_save_LIBS=$LIBS |
| 28415 | LIBS="-ludis86 $LIBS" |
| 28416 | cat >conftest.$ac_ext <<_ACEOF |
| 28417 | /* confdefs.h. */ |
| 28418 | _ACEOF |
| 28419 | cat confdefs.h >>conftest.$ac_ext |
| 28420 | cat >>conftest.$ac_ext <<_ACEOF |
| 28421 | /* end confdefs.h. */ |
| 28422 | |
| 28423 | /* Override any GCC internal prototype to avoid an error. |
| 28424 | Use char because int might match the return type of a GCC |
| 28425 | builtin and then its argument prototype would still apply. */ |
| 28426 | #ifdef __cplusplus |
| 28427 | extern "C" |
| 28428 | #endif |
| 28429 | char ud_init (); |
| 28430 | int |
| 28431 | main () |
| 28432 | { |
| 28433 | return ud_init (); |
| 28434 | ; |
| 28435 | return 0; |
| 28436 | } |
| 28437 | _ACEOF |
| 28438 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28439 | if { (ac_try="$ac_link" |
| 28440 | case "(($ac_try" in |
| 28441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28442 | *) ac_try_echo=$ac_try;; |
| 28443 | esac |
| 28444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28445 | (eval "$ac_link") 2>conftest.er1 |
| 28446 | ac_status=$? |
| 28447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28448 | rm -f conftest.er1 |
| 28449 | cat conftest.err >&5 |
| 28450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28451 | (exit $ac_status); } && |
| 28452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28453 | { (case "(($ac_try" in |
| 28454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28455 | *) ac_try_echo=$ac_try;; |
| 28456 | esac |
| 28457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28458 | (eval "$ac_try") 2>&5 |
| 28459 | ac_status=$? |
| 28460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28461 | (exit $ac_status); }; } && |
| 28462 | { ac_try='test -s conftest$ac_exeext' |
| 28463 | { (case "(($ac_try" in |
| 28464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28465 | *) ac_try_echo=$ac_try;; |
| 28466 | esac |
| 28467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28468 | (eval "$ac_try") 2>&5 |
| 28469 | ac_status=$? |
| 28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28471 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28472 | ac_cv_lib_udis86_ud_init=yes |
| 28473 | else |
| 28474 | echo "$as_me: failed program was:" >&5 |
| 28475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28476 | |
| 28477 | ac_cv_lib_udis86_ud_init=no |
| 28478 | fi |
| 28479 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28480 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28481 | conftest$ac_exeext conftest.$ac_ext |
| 28482 | LIBS=$ac_check_lib_save_LIBS |
| 28483 | fi |
| 28484 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 28485 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 28486 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 28487 | cat >>confdefs.h <<_ACEOF |
| 28488 | #define HAVE_LIBUDIS86 1 |
| 28489 | _ACEOF |
| 28490 | |
| 28491 | LIBS="-ludis86 $LIBS" |
| 28492 | |
| 28493 | else |
| 28494 | |
| 28495 | echo "Error! You need to have libudis86 around." |
| 28496 | exit -1 |
| 28497 | |
| 28498 | fi |
| 28499 | |
| 28500 | |
| 28501 | else |
| 28502 | USE_UDIS86=0 |
| 28503 | |
| 28504 | fi |
| 28505 | |
| 28506 | |
| 28507 | cat >>confdefs.h <<_ACEOF |
| 28508 | #define USE_UDIS86 $USE_UDIS86 |
| 28509 | _ACEOF |
| 28510 | |
| 28511 | |
| 28512 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28513 | # Check whether --with-oprofile was given. |
| 28514 | if test "${with_oprofile+set}" = set; then |
| 28515 | withval=$with_oprofile; |
| 28516 | USE_OPROFILE=1 |
| 28517 | |
| 28518 | case "$withval" in |
| 28519 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
| 28520 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 28521 | CPPFLAGS="-I${withval}/include";; |
| 28522 | esac |
| 28523 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 28524 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28525 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28526 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28528 | else |
| 28529 | ac_func_search_save_LIBS=$LIBS |
| 28530 | cat >conftest.$ac_ext <<_ACEOF |
| 28531 | /* confdefs.h. */ |
| 28532 | _ACEOF |
| 28533 | cat confdefs.h >>conftest.$ac_ext |
| 28534 | cat >>conftest.$ac_ext <<_ACEOF |
| 28535 | /* end confdefs.h. */ |
| 28536 | |
| 28537 | /* Override any GCC internal prototype to avoid an error. |
| 28538 | Use char because int might match the return type of a GCC |
| 28539 | builtin and then its argument prototype would still apply. */ |
| 28540 | #ifdef __cplusplus |
| 28541 | extern "C" |
| 28542 | #endif |
| 28543 | char op_open_agent (); |
| 28544 | int |
| 28545 | main () |
| 28546 | { |
| 28547 | return op_open_agent (); |
| 28548 | ; |
| 28549 | return 0; |
| 28550 | } |
| 28551 | _ACEOF |
| 28552 | for ac_lib in '' opagent; do |
| 28553 | if test -z "$ac_lib"; then |
| 28554 | ac_res="none required" |
| 28555 | else |
| 28556 | ac_res=-l$ac_lib |
| 28557 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28558 | fi |
| 28559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28560 | if { (ac_try="$ac_link" |
| 28561 | case "(($ac_try" in |
| 28562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28563 | *) ac_try_echo=$ac_try;; |
| 28564 | esac |
| 28565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28566 | (eval "$ac_link") 2>conftest.er1 |
| 28567 | ac_status=$? |
| 28568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28569 | rm -f conftest.er1 |
| 28570 | cat conftest.err >&5 |
| 28571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28572 | (exit $ac_status); } && |
| 28573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28574 | { (case "(($ac_try" in |
| 28575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28576 | *) ac_try_echo=$ac_try;; |
| 28577 | esac |
| 28578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28579 | (eval "$ac_try") 2>&5 |
| 28580 | ac_status=$? |
| 28581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28582 | (exit $ac_status); }; } && |
| 28583 | { ac_try='test -s conftest$ac_exeext' |
| 28584 | { (case "(($ac_try" in |
| 28585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28586 | *) ac_try_echo=$ac_try;; |
| 28587 | esac |
| 28588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28589 | (eval "$ac_try") 2>&5 |
| 28590 | ac_status=$? |
| 28591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28592 | (exit $ac_status); }; }; then |
| 28593 | ac_cv_search_op_open_agent=$ac_res |
| 28594 | else |
| 28595 | echo "$as_me: failed program was:" >&5 |
| 28596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28597 | |
| 28598 | |
| 28599 | fi |
| 28600 | |
| 28601 | rm -f core conftest.err conftest.$ac_objext \ |
| 28602 | conftest$ac_exeext |
| 28603 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28604 | break |
| 28605 | fi |
| 28606 | done |
| 28607 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28608 | : |
| 28609 | else |
| 28610 | ac_cv_search_op_open_agent=no |
| 28611 | fi |
| 28612 | rm conftest.$ac_ext |
| 28613 | LIBS=$ac_func_search_save_LIBS |
| 28614 | fi |
| 28615 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28616 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28617 | ac_res=$ac_cv_search_op_open_agent |
| 28618 | if test "$ac_res" != no; then |
| 28619 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28620 | |
| 28621 | else |
| 28622 | |
| 28623 | echo "Error! You need to have libopagent around." |
| 28624 | exit -1 |
| 28625 | |
| 28626 | fi |
| 28627 | |
| 28628 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28629 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28630 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28631 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28633 | fi |
| 28634 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28635 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28636 | else |
| 28637 | # Is the header compilable? |
| 28638 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28639 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28640 | cat >conftest.$ac_ext <<_ACEOF |
| 28641 | /* confdefs.h. */ |
| 28642 | _ACEOF |
| 28643 | cat confdefs.h >>conftest.$ac_ext |
| 28644 | cat >>conftest.$ac_ext <<_ACEOF |
| 28645 | /* end confdefs.h. */ |
| 28646 | $ac_includes_default |
| 28647 | #include <opagent.h> |
| 28648 | _ACEOF |
| 28649 | rm -f conftest.$ac_objext |
| 28650 | if { (ac_try="$ac_compile" |
| 28651 | case "(($ac_try" in |
| 28652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28653 | *) ac_try_echo=$ac_try;; |
| 28654 | esac |
| 28655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28656 | (eval "$ac_compile") 2>conftest.er1 |
| 28657 | ac_status=$? |
| 28658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28659 | rm -f conftest.er1 |
| 28660 | cat conftest.err >&5 |
| 28661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28662 | (exit $ac_status); } && |
| 28663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28664 | { (case "(($ac_try" in |
| 28665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28666 | *) ac_try_echo=$ac_try;; |
| 28667 | esac |
| 28668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28669 | (eval "$ac_try") 2>&5 |
| 28670 | ac_status=$? |
| 28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28672 | (exit $ac_status); }; } && |
| 28673 | { ac_try='test -s conftest.$ac_objext' |
| 28674 | { (case "(($ac_try" in |
| 28675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28676 | *) ac_try_echo=$ac_try;; |
| 28677 | esac |
| 28678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28679 | (eval "$ac_try") 2>&5 |
| 28680 | ac_status=$? |
| 28681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28682 | (exit $ac_status); }; }; then |
| 28683 | ac_header_compiler=yes |
| 28684 | else |
| 28685 | echo "$as_me: failed program was:" >&5 |
| 28686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28687 | |
| 28688 | ac_header_compiler=no |
| 28689 | fi |
| 28690 | |
| 28691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28692 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28693 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28694 | |
| 28695 | # Is the header present? |
| 28696 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28697 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28698 | cat >conftest.$ac_ext <<_ACEOF |
| 28699 | /* confdefs.h. */ |
| 28700 | _ACEOF |
| 28701 | cat confdefs.h >>conftest.$ac_ext |
| 28702 | cat >>conftest.$ac_ext <<_ACEOF |
| 28703 | /* end confdefs.h. */ |
| 28704 | #include <opagent.h> |
| 28705 | _ACEOF |
| 28706 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28707 | case "(($ac_try" in |
| 28708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28709 | *) ac_try_echo=$ac_try;; |
| 28710 | esac |
| 28711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28712 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28713 | ac_status=$? |
| 28714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28715 | rm -f conftest.er1 |
| 28716 | cat conftest.err >&5 |
| 28717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28718 | (exit $ac_status); } >/dev/null; then |
| 28719 | if test -s conftest.err; then |
| 28720 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28722 | else |
| 28723 | ac_cpp_err= |
| 28724 | fi |
| 28725 | else |
| 28726 | ac_cpp_err=yes |
| 28727 | fi |
| 28728 | if test -z "$ac_cpp_err"; then |
| 28729 | ac_header_preproc=yes |
| 28730 | else |
| 28731 | echo "$as_me: failed program was:" >&5 |
| 28732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28733 | |
| 28734 | ac_header_preproc=no |
| 28735 | fi |
| 28736 | |
| 28737 | rm -f conftest.err conftest.$ac_ext |
| 28738 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28739 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28740 | |
| 28741 | # So? What about this header? |
| 28742 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28743 | yes:no: ) |
| 28744 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28745 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28746 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 28747 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 28748 | ac_header_preproc=yes |
| 28749 | ;; |
| 28750 | no:yes:* ) |
| 28751 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 28752 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 28753 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 28754 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 28755 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 28756 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 28757 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 28758 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28759 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 28760 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 28761 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 28762 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 28763 | ( cat <<\_ASBOX |
| 28764 | ## ----------------------------------- ## |
| 28765 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28766 | ## ----------------------------------- ## |
| 28767 | _ASBOX |
| 28768 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28769 | ;; |
| 28770 | esac |
| 28771 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28772 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28773 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28775 | else |
| 28776 | ac_cv_header_opagent_h=$ac_header_preproc |
| 28777 | fi |
| 28778 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28779 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28780 | |
| 28781 | fi |
| 28782 | if test $ac_cv_header_opagent_h = yes; then |
| 28783 | : |
| 28784 | else |
| 28785 | |
| 28786 | echo "Error! You need to have opagent.h around." |
| 28787 | exit -1 |
| 28788 | |
| 28789 | fi |
| 28790 | |
| 28791 | |
| 28792 | |
| 28793 | else |
| 28794 | |
| 28795 | llvm_cv_old_LIBS="$LIBS" |
| 28796 | LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile" |
| 28797 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28798 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28799 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28801 | else |
| 28802 | ac_func_search_save_LIBS=$LIBS |
| 28803 | cat >conftest.$ac_ext <<_ACEOF |
| 28804 | /* confdefs.h. */ |
| 28805 | _ACEOF |
| 28806 | cat confdefs.h >>conftest.$ac_ext |
| 28807 | cat >>conftest.$ac_ext <<_ACEOF |
| 28808 | /* end confdefs.h. */ |
| 28809 | |
| 28810 | /* Override any GCC internal prototype to avoid an error. |
| 28811 | Use char because int might match the return type of a GCC |
| 28812 | builtin and then its argument prototype would still apply. */ |
| 28813 | #ifdef __cplusplus |
| 28814 | extern "C" |
| 28815 | #endif |
| 28816 | char op_open_agent (); |
| 28817 | int |
| 28818 | main () |
| 28819 | { |
| 28820 | return op_open_agent (); |
| 28821 | ; |
| 28822 | return 0; |
| 28823 | } |
| 28824 | _ACEOF |
| 28825 | for ac_lib in '' opagent; do |
| 28826 | if test -z "$ac_lib"; then |
| 28827 | ac_res="none required" |
| 28828 | else |
| 28829 | ac_res=-l$ac_lib |
| 28830 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28831 | fi |
| 28832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28833 | if { (ac_try="$ac_link" |
| 28834 | case "(($ac_try" in |
| 28835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28836 | *) ac_try_echo=$ac_try;; |
| 28837 | esac |
| 28838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28839 | (eval "$ac_link") 2>conftest.er1 |
| 28840 | ac_status=$? |
| 28841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28842 | rm -f conftest.er1 |
| 28843 | cat conftest.err >&5 |
| 28844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28845 | (exit $ac_status); } && |
| 28846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28847 | { (case "(($ac_try" in |
| 28848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28849 | *) ac_try_echo=$ac_try;; |
| 28850 | esac |
| 28851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28852 | (eval "$ac_try") 2>&5 |
| 28853 | ac_status=$? |
| 28854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28855 | (exit $ac_status); }; } && |
| 28856 | { ac_try='test -s conftest$ac_exeext' |
| 28857 | { (case "(($ac_try" in |
| 28858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28859 | *) ac_try_echo=$ac_try;; |
| 28860 | esac |
| 28861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28862 | (eval "$ac_try") 2>&5 |
| 28863 | ac_status=$? |
| 28864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28865 | (exit $ac_status); }; }; then |
| 28866 | ac_cv_search_op_open_agent=$ac_res |
| 28867 | else |
| 28868 | echo "$as_me: failed program was:" >&5 |
| 28869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28870 | |
| 28871 | |
| 28872 | fi |
| 28873 | |
| 28874 | rm -f core conftest.err conftest.$ac_objext \ |
| 28875 | conftest$ac_exeext |
| 28876 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28877 | break |
| 28878 | fi |
| 28879 | done |
| 28880 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28881 | : |
| 28882 | else |
| 28883 | ac_cv_search_op_open_agent=no |
| 28884 | fi |
| 28885 | rm conftest.$ac_ext |
| 28886 | LIBS=$ac_func_search_save_LIBS |
| 28887 | fi |
| 28888 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28889 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28890 | ac_res=$ac_cv_search_op_open_agent |
| 28891 | if test "$ac_res" != no; then |
| 28892 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28893 | USE_OPROFILE=1 |
| 28894 | |
| 28895 | else |
| 28896 | LIBS="$llvm_cv_old_LIBS" |
| 28897 | USE_OPROFILE=0 |
| 28898 | |
| 28899 | fi |
| 28900 | |
| 28901 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28902 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28903 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28904 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28906 | fi |
| 28907 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28908 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28909 | else |
| 28910 | # Is the header compilable? |
| 28911 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28912 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28913 | cat >conftest.$ac_ext <<_ACEOF |
| 28914 | /* confdefs.h. */ |
| 28915 | _ACEOF |
| 28916 | cat confdefs.h >>conftest.$ac_ext |
| 28917 | cat >>conftest.$ac_ext <<_ACEOF |
| 28918 | /* end confdefs.h. */ |
| 28919 | $ac_includes_default |
| 28920 | #include <opagent.h> |
| 28921 | _ACEOF |
| 28922 | rm -f conftest.$ac_objext |
| 28923 | if { (ac_try="$ac_compile" |
| 28924 | case "(($ac_try" in |
| 28925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28926 | *) ac_try_echo=$ac_try;; |
| 28927 | esac |
| 28928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28929 | (eval "$ac_compile") 2>conftest.er1 |
| 28930 | ac_status=$? |
| 28931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28932 | rm -f conftest.er1 |
| 28933 | cat conftest.err >&5 |
| 28934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28935 | (exit $ac_status); } && |
| 28936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28937 | { (case "(($ac_try" in |
| 28938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28939 | *) ac_try_echo=$ac_try;; |
| 28940 | esac |
| 28941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28942 | (eval "$ac_try") 2>&5 |
| 28943 | ac_status=$? |
| 28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28945 | (exit $ac_status); }; } && |
| 28946 | { ac_try='test -s conftest.$ac_objext' |
| 28947 | { (case "(($ac_try" in |
| 28948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28949 | *) ac_try_echo=$ac_try;; |
| 28950 | esac |
| 28951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28952 | (eval "$ac_try") 2>&5 |
| 28953 | ac_status=$? |
| 28954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28955 | (exit $ac_status); }; }; then |
| 28956 | ac_header_compiler=yes |
| 28957 | else |
| 28958 | echo "$as_me: failed program was:" >&5 |
| 28959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28960 | |
| 28961 | ac_header_compiler=no |
| 28962 | fi |
| 28963 | |
| 28964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28965 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28966 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28967 | |
| 28968 | # Is the header present? |
| 28969 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28970 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28971 | cat >conftest.$ac_ext <<_ACEOF |
| 28972 | /* confdefs.h. */ |
| 28973 | _ACEOF |
| 28974 | cat confdefs.h >>conftest.$ac_ext |
| 28975 | cat >>conftest.$ac_ext <<_ACEOF |
| 28976 | /* end confdefs.h. */ |
| 28977 | #include <opagent.h> |
| 28978 | _ACEOF |
| 28979 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28980 | case "(($ac_try" in |
| 28981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28982 | *) ac_try_echo=$ac_try;; |
| 28983 | esac |
| 28984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28985 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28986 | ac_status=$? |
| 28987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28988 | rm -f conftest.er1 |
| 28989 | cat conftest.err >&5 |
| 28990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28991 | (exit $ac_status); } >/dev/null; then |
| 28992 | if test -s conftest.err; then |
| 28993 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28995 | else |
| 28996 | ac_cpp_err= |
| 28997 | fi |
| 28998 | else |
| 28999 | ac_cpp_err=yes |
| 29000 | fi |
| 29001 | if test -z "$ac_cpp_err"; then |
| 29002 | ac_header_preproc=yes |
| 29003 | else |
| 29004 | echo "$as_me: failed program was:" >&5 |
| 29005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29006 | |
| 29007 | ac_header_preproc=no |
| 29008 | fi |
| 29009 | |
| 29010 | rm -f conftest.err conftest.$ac_ext |
| 29011 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29012 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 29013 | |
| 29014 | # So? What about this header? |
| 29015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29016 | yes:no: ) |
| 29017 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29018 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29019 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 29020 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 29021 | ac_header_preproc=yes |
| 29022 | ;; |
| 29023 | no:yes:* ) |
| 29024 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 29025 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 29026 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 29027 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 29028 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 29029 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 29030 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 29031 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29032 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 29033 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 29034 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 29035 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 29036 | ( cat <<\_ASBOX |
| 29037 | ## ----------------------------------- ## |
| 29038 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29039 | ## ----------------------------------- ## |
| 29040 | _ASBOX |
| 29041 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29042 | ;; |
| 29043 | esac |
| 29044 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 29045 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 29046 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 29047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29048 | else |
| 29049 | ac_cv_header_opagent_h=$ac_header_preproc |
| 29050 | fi |
| 29051 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 29052 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 29053 | |
| 29054 | fi |
| 29055 | if test $ac_cv_header_opagent_h = yes; then |
| 29056 | : |
| 29057 | else |
| 29058 | |
| 29059 | LIBS="$llvm_cv_old_LIBS" |
| 29060 | USE_OPROFILE=0 |
| 29061 | |
| 29062 | |
| 29063 | fi |
| 29064 | |
| 29065 | |
| 29066 | |
| 29067 | fi |
| 29068 | |
| 29069 | |
| 29070 | cat >>confdefs.h <<_ACEOF |
| 29071 | #define USE_OPROFILE $USE_OPROFILE |
| 29072 | _ACEOF |
| 29073 | |
| 29074 | |
| 29075 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29076 | |
| 29077 | |
| 29078 | |
| 29079 | |
| 29080 | |
| 29081 | ac_header_dirent=no |
| 29082 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 29083 | 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] | 29084 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 29085 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 29086 | 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] | 29087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29088 | else |
| 29089 | cat >conftest.$ac_ext <<_ACEOF |
| 29090 | /* confdefs.h. */ |
| 29091 | _ACEOF |
| 29092 | cat confdefs.h >>conftest.$ac_ext |
| 29093 | cat >>conftest.$ac_ext <<_ACEOF |
| 29094 | /* end confdefs.h. */ |
| 29095 | #include <sys/types.h> |
| 29096 | #include <$ac_hdr> |
| 29097 | |
| 29098 | int |
| 29099 | main () |
| 29100 | { |
| 29101 | if ((DIR *) 0) |
| 29102 | return 0; |
| 29103 | ; |
| 29104 | return 0; |
| 29105 | } |
| 29106 | _ACEOF |
| 29107 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29108 | if { (ac_try="$ac_compile" |
| 29109 | case "(($ac_try" in |
| 29110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29111 | *) ac_try_echo=$ac_try;; |
| 29112 | esac |
| 29113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29114 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29115 | ac_status=$? |
| 29116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29117 | rm -f conftest.er1 |
| 29118 | cat conftest.err >&5 |
| 29119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29120 | (exit $ac_status); } && |
| 29121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29122 | { (case "(($ac_try" in |
| 29123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29124 | *) ac_try_echo=$ac_try;; |
| 29125 | esac |
| 29126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29127 | (eval "$ac_try") 2>&5 |
| 29128 | ac_status=$? |
| 29129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29130 | (exit $ac_status); }; } && |
| 29131 | { ac_try='test -s conftest.$ac_objext' |
| 29132 | { (case "(($ac_try" in |
| 29133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29134 | *) ac_try_echo=$ac_try;; |
| 29135 | esac |
| 29136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29137 | (eval "$ac_try") 2>&5 |
| 29138 | ac_status=$? |
| 29139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29140 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29141 | eval "$as_ac_Header=yes" |
| 29142 | else |
| 29143 | echo "$as_me: failed program was:" >&5 |
| 29144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29146 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29147 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29148 | |
| 29149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29150 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29151 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29153 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29154 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29155 | cat >>confdefs.h <<_ACEOF |
| 29156 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 29157 | _ACEOF |
| 29158 | |
| 29159 | ac_header_dirent=$ac_hdr; break |
| 29160 | fi |
| 29161 | |
| 29162 | done |
| 29163 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 29164 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29165 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29166 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29167 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29169 | else |
| 29170 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29171 | cat >conftest.$ac_ext <<_ACEOF |
| 29172 | /* confdefs.h. */ |
| 29173 | _ACEOF |
| 29174 | cat confdefs.h >>conftest.$ac_ext |
| 29175 | cat >>conftest.$ac_ext <<_ACEOF |
| 29176 | /* end confdefs.h. */ |
| 29177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29178 | /* Override any GCC internal prototype to avoid an error. |
| 29179 | Use char because int might match the return type of a GCC |
| 29180 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29181 | #ifdef __cplusplus |
| 29182 | extern "C" |
| 29183 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29184 | char opendir (); |
| 29185 | int |
| 29186 | main () |
| 29187 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29188 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29189 | ; |
| 29190 | return 0; |
| 29191 | } |
| 29192 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29193 | for ac_lib in '' dir; do |
| 29194 | if test -z "$ac_lib"; then |
| 29195 | ac_res="none required" |
| 29196 | else |
| 29197 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29198 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29199 | fi |
| 29200 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29201 | if { (ac_try="$ac_link" |
| 29202 | case "(($ac_try" in |
| 29203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29204 | *) ac_try_echo=$ac_try;; |
| 29205 | esac |
| 29206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29207 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29208 | ac_status=$? |
| 29209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29210 | rm -f conftest.er1 |
| 29211 | cat conftest.err >&5 |
| 29212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29213 | (exit $ac_status); } && |
| 29214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29215 | { (case "(($ac_try" in |
| 29216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29217 | *) ac_try_echo=$ac_try;; |
| 29218 | esac |
| 29219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29220 | (eval "$ac_try") 2>&5 |
| 29221 | ac_status=$? |
| 29222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29223 | (exit $ac_status); }; } && |
| 29224 | { ac_try='test -s conftest$ac_exeext' |
| 29225 | { (case "(($ac_try" in |
| 29226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29227 | *) ac_try_echo=$ac_try;; |
| 29228 | esac |
| 29229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29230 | (eval "$ac_try") 2>&5 |
| 29231 | ac_status=$? |
| 29232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29233 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29234 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29235 | else |
| 29236 | echo "$as_me: failed program was:" >&5 |
| 29237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29239 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29240 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29241 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29242 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29243 | conftest$ac_exeext |
| 29244 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29245 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29246 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29247 | done |
| 29248 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29249 | : |
| 29250 | else |
| 29251 | ac_cv_search_opendir=no |
| 29252 | fi |
| 29253 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29254 | LIBS=$ac_func_search_save_LIBS |
| 29255 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29256 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29257 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29258 | ac_res=$ac_cv_search_opendir |
| 29259 | if test "$ac_res" != no; then |
| 29260 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29261 | |
| 29262 | fi |
| 29263 | |
| 29264 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29265 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29266 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29267 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29269 | else |
| 29270 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29271 | cat >conftest.$ac_ext <<_ACEOF |
| 29272 | /* confdefs.h. */ |
| 29273 | _ACEOF |
| 29274 | cat confdefs.h >>conftest.$ac_ext |
| 29275 | cat >>conftest.$ac_ext <<_ACEOF |
| 29276 | /* end confdefs.h. */ |
| 29277 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29278 | /* Override any GCC internal prototype to avoid an error. |
| 29279 | Use char because int might match the return type of a GCC |
| 29280 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29281 | #ifdef __cplusplus |
| 29282 | extern "C" |
| 29283 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29284 | char opendir (); |
| 29285 | int |
| 29286 | main () |
| 29287 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29288 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29289 | ; |
| 29290 | return 0; |
| 29291 | } |
| 29292 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29293 | for ac_lib in '' x; do |
| 29294 | if test -z "$ac_lib"; then |
| 29295 | ac_res="none required" |
| 29296 | else |
| 29297 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29298 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29299 | fi |
| 29300 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29301 | if { (ac_try="$ac_link" |
| 29302 | case "(($ac_try" in |
| 29303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29304 | *) ac_try_echo=$ac_try;; |
| 29305 | esac |
| 29306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29307 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29308 | ac_status=$? |
| 29309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29310 | rm -f conftest.er1 |
| 29311 | cat conftest.err >&5 |
| 29312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29313 | (exit $ac_status); } && |
| 29314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29315 | { (case "(($ac_try" in |
| 29316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29317 | *) ac_try_echo=$ac_try;; |
| 29318 | esac |
| 29319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29320 | (eval "$ac_try") 2>&5 |
| 29321 | ac_status=$? |
| 29322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29323 | (exit $ac_status); }; } && |
| 29324 | { ac_try='test -s conftest$ac_exeext' |
| 29325 | { (case "(($ac_try" in |
| 29326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29327 | *) ac_try_echo=$ac_try;; |
| 29328 | esac |
| 29329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29330 | (eval "$ac_try") 2>&5 |
| 29331 | ac_status=$? |
| 29332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29333 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29334 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29335 | else |
| 29336 | echo "$as_me: failed program was:" >&5 |
| 29337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29339 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29340 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29341 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29342 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29343 | conftest$ac_exeext |
| 29344 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29345 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29346 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29347 | done |
| 29348 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29349 | : |
| 29350 | else |
| 29351 | ac_cv_search_opendir=no |
| 29352 | fi |
| 29353 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29354 | LIBS=$ac_func_search_save_LIBS |
| 29355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29356 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29357 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29358 | ac_res=$ac_cv_search_opendir |
| 29359 | if test "$ac_res" != no; then |
| 29360 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29361 | |
| 29362 | fi |
| 29363 | |
| 29364 | fi |
| 29365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29366 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 29367 | 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] | 29368 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 29369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29370 | else |
| 29371 | ac_ext=c |
| 29372 | ac_cpp='$CPP $CPPFLAGS' |
| 29373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29376 | |
| 29377 | cat >conftest.$ac_ext <<_ACEOF |
| 29378 | /* confdefs.h. */ |
| 29379 | _ACEOF |
| 29380 | cat confdefs.h >>conftest.$ac_ext |
| 29381 | cat >>conftest.$ac_ext <<_ACEOF |
| 29382 | /* end confdefs.h. */ |
| 29383 | #include <sys/mman.h> |
| 29384 | #include <unistd.h> |
| 29385 | #include <fcntl.h> |
| 29386 | int |
| 29387 | main () |
| 29388 | { |
| 29389 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 29390 | ; |
| 29391 | return 0; |
| 29392 | } |
| 29393 | _ACEOF |
| 29394 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29395 | if { (ac_try="$ac_compile" |
| 29396 | case "(($ac_try" in |
| 29397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29398 | *) ac_try_echo=$ac_try;; |
| 29399 | esac |
| 29400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29401 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29402 | ac_status=$? |
| 29403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29404 | rm -f conftest.er1 |
| 29405 | cat conftest.err >&5 |
| 29406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29407 | (exit $ac_status); } && |
| 29408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29409 | { (case "(($ac_try" in |
| 29410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29411 | *) ac_try_echo=$ac_try;; |
| 29412 | esac |
| 29413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29414 | (eval "$ac_try") 2>&5 |
| 29415 | ac_status=$? |
| 29416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29417 | (exit $ac_status); }; } && |
| 29418 | { ac_try='test -s conftest.$ac_objext' |
| 29419 | { (case "(($ac_try" in |
| 29420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29421 | *) ac_try_echo=$ac_try;; |
| 29422 | esac |
| 29423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29424 | (eval "$ac_try") 2>&5 |
| 29425 | ac_status=$? |
| 29426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29427 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29428 | ac_cv_header_mmap_anon=yes |
| 29429 | else |
| 29430 | echo "$as_me: failed program was:" >&5 |
| 29431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29433 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29435 | |
| 29436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29437 | ac_ext=c |
| 29438 | ac_cpp='$CPP $CPPFLAGS' |
| 29439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29442 | |
| 29443 | |
| 29444 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29445 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 29446 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29447 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 29448 | |
| 29449 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29450 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29451 | _ACEOF |
| 29452 | |
| 29453 | fi |
| 29454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29455 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 29456 | 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] | 29457 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 29458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29459 | else |
| 29460 | cat >conftest.$ac_ext <<_ACEOF |
| 29461 | /* confdefs.h. */ |
| 29462 | _ACEOF |
| 29463 | cat confdefs.h >>conftest.$ac_ext |
| 29464 | cat >>conftest.$ac_ext <<_ACEOF |
| 29465 | /* end confdefs.h. */ |
| 29466 | #include <sys/types.h> |
| 29467 | #include <sys/stat.h> |
| 29468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29469 | #if defined S_ISBLK && defined S_IFDIR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29470 | # if S_ISBLK (S_IFDIR) |
| 29471 | You lose. |
| 29472 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29473 | #endif |
| 29474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29475 | #if defined S_ISBLK && defined S_IFCHR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29476 | # if S_ISBLK (S_IFCHR) |
| 29477 | You lose. |
| 29478 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29479 | #endif |
| 29480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29481 | #if defined S_ISLNK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29482 | # if S_ISLNK (S_IFREG) |
| 29483 | You lose. |
| 29484 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29485 | #endif |
| 29486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29487 | #if defined S_ISSOCK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29488 | # if S_ISSOCK (S_IFREG) |
| 29489 | You lose. |
| 29490 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29491 | #endif |
| 29492 | |
| 29493 | _ACEOF |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29495 | $EGREP "You lose" >/dev/null 2>&1; then |
| 29496 | ac_cv_header_stat_broken=yes |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29497 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29498 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29499 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29500 | rm -f conftest* |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29501 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29503 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 29504 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29505 | if test $ac_cv_header_stat_broken = yes; then |
| 29506 | |
| 29507 | cat >>confdefs.h <<\_ACEOF |
| 29508 | #define STAT_MACROS_BROKEN 1 |
| 29509 | _ACEOF |
| 29510 | |
| 29511 | fi |
| 29512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29513 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 29514 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29515 | if test "${ac_cv_header_stdc+set}" = set; then |
| 29516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29517 | else |
| 29518 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29519 | /* confdefs.h. */ |
| 29520 | _ACEOF |
| 29521 | cat confdefs.h >>conftest.$ac_ext |
| 29522 | cat >>conftest.$ac_ext <<_ACEOF |
| 29523 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29524 | #include <stdlib.h> |
| 29525 | #include <stdarg.h> |
| 29526 | #include <string.h> |
| 29527 | #include <float.h> |
| 29528 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29529 | int |
| 29530 | main () |
| 29531 | { |
| 29532 | |
| 29533 | ; |
| 29534 | return 0; |
| 29535 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29536 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29537 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29538 | if { (ac_try="$ac_compile" |
| 29539 | case "(($ac_try" in |
| 29540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29541 | *) ac_try_echo=$ac_try;; |
| 29542 | esac |
| 29543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29544 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29545 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29547 | rm -f conftest.er1 |
| 29548 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29550 | (exit $ac_status); } && |
| 29551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29552 | { (case "(($ac_try" in |
| 29553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29554 | *) ac_try_echo=$ac_try;; |
| 29555 | esac |
| 29556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29557 | (eval "$ac_try") 2>&5 |
| 29558 | ac_status=$? |
| 29559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29560 | (exit $ac_status); }; } && |
| 29561 | { ac_try='test -s conftest.$ac_objext' |
| 29562 | { (case "(($ac_try" in |
| 29563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29564 | *) ac_try_echo=$ac_try;; |
| 29565 | esac |
| 29566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29567 | (eval "$ac_try") 2>&5 |
| 29568 | ac_status=$? |
| 29569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29570 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29571 | ac_cv_header_stdc=yes |
| 29572 | else |
| 29573 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29575 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29576 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29577 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29578 | |
| 29579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29580 | |
| 29581 | if test $ac_cv_header_stdc = yes; then |
| 29582 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 29583 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29584 | /* confdefs.h. */ |
| 29585 | _ACEOF |
| 29586 | cat confdefs.h >>conftest.$ac_ext |
| 29587 | cat >>conftest.$ac_ext <<_ACEOF |
| 29588 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29589 | #include <string.h> |
| 29590 | |
| 29591 | _ACEOF |
| 29592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29593 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29594 | : |
| 29595 | else |
| 29596 | ac_cv_header_stdc=no |
| 29597 | fi |
| 29598 | rm -f conftest* |
| 29599 | |
| 29600 | fi |
| 29601 | |
| 29602 | if test $ac_cv_header_stdc = yes; then |
| 29603 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 29604 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29605 | /* confdefs.h. */ |
| 29606 | _ACEOF |
| 29607 | cat confdefs.h >>conftest.$ac_ext |
| 29608 | cat >>conftest.$ac_ext <<_ACEOF |
| 29609 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29610 | #include <stdlib.h> |
| 29611 | |
| 29612 | _ACEOF |
| 29613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29614 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29615 | : |
| 29616 | else |
| 29617 | ac_cv_header_stdc=no |
| 29618 | fi |
| 29619 | rm -f conftest* |
| 29620 | |
| 29621 | fi |
| 29622 | |
| 29623 | if test $ac_cv_header_stdc = yes; then |
| 29624 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 29625 | if test "$cross_compiling" = yes; then |
| 29626 | : |
| 29627 | else |
| 29628 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29629 | /* confdefs.h. */ |
| 29630 | _ACEOF |
| 29631 | cat confdefs.h >>conftest.$ac_ext |
| 29632 | cat >>conftest.$ac_ext <<_ACEOF |
| 29633 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29634 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29635 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29636 | #if ((' ' & 0x0FF) == 0x020) |
| 29637 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 29638 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 29639 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29640 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29641 | (('a' <= (c) && (c) <= 'i') \ |
| 29642 | || ('j' <= (c) && (c) <= 'r') \ |
| 29643 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29644 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 29645 | #endif |
| 29646 | |
| 29647 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 29648 | int |
| 29649 | main () |
| 29650 | { |
| 29651 | int i; |
| 29652 | for (i = 0; i < 256; i++) |
| 29653 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29654 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29655 | return 2; |
| 29656 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29657 | } |
| 29658 | _ACEOF |
| 29659 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29660 | if { (ac_try="$ac_link" |
| 29661 | case "(($ac_try" in |
| 29662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29663 | *) ac_try_echo=$ac_try;; |
| 29664 | esac |
| 29665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29666 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29667 | ac_status=$? |
| 29668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29670 | { (case "(($ac_try" in |
| 29671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29672 | *) ac_try_echo=$ac_try;; |
| 29673 | esac |
| 29674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29675 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29676 | ac_status=$? |
| 29677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29678 | (exit $ac_status); }; }; then |
| 29679 | : |
| 29680 | else |
| 29681 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29682 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29684 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29685 | ( exit $ac_status ) |
| 29686 | ac_cv_header_stdc=no |
| 29687 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29688 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29689 | fi |
| 29690 | |
| 29691 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29692 | fi |
| 29693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29694 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 29695 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29696 | if test $ac_cv_header_stdc = yes; then |
| 29697 | |
| 29698 | cat >>confdefs.h <<\_ACEOF |
| 29699 | #define STDC_HEADERS 1 |
| 29700 | _ACEOF |
| 29701 | |
| 29702 | fi |
| 29703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29704 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 29705 | 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] | 29706 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 29707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29708 | else |
| 29709 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29710 | /* confdefs.h. */ |
| 29711 | _ACEOF |
| 29712 | cat confdefs.h >>conftest.$ac_ext |
| 29713 | cat >>conftest.$ac_ext <<_ACEOF |
| 29714 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29715 | #include <sys/types.h> |
| 29716 | #include <sys/wait.h> |
| 29717 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29718 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29719 | #endif |
| 29720 | #ifndef WIFEXITED |
| 29721 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 29722 | #endif |
| 29723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29724 | int |
| 29725 | main () |
| 29726 | { |
| 29727 | int s; |
| 29728 | wait (&s); |
| 29729 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 29730 | ; |
| 29731 | return 0; |
| 29732 | } |
| 29733 | _ACEOF |
| 29734 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29735 | if { (ac_try="$ac_compile" |
| 29736 | case "(($ac_try" in |
| 29737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29738 | *) ac_try_echo=$ac_try;; |
| 29739 | esac |
| 29740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29741 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29742 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29744 | rm -f conftest.er1 |
| 29745 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29747 | (exit $ac_status); } && |
| 29748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29749 | { (case "(($ac_try" in |
| 29750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29751 | *) ac_try_echo=$ac_try;; |
| 29752 | esac |
| 29753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29754 | (eval "$ac_try") 2>&5 |
| 29755 | ac_status=$? |
| 29756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29757 | (exit $ac_status); }; } && |
| 29758 | { ac_try='test -s conftest.$ac_objext' |
| 29759 | { (case "(($ac_try" in |
| 29760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29761 | *) ac_try_echo=$ac_try;; |
| 29762 | esac |
| 29763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29764 | (eval "$ac_try") 2>&5 |
| 29765 | ac_status=$? |
| 29766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29767 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29768 | ac_cv_header_sys_wait_h=yes |
| 29769 | else |
| 29770 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29773 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29774 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29775 | |
| 29776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29777 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29778 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 29779 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29780 | if test $ac_cv_header_sys_wait_h = yes; then |
| 29781 | |
| 29782 | cat >>confdefs.h <<\_ACEOF |
| 29783 | #define HAVE_SYS_WAIT_H 1 |
| 29784 | _ACEOF |
| 29785 | |
| 29786 | fi |
| 29787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29788 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 29789 | 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] | 29790 | if test "${ac_cv_header_time+set}" = set; then |
| 29791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29792 | else |
| 29793 | cat >conftest.$ac_ext <<_ACEOF |
| 29794 | /* confdefs.h. */ |
| 29795 | _ACEOF |
| 29796 | cat confdefs.h >>conftest.$ac_ext |
| 29797 | cat >>conftest.$ac_ext <<_ACEOF |
| 29798 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29799 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29800 | #include <sys/time.h> |
| 29801 | #include <time.h> |
| 29802 | |
| 29803 | int |
| 29804 | main () |
| 29805 | { |
| 29806 | if ((struct tm *) 0) |
| 29807 | return 0; |
| 29808 | ; |
| 29809 | return 0; |
| 29810 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29811 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29812 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29813 | if { (ac_try="$ac_compile" |
| 29814 | case "(($ac_try" in |
| 29815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29816 | *) ac_try_echo=$ac_try;; |
| 29817 | esac |
| 29818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29819 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29820 | ac_status=$? |
| 29821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29822 | rm -f conftest.er1 |
| 29823 | cat conftest.err >&5 |
| 29824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29825 | (exit $ac_status); } && |
| 29826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29827 | { (case "(($ac_try" in |
| 29828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29829 | *) ac_try_echo=$ac_try;; |
| 29830 | esac |
| 29831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29832 | (eval "$ac_try") 2>&5 |
| 29833 | ac_status=$? |
| 29834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29835 | (exit $ac_status); }; } && |
| 29836 | { ac_try='test -s conftest.$ac_objext' |
| 29837 | { (case "(($ac_try" in |
| 29838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29839 | *) ac_try_echo=$ac_try;; |
| 29840 | esac |
| 29841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29842 | (eval "$ac_try") 2>&5 |
| 29843 | ac_status=$? |
| 29844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29845 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29846 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29847 | else |
| 29848 | echo "$as_me: failed program was:" >&5 |
| 29849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29851 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29853 | |
| 29854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29856 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 29857 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29858 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29859 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29860 | cat >>confdefs.h <<\_ACEOF |
| 29861 | #define TIME_WITH_SYS_TIME 1 |
| 29862 | _ACEOF |
| 29863 | |
| 29864 | fi |
| 29865 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29866 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29867 | |
| 29868 | |
| 29869 | |
| 29870 | |
| 29871 | |
| 29872 | |
| 29873 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 29874 | do |
| 29875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29876 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29877 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29879 | 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] | 29880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29881 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29882 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29884 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29885 | else |
| 29886 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29887 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29888 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29889 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29890 | /* confdefs.h. */ |
| 29891 | _ACEOF |
| 29892 | cat confdefs.h >>conftest.$ac_ext |
| 29893 | cat >>conftest.$ac_ext <<_ACEOF |
| 29894 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29895 | $ac_includes_default |
| 29896 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29897 | _ACEOF |
| 29898 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29899 | if { (ac_try="$ac_compile" |
| 29900 | case "(($ac_try" in |
| 29901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29902 | *) ac_try_echo=$ac_try;; |
| 29903 | esac |
| 29904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29905 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29906 | ac_status=$? |
| 29907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29908 | rm -f conftest.er1 |
| 29909 | cat conftest.err >&5 |
| 29910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29911 | (exit $ac_status); } && |
| 29912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29913 | { (case "(($ac_try" in |
| 29914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29915 | *) ac_try_echo=$ac_try;; |
| 29916 | esac |
| 29917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29918 | (eval "$ac_try") 2>&5 |
| 29919 | ac_status=$? |
| 29920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29921 | (exit $ac_status); }; } && |
| 29922 | { ac_try='test -s conftest.$ac_objext' |
| 29923 | { (case "(($ac_try" in |
| 29924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29925 | *) ac_try_echo=$ac_try;; |
| 29926 | esac |
| 29927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29928 | (eval "$ac_try") 2>&5 |
| 29929 | ac_status=$? |
| 29930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29931 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29932 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29933 | else |
| 29934 | echo "$as_me: failed program was:" >&5 |
| 29935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29937 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29938 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29939 | |
| 29940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29941 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29942 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29943 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29944 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29945 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29946 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29947 | cat >conftest.$ac_ext <<_ACEOF |
| 29948 | /* confdefs.h. */ |
| 29949 | _ACEOF |
| 29950 | cat confdefs.h >>conftest.$ac_ext |
| 29951 | cat >>conftest.$ac_ext <<_ACEOF |
| 29952 | /* end confdefs.h. */ |
| 29953 | #include <$ac_header> |
| 29954 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29955 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29956 | case "(($ac_try" in |
| 29957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29958 | *) ac_try_echo=$ac_try;; |
| 29959 | esac |
| 29960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29961 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29962 | ac_status=$? |
| 29963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29964 | rm -f conftest.er1 |
| 29965 | cat conftest.err >&5 |
| 29966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29967 | (exit $ac_status); } >/dev/null; then |
| 29968 | if test -s conftest.err; then |
| 29969 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29971 | else |
| 29972 | ac_cpp_err= |
| 29973 | fi |
| 29974 | else |
| 29975 | ac_cpp_err=yes |
| 29976 | fi |
| 29977 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29978 | ac_header_preproc=yes |
| 29979 | else |
| 29980 | echo "$as_me: failed program was:" >&5 |
| 29981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29982 | |
| 29983 | ac_header_preproc=no |
| 29984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29985 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29986 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29987 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29988 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29989 | |
| 29990 | # So? What about this header? |
| 29991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29992 | yes:no: ) |
| 29993 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29994 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29996 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29997 | ac_header_preproc=yes |
| 29998 | ;; |
| 29999 | no:yes:* ) |
| 30000 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30001 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30002 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30003 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30004 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30005 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30006 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30007 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30009 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30010 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30011 | 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] | 30012 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30013 | ## ----------------------------------- ## |
| 30014 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30015 | ## ----------------------------------- ## |
| 30016 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30017 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30018 | ;; |
| 30019 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30020 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30022 | 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] | 30023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30024 | else |
| 30025 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30027 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30029 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30030 | |
| 30031 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30033 | cat >>confdefs.h <<_ACEOF |
| 30034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30035 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30036 | |
| 30037 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30038 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30039 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30040 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30041 | |
| 30042 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30043 | |
| 30044 | |
| 30045 | |
| 30046 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30047 | 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] | 30048 | do |
| 30049 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30050 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30051 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30053 | 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] | 30054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30055 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30058 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30059 | else |
| 30060 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30061 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30062 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30063 | cat >conftest.$ac_ext <<_ACEOF |
| 30064 | /* confdefs.h. */ |
| 30065 | _ACEOF |
| 30066 | cat confdefs.h >>conftest.$ac_ext |
| 30067 | cat >>conftest.$ac_ext <<_ACEOF |
| 30068 | /* end confdefs.h. */ |
| 30069 | $ac_includes_default |
| 30070 | #include <$ac_header> |
| 30071 | _ACEOF |
| 30072 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30073 | if { (ac_try="$ac_compile" |
| 30074 | case "(($ac_try" in |
| 30075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30076 | *) ac_try_echo=$ac_try;; |
| 30077 | esac |
| 30078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30079 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30080 | ac_status=$? |
| 30081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30082 | rm -f conftest.er1 |
| 30083 | cat conftest.err >&5 |
| 30084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30085 | (exit $ac_status); } && |
| 30086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30087 | { (case "(($ac_try" in |
| 30088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30089 | *) ac_try_echo=$ac_try;; |
| 30090 | esac |
| 30091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30092 | (eval "$ac_try") 2>&5 |
| 30093 | ac_status=$? |
| 30094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30095 | (exit $ac_status); }; } && |
| 30096 | { ac_try='test -s conftest.$ac_objext' |
| 30097 | { (case "(($ac_try" in |
| 30098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30099 | *) ac_try_echo=$ac_try;; |
| 30100 | esac |
| 30101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30102 | (eval "$ac_try") 2>&5 |
| 30103 | ac_status=$? |
| 30104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30105 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30106 | ac_header_compiler=yes |
| 30107 | else |
| 30108 | echo "$as_me: failed program was:" >&5 |
| 30109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30111 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30113 | |
| 30114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30115 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30116 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30117 | |
| 30118 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30119 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30121 | cat >conftest.$ac_ext <<_ACEOF |
| 30122 | /* confdefs.h. */ |
| 30123 | _ACEOF |
| 30124 | cat confdefs.h >>conftest.$ac_ext |
| 30125 | cat >>conftest.$ac_ext <<_ACEOF |
| 30126 | /* end confdefs.h. */ |
| 30127 | #include <$ac_header> |
| 30128 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30129 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30130 | case "(($ac_try" in |
| 30131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30132 | *) ac_try_echo=$ac_try;; |
| 30133 | esac |
| 30134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30135 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30136 | ac_status=$? |
| 30137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30138 | rm -f conftest.er1 |
| 30139 | cat conftest.err >&5 |
| 30140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30141 | (exit $ac_status); } >/dev/null; then |
| 30142 | if test -s conftest.err; then |
| 30143 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30145 | else |
| 30146 | ac_cpp_err= |
| 30147 | fi |
| 30148 | else |
| 30149 | ac_cpp_err=yes |
| 30150 | fi |
| 30151 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30152 | ac_header_preproc=yes |
| 30153 | else |
| 30154 | echo "$as_me: failed program was:" >&5 |
| 30155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30156 | |
| 30157 | ac_header_preproc=no |
| 30158 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30159 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30160 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30161 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30162 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30163 | |
| 30164 | # So? What about this header? |
| 30165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30166 | yes:no: ) |
| 30167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30171 | ac_header_preproc=yes |
| 30172 | ;; |
| 30173 | no:yes:* ) |
| 30174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30185 | 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] | 30186 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30187 | ## ----------------------------------- ## |
| 30188 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30189 | ## ----------------------------------- ## |
| 30190 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30191 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30192 | ;; |
| 30193 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30194 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30196 | 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] | 30197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30198 | else |
| 30199 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30200 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30201 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30203 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30204 | |
| 30205 | fi |
| 30206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30207 | cat >>confdefs.h <<_ACEOF |
| 30208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30209 | _ACEOF |
| 30210 | |
| 30211 | fi |
| 30212 | |
| 30213 | done |
| 30214 | |
| 30215 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30216 | |
| 30217 | for ac_header in utime.h windows.h |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30218 | do |
| 30219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30221 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30225 | fi |
| 30226 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30228 | echo "${ECHO_T}$ac_res" >&6; } |
| 30229 | else |
| 30230 | # Is the header compilable? |
| 30231 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30233 | cat >conftest.$ac_ext <<_ACEOF |
| 30234 | /* confdefs.h. */ |
| 30235 | _ACEOF |
| 30236 | cat confdefs.h >>conftest.$ac_ext |
| 30237 | cat >>conftest.$ac_ext <<_ACEOF |
| 30238 | /* end confdefs.h. */ |
| 30239 | $ac_includes_default |
| 30240 | #include <$ac_header> |
| 30241 | _ACEOF |
| 30242 | rm -f conftest.$ac_objext |
| 30243 | if { (ac_try="$ac_compile" |
| 30244 | case "(($ac_try" in |
| 30245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30246 | *) ac_try_echo=$ac_try;; |
| 30247 | esac |
| 30248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30249 | (eval "$ac_compile") 2>conftest.er1 |
| 30250 | ac_status=$? |
| 30251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30252 | rm -f conftest.er1 |
| 30253 | cat conftest.err >&5 |
| 30254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30255 | (exit $ac_status); } && |
| 30256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30257 | { (case "(($ac_try" in |
| 30258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30259 | *) ac_try_echo=$ac_try;; |
| 30260 | esac |
| 30261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30262 | (eval "$ac_try") 2>&5 |
| 30263 | ac_status=$? |
| 30264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30265 | (exit $ac_status); }; } && |
| 30266 | { ac_try='test -s conftest.$ac_objext' |
| 30267 | { (case "(($ac_try" in |
| 30268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30269 | *) ac_try_echo=$ac_try;; |
| 30270 | esac |
| 30271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30272 | (eval "$ac_try") 2>&5 |
| 30273 | ac_status=$? |
| 30274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30275 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30276 | ac_header_compiler=yes |
| 30277 | else |
| 30278 | echo "$as_me: failed program was:" >&5 |
| 30279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30280 | |
| 30281 | ac_header_compiler=no |
| 30282 | fi |
| 30283 | |
| 30284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30285 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30286 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30287 | |
| 30288 | # Is the header present? |
| 30289 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30291 | cat >conftest.$ac_ext <<_ACEOF |
| 30292 | /* confdefs.h. */ |
| 30293 | _ACEOF |
| 30294 | cat confdefs.h >>conftest.$ac_ext |
| 30295 | cat >>conftest.$ac_ext <<_ACEOF |
| 30296 | /* end confdefs.h. */ |
| 30297 | #include <$ac_header> |
| 30298 | _ACEOF |
| 30299 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30300 | case "(($ac_try" in |
| 30301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30302 | *) ac_try_echo=$ac_try;; |
| 30303 | esac |
| 30304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30305 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30306 | ac_status=$? |
| 30307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30308 | rm -f conftest.er1 |
| 30309 | cat conftest.err >&5 |
| 30310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30311 | (exit $ac_status); } >/dev/null; then |
| 30312 | if test -s conftest.err; then |
| 30313 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30314 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30315 | else |
| 30316 | ac_cpp_err= |
| 30317 | fi |
| 30318 | else |
| 30319 | ac_cpp_err=yes |
| 30320 | fi |
| 30321 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30322 | ac_header_preproc=yes |
| 30323 | else |
| 30324 | echo "$as_me: failed program was:" >&5 |
| 30325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30326 | |
| 30327 | ac_header_preproc=no |
| 30328 | fi |
| 30329 | |
| 30330 | rm -f conftest.err conftest.$ac_ext |
| 30331 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30332 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30333 | |
| 30334 | # So? What about this header? |
| 30335 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30336 | yes:no: ) |
| 30337 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30338 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30340 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30341 | ac_header_preproc=yes |
| 30342 | ;; |
| 30343 | no:yes:* ) |
| 30344 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30345 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30346 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30347 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30348 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30349 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30350 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30351 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30353 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30354 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30355 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30356 | ( cat <<\_ASBOX |
| 30357 | ## ----------------------------------- ## |
| 30358 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30359 | ## ----------------------------------- ## |
| 30360 | _ASBOX |
| 30361 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30362 | ;; |
| 30363 | esac |
| 30364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30368 | else |
| 30369 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30370 | fi |
| 30371 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30372 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30373 | echo "${ECHO_T}$ac_res" >&6; } |
| 30374 | |
| 30375 | fi |
| 30376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30377 | cat >>confdefs.h <<_ACEOF |
| 30378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30379 | _ACEOF |
| 30380 | |
| 30381 | fi |
| 30382 | |
| 30383 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30384 | |
| 30385 | |
| 30386 | |
| 30387 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30388 | |
| 30389 | 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] | 30390 | do |
| 30391 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30395 | 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] | 30396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30397 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30400 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30401 | else |
| 30402 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30403 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30405 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30406 | /* confdefs.h. */ |
| 30407 | _ACEOF |
| 30408 | cat confdefs.h >>conftest.$ac_ext |
| 30409 | cat >>conftest.$ac_ext <<_ACEOF |
| 30410 | /* end confdefs.h. */ |
| 30411 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30412 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30413 | _ACEOF |
| 30414 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30415 | if { (ac_try="$ac_compile" |
| 30416 | case "(($ac_try" in |
| 30417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30418 | *) ac_try_echo=$ac_try;; |
| 30419 | esac |
| 30420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30421 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30422 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30424 | rm -f conftest.er1 |
| 30425 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30427 | (exit $ac_status); } && |
| 30428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30429 | { (case "(($ac_try" in |
| 30430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30431 | *) ac_try_echo=$ac_try;; |
| 30432 | esac |
| 30433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30434 | (eval "$ac_try") 2>&5 |
| 30435 | ac_status=$? |
| 30436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30437 | (exit $ac_status); }; } && |
| 30438 | { ac_try='test -s conftest.$ac_objext' |
| 30439 | { (case "(($ac_try" in |
| 30440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30441 | *) ac_try_echo=$ac_try;; |
| 30442 | esac |
| 30443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30444 | (eval "$ac_try") 2>&5 |
| 30445 | ac_status=$? |
| 30446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30447 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30448 | ac_header_compiler=yes |
| 30449 | else |
| 30450 | echo "$as_me: failed program was:" >&5 |
| 30451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30453 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30455 | |
| 30456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30458 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30459 | |
| 30460 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30463 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30464 | /* confdefs.h. */ |
| 30465 | _ACEOF |
| 30466 | cat confdefs.h >>conftest.$ac_ext |
| 30467 | cat >>conftest.$ac_ext <<_ACEOF |
| 30468 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30469 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30470 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30472 | case "(($ac_try" in |
| 30473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30474 | *) ac_try_echo=$ac_try;; |
| 30475 | esac |
| 30476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30478 | ac_status=$? |
| 30479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30480 | rm -f conftest.er1 |
| 30481 | cat conftest.err >&5 |
| 30482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30483 | (exit $ac_status); } >/dev/null; then |
| 30484 | if test -s conftest.err; then |
| 30485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30487 | else |
| 30488 | ac_cpp_err= |
| 30489 | fi |
| 30490 | else |
| 30491 | ac_cpp_err=yes |
| 30492 | fi |
| 30493 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30494 | ac_header_preproc=yes |
| 30495 | else |
| 30496 | echo "$as_me: failed program was:" >&5 |
| 30497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30498 | |
| 30499 | ac_header_preproc=no |
| 30500 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30501 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30502 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30503 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30504 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30505 | |
| 30506 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30508 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30512 | 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] | 30513 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30514 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30515 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30527 | 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] | 30528 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30529 | ## ----------------------------------- ## |
| 30530 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30531 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30532 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30533 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30534 | ;; |
| 30535 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30538 | 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] | 30539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30540 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30541 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30543 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30545 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30546 | |
| 30547 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30549 | cat >>confdefs.h <<_ACEOF |
| 30550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30551 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30552 | |
| 30553 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30554 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30555 | done |
| 30556 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30557 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30558 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 30559 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 30560 | |
| 30561 | 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] | 30562 | do |
| 30563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30565 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30567 | 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] | 30568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30569 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30570 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30572 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30573 | else |
| 30574 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30575 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30576 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30577 | cat >conftest.$ac_ext <<_ACEOF |
| 30578 | /* confdefs.h. */ |
| 30579 | _ACEOF |
| 30580 | cat confdefs.h >>conftest.$ac_ext |
| 30581 | cat >>conftest.$ac_ext <<_ACEOF |
| 30582 | /* end confdefs.h. */ |
| 30583 | $ac_includes_default |
| 30584 | #include <$ac_header> |
| 30585 | _ACEOF |
| 30586 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30587 | if { (ac_try="$ac_compile" |
| 30588 | case "(($ac_try" in |
| 30589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30590 | *) ac_try_echo=$ac_try;; |
| 30591 | esac |
| 30592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30593 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30594 | ac_status=$? |
| 30595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30596 | rm -f conftest.er1 |
| 30597 | cat conftest.err >&5 |
| 30598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30599 | (exit $ac_status); } && |
| 30600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30601 | { (case "(($ac_try" in |
| 30602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30603 | *) ac_try_echo=$ac_try;; |
| 30604 | esac |
| 30605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30606 | (eval "$ac_try") 2>&5 |
| 30607 | ac_status=$? |
| 30608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30609 | (exit $ac_status); }; } && |
| 30610 | { ac_try='test -s conftest.$ac_objext' |
| 30611 | { (case "(($ac_try" in |
| 30612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30613 | *) ac_try_echo=$ac_try;; |
| 30614 | esac |
| 30615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30616 | (eval "$ac_try") 2>&5 |
| 30617 | ac_status=$? |
| 30618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30619 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30620 | ac_header_compiler=yes |
| 30621 | else |
| 30622 | echo "$as_me: failed program was:" >&5 |
| 30623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30625 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30626 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30627 | |
| 30628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30629 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30630 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30631 | |
| 30632 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30633 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30634 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30635 | cat >conftest.$ac_ext <<_ACEOF |
| 30636 | /* confdefs.h. */ |
| 30637 | _ACEOF |
| 30638 | cat confdefs.h >>conftest.$ac_ext |
| 30639 | cat >>conftest.$ac_ext <<_ACEOF |
| 30640 | /* end confdefs.h. */ |
| 30641 | #include <$ac_header> |
| 30642 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30643 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30644 | case "(($ac_try" in |
| 30645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30646 | *) ac_try_echo=$ac_try;; |
| 30647 | esac |
| 30648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30649 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30650 | ac_status=$? |
| 30651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30652 | rm -f conftest.er1 |
| 30653 | cat conftest.err >&5 |
| 30654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30655 | (exit $ac_status); } >/dev/null; then |
| 30656 | if test -s conftest.err; then |
| 30657 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30659 | else |
| 30660 | ac_cpp_err= |
| 30661 | fi |
| 30662 | else |
| 30663 | ac_cpp_err=yes |
| 30664 | fi |
| 30665 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30666 | ac_header_preproc=yes |
| 30667 | else |
| 30668 | echo "$as_me: failed program was:" >&5 |
| 30669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30670 | |
| 30671 | ac_header_preproc=no |
| 30672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30673 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30674 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30675 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30676 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30677 | |
| 30678 | # So? What about this header? |
| 30679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30680 | yes:no: ) |
| 30681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30685 | ac_header_preproc=yes |
| 30686 | ;; |
| 30687 | no:yes:* ) |
| 30688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30690 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30691 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30694 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30695 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30699 | 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] | 30700 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30701 | ## ----------------------------------- ## |
| 30702 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30703 | ## ----------------------------------- ## |
| 30704 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30705 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30706 | ;; |
| 30707 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30710 | 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] | 30711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30712 | else |
| 30713 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30714 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30715 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30717 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30718 | |
| 30719 | fi |
| 30720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30721 | cat >>confdefs.h <<_ACEOF |
| 30722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30723 | _ACEOF |
| 30724 | |
| 30725 | fi |
| 30726 | |
| 30727 | done |
| 30728 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30729 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30730 | |
| 30731 | for ac_header in pthread.h |
| 30732 | do |
| 30733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30735 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30737 | 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] | 30738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30739 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30740 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30742 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30743 | else |
| 30744 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30745 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30746 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30747 | cat >conftest.$ac_ext <<_ACEOF |
| 30748 | /* confdefs.h. */ |
| 30749 | _ACEOF |
| 30750 | cat confdefs.h >>conftest.$ac_ext |
| 30751 | cat >>conftest.$ac_ext <<_ACEOF |
| 30752 | /* end confdefs.h. */ |
| 30753 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30754 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30755 | _ACEOF |
| 30756 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30757 | if { (ac_try="$ac_compile" |
| 30758 | case "(($ac_try" in |
| 30759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30760 | *) ac_try_echo=$ac_try;; |
| 30761 | esac |
| 30762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30763 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30764 | ac_status=$? |
| 30765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30766 | rm -f conftest.er1 |
| 30767 | cat conftest.err >&5 |
| 30768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30769 | (exit $ac_status); } && |
| 30770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30771 | { (case "(($ac_try" in |
| 30772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30773 | *) ac_try_echo=$ac_try;; |
| 30774 | esac |
| 30775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30776 | (eval "$ac_try") 2>&5 |
| 30777 | ac_status=$? |
| 30778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30779 | (exit $ac_status); }; } && |
| 30780 | { ac_try='test -s conftest.$ac_objext' |
| 30781 | { (case "(($ac_try" in |
| 30782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30783 | *) ac_try_echo=$ac_try;; |
| 30784 | esac |
| 30785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30786 | (eval "$ac_try") 2>&5 |
| 30787 | ac_status=$? |
| 30788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30789 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30790 | ac_header_compiler=yes |
| 30791 | else |
| 30792 | echo "$as_me: failed program was:" >&5 |
| 30793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30795 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30797 | |
| 30798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30799 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30800 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30801 | |
| 30802 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30803 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30805 | cat >conftest.$ac_ext <<_ACEOF |
| 30806 | /* confdefs.h. */ |
| 30807 | _ACEOF |
| 30808 | cat confdefs.h >>conftest.$ac_ext |
| 30809 | cat >>conftest.$ac_ext <<_ACEOF |
| 30810 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30811 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30812 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30813 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30814 | case "(($ac_try" in |
| 30815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30816 | *) ac_try_echo=$ac_try;; |
| 30817 | esac |
| 30818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30819 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30820 | ac_status=$? |
| 30821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30822 | rm -f conftest.er1 |
| 30823 | cat conftest.err >&5 |
| 30824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30825 | (exit $ac_status); } >/dev/null; then |
| 30826 | if test -s conftest.err; then |
| 30827 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30829 | else |
| 30830 | ac_cpp_err= |
| 30831 | fi |
| 30832 | else |
| 30833 | ac_cpp_err=yes |
| 30834 | fi |
| 30835 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30836 | ac_header_preproc=yes |
| 30837 | else |
| 30838 | echo "$as_me: failed program was:" >&5 |
| 30839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30840 | |
| 30841 | ac_header_preproc=no |
| 30842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30843 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30844 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30845 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30846 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30847 | |
| 30848 | # So? What about this header? |
| 30849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30850 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30854 | 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] | 30855 | ac_header_preproc=yes |
| 30856 | ;; |
| 30857 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30869 | 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] | 30870 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30871 | ## ----------------------------------- ## |
| 30872 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30873 | ## ----------------------------------- ## |
| 30874 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30875 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30876 | ;; |
| 30877 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30880 | 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] | 30881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30882 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30883 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30884 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30887 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30888 | |
| 30889 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30891 | cat >>confdefs.h <<_ACEOF |
| 30892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30893 | _ACEOF |
| 30894 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30895 | |
| 30896 | else |
| 30897 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30898 | |
| 30899 | fi |
| 30900 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30901 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30902 | |
| 30903 | else |
| 30904 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30905 | |
| 30906 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 30907 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 30908 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30909 | |
| 30910 | |
| 30911 | for ac_header in ffi.h ffi/ffi.h |
| 30912 | do |
| 30913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30919 | fi |
| 30920 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30921 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30922 | echo "${ECHO_T}$ac_res" >&6; } |
| 30923 | else |
| 30924 | # Is the header compilable? |
| 30925 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30926 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30927 | cat >conftest.$ac_ext <<_ACEOF |
| 30928 | /* confdefs.h. */ |
| 30929 | _ACEOF |
| 30930 | cat confdefs.h >>conftest.$ac_ext |
| 30931 | cat >>conftest.$ac_ext <<_ACEOF |
| 30932 | /* end confdefs.h. */ |
| 30933 | $ac_includes_default |
| 30934 | #include <$ac_header> |
| 30935 | _ACEOF |
| 30936 | rm -f conftest.$ac_objext |
| 30937 | if { (ac_try="$ac_compile" |
| 30938 | case "(($ac_try" in |
| 30939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30940 | *) ac_try_echo=$ac_try;; |
| 30941 | esac |
| 30942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30943 | (eval "$ac_compile") 2>conftest.er1 |
| 30944 | ac_status=$? |
| 30945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30946 | rm -f conftest.er1 |
| 30947 | cat conftest.err >&5 |
| 30948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30949 | (exit $ac_status); } && |
| 30950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30951 | { (case "(($ac_try" in |
| 30952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30953 | *) ac_try_echo=$ac_try;; |
| 30954 | esac |
| 30955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30956 | (eval "$ac_try") 2>&5 |
| 30957 | ac_status=$? |
| 30958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30959 | (exit $ac_status); }; } && |
| 30960 | { ac_try='test -s conftest.$ac_objext' |
| 30961 | { (case "(($ac_try" in |
| 30962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30963 | *) ac_try_echo=$ac_try;; |
| 30964 | esac |
| 30965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30966 | (eval "$ac_try") 2>&5 |
| 30967 | ac_status=$? |
| 30968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30969 | (exit $ac_status); }; }; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30970 | ac_header_compiler=yes |
| 30971 | else |
| 30972 | echo "$as_me: failed program was:" >&5 |
| 30973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30974 | |
| 30975 | ac_header_compiler=no |
| 30976 | fi |
| 30977 | |
| 30978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30979 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30980 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30981 | |
| 30982 | # Is the header present? |
| 30983 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30985 | cat >conftest.$ac_ext <<_ACEOF |
| 30986 | /* confdefs.h. */ |
| 30987 | _ACEOF |
| 30988 | cat confdefs.h >>conftest.$ac_ext |
| 30989 | cat >>conftest.$ac_ext <<_ACEOF |
| 30990 | /* end confdefs.h. */ |
| 30991 | #include <$ac_header> |
| 30992 | _ACEOF |
| 30993 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30994 | case "(($ac_try" in |
| 30995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30996 | *) ac_try_echo=$ac_try;; |
| 30997 | esac |
| 30998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30999 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 31000 | ac_status=$? |
| 31001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31002 | rm -f conftest.er1 |
| 31003 | cat conftest.err >&5 |
| 31004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31005 | (exit $ac_status); } >/dev/null; then |
| 31006 | if test -s conftest.err; then |
| 31007 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 31008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 31009 | else |
| 31010 | ac_cpp_err= |
| 31011 | fi |
| 31012 | else |
| 31013 | ac_cpp_err=yes |
| 31014 | fi |
| 31015 | if test -z "$ac_cpp_err"; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31016 | ac_header_preproc=yes |
| 31017 | else |
| 31018 | echo "$as_me: failed program was:" >&5 |
| 31019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31020 | |
| 31021 | ac_header_preproc=no |
| 31022 | fi |
| 31023 | |
| 31024 | rm -f conftest.err conftest.$ac_ext |
| 31025 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 31026 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 31027 | |
| 31028 | # So? What about this header? |
| 31029 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 31030 | yes:no: ) |
| 31031 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 31032 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 31033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 31034 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 31035 | ac_header_preproc=yes |
| 31036 | ;; |
| 31037 | no:yes:* ) |
| 31038 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 31039 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 31040 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 31041 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 31042 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 31043 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 31044 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 31045 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 31046 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 31047 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 31048 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 31049 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 31050 | ( cat <<\_ASBOX |
| 31051 | ## ----------------------------------- ## |
| 31052 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 31053 | ## ----------------------------------- ## |
| 31054 | _ASBOX |
| 31055 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 31056 | ;; |
| 31057 | esac |
| 31058 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 31059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 31060 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31062 | else |
| 31063 | eval "$as_ac_Header=\$ac_header_preproc" |
| 31064 | fi |
| 31065 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31066 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31067 | echo "${ECHO_T}$ac_res" >&6; } |
| 31068 | |
| 31069 | fi |
| 31070 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 31071 | cat >>confdefs.h <<_ACEOF |
| 31072 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31073 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31074 | |
| 31075 | fi |
| 31076 | |
| 31077 | done |
| 31078 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 31079 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31080 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 31081 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 31082 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31083 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 31084 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 31085 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 31086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31087 | else |
| 31088 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31089 | ac_ext=cpp |
| 31090 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31094 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31095 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31096 | if test "$cross_compiling" = yes; then |
| 31097 | ac_cv_huge_val_sanity=yes |
| 31098 | else |
| 31099 | cat >conftest.$ac_ext <<_ACEOF |
| 31100 | /* confdefs.h. */ |
| 31101 | _ACEOF |
| 31102 | cat confdefs.h >>conftest.$ac_ext |
| 31103 | cat >>conftest.$ac_ext <<_ACEOF |
| 31104 | /* end confdefs.h. */ |
| 31105 | #include <math.h> |
| 31106 | int |
| 31107 | main () |
| 31108 | { |
| 31109 | double x = HUGE_VAL; return x != x; |
| 31110 | ; |
| 31111 | return 0; |
| 31112 | } |
| 31113 | _ACEOF |
| 31114 | rm -f conftest$ac_exeext |
| 31115 | if { (ac_try="$ac_link" |
| 31116 | case "(($ac_try" in |
| 31117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31118 | *) ac_try_echo=$ac_try;; |
| 31119 | esac |
| 31120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31121 | (eval "$ac_link") 2>&5 |
| 31122 | ac_status=$? |
| 31123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31124 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31125 | { (case "(($ac_try" in |
| 31126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31127 | *) ac_try_echo=$ac_try;; |
| 31128 | esac |
| 31129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31130 | (eval "$ac_try") 2>&5 |
| 31131 | ac_status=$? |
| 31132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31133 | (exit $ac_status); }; }; then |
| 31134 | ac_cv_huge_val_sanity=yes |
| 31135 | else |
| 31136 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31137 | echo "$as_me: failed program was:" >&5 |
| 31138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31139 | |
| 31140 | ( exit $ac_status ) |
| 31141 | ac_cv_huge_val_sanity=no |
| 31142 | fi |
| 31143 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 31144 | fi |
| 31145 | |
| 31146 | |
| 31147 | ac_ext=c |
| 31148 | ac_cpp='$CPP $CPPFLAGS' |
| 31149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31152 | |
| 31153 | |
| 31154 | fi |
| 31155 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 31156 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 31157 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 31158 | |
| 31159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31160 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 31161 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31162 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 31163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31164 | else |
| 31165 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31166 | /* confdefs.h. */ |
| 31167 | _ACEOF |
| 31168 | cat confdefs.h >>conftest.$ac_ext |
| 31169 | cat >>conftest.$ac_ext <<_ACEOF |
| 31170 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31171 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31172 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31173 | int |
| 31174 | main () |
| 31175 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31176 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31177 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31178 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31179 | return 0; |
| 31180 | ; |
| 31181 | return 0; |
| 31182 | } |
| 31183 | _ACEOF |
| 31184 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31185 | if { (ac_try="$ac_compile" |
| 31186 | case "(($ac_try" in |
| 31187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31188 | *) ac_try_echo=$ac_try;; |
| 31189 | esac |
| 31190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31191 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31192 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31194 | rm -f conftest.er1 |
| 31195 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31197 | (exit $ac_status); } && |
| 31198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31199 | { (case "(($ac_try" in |
| 31200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31201 | *) ac_try_echo=$ac_try;; |
| 31202 | esac |
| 31203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31204 | (eval "$ac_try") 2>&5 |
| 31205 | ac_status=$? |
| 31206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31207 | (exit $ac_status); }; } && |
| 31208 | { ac_try='test -s conftest.$ac_objext' |
| 31209 | { (case "(($ac_try" in |
| 31210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31211 | *) ac_try_echo=$ac_try;; |
| 31212 | esac |
| 31213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31214 | (eval "$ac_try") 2>&5 |
| 31215 | ac_status=$? |
| 31216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31217 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31218 | ac_cv_type_pid_t=yes |
| 31219 | else |
| 31220 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31223 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31225 | |
| 31226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31228 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 31229 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31230 | if test $ac_cv_type_pid_t = yes; then |
| 31231 | : |
| 31232 | else |
| 31233 | |
| 31234 | cat >>confdefs.h <<_ACEOF |
| 31235 | #define pid_t int |
| 31236 | _ACEOF |
| 31237 | |
| 31238 | fi |
| 31239 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31240 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 31241 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31242 | if test "${ac_cv_type_size_t+set}" = set; then |
| 31243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31244 | else |
| 31245 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31246 | /* confdefs.h. */ |
| 31247 | _ACEOF |
| 31248 | cat confdefs.h >>conftest.$ac_ext |
| 31249 | cat >>conftest.$ac_ext <<_ACEOF |
| 31250 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31251 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31252 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31253 | int |
| 31254 | main () |
| 31255 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31256 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31257 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31258 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31259 | return 0; |
| 31260 | ; |
| 31261 | return 0; |
| 31262 | } |
| 31263 | _ACEOF |
| 31264 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31265 | if { (ac_try="$ac_compile" |
| 31266 | case "(($ac_try" in |
| 31267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31268 | *) ac_try_echo=$ac_try;; |
| 31269 | esac |
| 31270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31271 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31272 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31274 | rm -f conftest.er1 |
| 31275 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31277 | (exit $ac_status); } && |
| 31278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31279 | { (case "(($ac_try" in |
| 31280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31281 | *) ac_try_echo=$ac_try;; |
| 31282 | esac |
| 31283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31284 | (eval "$ac_try") 2>&5 |
| 31285 | ac_status=$? |
| 31286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31287 | (exit $ac_status); }; } && |
| 31288 | { ac_try='test -s conftest.$ac_objext' |
| 31289 | { (case "(($ac_try" in |
| 31290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31291 | *) ac_try_echo=$ac_try;; |
| 31292 | esac |
| 31293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31294 | (eval "$ac_try") 2>&5 |
| 31295 | ac_status=$? |
| 31296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31297 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31298 | ac_cv_type_size_t=yes |
| 31299 | else |
| 31300 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31303 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31304 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31305 | |
| 31306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31307 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31308 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 31309 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31310 | if test $ac_cv_type_size_t = yes; then |
| 31311 | : |
| 31312 | else |
| 31313 | |
| 31314 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31315 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31316 | _ACEOF |
| 31317 | |
| 31318 | fi |
| 31319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31320 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 31321 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31322 | if test "${ac_cv_type_signal+set}" = set; then |
| 31323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31324 | else |
| 31325 | cat >conftest.$ac_ext <<_ACEOF |
| 31326 | /* confdefs.h. */ |
| 31327 | _ACEOF |
| 31328 | cat confdefs.h >>conftest.$ac_ext |
| 31329 | cat >>conftest.$ac_ext <<_ACEOF |
| 31330 | /* end confdefs.h. */ |
| 31331 | #include <sys/types.h> |
| 31332 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31333 | |
| 31334 | int |
| 31335 | main () |
| 31336 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31337 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31338 | ; |
| 31339 | return 0; |
| 31340 | } |
| 31341 | _ACEOF |
| 31342 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31343 | if { (ac_try="$ac_compile" |
| 31344 | case "(($ac_try" in |
| 31345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31346 | *) ac_try_echo=$ac_try;; |
| 31347 | esac |
| 31348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31349 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31350 | ac_status=$? |
| 31351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31352 | rm -f conftest.er1 |
| 31353 | cat conftest.err >&5 |
| 31354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31355 | (exit $ac_status); } && |
| 31356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31357 | { (case "(($ac_try" in |
| 31358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31359 | *) ac_try_echo=$ac_try;; |
| 31360 | esac |
| 31361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31362 | (eval "$ac_try") 2>&5 |
| 31363 | ac_status=$? |
| 31364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31365 | (exit $ac_status); }; } && |
| 31366 | { ac_try='test -s conftest.$ac_objext' |
| 31367 | { (case "(($ac_try" in |
| 31368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31369 | *) ac_try_echo=$ac_try;; |
| 31370 | esac |
| 31371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31372 | (eval "$ac_try") 2>&5 |
| 31373 | ac_status=$? |
| 31374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31375 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31376 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31377 | else |
| 31378 | echo "$as_me: failed program was:" >&5 |
| 31379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31381 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31383 | |
| 31384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31386 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 31387 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31388 | |
| 31389 | cat >>confdefs.h <<_ACEOF |
| 31390 | #define RETSIGTYPE $ac_cv_type_signal |
| 31391 | _ACEOF |
| 31392 | |
| 31393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31394 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 31395 | 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] | 31396 | if test "${ac_cv_struct_tm+set}" = set; then |
| 31397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31398 | else |
| 31399 | cat >conftest.$ac_ext <<_ACEOF |
| 31400 | /* confdefs.h. */ |
| 31401 | _ACEOF |
| 31402 | cat confdefs.h >>conftest.$ac_ext |
| 31403 | cat >>conftest.$ac_ext <<_ACEOF |
| 31404 | /* end confdefs.h. */ |
| 31405 | #include <sys/types.h> |
| 31406 | #include <time.h> |
| 31407 | |
| 31408 | int |
| 31409 | main () |
| 31410 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31411 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31412 | ; |
| 31413 | return 0; |
| 31414 | } |
| 31415 | _ACEOF |
| 31416 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31417 | if { (ac_try="$ac_compile" |
| 31418 | case "(($ac_try" in |
| 31419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31420 | *) ac_try_echo=$ac_try;; |
| 31421 | esac |
| 31422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31423 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31424 | ac_status=$? |
| 31425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31426 | rm -f conftest.er1 |
| 31427 | cat conftest.err >&5 |
| 31428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31429 | (exit $ac_status); } && |
| 31430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31431 | { (case "(($ac_try" in |
| 31432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31433 | *) ac_try_echo=$ac_try;; |
| 31434 | esac |
| 31435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31436 | (eval "$ac_try") 2>&5 |
| 31437 | ac_status=$? |
| 31438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31439 | (exit $ac_status); }; } && |
| 31440 | { ac_try='test -s conftest.$ac_objext' |
| 31441 | { (case "(($ac_try" in |
| 31442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31443 | *) ac_try_echo=$ac_try;; |
| 31444 | esac |
| 31445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31446 | (eval "$ac_try") 2>&5 |
| 31447 | ac_status=$? |
| 31448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31449 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31450 | ac_cv_struct_tm=time.h |
| 31451 | else |
| 31452 | echo "$as_me: failed program was:" >&5 |
| 31453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31455 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31456 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31457 | |
| 31458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31459 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31460 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 31461 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31462 | if test $ac_cv_struct_tm = sys/time.h; then |
| 31463 | |
| 31464 | cat >>confdefs.h <<\_ACEOF |
| 31465 | #define TM_IN_SYS_TIME 1 |
| 31466 | _ACEOF |
| 31467 | |
| 31468 | fi |
| 31469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31470 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 31471 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31472 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 31473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31474 | else |
| 31475 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31476 | /* confdefs.h. */ |
| 31477 | _ACEOF |
| 31478 | cat confdefs.h >>conftest.$ac_ext |
| 31479 | cat >>conftest.$ac_ext <<_ACEOF |
| 31480 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31481 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31482 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31483 | int |
| 31484 | main () |
| 31485 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31486 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31487 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31488 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31489 | return 0; |
| 31490 | ; |
| 31491 | return 0; |
| 31492 | } |
| 31493 | _ACEOF |
| 31494 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31495 | if { (ac_try="$ac_compile" |
| 31496 | case "(($ac_try" in |
| 31497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31498 | *) ac_try_echo=$ac_try;; |
| 31499 | esac |
| 31500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31501 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31502 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31504 | rm -f conftest.er1 |
| 31505 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31507 | (exit $ac_status); } && |
| 31508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31509 | { (case "(($ac_try" in |
| 31510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31511 | *) ac_try_echo=$ac_try;; |
| 31512 | esac |
| 31513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31514 | (eval "$ac_try") 2>&5 |
| 31515 | ac_status=$? |
| 31516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31517 | (exit $ac_status); }; } && |
| 31518 | { ac_try='test -s conftest.$ac_objext' |
| 31519 | { (case "(($ac_try" in |
| 31520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31521 | *) ac_try_echo=$ac_try;; |
| 31522 | esac |
| 31523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31524 | (eval "$ac_try") 2>&5 |
| 31525 | ac_status=$? |
| 31526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31527 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31528 | ac_cv_type_int64_t=yes |
| 31529 | else |
| 31530 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31533 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31534 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31535 | |
| 31536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31537 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31538 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 31539 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31540 | if test $ac_cv_type_int64_t = yes; then |
| 31541 | |
| 31542 | cat >>confdefs.h <<_ACEOF |
| 31543 | #define HAVE_INT64_T 1 |
| 31544 | _ACEOF |
| 31545 | |
| 31546 | |
| 31547 | else |
| 31548 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 31549 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 31550 | { (exit 1); exit 1; }; } |
| 31551 | fi |
| 31552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31553 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 31554 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31555 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 31556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31557 | else |
| 31558 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31559 | /* confdefs.h. */ |
| 31560 | _ACEOF |
| 31561 | cat confdefs.h >>conftest.$ac_ext |
| 31562 | cat >>conftest.$ac_ext <<_ACEOF |
| 31563 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31564 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31565 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31566 | int |
| 31567 | main () |
| 31568 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31569 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31570 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31571 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31572 | return 0; |
| 31573 | ; |
| 31574 | return 0; |
| 31575 | } |
| 31576 | _ACEOF |
| 31577 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31578 | if { (ac_try="$ac_compile" |
| 31579 | case "(($ac_try" in |
| 31580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31581 | *) ac_try_echo=$ac_try;; |
| 31582 | esac |
| 31583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31584 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31585 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31587 | rm -f conftest.er1 |
| 31588 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31590 | (exit $ac_status); } && |
| 31591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31592 | { (case "(($ac_try" in |
| 31593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31594 | *) ac_try_echo=$ac_try;; |
| 31595 | esac |
| 31596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31597 | (eval "$ac_try") 2>&5 |
| 31598 | ac_status=$? |
| 31599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31600 | (exit $ac_status); }; } && |
| 31601 | { ac_try='test -s conftest.$ac_objext' |
| 31602 | { (case "(($ac_try" in |
| 31603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31604 | *) ac_try_echo=$ac_try;; |
| 31605 | esac |
| 31606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31607 | (eval "$ac_try") 2>&5 |
| 31608 | ac_status=$? |
| 31609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31610 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31611 | ac_cv_type_uint64_t=yes |
| 31612 | else |
| 31613 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31616 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31617 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31618 | |
| 31619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31620 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31621 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 31622 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31623 | if test $ac_cv_type_uint64_t = yes; then |
| 31624 | |
| 31625 | cat >>confdefs.h <<_ACEOF |
| 31626 | #define HAVE_UINT64_T 1 |
| 31627 | _ACEOF |
| 31628 | |
| 31629 | |
| 31630 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31631 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 31632 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31633 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 31634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31635 | else |
| 31636 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31637 | /* confdefs.h. */ |
| 31638 | _ACEOF |
| 31639 | cat confdefs.h >>conftest.$ac_ext |
| 31640 | cat >>conftest.$ac_ext <<_ACEOF |
| 31641 | /* end confdefs.h. */ |
| 31642 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31643 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31644 | int |
| 31645 | main () |
| 31646 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31647 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31648 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31649 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31650 | return 0; |
| 31651 | ; |
| 31652 | return 0; |
| 31653 | } |
| 31654 | _ACEOF |
| 31655 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31656 | if { (ac_try="$ac_compile" |
| 31657 | case "(($ac_try" in |
| 31658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31659 | *) ac_try_echo=$ac_try;; |
| 31660 | esac |
| 31661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31662 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31663 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31665 | rm -f conftest.er1 |
| 31666 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31668 | (exit $ac_status); } && |
| 31669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31670 | { (case "(($ac_try" in |
| 31671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31672 | *) ac_try_echo=$ac_try;; |
| 31673 | esac |
| 31674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31675 | (eval "$ac_try") 2>&5 |
| 31676 | ac_status=$? |
| 31677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31678 | (exit $ac_status); }; } && |
| 31679 | { ac_try='test -s conftest.$ac_objext' |
| 31680 | { (case "(($ac_try" in |
| 31681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31682 | *) ac_try_echo=$ac_try;; |
| 31683 | esac |
| 31684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31685 | (eval "$ac_try") 2>&5 |
| 31686 | ac_status=$? |
| 31687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31688 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31689 | ac_cv_type_u_int64_t=yes |
| 31690 | else |
| 31691 | echo "$as_me: failed program was:" >&5 |
| 31692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31694 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31696 | |
| 31697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31699 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 31700 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31701 | if test $ac_cv_type_u_int64_t = yes; then |
| 31702 | |
| 31703 | cat >>confdefs.h <<_ACEOF |
| 31704 | #define HAVE_U_INT64_T 1 |
| 31705 | _ACEOF |
| 31706 | |
| 31707 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 31708 | else |
| 31709 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 31710 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 31711 | { (exit 1); exit 1; }; } |
| 31712 | fi |
| 31713 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31714 | fi |
| 31715 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31716 | |
| 31717 | |
| 31718 | |
| 31719 | |
| 31720 | |
| 31721 | |
| 31722 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 31723 | |
| 31724 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31725 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31726 | do |
| 31727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31730 | 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] | 31731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31732 | else |
| 31733 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31734 | /* confdefs.h. */ |
| 31735 | _ACEOF |
| 31736 | cat confdefs.h >>conftest.$ac_ext |
| 31737 | cat >>conftest.$ac_ext <<_ACEOF |
| 31738 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31741 | #define $ac_func innocuous_$ac_func |
| 31742 | |
| 31743 | /* System header to define __stub macros and hopefully few prototypes, |
| 31744 | which can conflict with char $ac_func (); below. |
| 31745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31746 | <limits.h> exists even on freestanding compilers. */ |
| 31747 | |
| 31748 | #ifdef __STDC__ |
| 31749 | # include <limits.h> |
| 31750 | #else |
| 31751 | # include <assert.h> |
| 31752 | #endif |
| 31753 | |
| 31754 | #undef $ac_func |
| 31755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31756 | /* Override any GCC internal prototype to avoid an error. |
| 31757 | Use char because int might match the return type of a GCC |
| 31758 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31759 | #ifdef __cplusplus |
| 31760 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31761 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31762 | char $ac_func (); |
| 31763 | /* The GNU C library defines this for functions which it implements |
| 31764 | to always fail with ENOSYS. Some functions are actually named |
| 31765 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31766 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31767 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31768 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31769 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31770 | int |
| 31771 | main () |
| 31772 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31773 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31774 | ; |
| 31775 | return 0; |
| 31776 | } |
| 31777 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31779 | if { (ac_try="$ac_link" |
| 31780 | case "(($ac_try" in |
| 31781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31782 | *) ac_try_echo=$ac_try;; |
| 31783 | esac |
| 31784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31785 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31786 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31788 | rm -f conftest.er1 |
| 31789 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31791 | (exit $ac_status); } && |
| 31792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31793 | { (case "(($ac_try" in |
| 31794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31795 | *) ac_try_echo=$ac_try;; |
| 31796 | esac |
| 31797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31798 | (eval "$ac_try") 2>&5 |
| 31799 | ac_status=$? |
| 31800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31801 | (exit $ac_status); }; } && |
| 31802 | { ac_try='test -s conftest$ac_exeext' |
| 31803 | { (case "(($ac_try" in |
| 31804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31805 | *) ac_try_echo=$ac_try;; |
| 31806 | esac |
| 31807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31808 | (eval "$ac_try") 2>&5 |
| 31809 | ac_status=$? |
| 31810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31811 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31812 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31813 | else |
| 31814 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31817 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31818 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31819 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31820 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31821 | conftest$ac_exeext conftest.$ac_ext |
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 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31825 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31827 | cat >>confdefs.h <<_ACEOF |
| 31828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31829 | _ACEOF |
| 31830 | |
| 31831 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31832 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31833 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31834 | |
| 31835 | |
| 31836 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31837 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31838 | for ac_func in powf fmodf strtof round |
| 31839 | do |
| 31840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31841 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31843 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31845 | else |
| 31846 | cat >conftest.$ac_ext <<_ACEOF |
| 31847 | /* confdefs.h. */ |
| 31848 | _ACEOF |
| 31849 | cat confdefs.h >>conftest.$ac_ext |
| 31850 | cat >>conftest.$ac_ext <<_ACEOF |
| 31851 | /* end confdefs.h. */ |
| 31852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31854 | #define $ac_func innocuous_$ac_func |
| 31855 | |
| 31856 | /* System header to define __stub macros and hopefully few prototypes, |
| 31857 | which can conflict with char $ac_func (); below. |
| 31858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31859 | <limits.h> exists even on freestanding compilers. */ |
| 31860 | |
| 31861 | #ifdef __STDC__ |
| 31862 | # include <limits.h> |
| 31863 | #else |
| 31864 | # include <assert.h> |
| 31865 | #endif |
| 31866 | |
| 31867 | #undef $ac_func |
| 31868 | |
| 31869 | /* Override any GCC internal prototype to avoid an error. |
| 31870 | Use char because int might match the return type of a GCC |
| 31871 | builtin and then its argument prototype would still apply. */ |
| 31872 | #ifdef __cplusplus |
| 31873 | extern "C" |
| 31874 | #endif |
| 31875 | char $ac_func (); |
| 31876 | /* The GNU C library defines this for functions which it implements |
| 31877 | to always fail with ENOSYS. Some functions are actually named |
| 31878 | something starting with __ and the normal name is an alias. */ |
| 31879 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31880 | choke me |
| 31881 | #endif |
| 31882 | |
| 31883 | int |
| 31884 | main () |
| 31885 | { |
| 31886 | return $ac_func (); |
| 31887 | ; |
| 31888 | return 0; |
| 31889 | } |
| 31890 | _ACEOF |
| 31891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31892 | if { (ac_try="$ac_link" |
| 31893 | case "(($ac_try" in |
| 31894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31895 | *) ac_try_echo=$ac_try;; |
| 31896 | esac |
| 31897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31898 | (eval "$ac_link") 2>conftest.er1 |
| 31899 | ac_status=$? |
| 31900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31901 | rm -f conftest.er1 |
| 31902 | cat conftest.err >&5 |
| 31903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31904 | (exit $ac_status); } && |
| 31905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31906 | { (case "(($ac_try" in |
| 31907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31908 | *) ac_try_echo=$ac_try;; |
| 31909 | esac |
| 31910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31911 | (eval "$ac_try") 2>&5 |
| 31912 | ac_status=$? |
| 31913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31914 | (exit $ac_status); }; } && |
| 31915 | { ac_try='test -s conftest$ac_exeext' |
| 31916 | { (case "(($ac_try" in |
| 31917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31918 | *) ac_try_echo=$ac_try;; |
| 31919 | esac |
| 31920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31921 | (eval "$ac_try") 2>&5 |
| 31922 | ac_status=$? |
| 31923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31924 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31925 | eval "$as_ac_var=yes" |
| 31926 | else |
| 31927 | echo "$as_me: failed program was:" >&5 |
| 31928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31929 | |
| 31930 | eval "$as_ac_var=no" |
| 31931 | fi |
| 31932 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31933 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31934 | conftest$ac_exeext conftest.$ac_ext |
| 31935 | fi |
| 31936 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31937 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31938 | echo "${ECHO_T}$ac_res" >&6; } |
| 31939 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31940 | cat >>confdefs.h <<_ACEOF |
| 31941 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31942 | _ACEOF |
| 31943 | |
| 31944 | fi |
| 31945 | done |
| 31946 | |
| 31947 | |
| 31948 | |
| 31949 | |
| 31950 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31951 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31952 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 31953 | do |
| 31954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31955 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31957 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31959 | else |
| 31960 | cat >conftest.$ac_ext <<_ACEOF |
| 31961 | /* confdefs.h. */ |
| 31962 | _ACEOF |
| 31963 | cat confdefs.h >>conftest.$ac_ext |
| 31964 | cat >>conftest.$ac_ext <<_ACEOF |
| 31965 | /* end confdefs.h. */ |
| 31966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31968 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31969 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31970 | /* System header to define __stub macros and hopefully few prototypes, |
| 31971 | which can conflict with char $ac_func (); below. |
| 31972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31973 | <limits.h> exists even on freestanding compilers. */ |
| 31974 | |
| 31975 | #ifdef __STDC__ |
| 31976 | # include <limits.h> |
| 31977 | #else |
| 31978 | # include <assert.h> |
| 31979 | #endif |
| 31980 | |
| 31981 | #undef $ac_func |
| 31982 | |
| 31983 | /* Override any GCC internal prototype to avoid an error. |
| 31984 | Use char because int might match the return type of a GCC |
| 31985 | builtin and then its argument prototype would still apply. */ |
| 31986 | #ifdef __cplusplus |
| 31987 | extern "C" |
| 31988 | #endif |
| 31989 | char $ac_func (); |
| 31990 | /* The GNU C library defines this for functions which it implements |
| 31991 | to always fail with ENOSYS. Some functions are actually named |
| 31992 | something starting with __ and the normal name is an alias. */ |
| 31993 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31994 | choke me |
| 31995 | #endif |
| 31996 | |
| 31997 | int |
| 31998 | main () |
| 31999 | { |
| 32000 | return $ac_func (); |
| 32001 | ; |
| 32002 | return 0; |
| 32003 | } |
| 32004 | _ACEOF |
| 32005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32006 | if { (ac_try="$ac_link" |
| 32007 | case "(($ac_try" in |
| 32008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32009 | *) ac_try_echo=$ac_try;; |
| 32010 | esac |
| 32011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32012 | (eval "$ac_link") 2>conftest.er1 |
| 32013 | ac_status=$? |
| 32014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32015 | rm -f conftest.er1 |
| 32016 | cat conftest.err >&5 |
| 32017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32018 | (exit $ac_status); } && |
| 32019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32020 | { (case "(($ac_try" in |
| 32021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32022 | *) ac_try_echo=$ac_try;; |
| 32023 | esac |
| 32024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32025 | (eval "$ac_try") 2>&5 |
| 32026 | ac_status=$? |
| 32027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32028 | (exit $ac_status); }; } && |
| 32029 | { ac_try='test -s conftest$ac_exeext' |
| 32030 | { (case "(($ac_try" in |
| 32031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32032 | *) ac_try_echo=$ac_try;; |
| 32033 | esac |
| 32034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32035 | (eval "$ac_try") 2>&5 |
| 32036 | ac_status=$? |
| 32037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32038 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32039 | eval "$as_ac_var=yes" |
| 32040 | else |
| 32041 | echo "$as_me: failed program was:" >&5 |
| 32042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32043 | |
| 32044 | eval "$as_ac_var=no" |
| 32045 | fi |
| 32046 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32047 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32048 | conftest$ac_exeext conftest.$ac_ext |
| 32049 | fi |
| 32050 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32051 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32052 | echo "${ECHO_T}$ac_res" >&6; } |
| 32053 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32054 | cat >>confdefs.h <<_ACEOF |
| 32055 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32056 | _ACEOF |
| 32057 | |
| 32058 | fi |
| 32059 | done |
| 32060 | |
| 32061 | |
| 32062 | |
| 32063 | |
| 32064 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32065 | do |
| 32066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32067 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32069 | 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] | 32070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32071 | else |
| 32072 | cat >conftest.$ac_ext <<_ACEOF |
| 32073 | /* confdefs.h. */ |
| 32074 | _ACEOF |
| 32075 | cat confdefs.h >>conftest.$ac_ext |
| 32076 | cat >>conftest.$ac_ext <<_ACEOF |
| 32077 | /* end confdefs.h. */ |
| 32078 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32080 | #define $ac_func innocuous_$ac_func |
| 32081 | |
| 32082 | /* System header to define __stub macros and hopefully few prototypes, |
| 32083 | which can conflict with char $ac_func (); below. |
| 32084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32085 | <limits.h> exists even on freestanding compilers. */ |
| 32086 | |
| 32087 | #ifdef __STDC__ |
| 32088 | # include <limits.h> |
| 32089 | #else |
| 32090 | # include <assert.h> |
| 32091 | #endif |
| 32092 | |
| 32093 | #undef $ac_func |
| 32094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32095 | /* Override any GCC internal prototype to avoid an error. |
| 32096 | Use char because int might match the return type of a GCC |
| 32097 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32098 | #ifdef __cplusplus |
| 32099 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32100 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32101 | char $ac_func (); |
| 32102 | /* The GNU C library defines this for functions which it implements |
| 32103 | to always fail with ENOSYS. Some functions are actually named |
| 32104 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32105 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32106 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32107 | #endif |
| 32108 | |
| 32109 | int |
| 32110 | main () |
| 32111 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32112 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32113 | ; |
| 32114 | return 0; |
| 32115 | } |
| 32116 | _ACEOF |
| 32117 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32118 | if { (ac_try="$ac_link" |
| 32119 | case "(($ac_try" in |
| 32120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32121 | *) ac_try_echo=$ac_try;; |
| 32122 | esac |
| 32123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32124 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32125 | ac_status=$? |
| 32126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32127 | rm -f conftest.er1 |
| 32128 | cat conftest.err >&5 |
| 32129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32130 | (exit $ac_status); } && |
| 32131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32132 | { (case "(($ac_try" in |
| 32133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32134 | *) ac_try_echo=$ac_try;; |
| 32135 | esac |
| 32136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32137 | (eval "$ac_try") 2>&5 |
| 32138 | ac_status=$? |
| 32139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32140 | (exit $ac_status); }; } && |
| 32141 | { ac_try='test -s conftest$ac_exeext' |
| 32142 | { (case "(($ac_try" in |
| 32143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32144 | *) ac_try_echo=$ac_try;; |
| 32145 | esac |
| 32146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32147 | (eval "$ac_try") 2>&5 |
| 32148 | ac_status=$? |
| 32149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32150 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32151 | eval "$as_ac_var=yes" |
| 32152 | else |
| 32153 | echo "$as_me: failed program was:" >&5 |
| 32154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32156 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32158 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32159 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32160 | conftest$ac_exeext conftest.$ac_ext |
| 32161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32162 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32164 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32165 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32166 | cat >>confdefs.h <<_ACEOF |
| 32167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32168 | _ACEOF |
| 32169 | |
| 32170 | fi |
| 32171 | done |
| 32172 | |
| 32173 | |
| 32174 | |
| 32175 | |
| 32176 | |
| 32177 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32178 | for ac_func in mktemp realpath sbrk setrlimit strdup |
| 32179 | do |
| 32180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 32181 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32183 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32185 | else |
| 32186 | cat >conftest.$ac_ext <<_ACEOF |
| 32187 | /* confdefs.h. */ |
| 32188 | _ACEOF |
| 32189 | cat confdefs.h >>conftest.$ac_ext |
| 32190 | cat >>conftest.$ac_ext <<_ACEOF |
| 32191 | /* end confdefs.h. */ |
| 32192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32194 | #define $ac_func innocuous_$ac_func |
| 32195 | |
| 32196 | /* System header to define __stub macros and hopefully few prototypes, |
| 32197 | which can conflict with char $ac_func (); below. |
| 32198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32199 | <limits.h> exists even on freestanding compilers. */ |
| 32200 | |
| 32201 | #ifdef __STDC__ |
| 32202 | # include <limits.h> |
| 32203 | #else |
| 32204 | # include <assert.h> |
| 32205 | #endif |
| 32206 | |
| 32207 | #undef $ac_func |
| 32208 | |
| 32209 | /* Override any GCC internal prototype to avoid an error. |
| 32210 | Use char because int might match the return type of a GCC |
| 32211 | builtin and then its argument prototype would still apply. */ |
| 32212 | #ifdef __cplusplus |
| 32213 | extern "C" |
| 32214 | #endif |
| 32215 | char $ac_func (); |
| 32216 | /* The GNU C library defines this for functions which it implements |
| 32217 | to always fail with ENOSYS. Some functions are actually named |
| 32218 | something starting with __ and the normal name is an alias. */ |
| 32219 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 32220 | choke me |
| 32221 | #endif |
| 32222 | |
| 32223 | int |
| 32224 | main () |
| 32225 | { |
| 32226 | return $ac_func (); |
| 32227 | ; |
| 32228 | return 0; |
| 32229 | } |
| 32230 | _ACEOF |
| 32231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32232 | if { (ac_try="$ac_link" |
| 32233 | case "(($ac_try" in |
| 32234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32235 | *) ac_try_echo=$ac_try;; |
| 32236 | esac |
| 32237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32238 | (eval "$ac_link") 2>conftest.er1 |
| 32239 | ac_status=$? |
| 32240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32241 | rm -f conftest.er1 |
| 32242 | cat conftest.err >&5 |
| 32243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32244 | (exit $ac_status); } && |
| 32245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32246 | { (case "(($ac_try" in |
| 32247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32248 | *) ac_try_echo=$ac_try;; |
| 32249 | esac |
| 32250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32251 | (eval "$ac_try") 2>&5 |
| 32252 | ac_status=$? |
| 32253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32254 | (exit $ac_status); }; } && |
| 32255 | { ac_try='test -s conftest$ac_exeext' |
| 32256 | { (case "(($ac_try" in |
| 32257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32258 | *) ac_try_echo=$ac_try;; |
| 32259 | esac |
| 32260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32261 | (eval "$ac_try") 2>&5 |
| 32262 | ac_status=$? |
| 32263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32264 | (exit $ac_status); }; }; then |
| 32265 | eval "$as_ac_var=yes" |
| 32266 | else |
| 32267 | echo "$as_me: failed program was:" >&5 |
| 32268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32269 | |
| 32270 | eval "$as_ac_var=no" |
| 32271 | fi |
| 32272 | |
| 32273 | rm -f core conftest.err conftest.$ac_objext \ |
| 32274 | conftest$ac_exeext conftest.$ac_ext |
| 32275 | fi |
| 32276 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32277 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32278 | echo "${ECHO_T}$ac_res" >&6; } |
| 32279 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32280 | cat >>confdefs.h <<_ACEOF |
| 32281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32282 | _ACEOF |
| 32283 | |
| 32284 | fi |
| 32285 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32286 | |
| 32287 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32288 | |
| 32289 | |
| 32290 | for ac_func in strerror strerror_r strerror_s |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32291 | do |
| 32292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32293 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32295 | 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] | 32296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32297 | else |
| 32298 | cat >conftest.$ac_ext <<_ACEOF |
| 32299 | /* confdefs.h. */ |
| 32300 | _ACEOF |
| 32301 | cat confdefs.h >>conftest.$ac_ext |
| 32302 | cat >>conftest.$ac_ext <<_ACEOF |
| 32303 | /* end confdefs.h. */ |
| 32304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32306 | #define $ac_func innocuous_$ac_func |
| 32307 | |
| 32308 | /* System header to define __stub macros and hopefully few prototypes, |
| 32309 | which can conflict with char $ac_func (); below. |
| 32310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32311 | <limits.h> exists even on freestanding compilers. */ |
| 32312 | |
| 32313 | #ifdef __STDC__ |
| 32314 | # include <limits.h> |
| 32315 | #else |
| 32316 | # include <assert.h> |
| 32317 | #endif |
| 32318 | |
| 32319 | #undef $ac_func |
| 32320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32321 | /* Override any GCC internal prototype to avoid an error. |
| 32322 | Use char because int might match the return type of a GCC |
| 32323 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32324 | #ifdef __cplusplus |
| 32325 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32326 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32327 | char $ac_func (); |
| 32328 | /* The GNU C library defines this for functions which it implements |
| 32329 | to always fail with ENOSYS. Some functions are actually named |
| 32330 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32331 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32332 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32333 | #endif |
| 32334 | |
| 32335 | int |
| 32336 | main () |
| 32337 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32338 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32339 | ; |
| 32340 | return 0; |
| 32341 | } |
| 32342 | _ACEOF |
| 32343 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32344 | if { (ac_try="$ac_link" |
| 32345 | case "(($ac_try" in |
| 32346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32347 | *) ac_try_echo=$ac_try;; |
| 32348 | esac |
| 32349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32350 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32351 | ac_status=$? |
| 32352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32353 | rm -f conftest.er1 |
| 32354 | cat conftest.err >&5 |
| 32355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32356 | (exit $ac_status); } && |
| 32357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32358 | { (case "(($ac_try" in |
| 32359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32360 | *) ac_try_echo=$ac_try;; |
| 32361 | esac |
| 32362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32363 | (eval "$ac_try") 2>&5 |
| 32364 | ac_status=$? |
| 32365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32366 | (exit $ac_status); }; } && |
| 32367 | { ac_try='test -s conftest$ac_exeext' |
| 32368 | { (case "(($ac_try" in |
| 32369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32370 | *) ac_try_echo=$ac_try;; |
| 32371 | esac |
| 32372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32373 | (eval "$ac_try") 2>&5 |
| 32374 | ac_status=$? |
| 32375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32376 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32377 | eval "$as_ac_var=yes" |
| 32378 | else |
| 32379 | echo "$as_me: failed program was:" >&5 |
| 32380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32382 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32384 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32385 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32386 | conftest$ac_exeext conftest.$ac_ext |
| 32387 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32388 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32389 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32390 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32391 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32392 | cat >>confdefs.h <<_ACEOF |
| 32393 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32394 | _ACEOF |
| 32395 | |
| 32396 | fi |
| 32397 | done |
| 32398 | |
| 32399 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 32400 | |
| 32401 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 32402 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 32403 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32404 | do |
| 32405 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32406 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32407 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32408 | 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] | 32409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32410 | else |
| 32411 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32412 | /* confdefs.h. */ |
| 32413 | _ACEOF |
| 32414 | cat confdefs.h >>conftest.$ac_ext |
| 32415 | cat >>conftest.$ac_ext <<_ACEOF |
| 32416 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32417 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32418 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32419 | #define $ac_func innocuous_$ac_func |
| 32420 | |
| 32421 | /* System header to define __stub macros and hopefully few prototypes, |
| 32422 | which can conflict with char $ac_func (); below. |
| 32423 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32424 | <limits.h> exists even on freestanding compilers. */ |
| 32425 | |
| 32426 | #ifdef __STDC__ |
| 32427 | # include <limits.h> |
| 32428 | #else |
| 32429 | # include <assert.h> |
| 32430 | #endif |
| 32431 | |
| 32432 | #undef $ac_func |
| 32433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32434 | /* Override any GCC internal prototype to avoid an error. |
| 32435 | Use char because int might match the return type of a GCC |
| 32436 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32437 | #ifdef __cplusplus |
| 32438 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32439 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32440 | char $ac_func (); |
| 32441 | /* The GNU C library defines this for functions which it implements |
| 32442 | to always fail with ENOSYS. Some functions are actually named |
| 32443 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32444 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32445 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32446 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32447 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32448 | int |
| 32449 | main () |
| 32450 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32451 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32452 | ; |
| 32453 | return 0; |
| 32454 | } |
| 32455 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32456 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32457 | if { (ac_try="$ac_link" |
| 32458 | case "(($ac_try" in |
| 32459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32460 | *) ac_try_echo=$ac_try;; |
| 32461 | esac |
| 32462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32463 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32464 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32466 | rm -f conftest.er1 |
| 32467 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32469 | (exit $ac_status); } && |
| 32470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32471 | { (case "(($ac_try" in |
| 32472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32473 | *) ac_try_echo=$ac_try;; |
| 32474 | esac |
| 32475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32476 | (eval "$ac_try") 2>&5 |
| 32477 | ac_status=$? |
| 32478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32479 | (exit $ac_status); }; } && |
| 32480 | { ac_try='test -s conftest$ac_exeext' |
| 32481 | { (case "(($ac_try" in |
| 32482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32483 | *) ac_try_echo=$ac_try;; |
| 32484 | esac |
| 32485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32486 | (eval "$ac_try") 2>&5 |
| 32487 | ac_status=$? |
| 32488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32489 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32490 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32491 | else |
| 32492 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32494 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32495 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32496 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32497 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32498 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32499 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32500 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32501 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32502 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32503 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32504 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32505 | cat >>confdefs.h <<_ACEOF |
| 32506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32507 | _ACEOF |
| 32508 | |
| 32509 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32510 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32511 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32512 | |
| 32513 | |
| 32514 | |
| 32515 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 32516 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32517 | do |
| 32518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32519 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32521 | 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] | 32522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32523 | else |
| 32524 | cat >conftest.$ac_ext <<_ACEOF |
| 32525 | /* confdefs.h. */ |
| 32526 | _ACEOF |
| 32527 | cat confdefs.h >>conftest.$ac_ext |
| 32528 | cat >>conftest.$ac_ext <<_ACEOF |
| 32529 | /* end confdefs.h. */ |
| 32530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32532 | #define $ac_func innocuous_$ac_func |
| 32533 | |
| 32534 | /* System header to define __stub macros and hopefully few prototypes, |
| 32535 | which can conflict with char $ac_func (); below. |
| 32536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32537 | <limits.h> exists even on freestanding compilers. */ |
| 32538 | |
| 32539 | #ifdef __STDC__ |
| 32540 | # include <limits.h> |
| 32541 | #else |
| 32542 | # include <assert.h> |
| 32543 | #endif |
| 32544 | |
| 32545 | #undef $ac_func |
| 32546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32547 | /* Override any GCC internal prototype to avoid an error. |
| 32548 | Use char because int might match the return type of a GCC |
| 32549 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32550 | #ifdef __cplusplus |
| 32551 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32552 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32553 | char $ac_func (); |
| 32554 | /* The GNU C library defines this for functions which it implements |
| 32555 | to always fail with ENOSYS. Some functions are actually named |
| 32556 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32557 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32558 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32559 | #endif |
| 32560 | |
| 32561 | int |
| 32562 | main () |
| 32563 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32564 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32565 | ; |
| 32566 | return 0; |
| 32567 | } |
| 32568 | _ACEOF |
| 32569 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32570 | if { (ac_try="$ac_link" |
| 32571 | case "(($ac_try" in |
| 32572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32573 | *) ac_try_echo=$ac_try;; |
| 32574 | esac |
| 32575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32576 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32577 | ac_status=$? |
| 32578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32579 | rm -f conftest.er1 |
| 32580 | cat conftest.err >&5 |
| 32581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32582 | (exit $ac_status); } && |
| 32583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32584 | { (case "(($ac_try" in |
| 32585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32586 | *) ac_try_echo=$ac_try;; |
| 32587 | esac |
| 32588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32589 | (eval "$ac_try") 2>&5 |
| 32590 | ac_status=$? |
| 32591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32592 | (exit $ac_status); }; } && |
| 32593 | { ac_try='test -s conftest$ac_exeext' |
| 32594 | { (case "(($ac_try" in |
| 32595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32596 | *) ac_try_echo=$ac_try;; |
| 32597 | esac |
| 32598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32599 | (eval "$ac_try") 2>&5 |
| 32600 | ac_status=$? |
| 32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32602 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32603 | eval "$as_ac_var=yes" |
| 32604 | else |
| 32605 | echo "$as_me: failed program was:" >&5 |
| 32606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32608 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32609 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32610 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32611 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32612 | conftest$ac_exeext conftest.$ac_ext |
| 32613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32614 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32615 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32616 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32617 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32618 | cat >>confdefs.h <<_ACEOF |
| 32619 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32620 | _ACEOF |
| 32621 | |
| 32622 | fi |
| 32623 | done |
| 32624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32625 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 32626 | 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] | 32627 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32629 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32630 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32631 | ac_cpp='$CPP $CPPFLAGS' |
| 32632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32635 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32636 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32637 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32638 | else |
| 32639 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32640 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32641 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32642 | _ACEOF |
| 32643 | cat confdefs.h >>conftest.$ac_ext |
| 32644 | cat >>conftest.$ac_ext <<_ACEOF |
| 32645 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32646 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32647 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32648 | #include <stdlib.h> |
| 32649 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32650 | int |
| 32651 | main () |
| 32652 | { |
| 32653 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32654 | volatile double A, B; |
| 32655 | char Buffer[100]; |
| 32656 | A = 1; |
| 32657 | A /= 10.0; |
| 32658 | sprintf(Buffer, "%a", A); |
| 32659 | B = atof(Buffer); |
| 32660 | if (A != B) |
| 32661 | return (1); |
| 32662 | if (A != 0x1.999999999999ap-4) |
| 32663 | return (1); |
| 32664 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32665 | ; |
| 32666 | return 0; |
| 32667 | } |
| 32668 | _ACEOF |
| 32669 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32670 | if { (ac_try="$ac_link" |
| 32671 | case "(($ac_try" in |
| 32672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32673 | *) ac_try_echo=$ac_try;; |
| 32674 | esac |
| 32675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32676 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32677 | ac_status=$? |
| 32678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32680 | { (case "(($ac_try" in |
| 32681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32682 | *) ac_try_echo=$ac_try;; |
| 32683 | esac |
| 32684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32685 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32686 | ac_status=$? |
| 32687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32688 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32689 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32690 | else |
| 32691 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32692 | echo "$as_me: failed program was:" >&5 |
| 32693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32694 | |
| 32695 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32696 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32698 | 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] | 32699 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32700 | |
| 32701 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32702 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32703 | ac_cpp='$CPP $CPPFLAGS' |
| 32704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32707 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32708 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32709 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 32710 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32711 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32712 | |
| 32713 | cat >>confdefs.h <<\_ACEOF |
| 32714 | #define HAVE_PRINTF_A 1 |
| 32715 | _ACEOF |
| 32716 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32717 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32718 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32719 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 32720 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32721 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 32722 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32723 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32725 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32726 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32727 | /* confdefs.h. */ |
| 32728 | _ACEOF |
| 32729 | cat confdefs.h >>conftest.$ac_ext |
| 32730 | cat >>conftest.$ac_ext <<_ACEOF |
| 32731 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32732 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32733 | int |
| 32734 | main () |
| 32735 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32736 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32737 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32738 | ; |
| 32739 | return 0; |
| 32740 | } |
| 32741 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32742 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32743 | if { (ac_try="$ac_link" |
| 32744 | case "(($ac_try" in |
| 32745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32746 | *) ac_try_echo=$ac_try;; |
| 32747 | esac |
| 32748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32749 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32750 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32752 | rm -f conftest.er1 |
| 32753 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32755 | (exit $ac_status); } && |
| 32756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32757 | { (case "(($ac_try" in |
| 32758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32759 | *) ac_try_echo=$ac_try;; |
| 32760 | esac |
| 32761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32762 | (eval "$ac_try") 2>&5 |
| 32763 | ac_status=$? |
| 32764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32765 | (exit $ac_status); }; } && |
| 32766 | { ac_try='test -s conftest$ac_exeext' |
| 32767 | { (case "(($ac_try" in |
| 32768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32769 | *) ac_try_echo=$ac_try;; |
| 32770 | esac |
| 32771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32772 | (eval "$ac_try") 2>&5 |
| 32773 | ac_status=$? |
| 32774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32775 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32776 | ac_cv_working_alloca_h=yes |
| 32777 | else |
| 32778 | echo "$as_me: failed program was:" >&5 |
| 32779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32781 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32783 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32784 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32785 | conftest$ac_exeext conftest.$ac_ext |
| 32786 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32787 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 32788 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32789 | if test $ac_cv_working_alloca_h = yes; then |
| 32790 | |
| 32791 | cat >>confdefs.h <<\_ACEOF |
| 32792 | #define HAVE_ALLOCA_H 1 |
| 32793 | _ACEOF |
| 32794 | |
| 32795 | fi |
| 32796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32797 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 32798 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32799 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 32800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32801 | else |
| 32802 | cat >conftest.$ac_ext <<_ACEOF |
| 32803 | /* confdefs.h. */ |
| 32804 | _ACEOF |
| 32805 | cat confdefs.h >>conftest.$ac_ext |
| 32806 | cat >>conftest.$ac_ext <<_ACEOF |
| 32807 | /* end confdefs.h. */ |
| 32808 | #ifdef __GNUC__ |
| 32809 | # define alloca __builtin_alloca |
| 32810 | #else |
| 32811 | # ifdef _MSC_VER |
| 32812 | # include <malloc.h> |
| 32813 | # define alloca _alloca |
| 32814 | # else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32815 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32816 | # include <alloca.h> |
| 32817 | # else |
| 32818 | # ifdef _AIX |
| 32819 | #pragma alloca |
| 32820 | # else |
| 32821 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 32822 | char *alloca (); |
| 32823 | # endif |
| 32824 | # endif |
| 32825 | # endif |
| 32826 | # endif |
| 32827 | #endif |
| 32828 | |
| 32829 | int |
| 32830 | main () |
| 32831 | { |
| 32832 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32833 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32834 | ; |
| 32835 | return 0; |
| 32836 | } |
| 32837 | _ACEOF |
| 32838 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32839 | if { (ac_try="$ac_link" |
| 32840 | case "(($ac_try" in |
| 32841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32842 | *) ac_try_echo=$ac_try;; |
| 32843 | esac |
| 32844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32845 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32846 | ac_status=$? |
| 32847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32848 | rm -f conftest.er1 |
| 32849 | cat conftest.err >&5 |
| 32850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32851 | (exit $ac_status); } && |
| 32852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32853 | { (case "(($ac_try" in |
| 32854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32855 | *) ac_try_echo=$ac_try;; |
| 32856 | esac |
| 32857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32858 | (eval "$ac_try") 2>&5 |
| 32859 | ac_status=$? |
| 32860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32861 | (exit $ac_status); }; } && |
| 32862 | { ac_try='test -s conftest$ac_exeext' |
| 32863 | { (case "(($ac_try" in |
| 32864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32865 | *) ac_try_echo=$ac_try;; |
| 32866 | esac |
| 32867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32868 | (eval "$ac_try") 2>&5 |
| 32869 | ac_status=$? |
| 32870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32871 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32872 | ac_cv_func_alloca_works=yes |
| 32873 | else |
| 32874 | echo "$as_me: failed program was:" >&5 |
| 32875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32877 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32878 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32879 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32880 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32881 | conftest$ac_exeext conftest.$ac_ext |
| 32882 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32883 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 32884 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32885 | |
| 32886 | if test $ac_cv_func_alloca_works = yes; then |
| 32887 | |
| 32888 | cat >>confdefs.h <<\_ACEOF |
| 32889 | #define HAVE_ALLOCA 1 |
| 32890 | _ACEOF |
| 32891 | |
| 32892 | else |
| 32893 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 32894 | # that cause trouble. Some versions do not even contain alloca or |
| 32895 | # contain a buggy version. If you still want to use their alloca, |
| 32896 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 32897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32898 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32899 | |
| 32900 | cat >>confdefs.h <<\_ACEOF |
| 32901 | #define C_ALLOCA 1 |
| 32902 | _ACEOF |
| 32903 | |
| 32904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32905 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 32906 | 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] | 32907 | if test "${ac_cv_os_cray+set}" = set; then |
| 32908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32909 | else |
| 32910 | cat >conftest.$ac_ext <<_ACEOF |
| 32911 | /* confdefs.h. */ |
| 32912 | _ACEOF |
| 32913 | cat confdefs.h >>conftest.$ac_ext |
| 32914 | cat >>conftest.$ac_ext <<_ACEOF |
| 32915 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32916 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32917 | webecray |
| 32918 | #else |
| 32919 | wenotbecray |
| 32920 | #endif |
| 32921 | |
| 32922 | _ACEOF |
| 32923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32924 | $EGREP "webecray" >/dev/null 2>&1; then |
| 32925 | ac_cv_os_cray=yes |
| 32926 | else |
| 32927 | ac_cv_os_cray=no |
| 32928 | fi |
| 32929 | rm -f conftest* |
| 32930 | |
| 32931 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32932 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 32933 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32934 | if test $ac_cv_os_cray = yes; then |
| 32935 | for ac_func in _getb67 GETB67 getb67; do |
| 32936 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32937 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32938 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32939 | 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] | 32940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32941 | else |
| 32942 | cat >conftest.$ac_ext <<_ACEOF |
| 32943 | /* confdefs.h. */ |
| 32944 | _ACEOF |
| 32945 | cat confdefs.h >>conftest.$ac_ext |
| 32946 | cat >>conftest.$ac_ext <<_ACEOF |
| 32947 | /* end confdefs.h. */ |
| 32948 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32949 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32950 | #define $ac_func innocuous_$ac_func |
| 32951 | |
| 32952 | /* System header to define __stub macros and hopefully few prototypes, |
| 32953 | which can conflict with char $ac_func (); below. |
| 32954 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32955 | <limits.h> exists even on freestanding compilers. */ |
| 32956 | |
| 32957 | #ifdef __STDC__ |
| 32958 | # include <limits.h> |
| 32959 | #else |
| 32960 | # include <assert.h> |
| 32961 | #endif |
| 32962 | |
| 32963 | #undef $ac_func |
| 32964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32965 | /* Override any GCC internal prototype to avoid an error. |
| 32966 | Use char because int might match the return type of a GCC |
| 32967 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32968 | #ifdef __cplusplus |
| 32969 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32970 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32971 | char $ac_func (); |
| 32972 | /* The GNU C library defines this for functions which it implements |
| 32973 | to always fail with ENOSYS. Some functions are actually named |
| 32974 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32975 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32976 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32977 | #endif |
| 32978 | |
| 32979 | int |
| 32980 | main () |
| 32981 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32982 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32983 | ; |
| 32984 | return 0; |
| 32985 | } |
| 32986 | _ACEOF |
| 32987 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32988 | if { (ac_try="$ac_link" |
| 32989 | case "(($ac_try" in |
| 32990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32991 | *) ac_try_echo=$ac_try;; |
| 32992 | esac |
| 32993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32994 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32995 | ac_status=$? |
| 32996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32997 | rm -f conftest.er1 |
| 32998 | cat conftest.err >&5 |
| 32999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33000 | (exit $ac_status); } && |
| 33001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33002 | { (case "(($ac_try" in |
| 33003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33004 | *) ac_try_echo=$ac_try;; |
| 33005 | esac |
| 33006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33007 | (eval "$ac_try") 2>&5 |
| 33008 | ac_status=$? |
| 33009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33010 | (exit $ac_status); }; } && |
| 33011 | { ac_try='test -s conftest$ac_exeext' |
| 33012 | { (case "(($ac_try" in |
| 33013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33014 | *) ac_try_echo=$ac_try;; |
| 33015 | esac |
| 33016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33017 | (eval "$ac_try") 2>&5 |
| 33018 | ac_status=$? |
| 33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33020 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33021 | eval "$as_ac_var=yes" |
| 33022 | else |
| 33023 | echo "$as_me: failed program was:" >&5 |
| 33024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33026 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33027 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33028 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33029 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33030 | conftest$ac_exeext conftest.$ac_ext |
| 33031 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33032 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33033 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33034 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33035 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33036 | |
| 33037 | cat >>confdefs.h <<_ACEOF |
| 33038 | #define CRAY_STACKSEG_END $ac_func |
| 33039 | _ACEOF |
| 33040 | |
| 33041 | break |
| 33042 | fi |
| 33043 | |
| 33044 | done |
| 33045 | fi |
| 33046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33047 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 33048 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33049 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 33050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33051 | else |
| 33052 | if test "$cross_compiling" = yes; then |
| 33053 | ac_cv_c_stack_direction=0 |
| 33054 | else |
| 33055 | cat >conftest.$ac_ext <<_ACEOF |
| 33056 | /* confdefs.h. */ |
| 33057 | _ACEOF |
| 33058 | cat confdefs.h >>conftest.$ac_ext |
| 33059 | cat >>conftest.$ac_ext <<_ACEOF |
| 33060 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33061 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33062 | int |
| 33063 | find_stack_direction () |
| 33064 | { |
| 33065 | static char *addr = 0; |
| 33066 | auto char dummy; |
| 33067 | if (addr == 0) |
| 33068 | { |
| 33069 | addr = &dummy; |
| 33070 | return find_stack_direction (); |
| 33071 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33072 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33073 | return (&dummy > addr) ? 1 : -1; |
| 33074 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33075 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33076 | int |
| 33077 | main () |
| 33078 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33079 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33080 | } |
| 33081 | _ACEOF |
| 33082 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33083 | if { (ac_try="$ac_link" |
| 33084 | case "(($ac_try" in |
| 33085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33086 | *) ac_try_echo=$ac_try;; |
| 33087 | esac |
| 33088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33089 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33090 | ac_status=$? |
| 33091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33093 | { (case "(($ac_try" in |
| 33094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33095 | *) ac_try_echo=$ac_try;; |
| 33096 | esac |
| 33097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33098 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33099 | ac_status=$? |
| 33100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33101 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33102 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33103 | else |
| 33104 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33105 | echo "$as_me: failed program was:" >&5 |
| 33106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33107 | |
| 33108 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33109 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33110 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33111 | 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] | 33112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33113 | |
| 33114 | |
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 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 33117 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33118 | |
| 33119 | cat >>confdefs.h <<_ACEOF |
| 33120 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 33121 | _ACEOF |
| 33122 | |
| 33123 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33124 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33125 | |
| 33126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33127 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 33128 | 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] | 33129 | if test "${ac_cv_func_rand48+set}" = set; then |
| 33130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33131 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33132 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33133 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33134 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33135 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33136 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33137 | |
| 33138 | cat >conftest.$ac_ext <<_ACEOF |
| 33139 | /* confdefs.h. */ |
| 33140 | _ACEOF |
| 33141 | cat confdefs.h >>conftest.$ac_ext |
| 33142 | cat >>conftest.$ac_ext <<_ACEOF |
| 33143 | /* end confdefs.h. */ |
| 33144 | #include <stdlib.h> |
| 33145 | int |
| 33146 | main () |
| 33147 | { |
| 33148 | srand48(0);lrand48();drand48(); |
| 33149 | ; |
| 33150 | return 0; |
| 33151 | } |
| 33152 | _ACEOF |
| 33153 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33154 | if { (ac_try="$ac_compile" |
| 33155 | case "(($ac_try" in |
| 33156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33157 | *) ac_try_echo=$ac_try;; |
| 33158 | esac |
| 33159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33160 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33161 | ac_status=$? |
| 33162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33163 | rm -f conftest.er1 |
| 33164 | cat conftest.err >&5 |
| 33165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33166 | (exit $ac_status); } && |
| 33167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33168 | { (case "(($ac_try" in |
| 33169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33170 | *) ac_try_echo=$ac_try;; |
| 33171 | esac |
| 33172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33173 | (eval "$ac_try") 2>&5 |
| 33174 | ac_status=$? |
| 33175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33176 | (exit $ac_status); }; } && |
| 33177 | { ac_try='test -s conftest.$ac_objext' |
| 33178 | { (case "(($ac_try" in |
| 33179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33180 | *) ac_try_echo=$ac_try;; |
| 33181 | esac |
| 33182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33183 | (eval "$ac_try") 2>&5 |
| 33184 | ac_status=$? |
| 33185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33186 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33187 | ac_cv_func_rand48=yes |
| 33188 | else |
| 33189 | echo "$as_me: failed program was:" >&5 |
| 33190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33192 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33193 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33194 | |
| 33195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33196 | ac_ext=c |
| 33197 | ac_cpp='$CPP $CPPFLAGS' |
| 33198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33201 | |
| 33202 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33203 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 33204 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33205 | |
| 33206 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 33207 | |
| 33208 | cat >>confdefs.h <<\_ACEOF |
| 33209 | #define HAVE_RAND48 1 |
| 33210 | _ACEOF |
| 33211 | |
| 33212 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33213 | |
| 33214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33215 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 33216 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33217 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 33218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33219 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33220 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33221 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33222 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33223 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33224 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33225 | |
| 33226 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33227 | /* confdefs.h. */ |
| 33228 | _ACEOF |
| 33229 | cat confdefs.h >>conftest.$ac_ext |
| 33230 | cat >>conftest.$ac_ext <<_ACEOF |
| 33231 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33232 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33233 | int |
| 33234 | main () |
| 33235 | { |
| 33236 | using namespace Outer::Inner; return i; |
| 33237 | ; |
| 33238 | return 0; |
| 33239 | } |
| 33240 | _ACEOF |
| 33241 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33242 | if { (ac_try="$ac_compile" |
| 33243 | case "(($ac_try" in |
| 33244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33245 | *) ac_try_echo=$ac_try;; |
| 33246 | esac |
| 33247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33248 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33249 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33251 | rm -f conftest.er1 |
| 33252 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33254 | (exit $ac_status); } && |
| 33255 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33256 | { (case "(($ac_try" in |
| 33257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33258 | *) ac_try_echo=$ac_try;; |
| 33259 | esac |
| 33260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33261 | (eval "$ac_try") 2>&5 |
| 33262 | ac_status=$? |
| 33263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33264 | (exit $ac_status); }; } && |
| 33265 | { ac_try='test -s conftest.$ac_objext' |
| 33266 | { (case "(($ac_try" in |
| 33267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33268 | *) ac_try_echo=$ac_try;; |
| 33269 | esac |
| 33270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33271 | (eval "$ac_try") 2>&5 |
| 33272 | ac_status=$? |
| 33273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33274 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33275 | ac_cv_cxx_namespaces=yes |
| 33276 | else |
| 33277 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33279 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33280 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33282 | |
| 33283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33284 | ac_ext=c |
| 33285 | ac_cpp='$CPP $CPPFLAGS' |
| 33286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33289 | |
| 33290 | |
| 33291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33292 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 33293 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33294 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 33295 | |
| 33296 | cat >>confdefs.h <<\_ACEOF |
| 33297 | #define HAVE_NAMESPACES |
| 33298 | _ACEOF |
| 33299 | |
| 33300 | fi |
| 33301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33302 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 33303 | 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] | 33304 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 33305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33306 | else |
| 33307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33308 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33309 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33310 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33311 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33312 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33313 | |
| 33314 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33315 | /* confdefs.h. */ |
| 33316 | _ACEOF |
| 33317 | cat confdefs.h >>conftest.$ac_ext |
| 33318 | cat >>conftest.$ac_ext <<_ACEOF |
| 33319 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33320 | #include <iterator> |
| 33321 | #ifdef HAVE_NAMESPACES |
| 33322 | using namespace std; |
| 33323 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33324 | int |
| 33325 | main () |
| 33326 | { |
| 33327 | iterator<int,int,int> t; return 0; |
| 33328 | ; |
| 33329 | return 0; |
| 33330 | } |
| 33331 | _ACEOF |
| 33332 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33333 | if { (ac_try="$ac_compile" |
| 33334 | case "(($ac_try" in |
| 33335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33336 | *) ac_try_echo=$ac_try;; |
| 33337 | esac |
| 33338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33339 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33340 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33342 | rm -f conftest.er1 |
| 33343 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33345 | (exit $ac_status); } && |
| 33346 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33347 | { (case "(($ac_try" in |
| 33348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33349 | *) ac_try_echo=$ac_try;; |
| 33350 | esac |
| 33351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33352 | (eval "$ac_try") 2>&5 |
| 33353 | ac_status=$? |
| 33354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33355 | (exit $ac_status); }; } && |
| 33356 | { ac_try='test -s conftest.$ac_objext' |
| 33357 | { (case "(($ac_try" in |
| 33358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33359 | *) ac_try_echo=$ac_try;; |
| 33360 | esac |
| 33361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33362 | (eval "$ac_try") 2>&5 |
| 33363 | ac_status=$? |
| 33364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33365 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33366 | ac_cv_cxx_have_std_iterator=yes |
| 33367 | else |
| 33368 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33371 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33372 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33373 | |
| 33374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33375 | ac_ext=c |
| 33376 | ac_cpp='$CPP $CPPFLAGS' |
| 33377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33380 | |
| 33381 | |
| 33382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33383 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 33384 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33385 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 33386 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33387 | |
| 33388 | cat >>confdefs.h <<\_ACEOF |
| 33389 | #define HAVE_STD_ITERATOR 1 |
| 33390 | _ACEOF |
| 33391 | |
| 33392 | else |
| 33393 | |
| 33394 | cat >>confdefs.h <<\_ACEOF |
| 33395 | #define HAVE_STD_ITERATOR 0 |
| 33396 | _ACEOF |
| 33397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33398 | fi |
| 33399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33400 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 33401 | 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] | 33402 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 33403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33404 | else |
| 33405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33406 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33407 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33408 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33409 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33410 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33411 | |
| 33412 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33413 | /* confdefs.h. */ |
| 33414 | _ACEOF |
| 33415 | cat confdefs.h >>conftest.$ac_ext |
| 33416 | cat >>conftest.$ac_ext <<_ACEOF |
| 33417 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33418 | #include <iterator> |
| 33419 | #ifdef HAVE_NAMESPACES |
| 33420 | using namespace std; |
| 33421 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33422 | int |
| 33423 | main () |
| 33424 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33425 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33426 | ; |
| 33427 | return 0; |
| 33428 | } |
| 33429 | _ACEOF |
| 33430 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33431 | if { (ac_try="$ac_compile" |
| 33432 | case "(($ac_try" in |
| 33433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33434 | *) ac_try_echo=$ac_try;; |
| 33435 | esac |
| 33436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33437 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33438 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33440 | rm -f conftest.er1 |
| 33441 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33443 | (exit $ac_status); } && |
| 33444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33445 | { (case "(($ac_try" in |
| 33446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33447 | *) ac_try_echo=$ac_try;; |
| 33448 | esac |
| 33449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33450 | (eval "$ac_try") 2>&5 |
| 33451 | ac_status=$? |
| 33452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33453 | (exit $ac_status); }; } && |
| 33454 | { ac_try='test -s conftest.$ac_objext' |
| 33455 | { (case "(($ac_try" in |
| 33456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33457 | *) ac_try_echo=$ac_try;; |
| 33458 | esac |
| 33459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33460 | (eval "$ac_try") 2>&5 |
| 33461 | ac_status=$? |
| 33462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33463 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33464 | ac_cv_cxx_have_bi_iterator=yes |
| 33465 | else |
| 33466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33469 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33471 | |
| 33472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33473 | ac_ext=c |
| 33474 | ac_cpp='$CPP $CPPFLAGS' |
| 33475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33478 | |
| 33479 | |
| 33480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33481 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 33482 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33483 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 33484 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33485 | |
| 33486 | cat >>confdefs.h <<\_ACEOF |
| 33487 | #define HAVE_BI_ITERATOR 1 |
| 33488 | _ACEOF |
| 33489 | |
| 33490 | else |
| 33491 | |
| 33492 | cat >>confdefs.h <<\_ACEOF |
| 33493 | #define HAVE_BI_ITERATOR 0 |
| 33494 | _ACEOF |
| 33495 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33496 | fi |
| 33497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33498 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 33499 | 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] | 33500 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 33501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33502 | else |
| 33503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33504 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33505 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33509 | |
| 33510 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33511 | /* confdefs.h. */ |
| 33512 | _ACEOF |
| 33513 | cat confdefs.h >>conftest.$ac_ext |
| 33514 | cat >>conftest.$ac_ext <<_ACEOF |
| 33515 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33516 | #include <iterator> |
| 33517 | #ifdef HAVE_NAMESPACES |
| 33518 | using namespace std; |
| 33519 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33520 | int |
| 33521 | main () |
| 33522 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33523 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33524 | ; |
| 33525 | return 0; |
| 33526 | } |
| 33527 | _ACEOF |
| 33528 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33529 | if { (ac_try="$ac_compile" |
| 33530 | case "(($ac_try" in |
| 33531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33532 | *) ac_try_echo=$ac_try;; |
| 33533 | esac |
| 33534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33535 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33536 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33538 | rm -f conftest.er1 |
| 33539 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33541 | (exit $ac_status); } && |
| 33542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33543 | { (case "(($ac_try" in |
| 33544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33545 | *) ac_try_echo=$ac_try;; |
| 33546 | esac |
| 33547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33548 | (eval "$ac_try") 2>&5 |
| 33549 | ac_status=$? |
| 33550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33551 | (exit $ac_status); }; } && |
| 33552 | { ac_try='test -s conftest.$ac_objext' |
| 33553 | { (case "(($ac_try" in |
| 33554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33555 | *) ac_try_echo=$ac_try;; |
| 33556 | esac |
| 33557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33558 | (eval "$ac_try") 2>&5 |
| 33559 | ac_status=$? |
| 33560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33561 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33562 | ac_cv_cxx_have_fwd_iterator=yes |
| 33563 | else |
| 33564 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33567 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33568 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33569 | |
| 33570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33571 | ac_ext=c |
| 33572 | ac_cpp='$CPP $CPPFLAGS' |
| 33573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33576 | |
| 33577 | |
| 33578 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33579 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 33580 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33581 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 33582 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33583 | |
| 33584 | cat >>confdefs.h <<\_ACEOF |
| 33585 | #define HAVE_FWD_ITERATOR 1 |
| 33586 | _ACEOF |
| 33587 | |
| 33588 | else |
| 33589 | |
| 33590 | cat >>confdefs.h <<\_ACEOF |
| 33591 | #define HAVE_FWD_ITERATOR 0 |
| 33592 | _ACEOF |
| 33593 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33594 | fi |
| 33595 | |
| 33596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33597 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 33598 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33599 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 33600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33601 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33602 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33603 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33604 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33605 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33606 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33607 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33608 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33609 | /* confdefs.h. */ |
| 33610 | _ACEOF |
| 33611 | cat confdefs.h >>conftest.$ac_ext |
| 33612 | cat >>conftest.$ac_ext <<_ACEOF |
| 33613 | /* end confdefs.h. */ |
| 33614 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33615 | int |
| 33616 | main () |
| 33617 | { |
| 33618 | float f; isnan(f); |
| 33619 | ; |
| 33620 | return 0; |
| 33621 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33622 | _ACEOF |
| 33623 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33624 | if { (ac_try="$ac_compile" |
| 33625 | case "(($ac_try" in |
| 33626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33627 | *) ac_try_echo=$ac_try;; |
| 33628 | esac |
| 33629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33630 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33631 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33633 | rm -f conftest.er1 |
| 33634 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33636 | (exit $ac_status); } && |
| 33637 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33638 | { (case "(($ac_try" in |
| 33639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33640 | *) ac_try_echo=$ac_try;; |
| 33641 | esac |
| 33642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33643 | (eval "$ac_try") 2>&5 |
| 33644 | ac_status=$? |
| 33645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33646 | (exit $ac_status); }; } && |
| 33647 | { ac_try='test -s conftest.$ac_objext' |
| 33648 | { (case "(($ac_try" in |
| 33649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33650 | *) ac_try_echo=$ac_try;; |
| 33651 | esac |
| 33652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33653 | (eval "$ac_try") 2>&5 |
| 33654 | ac_status=$? |
| 33655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33656 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33657 | ac_cv_func_isnan_in_math_h=yes |
| 33658 | else |
| 33659 | echo "$as_me: failed program was:" >&5 |
| 33660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33662 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33663 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33664 | |
| 33665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33666 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33667 | ac_cpp='$CPP $CPPFLAGS' |
| 33668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33671 | |
| 33672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33673 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 33674 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33675 | |
| 33676 | |
| 33677 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33678 | |
| 33679 | cat >>confdefs.h <<\_ACEOF |
| 33680 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 33681 | _ACEOF |
| 33682 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33683 | fi |
| 33684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33685 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 33686 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33687 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 33688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33689 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33690 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33691 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33695 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33696 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33697 | /* confdefs.h. */ |
| 33698 | _ACEOF |
| 33699 | cat confdefs.h >>conftest.$ac_ext |
| 33700 | cat >>conftest.$ac_ext <<_ACEOF |
| 33701 | /* end confdefs.h. */ |
| 33702 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33703 | int |
| 33704 | main () |
| 33705 | { |
| 33706 | float f; isnan(f); |
| 33707 | ; |
| 33708 | return 0; |
| 33709 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33710 | _ACEOF |
| 33711 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33712 | if { (ac_try="$ac_compile" |
| 33713 | case "(($ac_try" in |
| 33714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33715 | *) ac_try_echo=$ac_try;; |
| 33716 | esac |
| 33717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33718 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33719 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33721 | rm -f conftest.er1 |
| 33722 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33724 | (exit $ac_status); } && |
| 33725 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33726 | { (case "(($ac_try" in |
| 33727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33728 | *) ac_try_echo=$ac_try;; |
| 33729 | esac |
| 33730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33731 | (eval "$ac_try") 2>&5 |
| 33732 | ac_status=$? |
| 33733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33734 | (exit $ac_status); }; } && |
| 33735 | { ac_try='test -s conftest.$ac_objext' |
| 33736 | { (case "(($ac_try" in |
| 33737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33738 | *) ac_try_echo=$ac_try;; |
| 33739 | esac |
| 33740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33741 | (eval "$ac_try") 2>&5 |
| 33742 | ac_status=$? |
| 33743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33744 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33745 | ac_cv_func_isnan_in_cmath=yes |
| 33746 | else |
| 33747 | echo "$as_me: failed program was:" >&5 |
| 33748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33750 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33752 | |
| 33753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33754 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33755 | ac_cpp='$CPP $CPPFLAGS' |
| 33756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33759 | |
| 33760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33761 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 33762 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33763 | |
| 33764 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33765 | |
| 33766 | cat >>confdefs.h <<\_ACEOF |
| 33767 | #define HAVE_ISNAN_IN_CMATH 1 |
| 33768 | _ACEOF |
| 33769 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33770 | fi |
| 33771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33772 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 33773 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33774 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 33775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33776 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33777 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33778 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33779 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33780 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33781 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33782 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33783 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33784 | /* confdefs.h. */ |
| 33785 | _ACEOF |
| 33786 | cat confdefs.h >>conftest.$ac_ext |
| 33787 | cat >>conftest.$ac_ext <<_ACEOF |
| 33788 | /* end confdefs.h. */ |
| 33789 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33790 | int |
| 33791 | main () |
| 33792 | { |
| 33793 | float f; std::isnan(f); |
| 33794 | ; |
| 33795 | return 0; |
| 33796 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33797 | _ACEOF |
| 33798 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33799 | if { (ac_try="$ac_compile" |
| 33800 | case "(($ac_try" in |
| 33801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33802 | *) ac_try_echo=$ac_try;; |
| 33803 | esac |
| 33804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33805 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33806 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33808 | rm -f conftest.er1 |
| 33809 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33811 | (exit $ac_status); } && |
| 33812 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33813 | { (case "(($ac_try" in |
| 33814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33815 | *) ac_try_echo=$ac_try;; |
| 33816 | esac |
| 33817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33818 | (eval "$ac_try") 2>&5 |
| 33819 | ac_status=$? |
| 33820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33821 | (exit $ac_status); }; } && |
| 33822 | { ac_try='test -s conftest.$ac_objext' |
| 33823 | { (case "(($ac_try" in |
| 33824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33825 | *) ac_try_echo=$ac_try;; |
| 33826 | esac |
| 33827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33828 | (eval "$ac_try") 2>&5 |
| 33829 | ac_status=$? |
| 33830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33831 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33832 | ac_cv_func_std_isnan_in_cmath=yes |
| 33833 | else |
| 33834 | echo "$as_me: failed program was:" >&5 |
| 33835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33837 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33839 | |
| 33840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33841 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33842 | ac_cpp='$CPP $CPPFLAGS' |
| 33843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33846 | |
| 33847 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33848 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33849 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33850 | |
| 33851 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33852 | |
| 33853 | cat >>confdefs.h <<\_ACEOF |
| 33854 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33855 | _ACEOF |
| 33856 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33857 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33858 | |
| 33859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33860 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33861 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33862 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33864 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33865 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33866 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33870 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33871 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33872 | /* confdefs.h. */ |
| 33873 | _ACEOF |
| 33874 | cat confdefs.h >>conftest.$ac_ext |
| 33875 | cat >>conftest.$ac_ext <<_ACEOF |
| 33876 | /* end confdefs.h. */ |
| 33877 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33878 | int |
| 33879 | main () |
| 33880 | { |
| 33881 | float f; isinf(f); |
| 33882 | ; |
| 33883 | return 0; |
| 33884 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33885 | _ACEOF |
| 33886 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33887 | if { (ac_try="$ac_compile" |
| 33888 | case "(($ac_try" in |
| 33889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33890 | *) ac_try_echo=$ac_try;; |
| 33891 | esac |
| 33892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33893 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33894 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33896 | rm -f conftest.er1 |
| 33897 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33899 | (exit $ac_status); } && |
| 33900 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33901 | { (case "(($ac_try" in |
| 33902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33903 | *) ac_try_echo=$ac_try;; |
| 33904 | esac |
| 33905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33906 | (eval "$ac_try") 2>&5 |
| 33907 | ac_status=$? |
| 33908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33909 | (exit $ac_status); }; } && |
| 33910 | { ac_try='test -s conftest.$ac_objext' |
| 33911 | { (case "(($ac_try" in |
| 33912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33913 | *) ac_try_echo=$ac_try;; |
| 33914 | esac |
| 33915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33916 | (eval "$ac_try") 2>&5 |
| 33917 | ac_status=$? |
| 33918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33919 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33920 | ac_cv_func_isinf_in_math_h=yes |
| 33921 | else |
| 33922 | echo "$as_me: failed program was:" >&5 |
| 33923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33925 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33926 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33927 | |
| 33928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33929 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33930 | ac_cpp='$CPP $CPPFLAGS' |
| 33931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33934 | |
| 33935 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33936 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33937 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33938 | |
| 33939 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33940 | |
| 33941 | cat >>confdefs.h <<\_ACEOF |
| 33942 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33943 | _ACEOF |
| 33944 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33945 | fi |
| 33946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33947 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33948 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33949 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33951 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33952 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33953 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33954 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33955 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33956 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33957 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33958 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33959 | /* confdefs.h. */ |
| 33960 | _ACEOF |
| 33961 | cat confdefs.h >>conftest.$ac_ext |
| 33962 | cat >>conftest.$ac_ext <<_ACEOF |
| 33963 | /* end confdefs.h. */ |
| 33964 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33965 | int |
| 33966 | main () |
| 33967 | { |
| 33968 | float f; isinf(f); |
| 33969 | ; |
| 33970 | return 0; |
| 33971 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33972 | _ACEOF |
| 33973 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33974 | if { (ac_try="$ac_compile" |
| 33975 | case "(($ac_try" in |
| 33976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33977 | *) ac_try_echo=$ac_try;; |
| 33978 | esac |
| 33979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33980 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33981 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33983 | rm -f conftest.er1 |
| 33984 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33986 | (exit $ac_status); } && |
| 33987 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33988 | { (case "(($ac_try" in |
| 33989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33990 | *) ac_try_echo=$ac_try;; |
| 33991 | esac |
| 33992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33993 | (eval "$ac_try") 2>&5 |
| 33994 | ac_status=$? |
| 33995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33996 | (exit $ac_status); }; } && |
| 33997 | { ac_try='test -s conftest.$ac_objext' |
| 33998 | { (case "(($ac_try" in |
| 33999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34000 | *) ac_try_echo=$ac_try;; |
| 34001 | esac |
| 34002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34003 | (eval "$ac_try") 2>&5 |
| 34004 | ac_status=$? |
| 34005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34006 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34007 | ac_cv_func_isinf_in_cmath=yes |
| 34008 | else |
| 34009 | echo "$as_me: failed program was:" >&5 |
| 34010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34012 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34014 | |
| 34015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34016 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34017 | ac_cpp='$CPP $CPPFLAGS' |
| 34018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34021 | |
| 34022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34023 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 34024 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34025 | |
| 34026 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34027 | |
| 34028 | cat >>confdefs.h <<\_ACEOF |
| 34029 | #define HAVE_ISINF_IN_CMATH 1 |
| 34030 | _ACEOF |
| 34031 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34032 | fi |
| 34033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34034 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 34035 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34036 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 34037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34038 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34039 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34040 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34044 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34045 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34046 | /* confdefs.h. */ |
| 34047 | _ACEOF |
| 34048 | cat confdefs.h >>conftest.$ac_ext |
| 34049 | cat >>conftest.$ac_ext <<_ACEOF |
| 34050 | /* end confdefs.h. */ |
| 34051 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34052 | int |
| 34053 | main () |
| 34054 | { |
| 34055 | float f; std::isinf(f)} |
| 34056 | ; |
| 34057 | return 0; |
| 34058 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34059 | _ACEOF |
| 34060 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34061 | if { (ac_try="$ac_compile" |
| 34062 | case "(($ac_try" in |
| 34063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34064 | *) ac_try_echo=$ac_try;; |
| 34065 | esac |
| 34066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34067 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34068 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34070 | rm -f conftest.er1 |
| 34071 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34073 | (exit $ac_status); } && |
| 34074 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34075 | { (case "(($ac_try" in |
| 34076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34077 | *) ac_try_echo=$ac_try;; |
| 34078 | esac |
| 34079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34080 | (eval "$ac_try") 2>&5 |
| 34081 | ac_status=$? |
| 34082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34083 | (exit $ac_status); }; } && |
| 34084 | { ac_try='test -s conftest.$ac_objext' |
| 34085 | { (case "(($ac_try" in |
| 34086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34087 | *) ac_try_echo=$ac_try;; |
| 34088 | esac |
| 34089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34090 | (eval "$ac_try") 2>&5 |
| 34091 | ac_status=$? |
| 34092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34093 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34094 | ac_cv_func_std_isinf_in_cmath=yes |
| 34095 | else |
| 34096 | echo "$as_me: failed program was:" >&5 |
| 34097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34099 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34101 | |
| 34102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34103 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34104 | ac_cpp='$CPP $CPPFLAGS' |
| 34105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34108 | |
| 34109 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34110 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 34111 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34112 | |
| 34113 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34114 | |
| 34115 | cat >>confdefs.h <<\_ACEOF |
| 34116 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 34117 | _ACEOF |
| 34118 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34119 | fi |
| 34120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34121 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 34122 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34123 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 34124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34125 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34126 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34127 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34128 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34129 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34130 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34131 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34132 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34133 | /* confdefs.h. */ |
| 34134 | _ACEOF |
| 34135 | cat confdefs.h >>conftest.$ac_ext |
| 34136 | cat >>conftest.$ac_ext <<_ACEOF |
| 34137 | /* end confdefs.h. */ |
| 34138 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34139 | int |
| 34140 | main () |
| 34141 | { |
| 34142 | float f; finite(f); |
| 34143 | ; |
| 34144 | return 0; |
| 34145 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34146 | _ACEOF |
| 34147 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34148 | if { (ac_try="$ac_compile" |
| 34149 | case "(($ac_try" in |
| 34150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34151 | *) ac_try_echo=$ac_try;; |
| 34152 | esac |
| 34153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34154 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34155 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34157 | rm -f conftest.er1 |
| 34158 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34160 | (exit $ac_status); } && |
| 34161 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34162 | { (case "(($ac_try" in |
| 34163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34164 | *) ac_try_echo=$ac_try;; |
| 34165 | esac |
| 34166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34167 | (eval "$ac_try") 2>&5 |
| 34168 | ac_status=$? |
| 34169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34170 | (exit $ac_status); }; } && |
| 34171 | { ac_try='test -s conftest.$ac_objext' |
| 34172 | { (case "(($ac_try" in |
| 34173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34174 | *) ac_try_echo=$ac_try;; |
| 34175 | esac |
| 34176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34177 | (eval "$ac_try") 2>&5 |
| 34178 | ac_status=$? |
| 34179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34180 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34181 | ac_cv_func_finite_in_ieeefp_h=yes |
| 34182 | else |
| 34183 | echo "$as_me: failed program was:" >&5 |
| 34184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34186 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34188 | |
| 34189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34190 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34191 | ac_cpp='$CPP $CPPFLAGS' |
| 34192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34195 | |
| 34196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34197 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 34198 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34199 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34200 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34201 | |
| 34202 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34203 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34204 | _ACEOF |
| 34205 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34206 | fi |
| 34207 | |
| 34208 | |
| 34209 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34210 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34211 | |
| 34212 | |
| 34213 | for ac_header in stdlib.h unistd.h |
| 34214 | do |
| 34215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34216 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34217 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34219 | 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] | 34220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34222 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34224 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34225 | else |
| 34226 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34227 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 34228 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34229 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34230 | /* confdefs.h. */ |
| 34231 | _ACEOF |
| 34232 | cat confdefs.h >>conftest.$ac_ext |
| 34233 | cat >>conftest.$ac_ext <<_ACEOF |
| 34234 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34235 | $ac_includes_default |
| 34236 | #include <$ac_header> |
| 34237 | _ACEOF |
| 34238 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34239 | if { (ac_try="$ac_compile" |
| 34240 | case "(($ac_try" in |
| 34241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34242 | *) ac_try_echo=$ac_try;; |
| 34243 | esac |
| 34244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34245 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34246 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34248 | rm -f conftest.er1 |
| 34249 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34251 | (exit $ac_status); } && |
| 34252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34253 | { (case "(($ac_try" in |
| 34254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34255 | *) ac_try_echo=$ac_try;; |
| 34256 | esac |
| 34257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34258 | (eval "$ac_try") 2>&5 |
| 34259 | ac_status=$? |
| 34260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34261 | (exit $ac_status); }; } && |
| 34262 | { ac_try='test -s conftest.$ac_objext' |
| 34263 | { (case "(($ac_try" in |
| 34264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34265 | *) ac_try_echo=$ac_try;; |
| 34266 | esac |
| 34267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34268 | (eval "$ac_try") 2>&5 |
| 34269 | ac_status=$? |
| 34270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34271 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34272 | ac_header_compiler=yes |
| 34273 | else |
| 34274 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34277 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34278 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34279 | |
| 34280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34281 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 34282 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34283 | |
| 34284 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34285 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 34286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34287 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34288 | /* confdefs.h. */ |
| 34289 | _ACEOF |
| 34290 | cat confdefs.h >>conftest.$ac_ext |
| 34291 | cat >>conftest.$ac_ext <<_ACEOF |
| 34292 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34293 | #include <$ac_header> |
| 34294 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34295 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 34296 | case "(($ac_try" in |
| 34297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34298 | *) ac_try_echo=$ac_try;; |
| 34299 | esac |
| 34300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34301 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34302 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34303 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34304 | rm -f conftest.er1 |
| 34305 | cat conftest.err >&5 |
| 34306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34307 | (exit $ac_status); } >/dev/null; then |
| 34308 | if test -s conftest.err; then |
| 34309 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 34310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 34311 | else |
| 34312 | ac_cpp_err= |
| 34313 | fi |
| 34314 | else |
| 34315 | ac_cpp_err=yes |
| 34316 | fi |
| 34317 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34318 | ac_header_preproc=yes |
| 34319 | else |
| 34320 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34322 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34323 | ac_header_preproc=no |
| 34324 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34325 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34326 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34327 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 34328 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34329 | |
| 34330 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 34332 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 34334 | 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] | 34335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 34336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 34337 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34338 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34339 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 34341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 34343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 34344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 34345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 34346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 34347 | 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] | 34348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 34349 | 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] | 34350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 34351 | 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] | 34352 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34353 | ## ----------------------------------- ## |
| 34354 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 34355 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34356 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34357 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34358 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34359 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34360 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34362 | 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] | 34363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34364 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34365 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34366 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34367 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34368 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34369 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34370 | |
| 34371 | fi |
| 34372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 34373 | cat >>confdefs.h <<_ACEOF |
| 34374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34375 | _ACEOF |
| 34376 | |
| 34377 | fi |
| 34378 | |
| 34379 | done |
| 34380 | |
| 34381 | |
| 34382 | for ac_func in getpagesize |
| 34383 | do |
| 34384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34385 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34387 | 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] | 34388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34389 | else |
| 34390 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34391 | /* confdefs.h. */ |
| 34392 | _ACEOF |
| 34393 | cat confdefs.h >>conftest.$ac_ext |
| 34394 | cat >>conftest.$ac_ext <<_ACEOF |
| 34395 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34396 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34397 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34398 | #define $ac_func innocuous_$ac_func |
| 34399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34400 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34401 | which can conflict with char $ac_func (); below. |
| 34402 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34403 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34404 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34405 | #ifdef __STDC__ |
| 34406 | # include <limits.h> |
| 34407 | #else |
| 34408 | # include <assert.h> |
| 34409 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34410 | |
| 34411 | #undef $ac_func |
| 34412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34413 | /* Override any GCC internal prototype to avoid an error. |
| 34414 | Use char because int might match the return type of a GCC |
| 34415 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34416 | #ifdef __cplusplus |
| 34417 | extern "C" |
| 34418 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34419 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34420 | /* The GNU C library defines this for functions which it implements |
| 34421 | to always fail with ENOSYS. Some functions are actually named |
| 34422 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34423 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34424 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34425 | #endif |
| 34426 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34427 | int |
| 34428 | main () |
| 34429 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34430 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34431 | ; |
| 34432 | return 0; |
| 34433 | } |
| 34434 | _ACEOF |
| 34435 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34436 | if { (ac_try="$ac_link" |
| 34437 | case "(($ac_try" in |
| 34438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34439 | *) ac_try_echo=$ac_try;; |
| 34440 | esac |
| 34441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34442 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34443 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34445 | rm -f conftest.er1 |
| 34446 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34448 | (exit $ac_status); } && |
| 34449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34450 | { (case "(($ac_try" in |
| 34451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34452 | *) ac_try_echo=$ac_try;; |
| 34453 | esac |
| 34454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34455 | (eval "$ac_try") 2>&5 |
| 34456 | ac_status=$? |
| 34457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34458 | (exit $ac_status); }; } && |
| 34459 | { ac_try='test -s conftest$ac_exeext' |
| 34460 | { (case "(($ac_try" in |
| 34461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34462 | *) ac_try_echo=$ac_try;; |
| 34463 | esac |
| 34464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34465 | (eval "$ac_try") 2>&5 |
| 34466 | ac_status=$? |
| 34467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34468 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34469 | eval "$as_ac_var=yes" |
| 34470 | else |
| 34471 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34474 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34476 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34477 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34478 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34479 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34480 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34482 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34483 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34484 | cat >>confdefs.h <<_ACEOF |
| 34485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34486 | _ACEOF |
| 34487 | |
| 34488 | fi |
| 34489 | done |
| 34490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34491 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 34492 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34493 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 34494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34495 | else |
| 34496 | if test "$cross_compiling" = yes; then |
| 34497 | ac_cv_func_mmap_fixed_mapped=no |
| 34498 | else |
| 34499 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34500 | /* confdefs.h. */ |
| 34501 | _ACEOF |
| 34502 | cat confdefs.h >>conftest.$ac_ext |
| 34503 | cat >>conftest.$ac_ext <<_ACEOF |
| 34504 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34505 | $ac_includes_default |
| 34506 | /* malloc might have been renamed as rpl_malloc. */ |
| 34507 | #undef malloc |
| 34508 | |
| 34509 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 34510 | Here is a matrix of mmap possibilities: |
| 34511 | mmap private not fixed |
| 34512 | mmap private fixed at somewhere currently unmapped |
| 34513 | mmap private fixed at somewhere already mapped |
| 34514 | mmap shared not fixed |
| 34515 | mmap shared fixed at somewhere currently unmapped |
| 34516 | mmap shared fixed at somewhere already mapped |
| 34517 | For private mappings, we should verify that changes cannot be read() |
| 34518 | back from the file, nor mmap's back from the file at a different |
| 34519 | address. (There have been systems where private was not correctly |
| 34520 | implemented like the infamous i386 svr4.0, and systems where the |
| 34521 | VM page cache was not coherent with the file system buffer cache |
| 34522 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 34523 | For shared mappings, we should conversely verify that changes get |
| 34524 | propagated back to all the places they're supposed to be. |
| 34525 | |
| 34526 | Grep wants private fixed already mapped. |
| 34527 | The main things grep needs to know about mmap are: |
| 34528 | * does it exist and is it safe to write into the mmap'd area |
| 34529 | * how to use it (BSD variants) */ |
| 34530 | |
| 34531 | #include <fcntl.h> |
| 34532 | #include <sys/mman.h> |
| 34533 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34534 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34535 | char *malloc (); |
| 34536 | #endif |
| 34537 | |
| 34538 | /* This mess was copied from the GNU getpagesize.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34539 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34540 | /* Assume that all systems that can run configure have sys/param.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34541 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34542 | # define HAVE_SYS_PARAM_H 1 |
| 34543 | # endif |
| 34544 | |
| 34545 | # ifdef _SC_PAGESIZE |
| 34546 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 34547 | # else /* no _SC_PAGESIZE */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34548 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34549 | # include <sys/param.h> |
| 34550 | # ifdef EXEC_PAGESIZE |
| 34551 | # define getpagesize() EXEC_PAGESIZE |
| 34552 | # else /* no EXEC_PAGESIZE */ |
| 34553 | # ifdef NBPG |
| 34554 | # define getpagesize() NBPG * CLSIZE |
| 34555 | # ifndef CLSIZE |
| 34556 | # define CLSIZE 1 |
| 34557 | # endif /* no CLSIZE */ |
| 34558 | # else /* no NBPG */ |
| 34559 | # ifdef NBPC |
| 34560 | # define getpagesize() NBPC |
| 34561 | # else /* no NBPC */ |
| 34562 | # ifdef PAGESIZE |
| 34563 | # define getpagesize() PAGESIZE |
| 34564 | # endif /* PAGESIZE */ |
| 34565 | # endif /* no NBPC */ |
| 34566 | # endif /* no NBPG */ |
| 34567 | # endif /* no EXEC_PAGESIZE */ |
| 34568 | # else /* no HAVE_SYS_PARAM_H */ |
| 34569 | # define getpagesize() 8192 /* punt totally */ |
| 34570 | # endif /* no HAVE_SYS_PARAM_H */ |
| 34571 | # endif /* no _SC_PAGESIZE */ |
| 34572 | |
| 34573 | #endif /* no HAVE_GETPAGESIZE */ |
| 34574 | |
| 34575 | int |
| 34576 | main () |
| 34577 | { |
| 34578 | char *data, *data2, *data3; |
| 34579 | int i, pagesize; |
| 34580 | int fd; |
| 34581 | |
| 34582 | pagesize = getpagesize (); |
| 34583 | |
| 34584 | /* First, make a file with some known garbage in it. */ |
| 34585 | data = (char *) malloc (pagesize); |
| 34586 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34587 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34588 | for (i = 0; i < pagesize; ++i) |
| 34589 | *(data + i) = rand (); |
| 34590 | umask (0); |
| 34591 | fd = creat ("conftest.mmap", 0600); |
| 34592 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34593 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34594 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34595 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34596 | close (fd); |
| 34597 | |
| 34598 | /* Next, try to mmap the file at a fixed address which already has |
| 34599 | something else allocated at it. If we can, also make sure that |
| 34600 | we see the same garbage. */ |
| 34601 | fd = open ("conftest.mmap", O_RDWR); |
| 34602 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34603 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34604 | data2 = (char *) malloc (2 * pagesize); |
| 34605 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34606 | return 1; |
| 34607 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34608 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34609 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34610 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34611 | for (i = 0; i < pagesize; ++i) |
| 34612 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34613 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34614 | |
| 34615 | /* Finally, make sure that changes to the mapped area do not |
| 34616 | percolate back to the file as seen by read(). (This is a bug on |
| 34617 | some variants of i386 svr4.0.) */ |
| 34618 | for (i = 0; i < pagesize; ++i) |
| 34619 | *(data2 + i) = *(data2 + i) + 1; |
| 34620 | data3 = (char *) malloc (pagesize); |
| 34621 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34622 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34623 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34624 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34625 | for (i = 0; i < pagesize; ++i) |
| 34626 | if (*(data + i) != *(data3 + i)) |
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 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34629 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34630 | } |
| 34631 | _ACEOF |
| 34632 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34633 | if { (ac_try="$ac_link" |
| 34634 | case "(($ac_try" in |
| 34635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34636 | *) ac_try_echo=$ac_try;; |
| 34637 | esac |
| 34638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34639 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34640 | ac_status=$? |
| 34641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34643 | { (case "(($ac_try" in |
| 34644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34645 | *) ac_try_echo=$ac_try;; |
| 34646 | esac |
| 34647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34648 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34649 | ac_status=$? |
| 34650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34651 | (exit $ac_status); }; }; then |
| 34652 | ac_cv_func_mmap_fixed_mapped=yes |
| 34653 | else |
| 34654 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34655 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34658 | ( exit $ac_status ) |
| 34659 | ac_cv_func_mmap_fixed_mapped=no |
| 34660 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34661 | 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] | 34662 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34663 | |
| 34664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34666 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 34667 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34668 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 34669 | |
| 34670 | cat >>confdefs.h <<\_ACEOF |
| 34671 | #define HAVE_MMAP 1 |
| 34672 | _ACEOF |
| 34673 | |
| 34674 | fi |
| 34675 | rm -f conftest.mmap |
| 34676 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34677 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34678 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34679 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 34680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34681 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34682 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34683 | ac_cpp='$CPP $CPPFLAGS' |
| 34684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34687 | |
| 34688 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34689 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34690 | else |
| 34691 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34692 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34693 | /* confdefs.h. */ |
| 34694 | _ACEOF |
| 34695 | cat confdefs.h >>conftest.$ac_ext |
| 34696 | cat >>conftest.$ac_ext <<_ACEOF |
| 34697 | /* end confdefs.h. */ |
| 34698 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34699 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34700 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34701 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34702 | |
| 34703 | int |
| 34704 | main () |
| 34705 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34706 | |
| 34707 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34708 | fd = creat ("foo",0777); |
| 34709 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 34710 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34711 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34712 | ; |
| 34713 | return 0; |
| 34714 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34715 | _ACEOF |
| 34716 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34717 | if { (ac_try="$ac_link" |
| 34718 | case "(($ac_try" in |
| 34719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34720 | *) ac_try_echo=$ac_try;; |
| 34721 | esac |
| 34722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34723 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34724 | ac_status=$? |
| 34725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34727 | { (case "(($ac_try" in |
| 34728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34729 | *) ac_try_echo=$ac_try;; |
| 34730 | esac |
| 34731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34732 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34733 | ac_status=$? |
| 34734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34735 | (exit $ac_status); }; }; then |
| 34736 | ac_cv_func_mmap_file=yes |
| 34737 | else |
| 34738 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34739 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34741 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34742 | ( exit $ac_status ) |
| 34743 | ac_cv_func_mmap_file=no |
| 34744 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34745 | 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] | 34746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34747 | |
| 34748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34749 | ac_ext=c |
| 34750 | ac_cpp='$CPP $CPPFLAGS' |
| 34751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34754 | |
| 34755 | |
| 34756 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34757 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 34758 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34759 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34760 | |
| 34761 | cat >>confdefs.h <<\_ACEOF |
| 34762 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34763 | _ACEOF |
| 34764 | |
| 34765 | MMAP_FILE=yes |
| 34766 | |
| 34767 | fi |
| 34768 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34769 | { 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] | 34770 | 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] | 34771 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 34772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34773 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34774 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34775 | ac_cv_need_dev_zero_for_mmap=yes |
| 34776 | else |
| 34777 | ac_cv_need_dev_zero_for_mmap=no |
| 34778 | fi |
| 34779 | |
| 34780 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34781 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 34782 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34783 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 34784 | |
| 34785 | cat >>confdefs.h <<\_ACEOF |
| 34786 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 34787 | _ACEOF |
| 34788 | |
| 34789 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34790 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34791 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 34792 | then |
| 34793 | { 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] | 34794 | 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] | 34795 | fi |
| 34796 | if test "$ac_cv_func_mmap_file" = "no" |
| 34797 | then |
| 34798 | { 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] | 34799 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34800 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34801 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34802 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34803 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34804 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34805 | cat >conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34806 | /* confdefs.h. */ |
| 34807 | _ACEOF |
| 34808 | cat confdefs.h >>conftest.$ac_ext |
| 34809 | cat >>conftest.$ac_ext <<_ACEOF |
| 34810 | /* end confdefs.h. */ |
| 34811 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34812 | volatile unsigned long val = 1; |
| 34813 | __sync_synchronize(); |
| 34814 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 34815 | __sync_add_and_fetch(&val, 1); |
| 34816 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34817 | return 0; |
| 34818 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34819 | |
| 34820 | _ACEOF |
| 34821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34822 | if { (ac_try="$ac_link" |
| 34823 | case "(($ac_try" in |
| 34824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34825 | *) ac_try_echo=$ac_try;; |
| 34826 | esac |
| 34827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34828 | (eval "$ac_link") 2>conftest.er1 |
| 34829 | ac_status=$? |
| 34830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34831 | rm -f conftest.er1 |
| 34832 | cat conftest.err >&5 |
| 34833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34834 | (exit $ac_status); } && |
| 34835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34836 | { (case "(($ac_try" in |
| 34837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34838 | *) ac_try_echo=$ac_try;; |
| 34839 | esac |
| 34840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34841 | (eval "$ac_try") 2>&5 |
| 34842 | ac_status=$? |
| 34843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34844 | (exit $ac_status); }; } && |
| 34845 | { ac_try='test -s conftest$ac_exeext' |
| 34846 | { (case "(($ac_try" in |
| 34847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34848 | *) ac_try_echo=$ac_try;; |
| 34849 | esac |
| 34850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34851 | (eval "$ac_try") 2>&5 |
| 34852 | ac_status=$? |
| 34853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34854 | (exit $ac_status); }; }; then |
| 34855 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 34856 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34857 | |
| 34858 | cat >>confdefs.h <<\_ACEOF |
| 34859 | #define LLVM_MULTITHREADED 1 |
| 34860 | _ACEOF |
| 34861 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34862 | else |
| 34863 | echo "$as_me: failed program was:" >&5 |
| 34864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34865 | |
| 34866 | { echo "$as_me:$LINENO: result: no" >&5 |
| 34867 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34868 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34869 | cat >>confdefs.h <<\_ACEOF |
| 34870 | #define LLVM_MULTITHREADED 0 |
| 34871 | _ACEOF |
| 34872 | |
| 34873 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 34874 | 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] | 34875 | fi |
| 34876 | |
| 34877 | rm -f core conftest.err conftest.$ac_objext \ |
| 34878 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34879 | |
| 34880 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34881 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34882 | |
| 34883 | for ac_func in __dso_handle |
| 34884 | do |
| 34885 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34886 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34887 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34888 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34890 | else |
| 34891 | cat >conftest.$ac_ext <<_ACEOF |
| 34892 | /* confdefs.h. */ |
| 34893 | _ACEOF |
| 34894 | cat confdefs.h >>conftest.$ac_ext |
| 34895 | cat >>conftest.$ac_ext <<_ACEOF |
| 34896 | /* end confdefs.h. */ |
| 34897 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34899 | #define $ac_func innocuous_$ac_func |
| 34900 | |
| 34901 | /* System header to define __stub macros and hopefully few prototypes, |
| 34902 | which can conflict with char $ac_func (); below. |
| 34903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34904 | <limits.h> exists even on freestanding compilers. */ |
| 34905 | |
| 34906 | #ifdef __STDC__ |
| 34907 | # include <limits.h> |
| 34908 | #else |
| 34909 | # include <assert.h> |
| 34910 | #endif |
| 34911 | |
| 34912 | #undef $ac_func |
| 34913 | |
| 34914 | /* Override any GCC internal prototype to avoid an error. |
| 34915 | Use char because int might match the return type of a GCC |
| 34916 | builtin and then its argument prototype would still apply. */ |
| 34917 | #ifdef __cplusplus |
| 34918 | extern "C" |
| 34919 | #endif |
| 34920 | char $ac_func (); |
| 34921 | /* The GNU C library defines this for functions which it implements |
| 34922 | to always fail with ENOSYS. Some functions are actually named |
| 34923 | something starting with __ and the normal name is an alias. */ |
| 34924 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34925 | choke me |
| 34926 | #endif |
| 34927 | |
| 34928 | int |
| 34929 | main () |
| 34930 | { |
| 34931 | return $ac_func (); |
| 34932 | ; |
| 34933 | return 0; |
| 34934 | } |
| 34935 | _ACEOF |
| 34936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34937 | if { (ac_try="$ac_link" |
| 34938 | case "(($ac_try" in |
| 34939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34940 | *) ac_try_echo=$ac_try;; |
| 34941 | esac |
| 34942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34943 | (eval "$ac_link") 2>conftest.er1 |
| 34944 | ac_status=$? |
| 34945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34946 | rm -f conftest.er1 |
| 34947 | cat conftest.err >&5 |
| 34948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34949 | (exit $ac_status); } && |
| 34950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34951 | { (case "(($ac_try" in |
| 34952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34953 | *) ac_try_echo=$ac_try;; |
| 34954 | esac |
| 34955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34956 | (eval "$ac_try") 2>&5 |
| 34957 | ac_status=$? |
| 34958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34959 | (exit $ac_status); }; } && |
| 34960 | { ac_try='test -s conftest$ac_exeext' |
| 34961 | { (case "(($ac_try" in |
| 34962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34963 | *) ac_try_echo=$ac_try;; |
| 34964 | esac |
| 34965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34966 | (eval "$ac_try") 2>&5 |
| 34967 | ac_status=$? |
| 34968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34969 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34970 | eval "$as_ac_var=yes" |
| 34971 | else |
| 34972 | echo "$as_me: failed program was:" >&5 |
| 34973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34974 | |
| 34975 | eval "$as_ac_var=no" |
| 34976 | fi |
| 34977 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34978 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34979 | conftest$ac_exeext conftest.$ac_ext |
| 34980 | fi |
| 34981 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34982 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34983 | echo "${ECHO_T}$ac_res" >&6; } |
| 34984 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34985 | cat >>confdefs.h <<_ACEOF |
| 34986 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34987 | _ACEOF |
| 34988 | |
| 34989 | fi |
| 34990 | done |
| 34991 | |
| 34992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34993 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34994 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34995 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34997 | else |
| 34998 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34999 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35000 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 35001 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 35002 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35003 | if test $? -eq 0 ; then |
| 35004 | llvm_cv_llvmgcc_sanity="yes" |
| 35005 | fi |
| 35006 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35007 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35008 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35009 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 35010 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35011 | |
| 35012 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35013 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 35014 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35015 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35016 | LLVMCC1=$llvmcc1path |
| 35017 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35018 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35019 | LLVMCC1PLUS=$llvmcc1pluspath |
| 35020 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35021 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 35022 | LLVMGCCDIR=$llvmgccdir |
| 35023 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35024 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 35025 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 35026 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 35027 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 35028 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 35029 | LLVMGCC_VERSION=$llvmgccversion |
| 35030 | |
| 35031 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 35032 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 35033 | 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] | 35034 | LLVMGCC_LANGS=$llvmgcclangs |
| 35035 | |
| 35036 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 35037 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35038 | fi |
| 35039 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35040 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 35041 | |
| 35042 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35043 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35044 | # information into substitutions that will end up in Makefile.config.in |
| 35045 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 35046 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 35047 | prefix="/usr/local" |
| 35048 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35049 | eval LLVM_PREFIX="${prefix}"; |
| 35050 | eval LLVM_BINDIR="${prefix}/bin"; |
| 35051 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35052 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 35053 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 35054 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35055 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 35056 | eval LLVM_INFODIR="${prefix}/info"; |
| 35057 | eval LLVM_MANDIR="${prefix}/man"; |
| 35058 | LLVM_CONFIGTIME=`date` |
| 35059 | |
| 35060 | |
| 35061 | |
| 35062 | |
| 35063 | |
| 35064 | |
| 35065 | |
| 35066 | |
| 35067 | |
| 35068 | |
| 35069 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35070 | # Place the various directores into the config.h file as #defines so that we |
| 35071 | # can know about the installation paths within LLVM. |
| 35072 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35073 | cat >>confdefs.h <<_ACEOF |
| 35074 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 35075 | _ACEOF |
| 35076 | |
| 35077 | |
| 35078 | cat >>confdefs.h <<_ACEOF |
| 35079 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 35080 | _ACEOF |
| 35081 | |
| 35082 | |
| 35083 | cat >>confdefs.h <<_ACEOF |
| 35084 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 35085 | _ACEOF |
| 35086 | |
| 35087 | |
| 35088 | cat >>confdefs.h <<_ACEOF |
| 35089 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 35090 | _ACEOF |
| 35091 | |
| 35092 | |
| 35093 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 35094 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35095 | _ACEOF |
| 35096 | |
| 35097 | |
| 35098 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 35099 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35100 | _ACEOF |
| 35101 | |
| 35102 | |
| 35103 | cat >>confdefs.h <<_ACEOF |
| 35104 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 35105 | _ACEOF |
| 35106 | |
| 35107 | |
| 35108 | cat >>confdefs.h <<_ACEOF |
| 35109 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 35110 | _ACEOF |
| 35111 | |
| 35112 | |
| 35113 | cat >>confdefs.h <<_ACEOF |
| 35114 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 35115 | _ACEOF |
| 35116 | |
| 35117 | |
| 35118 | cat >>confdefs.h <<_ACEOF |
| 35119 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 35120 | _ACEOF |
| 35121 | |
| 35122 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 35123 | cat >>confdefs.h <<_ACEOF |
| 35124 | #define LLVM_HOSTTRIPLE "$host" |
| 35125 | _ACEOF |
| 35126 | |
| 35127 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35128 | # Determine which bindings to build. |
| 35129 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 35130 | BINDINGS_TO_BUILD="" |
| 35131 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 35132 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 35133 | fi |
| 35134 | fi |
| 35135 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 35136 | |
| 35137 | |
| 35138 | # This isn't really configurey, but it avoids having to repeat the list in |
| 35139 | # other files. |
| 35140 | ALL_BINDINGS=ocaml |
| 35141 | |
| 35142 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35143 | # Do any work necessary to ensure that bindings have what they need. |
| 35144 | binding_prereqs_failed=0 |
| 35145 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 35146 | case "$a_binding" in |
| 35147 | ocaml) |
| 35148 | if test "x$OCAMLC" = x ; then |
| 35149 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 35150 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 35151 | binding_prereqs_failed=1 |
| 35152 | fi |
| 35153 | if test "x$OCAMLDEP" = x ; then |
| 35154 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 35155 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 35156 | binding_prereqs_failed=1 |
| 35157 | fi |
| 35158 | if test "x$OCAMLOPT" = x ; then |
| 35159 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 35160 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 35161 | fi |
| 35162 | if test "x$with_ocaml_libdir" != xauto ; then |
| 35163 | OCAML_LIBDIR=$with_ocaml_libdir |
| 35164 | |
| 35165 | else |
| 35166 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 35167 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 35168 | then |
| 35169 | # ocaml stdlib is beneath our prefix; use stdlib |
| 35170 | OCAML_LIBDIR=$ocaml_stdlib |
| 35171 | |
| 35172 | else |
| 35173 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 35174 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 35175 | |
| 35176 | fi |
| 35177 | fi |
| 35178 | ;; |
| 35179 | esac |
| 35180 | done |
| 35181 | if test "$binding_prereqs_failed" = 1 ; then |
| 35182 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 35183 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 35184 | { (exit 1); exit 1; }; } |
| 35185 | fi |
| 35186 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35187 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 35188 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 35189 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 35190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35191 | else |
| 35192 | ac_ext=cpp |
| 35193 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 35194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 35197 | |
| 35198 | oldcxxflags="$CXXFLAGS" |
| 35199 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 35200 | cat >conftest.$ac_ext <<_ACEOF |
| 35201 | /* confdefs.h. */ |
| 35202 | _ACEOF |
| 35203 | cat confdefs.h >>conftest.$ac_ext |
| 35204 | cat >>conftest.$ac_ext <<_ACEOF |
| 35205 | /* end confdefs.h. */ |
| 35206 | |
| 35207 | int |
| 35208 | main () |
| 35209 | { |
| 35210 | |
| 35211 | ; |
| 35212 | return 0; |
| 35213 | } |
| 35214 | _ACEOF |
| 35215 | rm -f conftest.$ac_objext |
| 35216 | if { (ac_try="$ac_compile" |
| 35217 | case "(($ac_try" in |
| 35218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35219 | *) ac_try_echo=$ac_try;; |
| 35220 | esac |
| 35221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35222 | (eval "$ac_compile") 2>conftest.er1 |
| 35223 | ac_status=$? |
| 35224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35225 | rm -f conftest.er1 |
| 35226 | cat conftest.err >&5 |
| 35227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35228 | (exit $ac_status); } && |
| 35229 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 35230 | { (case "(($ac_try" in |
| 35231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35232 | *) ac_try_echo=$ac_try;; |
| 35233 | esac |
| 35234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35235 | (eval "$ac_try") 2>&5 |
| 35236 | ac_status=$? |
| 35237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35238 | (exit $ac_status); }; } && |
| 35239 | { ac_try='test -s conftest.$ac_objext' |
| 35240 | { (case "(($ac_try" in |
| 35241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35242 | *) ac_try_echo=$ac_try;; |
| 35243 | esac |
| 35244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35245 | (eval "$ac_try") 2>&5 |
| 35246 | ac_status=$? |
| 35247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35248 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35249 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 35250 | else |
| 35251 | echo "$as_me: failed program was:" >&5 |
| 35252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35253 | |
| 35254 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 35255 | fi |
| 35256 | |
| 35257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35258 | CXXFLAGS="$oldcxxflags" |
| 35259 | ac_ext=c |
| 35260 | ac_cpp='$CPP $CPPFLAGS' |
| 35261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 35264 | |
| 35265 | |
| 35266 | fi |
| 35267 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 35268 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 35269 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 35270 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 35271 | |
| 35272 | else |
| 35273 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 35274 | |
| 35275 | fi |
| 35276 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35277 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 35278 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 35279 | RPATH="-Wl,-R" |
| 35280 | else |
| 35281 | RPATH="-Wl,-rpath" |
| 35282 | fi |
| 35283 | |
| 35284 | |
| 35285 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 35286 | RDYNAMIC="-Wl,-export-dynamic" |
| 35287 | else |
| 35288 | RDYNAMIC="" |
| 35289 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 35290 | |
| 35291 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35293 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35294 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35295 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 35296 | |
| 35297 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 35298 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35299 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 35300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35301 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35304 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35305 | |
| 35306 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35307 | ac_config_files="$ac_config_files llvm.spec" |
| 35308 | |
| 35309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35310 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35311 | |
| 35312 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35313 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 35314 | |
| 35315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35316 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 35317 | |
| 35318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35319 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35321 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35322 | |
| 35323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35324 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35325 | |
| 35326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35327 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35328 | |
| 35329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35330 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35331 | |
| 35332 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35333 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 35334 | |
| 35335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35336 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35337 | |
| 35338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35339 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35340 | |
| 35341 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35342 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 35343 | |
| 35344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35345 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35346 | |
| 35347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35348 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35349 | |
| 35350 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35351 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35352 | |
| 35353 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35354 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 35355 | |
| 35356 | |
| 35357 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 35358 | |
| 35359 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35361 | cat >confcache <<\_ACEOF |
| 35362 | # This file is a shell script that caches the results of configure |
| 35363 | # tests run on this system so they can be shared between configure |
| 35364 | # scripts and configure runs, see configure's option --config-cache. |
| 35365 | # It is not useful on other systems. If it contains results you don't |
| 35366 | # want to keep, you may remove or edit it. |
| 35367 | # |
| 35368 | # config.status only pays attention to the cache file if you give it |
| 35369 | # the --recheck option to rerun configure. |
| 35370 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35371 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35372 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35373 | # following values. |
| 35374 | |
| 35375 | _ACEOF |
| 35376 | |
| 35377 | # The following way of writing the cache mishandles newlines in values, |
| 35378 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35379 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35380 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35381 | # 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] | 35382 | ( |
| 35383 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35384 | eval ac_val=\$$ac_var |
| 35385 | case $ac_val in #( |
| 35386 | *${as_nl}*) |
| 35387 | case $ac_var in #( |
| 35388 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 35389 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 35390 | esac |
| 35391 | case $ac_var in #( |
| 35392 | _ | IFS | as_nl) ;; #( |
| 35393 | *) $as_unset $ac_var ;; |
| 35394 | esac ;; |
| 35395 | esac |
| 35396 | done |
| 35397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35398 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35399 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35400 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35401 | # `set' does not quote correctly, so add quotes (double-quote |
| 35402 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 35403 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35404 | "s/'/'\\\\''/g; |
| 35405 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35406 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35407 | *) |
| 35408 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35409 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35410 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35411 | esac | |
| 35412 | sort |
| 35413 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35414 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35415 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35416 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35417 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35418 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35419 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35420 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35421 | :end' >>confcache |
| 35422 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35423 | if test -w "$cache_file"; then |
| 35424 | test "x$cache_file" != "x/dev/null" && |
| 35425 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 35426 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35427 | cat confcache >$cache_file |
| 35428 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35429 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 35430 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35431 | fi |
| 35432 | fi |
| 35433 | rm -f confcache |
| 35434 | |
| 35435 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35436 | # Let make expand exec_prefix. |
| 35437 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35438 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35439 | DEFS=-DHAVE_CONFIG_H |
| 35440 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35441 | ac_libobjs= |
| 35442 | ac_ltlibobjs= |
| 35443 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35444 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35445 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35446 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 35447 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35448 | # will be set to the directory where LIBOBJS objects are built. |
| 35449 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35450 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35451 | done |
| 35452 | LIBOBJS=$ac_libobjs |
| 35453 | |
| 35454 | LTLIBOBJS=$ac_ltlibobjs |
| 35455 | |
| 35456 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35457 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 35458 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35459 | Usually this means the macro was only invoked conditionally." >&5 |
| 35460 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35461 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35462 | { (exit 1); exit 1; }; } |
| 35463 | fi |
| 35464 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 35465 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35466 | Usually this means the macro was only invoked conditionally." >&5 |
| 35467 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35468 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35469 | { (exit 1); exit 1; }; } |
| 35470 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35471 | |
| 35472 | : ${CONFIG_STATUS=./config.status} |
| 35473 | ac_clean_files_save=$ac_clean_files |
| 35474 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 35475 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 35476 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 35477 | cat >$CONFIG_STATUS <<_ACEOF |
| 35478 | #! $SHELL |
| 35479 | # Generated by $as_me. |
| 35480 | # Run this file to recreate the current configuration. |
| 35481 | # Compiler output produced by configure, useful for debugging |
| 35482 | # configure, is in config.log if it exists. |
| 35483 | |
| 35484 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35485 | ac_cs_recheck=false |
| 35486 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35487 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35488 | _ACEOF |
| 35489 | |
| 35490 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35491 | ## --------------------- ## |
| 35492 | ## M4sh Initialization. ## |
| 35493 | ## --------------------- ## |
| 35494 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35495 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35496 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 35497 | emulate sh |
| 35498 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35499 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 35500 | # is contrary to our usage. Disable this feature. |
| 35501 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35502 | setopt NO_GLOB_SUBST |
| 35503 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35504 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35505 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35506 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 35507 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35508 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35510 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35511 | # Avoid depending upon Character Ranges. |
| 35512 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35513 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35514 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35515 | as_cr_digits='0123456789' |
| 35516 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35517 | |
| 35518 | # The user is always right. |
| 35519 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35520 | echo "#! /bin/sh" >conf$$.sh |
| 35521 | echo "exit 0" >>conf$$.sh |
| 35522 | chmod +x conf$$.sh |
| 35523 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35524 | PATH_SEPARATOR=';' |
| 35525 | else |
| 35526 | PATH_SEPARATOR=: |
| 35527 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35528 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35529 | fi |
| 35530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35531 | # Support unset when possible. |
| 35532 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 35533 | as_unset=unset |
| 35534 | else |
| 35535 | as_unset=false |
| 35536 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35538 | |
| 35539 | # IFS |
| 35540 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35541 | # there to prevent editors from complaining about space-tab. |
| 35542 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35543 | # splitting by setting IFS to empty value.) |
| 35544 | as_nl=' |
| 35545 | ' |
| 35546 | IFS=" "" $as_nl" |
| 35547 | |
| 35548 | # Find who we are. Look in the path if we contain no directory separator. |
| 35549 | case $0 in |
| 35550 | *[\\/]* ) as_myself=$0 ;; |
| 35551 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35552 | for as_dir in $PATH |
| 35553 | do |
| 35554 | IFS=$as_save_IFS |
| 35555 | test -z "$as_dir" && as_dir=. |
| 35556 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35557 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35558 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35560 | ;; |
| 35561 | esac |
| 35562 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35563 | # in which case we are not to be found in the path. |
| 35564 | if test "x$as_myself" = x; then |
| 35565 | as_myself=$0 |
| 35566 | fi |
| 35567 | if test ! -f "$as_myself"; then |
| 35568 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 35569 | { (exit 1); exit 1; } |
| 35570 | fi |
| 35571 | |
| 35572 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35573 | for as_var in ENV MAIL MAILPATH |
| 35574 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35575 | done |
| 35576 | PS1='$ ' |
| 35577 | PS2='> ' |
| 35578 | PS4='+ ' |
| 35579 | |
| 35580 | # NLS nuisances. |
| 35581 | for as_var in \ |
| 35582 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 35583 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 35584 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35585 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35586 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 35587 | eval $as_var=C; export $as_var |
| 35588 | else |
| 35589 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35590 | fi |
| 35591 | done |
| 35592 | |
| 35593 | # Required to use basename. |
| 35594 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35595 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35596 | as_expr=expr |
| 35597 | else |
| 35598 | as_expr=false |
| 35599 | fi |
| 35600 | |
| 35601 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35602 | as_basename=basename |
| 35603 | else |
| 35604 | as_basename=false |
| 35605 | fi |
| 35606 | |
| 35607 | |
| 35608 | # Name of the executable. |
| 35609 | as_me=`$as_basename -- "$0" || |
| 35610 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35611 | X"$0" : 'X\(//\)$' \| \ |
| 35612 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35613 | echo X/"$0" | |
| 35614 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35615 | s//\1/ |
| 35616 | q |
| 35617 | } |
| 35618 | /^X\/\(\/\/\)$/{ |
| 35619 | s//\1/ |
| 35620 | q |
| 35621 | } |
| 35622 | /^X\/\(\/\).*/{ |
| 35623 | s//\1/ |
| 35624 | q |
| 35625 | } |
| 35626 | s/.*/./; q'` |
| 35627 | |
| 35628 | # CDPATH. |
| 35629 | $as_unset CDPATH |
| 35630 | |
| 35631 | |
| 35632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35633 | as_lineno_1=$LINENO |
| 35634 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35635 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35636 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35637 | |
| 35638 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 35639 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35640 | # line-number line after each line using $LINENO; the second 'sed' |
| 35641 | # does the real work. The second script uses 'N' to pair each |
| 35642 | # line-number line with the line containing $LINENO, and appends |
| 35643 | # trailing '-' during substitution so that $LINENO is not a special |
| 35644 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35645 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35646 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 35647 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 35648 | sed -n ' |
| 35649 | p |
| 35650 | /[$]LINENO/= |
| 35651 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35652 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35653 | s/[$]LINENO.*/&-/ |
| 35654 | t lineno |
| 35655 | b |
| 35656 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35657 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35658 | :loop |
| 35659 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35660 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35661 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35662 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35663 | chmod +x "$as_me.lineno" || |
| 35664 | { 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] | 35665 | { (exit 1); exit 1; }; } |
| 35666 | |
| 35667 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 35668 | # (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] | 35669 | # original and so on. Autoconf is especially sensitive to this). |
| 35670 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35671 | # Exit status is that of the last command. |
| 35672 | exit |
| 35673 | } |
| 35674 | |
| 35675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35676 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35677 | as_dirname=dirname |
| 35678 | else |
| 35679 | as_dirname=false |
| 35680 | fi |
| 35681 | |
| 35682 | ECHO_C= ECHO_N= ECHO_T= |
| 35683 | case `echo -n x` in |
| 35684 | -n*) |
| 35685 | case `echo 'x\c'` in |
| 35686 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 35687 | *) ECHO_C='\c';; |
| 35688 | esac;; |
| 35689 | *) |
| 35690 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35691 | esac |
| 35692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35693 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35694 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35695 | as_expr=expr |
| 35696 | else |
| 35697 | as_expr=false |
| 35698 | fi |
| 35699 | |
| 35700 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35701 | if test -d conf$$.dir; then |
| 35702 | rm -f conf$$.dir/conf$$.file |
| 35703 | else |
| 35704 | rm -f conf$$.dir |
| 35705 | mkdir conf$$.dir |
| 35706 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35707 | echo >conf$$.file |
| 35708 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35709 | as_ln_s='ln -s' |
| 35710 | # ... but there are two gotchas: |
| 35711 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35712 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35713 | # In both cases, we have to default to `cp -p'. |
| 35714 | 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] | 35715 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35716 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35717 | as_ln_s=ln |
| 35718 | else |
| 35719 | as_ln_s='cp -p' |
| 35720 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35721 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35722 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35723 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35724 | if mkdir -p . 2>/dev/null; then |
| 35725 | as_mkdir_p=: |
| 35726 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35727 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35728 | as_mkdir_p=false |
| 35729 | fi |
| 35730 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35731 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 35732 | # systems may use methods other than mode bits to determine executability. |
| 35733 | cat >conf$$.file <<_ASEOF |
| 35734 | #! /bin/sh |
| 35735 | exit 0 |
| 35736 | _ASEOF |
| 35737 | chmod +x conf$$.file |
| 35738 | if test -x conf$$.file >/dev/null 2>&1; then |
| 35739 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35740 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35741 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35742 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35743 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35744 | |
| 35745 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35746 | 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] | 35747 | |
| 35748 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35749 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35750 | |
| 35751 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35752 | exec 6>&1 |
| 35753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35754 | # 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] | 35755 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35756 | # values after options handling. |
| 35757 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35758 | This file was extended by llvm $as_me 2.7svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35759 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35760 | |
| 35761 | CONFIG_FILES = $CONFIG_FILES |
| 35762 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35763 | CONFIG_LINKS = $CONFIG_LINKS |
| 35764 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35765 | $ $0 $@ |
| 35766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35767 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35768 | " |
| 35769 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35770 | _ACEOF |
| 35771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35772 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35773 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35774 | config_files="$ac_config_files" |
| 35775 | config_headers="$ac_config_headers" |
| 35776 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35778 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35779 | |
| 35780 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35781 | ac_cs_usage="\ |
| 35782 | \`$as_me' instantiates files from templates according to the |
| 35783 | current configuration. |
| 35784 | |
| 35785 | Usage: $0 [OPTIONS] [FILE]... |
| 35786 | |
| 35787 | -h, --help print this help, then exit |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35788 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35789 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35790 | -d, --debug don't remove temporary files |
| 35791 | --recheck update $as_me by reconfiguring in the same conditions |
| 35792 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35793 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35794 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35795 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35796 | |
| 35797 | Configuration files: |
| 35798 | $config_files |
| 35799 | |
| 35800 | Configuration headers: |
| 35801 | $config_headers |
| 35802 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35803 | Configuration commands: |
| 35804 | $config_commands |
| 35805 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35806 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35808 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35809 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35810 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35811 | llvm config.status 2.7svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35812 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35813 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35815 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35816 | This config.status script is free software; the Free Software Foundation |
| 35817 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35818 | |
| 35819 | ac_pwd='$ac_pwd' |
| 35820 | srcdir='$srcdir' |
| 35821 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35822 | _ACEOF |
| 35823 | |
| 35824 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35825 | # If no file are specified by the user, then we need to provide default |
| 35826 | # value. By we need to know if files were specified by the user. |
| 35827 | ac_need_defaults=: |
| 35828 | while test $# != 0 |
| 35829 | do |
| 35830 | case $1 in |
| 35831 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35832 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35833 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35834 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35835 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35836 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35837 | ac_option=$1 |
| 35838 | ac_optarg=$2 |
| 35839 | ac_shift=shift |
| 35840 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35841 | esac |
| 35842 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35843 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35844 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35845 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35846 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35847 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35848 | echo "$ac_cs_version"; exit ;; |
| 35849 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35850 | debug=: ;; |
| 35851 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35852 | $ac_shift |
| 35853 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35854 | ac_need_defaults=false;; |
| 35855 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35856 | $ac_shift |
| 35857 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35858 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35859 | --he | --h) |
| 35860 | # Conflict between --help and --header |
| 35861 | { echo "$as_me: error: ambiguous option: $1 |
| 35862 | Try \`$0 --help' for more information." >&2 |
| 35863 | { (exit 1); exit 1; }; };; |
| 35864 | --help | --hel | -h ) |
| 35865 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35866 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35867 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35868 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35869 | |
| 35870 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35871 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 35872 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35873 | { (exit 1); exit 1; }; } ;; |
| 35874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35875 | *) ac_config_targets="$ac_config_targets $1" |
| 35876 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35877 | |
| 35878 | esac |
| 35879 | shift |
| 35880 | done |
| 35881 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35882 | ac_configure_extra_args= |
| 35883 | |
| 35884 | if $ac_cs_silent; then |
| 35885 | exec 6>/dev/null |
| 35886 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35887 | fi |
| 35888 | |
| 35889 | _ACEOF |
| 35890 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35891 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35892 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 35893 | CONFIG_SHELL=$SHELL |
| 35894 | export CONFIG_SHELL |
| 35895 | 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] | 35896 | fi |
| 35897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35898 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35899 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35900 | exec 5>>config.log |
| 35901 | { |
| 35902 | echo |
| 35903 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35904 | ## Running $as_me. ## |
| 35905 | _ASBOX |
| 35906 | echo "$ac_log" |
| 35907 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35909 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35910 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35911 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35912 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35913 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35914 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35915 | |
| 35916 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35918 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35919 | |
| 35920 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35921 | for ac_config_target in $ac_config_targets |
| 35922 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35923 | case $ac_config_target in |
| 35924 | "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] | 35925 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 35926 | "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] | 35927 | "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] | 35928 | "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] | 35929 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35930 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35931 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35932 | "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] | 35933 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 35934 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 35935 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 35936 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 35937 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 35938 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35939 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35940 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 35941 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35942 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35943 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 35944 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 35945 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35946 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 35947 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35949 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 35950 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 35951 | { (exit 1); exit 1; }; };; |
| 35952 | esac |
| 35953 | done |
| 35954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35955 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35956 | # If the user did not use the arguments to specify the items to instantiate, |
| 35957 | # then the envvar interface is used. Set only those that are not. |
| 35958 | # We use the long form for the default assignment because of an extremely |
| 35959 | # bizarre bug on SunOS 4.1.3. |
| 35960 | if $ac_need_defaults; then |
| 35961 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 35962 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35963 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35964 | fi |
| 35965 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35966 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35967 | # 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] | 35968 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35969 | # Hook for its removal unless debugging. |
| 35970 | # Note that there is a small window in which the directory will not be cleaned: |
| 35971 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35972 | $debug || |
| 35973 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35974 | tmp= |
| 35975 | trap 'exit_status=$? |
| 35976 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 35977 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35978 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 35979 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35980 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35981 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35982 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35983 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35984 | test -n "$tmp" && test -d "$tmp" |
| 35985 | } || |
| 35986 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35987 | tmp=./conf$$-$RANDOM |
| 35988 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35989 | } || |
| 35990 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35991 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35992 | { (exit 1); exit 1; } |
| 35993 | } |
| 35994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35995 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35996 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35997 | # |
| 35998 | |
| 35999 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 36000 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36001 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36002 | |
| 36003 | _ACEOF |
| 36004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36005 | |
| 36006 | |
| 36007 | ac_delim='%!_!# ' |
| 36008 | for ac_last_try in false false false false false :; do |
| 36009 | cat >conf$$subs.sed <<_ACEOF |
| 36010 | SHELL!$SHELL$ac_delim |
| 36011 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 36012 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 36013 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 36014 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 36015 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 36016 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 36017 | exec_prefix!$exec_prefix$ac_delim |
| 36018 | prefix!$prefix$ac_delim |
| 36019 | program_transform_name!$program_transform_name$ac_delim |
| 36020 | bindir!$bindir$ac_delim |
| 36021 | sbindir!$sbindir$ac_delim |
| 36022 | libexecdir!$libexecdir$ac_delim |
| 36023 | datarootdir!$datarootdir$ac_delim |
| 36024 | datadir!$datadir$ac_delim |
| 36025 | sysconfdir!$sysconfdir$ac_delim |
| 36026 | sharedstatedir!$sharedstatedir$ac_delim |
| 36027 | localstatedir!$localstatedir$ac_delim |
| 36028 | includedir!$includedir$ac_delim |
| 36029 | oldincludedir!$oldincludedir$ac_delim |
| 36030 | docdir!$docdir$ac_delim |
| 36031 | infodir!$infodir$ac_delim |
| 36032 | htmldir!$htmldir$ac_delim |
| 36033 | dvidir!$dvidir$ac_delim |
| 36034 | pdfdir!$pdfdir$ac_delim |
| 36035 | psdir!$psdir$ac_delim |
| 36036 | libdir!$libdir$ac_delim |
| 36037 | localedir!$localedir$ac_delim |
| 36038 | mandir!$mandir$ac_delim |
| 36039 | DEFS!$DEFS$ac_delim |
| 36040 | ECHO_C!$ECHO_C$ac_delim |
| 36041 | ECHO_N!$ECHO_N$ac_delim |
| 36042 | ECHO_T!$ECHO_T$ac_delim |
| 36043 | LIBS!$LIBS$ac_delim |
| 36044 | build_alias!$build_alias$ac_delim |
| 36045 | host_alias!$host_alias$ac_delim |
| 36046 | target_alias!$target_alias$ac_delim |
| 36047 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 36048 | subdirs!$subdirs$ac_delim |
| 36049 | build!$build$ac_delim |
| 36050 | build_cpu!$build_cpu$ac_delim |
| 36051 | build_vendor!$build_vendor$ac_delim |
| 36052 | build_os!$build_os$ac_delim |
| 36053 | host!$host$ac_delim |
| 36054 | host_cpu!$host_cpu$ac_delim |
| 36055 | host_vendor!$host_vendor$ac_delim |
| 36056 | host_os!$host_os$ac_delim |
| 36057 | target!$target$ac_delim |
| 36058 | target_cpu!$target_cpu$ac_delim |
| 36059 | target_vendor!$target_vendor$ac_delim |
| 36060 | target_os!$target_os$ac_delim |
| 36061 | OS!$OS$ac_delim |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36062 | HOST_OS!$HOST_OS$ac_delim |
| 36063 | TARGET_OS!$TARGET_OS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36064 | LINKALL!$LINKALL$ac_delim |
| 36065 | NOLINKALL!$NOLINKALL$ac_delim |
| 36066 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 36067 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 36068 | ARCH!$ARCH$ac_delim |
| 36069 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36070 | CC!$CC$ac_delim |
| 36071 | CFLAGS!$CFLAGS$ac_delim |
| 36072 | LDFLAGS!$LDFLAGS$ac_delim |
| 36073 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 36074 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 36075 | EXEEXT!$EXEEXT$ac_delim |
| 36076 | OBJEXT!$OBJEXT$ac_delim |
| 36077 | CPP!$CPP$ac_delim |
| 36078 | GREP!$GREP$ac_delim |
| 36079 | EGREP!$EGREP$ac_delim |
| 36080 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 36081 | BUILD_CC!$BUILD_CC$ac_delim |
| 36082 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 36083 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36084 | CVSBUILD!$CVSBUILD$ac_delim |
| 36085 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36086 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36087 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 36088 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 36089 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36090 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36091 | JIT!$JIT$ac_delim |
| 36092 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 36093 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 36094 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 36095 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36096 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36097 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 36098 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36099 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 36100 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36101 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 36102 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36103 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
| 36104 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36105 | CXX!$CXX$ac_delim |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 36106 | CXXFLAGS!$CXXFLAGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36107 | _ACEOF |
| 36108 | |
| 36109 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 36110 | break |
| 36111 | elif $ac_last_try; then |
| 36112 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36113 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36114 | { (exit 1); exit 1; }; } |
| 36115 | else |
| 36116 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36117 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36118 | done |
| 36119 | |
| 36120 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36121 | if test -n "$ac_eof"; then |
| 36122 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36123 | ac_eof=`expr $ac_eof + 1` |
| 36124 | fi |
| 36125 | |
| 36126 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36127 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 36128 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36129 | _ACEOF |
| 36130 | sed ' |
| 36131 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36132 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36133 | :n |
| 36134 | t n |
| 36135 | s/'"$ac_delim"'$/,g/; t |
| 36136 | s/$/\\/; p |
| 36137 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36138 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36139 | rm -f conf$$subs.sed |
| 36140 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36141 | CEOF$ac_eof |
| 36142 | _ACEOF |
| 36143 | |
| 36144 | |
| 36145 | ac_delim='%!_!# ' |
| 36146 | for ac_last_try in false false false false false :; do |
| 36147 | cat >conf$$subs.sed <<_ACEOF |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36148 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 36149 | NM!$NM$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36150 | ifGNUmake!$ifGNUmake$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36151 | LN_S!$LN_S$ac_delim |
| 36152 | CMP!$CMP$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36153 | CP!$CP$ac_delim |
| 36154 | DATE!$DATE$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36155 | FIND!$FIND$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36156 | MKDIR!$MKDIR$ac_delim |
| 36157 | MV!$MV$ac_delim |
| 36158 | RANLIB!$RANLIB$ac_delim |
| 36159 | RM!$RM$ac_delim |
| 36160 | SED!$SED$ac_delim |
| 36161 | TAR!$TAR$ac_delim |
| 36162 | BINPWD!$BINPWD$ac_delim |
| 36163 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 36164 | DOT!$DOT$ac_delim |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 36165 | FDP!$FDP$ac_delim |
| 36166 | NEATO!$NEATO$ac_delim |
| 36167 | TWOPI!$TWOPI$ac_delim |
| 36168 | CIRCO!$CIRCO$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36169 | GV!$GV$ac_delim |
| 36170 | DOTTY!$DOTTY$ac_delim |
| 36171 | PERL!$PERL$ac_delim |
| 36172 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 36173 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 36174 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 36175 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 36176 | BZIP2!$BZIP2$ac_delim |
| 36177 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36178 | GROFF!$GROFF$ac_delim |
| 36179 | GZIP!$GZIP$ac_delim |
| 36180 | POD2HTML!$POD2HTML$ac_delim |
| 36181 | POD2MAN!$POD2MAN$ac_delim |
| 36182 | RUNTEST!$RUNTEST$ac_delim |
| 36183 | TCLSH!$TCLSH$ac_delim |
| 36184 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 36185 | OCAMLC!$OCAMLC$ac_delim |
| 36186 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 36187 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 36188 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 36189 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36190 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 36191 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 36192 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 36193 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 36194 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 36195 | ECHO!$ECHO$ac_delim |
| 36196 | AR!$AR$ac_delim |
| 36197 | STRIP!$STRIP$ac_delim |
| 36198 | CXXCPP!$CXXCPP$ac_delim |
| 36199 | F77!$F77$ac_delim |
| 36200 | FFLAGS!$FFLAGS$ac_delim |
| 36201 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 36202 | LIBTOOL!$LIBTOOL$ac_delim |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36203 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 36204 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 36205 | LLVMGCC!$LLVMGCC$ac_delim |
| 36206 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 36207 | USE_UDIS86!$USE_UDIS86$ac_delim |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 36208 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 36209 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 36210 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36211 | ALLOCA!$ALLOCA$ac_delim |
| 36212 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 36213 | LLVMCC1!$LLVMCC1$ac_delim |
| 36214 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 36215 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 36216 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36217 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 36218 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 36219 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36220 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 36221 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 36222 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 36223 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 36224 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 36225 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 36226 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 36227 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 36228 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 36229 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 36230 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 36231 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 36232 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 36233 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 36234 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 36235 | RPATH!$RPATH$ac_delim |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 36236 | RDYNAMIC!$RDYNAMIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36237 | LIBOBJS!$LIBOBJS$ac_delim |
| 36238 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 36239 | _ACEOF |
| 36240 | |
Gabor Greif | 4c75054 | 2009-08-27 17:07:35 +0000 | [diff] [blame] | 36241 | 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] | 36242 | break |
| 36243 | elif $ac_last_try; then |
| 36244 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36245 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36246 | { (exit 1); exit 1; }; } |
| 36247 | else |
| 36248 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36249 | fi |
| 36250 | done |
| 36251 | |
| 36252 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36253 | if test -n "$ac_eof"; then |
| 36254 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36255 | ac_eof=`expr $ac_eof + 1` |
| 36256 | fi |
| 36257 | |
| 36258 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36259 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 36260 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 36261 | _ACEOF |
| 36262 | sed ' |
| 36263 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36264 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36265 | :n |
| 36266 | t n |
| 36267 | s/'"$ac_delim"'$/,g/; t |
| 36268 | s/$/\\/; p |
| 36269 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36270 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36271 | rm -f conf$$subs.sed |
| 36272 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36273 | :end |
| 36274 | s/|#_!!_#|//g |
| 36275 | CEOF$ac_eof |
| 36276 | _ACEOF |
| 36277 | |
| 36278 | |
| 36279 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 36280 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 36281 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36282 | # (actually we leave an empty line to preserve line numbers). |
| 36283 | if test "x$srcdir" = x.; then |
| 36284 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 36285 | s/:*\$(srcdir):*/:/ |
| 36286 | s/:*\${srcdir}:*/:/ |
| 36287 | s/:*@srcdir@:*/:/ |
| 36288 | s/^\([^=]*=[ ]*\):*/\1/ |
| 36289 | s/:*$// |
| 36290 | s/^[^=]*=[ ]*$// |
| 36291 | }' |
| 36292 | fi |
| 36293 | |
| 36294 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36295 | fi # test -n "$CONFIG_FILES" |
| 36296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36297 | |
| 36298 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 36299 | do |
| 36300 | case $ac_tag in |
| 36301 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36302 | esac |
| 36303 | case $ac_mode$ac_tag in |
| 36304 | :[FHL]*:*);; |
| 36305 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 36306 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 36307 | { (exit 1); exit 1; }; };; |
| 36308 | :[FH]-) ac_tag=-:-;; |
| 36309 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36310 | esac |
| 36311 | ac_save_IFS=$IFS |
| 36312 | IFS=: |
| 36313 | set x $ac_tag |
| 36314 | IFS=$ac_save_IFS |
| 36315 | shift |
| 36316 | ac_file=$1 |
| 36317 | shift |
| 36318 | |
| 36319 | case $ac_mode in |
| 36320 | :L) ac_source=$1;; |
| 36321 | :[FH]) |
| 36322 | ac_file_inputs= |
| 36323 | for ac_f |
| 36324 | do |
| 36325 | case $ac_f in |
| 36326 | -) ac_f="$tmp/stdin";; |
| 36327 | *) # Look for the file first in the build tree, then in the source tree |
| 36328 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36329 | # because $ac_f cannot contain `:'. |
| 36330 | test -f "$ac_f" || |
| 36331 | case $ac_f in |
| 36332 | [\\/$]*) false;; |
| 36333 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36334 | esac || |
| 36335 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 36336 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 36337 | { (exit 1); exit 1; }; };; |
| 36338 | esac |
| 36339 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 36340 | done |
| 36341 | |
| 36342 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36343 | # use $as_me), people would be surprised to read: |
| 36344 | # /* config.h. Generated by config.status. */ |
| 36345 | configure_input="Generated from "`IFS=: |
| 36346 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 36347 | if test x"$ac_file" != x-; then |
| 36348 | configure_input="$ac_file. $configure_input" |
| 36349 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 36350 | echo "$as_me: creating $ac_file" >&6;} |
| 36351 | fi |
| 36352 | |
| 36353 | case $ac_tag in |
| 36354 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 36355 | esac |
| 36356 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36357 | esac |
| 36358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36359 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36360 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36361 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36362 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36363 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36364 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36365 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36366 | s//\1/ |
| 36367 | q |
| 36368 | } |
| 36369 | /^X\(\/\/\)[^/].*/{ |
| 36370 | s//\1/ |
| 36371 | q |
| 36372 | } |
| 36373 | /^X\(\/\/\)$/{ |
| 36374 | s//\1/ |
| 36375 | q |
| 36376 | } |
| 36377 | /^X\(\/\).*/{ |
| 36378 | s//\1/ |
| 36379 | q |
| 36380 | } |
| 36381 | s/.*/./; q'` |
| 36382 | { as_dir="$ac_dir" |
| 36383 | case $as_dir in #( |
| 36384 | -*) as_dir=./$as_dir;; |
| 36385 | esac |
| 36386 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36387 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36388 | while :; do |
| 36389 | case $as_dir in #( |
| 36390 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36391 | *) as_qdir=$as_dir;; |
| 36392 | esac |
| 36393 | as_dirs="'$as_qdir' $as_dirs" |
| 36394 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36395 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36396 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36397 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36398 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36399 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36401 | s//\1/ |
| 36402 | q |
| 36403 | } |
| 36404 | /^X\(\/\/\)[^/].*/{ |
| 36405 | s//\1/ |
| 36406 | q |
| 36407 | } |
| 36408 | /^X\(\/\/\)$/{ |
| 36409 | s//\1/ |
| 36410 | q |
| 36411 | } |
| 36412 | /^X\(\/\).*/{ |
| 36413 | s//\1/ |
| 36414 | q |
| 36415 | } |
| 36416 | s/.*/./; q'` |
| 36417 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36418 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36419 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36420 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36421 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36422 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36423 | ac_builddir=. |
| 36424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36425 | case "$ac_dir" in |
| 36426 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36427 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36428 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36429 | # A ".." for each directory in $ac_dir_suffix. |
| 36430 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36431 | case $ac_top_builddir_sub in |
| 36432 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36433 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36434 | esac ;; |
| 36435 | esac |
| 36436 | ac_abs_top_builddir=$ac_pwd |
| 36437 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36438 | # for backward compatibility: |
| 36439 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36440 | |
| 36441 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36442 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36443 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36444 | ac_top_srcdir=$ac_top_builddir_sub |
| 36445 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36446 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36447 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36448 | ac_top_srcdir=$srcdir |
| 36449 | ac_abs_top_srcdir=$srcdir ;; |
| 36450 | *) # Relative name. |
| 36451 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36452 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36453 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36454 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36455 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36456 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36458 | case $ac_mode in |
| 36459 | :F) |
| 36460 | # |
| 36461 | # CONFIG_FILE |
| 36462 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36463 | |
| 36464 | case $INSTALL in |
| 36465 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36466 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36467 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36468 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36469 | |
| 36470 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36471 | # If the template does not know about datarootdir, expand it. |
| 36472 | # FIXME: This hack should be removed a few years after 2.60. |
| 36473 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 36474 | |
| 36475 | case `sed -n '/datarootdir/ { |
| 36476 | p |
| 36477 | q |
| 36478 | } |
| 36479 | /@datadir@/p |
| 36480 | /@docdir@/p |
| 36481 | /@infodir@/p |
| 36482 | /@localedir@/p |
| 36483 | /@mandir@/p |
| 36484 | ' $ac_file_inputs` in |
| 36485 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36486 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 36487 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 36488 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36489 | _ACEOF |
| 36490 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36491 | ac_datarootdir_hack=' |
| 36492 | s&@datadir@&$datadir&g |
| 36493 | s&@docdir@&$docdir&g |
| 36494 | s&@infodir@&$infodir&g |
| 36495 | s&@localedir@&$localedir&g |
| 36496 | s&@mandir@&$mandir&g |
| 36497 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 36498 | esac |
| 36499 | _ACEOF |
| 36500 | |
| 36501 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36502 | # Shell code in configure.ac might set extrasub. |
| 36503 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36504 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36505 | sed "$ac_vpsub |
| 36506 | $extrasub |
| 36507 | _ACEOF |
| 36508 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36509 | :t |
| 36510 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36511 | s&@configure_input@&$configure_input&;t t |
| 36512 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36513 | s&@srcdir@&$ac_srcdir&;t t |
| 36514 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36515 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36516 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36517 | s&@builddir@&$ac_builddir&;t t |
| 36518 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36519 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36520 | s&@INSTALL@&$ac_INSTALL&;t t |
| 36521 | $ac_datarootdir_hack |
| 36522 | " $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] | 36523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36524 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 36525 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 36526 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 36527 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36528 | which seems to be undefined. Please make sure it is defined." >&5 |
| 36529 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36530 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36532 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36533 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36534 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 36535 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36536 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36537 | ;; |
| 36538 | :H) |
| 36539 | # |
| 36540 | # CONFIG_HEADER |
| 36541 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36542 | _ACEOF |
| 36543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36544 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 36545 | # substitutes the proper values into config.h.in to produce config.h. |
| 36546 | rm -f conftest.defines conftest.tail |
| 36547 | # First, append a space to every undef/define line, to ease matching. |
| 36548 | echo 's/$/ /' >conftest.defines |
| 36549 | # Then, protect against being on the right side of a sed subst, or in |
| 36550 | # an unquoted here document, in config.status. If some macros were |
| 36551 | # called several times there might be several #defines for the same |
| 36552 | # symbol, which is useless. But do not sort them, since the last |
| 36553 | # AC_DEFINE must be honored. |
| 36554 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36555 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 36556 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 36557 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 36558 | # just an empty string. |
| 36559 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 36560 | ac_dB='\\)[ (].*,\\1define\\2' |
| 36561 | ac_dC=' ' |
| 36562 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36564 | uniq confdefs.h | |
| 36565 | sed -n ' |
| 36566 | t rset |
| 36567 | :rset |
| 36568 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 36569 | t ok |
| 36570 | d |
| 36571 | :ok |
| 36572 | s/[\\&,]/\\&/g |
| 36573 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 36574 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 36575 | ' >>conftest.defines |
| 36576 | |
| 36577 | # Remove the space that was appended to ease matching. |
| 36578 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36579 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 36580 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36581 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 36582 | echo 's/ $// |
| 36583 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36585 | # Break up conftest.defines: |
| 36586 | ac_max_sed_lines=50 |
| 36587 | |
| 36588 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 36589 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 36590 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 36591 | # et cetera. |
| 36592 | ac_in='$ac_file_inputs' |
| 36593 | ac_out='"$tmp/out1"' |
| 36594 | ac_nxt='"$tmp/out2"' |
| 36595 | |
| 36596 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36597 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36598 | # Write a here document: |
| 36599 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36600 | # First, check the format of the line: |
| 36601 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 36602 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 36603 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 36604 | b |
| 36605 | :def |
| 36606 | _ACEOF |
| 36607 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36608 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36609 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 36610 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 36611 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 36612 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36613 | rm -f conftest.defines |
| 36614 | mv conftest.tail conftest.defines |
| 36615 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36616 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36618 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36619 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36620 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36621 | echo "/* $configure_input */" >"$tmp/config.h" |
| 36622 | cat "$ac_result" >>"$tmp/config.h" |
| 36623 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36624 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 36625 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 36626 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36627 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36628 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36629 | fi |
| 36630 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36631 | echo "/* $configure_input */" |
| 36632 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36633 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36634 | rm -f "$tmp/out12" |
| 36635 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36637 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 36638 | echo "$as_me: executing $ac_file commands" >&6;} |
| 36639 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36640 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36642 | |
| 36643 | case $ac_file$ac_mode in |
| 36644 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36645 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36646 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36647 | ${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] | 36648 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36649 | ${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] | 36650 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36651 | ${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] | 36652 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36653 | ${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] | 36654 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36655 | ${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] | 36656 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36657 | ${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] | 36658 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36659 | ${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] | 36660 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36661 | ${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] | 36662 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36663 | ${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] | 36664 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36665 | ${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] | 36666 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36667 | ${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] | 36668 | "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] | 36669 | ${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] | 36670 | |
| 36671 | esac |
| 36672 | done # for ac_tag |
| 36673 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36674 | |
| 36675 | { (exit 0); exit 0; } |
| 36676 | _ACEOF |
| 36677 | chmod +x $CONFIG_STATUS |
| 36678 | ac_clean_files=$ac_clean_files_save |
| 36679 | |
| 36680 | |
| 36681 | # configure is writing to config.log, and then calls config.status. |
| 36682 | # config.status does its own redirection, appending to config.log. |
| 36683 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 36684 | # by configure, so config.status won't be able to write to it; its |
| 36685 | # output is simply discarded. So we exec the FD to /dev/null, |
| 36686 | # effectively closing config.log, so it can be properly (re)opened and |
| 36687 | # appended to by config.status. When coming back to configure, we |
| 36688 | # need to make the FD available again. |
| 36689 | if test "$no_create" != yes; then |
| 36690 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36691 | ac_config_status_args= |
| 36692 | test "$silent" = yes && |
| 36693 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36694 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36695 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36696 | exec 5>>config.log |
| 36697 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 36698 | # would make configure fail if this is the last instruction. |
| 36699 | $ac_cs_success || { (exit 1); exit 1; } |
| 36700 | fi |
| 36701 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36702 | # |
| 36703 | # CONFIG_SUBDIRS section. |
| 36704 | # |
| 36705 | if test "$no_recursion" != yes; then |
| 36706 | |
| 36707 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 36708 | ac_sub_configure_args= |
| 36709 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36710 | eval "set x $ac_configure_args" |
| 36711 | shift |
| 36712 | for ac_arg |
| 36713 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36714 | if test -n "$ac_prev"; then |
| 36715 | ac_prev= |
| 36716 | continue |
| 36717 | fi |
| 36718 | case $ac_arg in |
| 36719 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 36720 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 36721 | ac_prev=cache_file ;; |
| 36722 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 36723 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 36724 | | --c=*) |
| 36725 | ;; |
| 36726 | --config-cache | -C) |
| 36727 | ;; |
| 36728 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 36729 | ac_prev=srcdir ;; |
| 36730 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 36731 | ;; |
| 36732 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 36733 | ac_prev=prefix ;; |
| 36734 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 36735 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36736 | *) |
| 36737 | case $ac_arg in |
| 36738 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36739 | esac |
| 36740 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36741 | esac |
| 36742 | done |
| 36743 | |
| 36744 | # Always prepend --prefix to ensure using the same prefix |
| 36745 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36746 | ac_arg="--prefix=$prefix" |
| 36747 | case $ac_arg in |
| 36748 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36749 | esac |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 36750 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36751 | |
| 36752 | ac_popdir=`pwd` |
| 36753 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 36754 | |
| 36755 | # Do not complain, so a configure script can configure whichever |
| 36756 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36757 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36759 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 36760 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 36761 | echo "$ac_msg" >&6 |
| 36762 | { as_dir="$ac_dir" |
| 36763 | case $as_dir in #( |
| 36764 | -*) as_dir=./$as_dir;; |
| 36765 | esac |
| 36766 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36767 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36768 | while :; do |
| 36769 | case $as_dir in #( |
| 36770 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36771 | *) as_qdir=$as_dir;; |
| 36772 | esac |
| 36773 | as_dirs="'$as_qdir' $as_dirs" |
| 36774 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36775 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36776 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36777 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36778 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36779 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36781 | s//\1/ |
| 36782 | q |
| 36783 | } |
| 36784 | /^X\(\/\/\)[^/].*/{ |
| 36785 | s//\1/ |
| 36786 | q |
| 36787 | } |
| 36788 | /^X\(\/\/\)$/{ |
| 36789 | s//\1/ |
| 36790 | q |
| 36791 | } |
| 36792 | /^X\(\/\).*/{ |
| 36793 | s//\1/ |
| 36794 | q |
| 36795 | } |
| 36796 | s/.*/./; q'` |
| 36797 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36798 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36799 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36800 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36801 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36802 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36803 | ac_builddir=. |
| 36804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36805 | case "$ac_dir" in |
| 36806 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36807 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36808 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36809 | # A ".." for each directory in $ac_dir_suffix. |
| 36810 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36811 | case $ac_top_builddir_sub in |
| 36812 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36813 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36814 | esac ;; |
| 36815 | esac |
| 36816 | ac_abs_top_builddir=$ac_pwd |
| 36817 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36818 | # for backward compatibility: |
| 36819 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36820 | |
| 36821 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36822 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36823 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36824 | ac_top_srcdir=$ac_top_builddir_sub |
| 36825 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36826 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36827 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36828 | ac_top_srcdir=$srcdir |
| 36829 | ac_abs_top_srcdir=$srcdir ;; |
| 36830 | *) # Relative name. |
| 36831 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36832 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36833 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36834 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36835 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36836 | |
| 36837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36838 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36839 | |
| 36840 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36841 | if test -f "$ac_srcdir/configure.gnu"; then |
| 36842 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 36843 | elif test -f "$ac_srcdir/configure"; then |
| 36844 | ac_sub_configure=$ac_srcdir/configure |
| 36845 | elif test -f "$ac_srcdir/configure.in"; then |
| 36846 | # This should be Cygnus configure. |
| 36847 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36848 | else |
| 36849 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 36850 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 36851 | ac_sub_configure= |
| 36852 | fi |
| 36853 | |
| 36854 | # The recursion is here. |
| 36855 | if test -n "$ac_sub_configure"; then |
| 36856 | # Make the cache file name correct relative to the subdirectory. |
| 36857 | case $cache_file in |
| 36858 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36859 | *) # Relative name. |
| 36860 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36861 | esac |
| 36862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36863 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 36864 | 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] | 36865 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36866 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 36867 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36868 | { { 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] | 36869 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 36870 | { (exit 1); exit 1; }; } |
| 36871 | fi |
| 36872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36873 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36874 | done |
| 36875 | fi |
| 36876 | |